stat, fstat: Avoid warnings on mingw64.
[gnulib.git] / ChangeLog
1 2012-06-19  Bruno Haible  <bruno@clisp.org>
2
3         stat, fstat: Avoid warnings on mingw64.
4         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
5         redefining.
6         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
7         Reported by Daniel P. Berrange <berrange@redhat.com>.
8
9 2012-06-19  Bruno Haible  <bruno@clisp.org>
10
11         stdioext: Add support for musl libc.
12
13         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
14         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
15
16         * m4/fseterr.m4: New file.
17         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
18         function exists.
19         * modules/fseterr (Files): Add m4/fseterr.m4.
20         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
21         __fseterr does not exist.
22         (Makefile.am): Remove fseterr.c from lib_SOURCES.
23
24         * lib/freadable.h: Update comment.
25
26         * lib/fwritable.h: Update comment.
27
28         * lib/freading.h: Update comment.
29
30         * lib/fwriting.h: Update comment.
31
32         * m4/freadahead.m4: New file.
33         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
34         that function exists.
35         * modules/freadahead (Files): Add m4/freadahead.m4.
36         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
37         __freadahead does not exist.
38         (Makefile.am): Remove freadahead.c from lib_SOURCES.
39
40         * m4/freadptr.m4: New file.
41         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
42         function exists.
43         * modules/freadptr (Files): Add m4/freadptr.m4.
44         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
45         __freadptr does not exist.
46         (Makefile.am): Remove freadptr.c from lib_SOURCES.
47
48         * m4/freadseek.m4: New file.
49         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
50         exists.
51         * modules/freadseek (Files): Add m4/freadseek.m4.
52         (configure.ac): Invoke gl_FUNC_FREADSEEK.
53
54         * lib/fpurge.c (fpurge): Update comment.
55
56         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
57
58 2012-06-19  Bruno Haible  <bruno@clisp.org>
59
60         *printf-posix: Put more info into config.log.
61         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
62         exit code into config.log.
63
64 2012-06-19  Bruno Haible  <bruno@clisp.org>
65
66         getopt-gnu: Fix exit code overflow in autoconf test.
67         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
68         to keep them below < 128.
69
70 2012-06-17  Jim Meyering  <meyering@redhat.com>
71
72         maint.mk: fix typo in code to derive GPG key at release time
73         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
74
75 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
76
77         regex: avoid warning when pointers are not long
78         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
79         and uintptr_t, not long, for portability to hosts where pointers and
80         long have different sizes.  Issue noted by Daniel P. Berrange in
81         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
82         and fix suggested by Bruno Haible in
83         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
84
85 2012-06-17  Bruno Haible  <bruno@clisp.org>
86
87         dummy: Relicense into the public domain.
88         * modules/dummy (License): Set to "public domain".
89         Suggested by Reuben Thomas.
90
91 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
92
93         announce-gen: VPATH issues
94         * build-aux/announce-gen (--srcdir): New option, used to trim the
95         $srcdir part of the path from $builddir to NEWS.
96         * top/maint.mk (announcement): Adjust.
97
98 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
99
100         gnu-web-doc-update: VPATH builds
101         * build-aux/gnu-web-doc-update (--builddir): New option.
102         Revamp the handling of options.
103         Prefer $(...) to `...`.
104         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
105         the template, and it is GNU mktemp specific.
106         Prefer set -e to long series of &&.
107         Restore the initial git branch, not "master".
108         Properly initialize submodules (don't rely only on bootstrap).
109         Do not reconfigure blindly, use config.status.
110         * top/README-release: Update instructions for gnu-web-doc-update.
111
112 2012-06-11  Jim Meyering  <meyering@redhat.com>
113
114         maint.mk: revert most of the previous change re "all these"
115         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
116         For rationale, see the discussion at
117         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
118
119 2012-06-10  Karl Berry  <karl@gnu.org>
120
121         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
122
123         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
124
125 2012-06-10  Bruce Korb  <bkorb@gnu.org>
126
127         parse-duration: Relicense under LGPLv2+.
128         * modules/parse-duration (License): Change to LGPLv2+.
129
130 2012-06-10  Jim Meyering  <meyering@redhat.com>
131
132         maint.mk: prohibit common grammar error: "all these"
133         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
134         the list of prohibited word sequences.  It should be "all of these".
135         * lib/tempname.c (__gen_tempname): Fix one of them.
136
137 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
138
139         do-release-commit-and-tag: support VPATH builds
140         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
141         (noteworthy): Defined earlier to factor its value.
142         (noteworthy_stub): New.
143         Use it to factor.
144         (help_version): Split into...
145         (help, version): these.
146         Adjust the option processing part.
147         Support "--option=value" in addition to "--option value".
148         (builddir): New.
149         (--builddir): New option.
150         * top/README-release: Document this.
151         Reword slightly so that the reader cannot understand that he
152         has to do these steps before calling do-release-commit-and-tag.
153
154 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
155
156         readme-release: also require announce-gen and maintainer-makefile
157         * modules/readme-release (Depends-on): here.
158         * modules/announce-gen, modules/do-release-commit-and-tag,
159         modules/gnu-web-doc-update, modules/maintainer-makefile
160         (Description): Point to readme-release.
161
162 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
163
164         maint.mk: fix VPATH issues.
165         * top/maint.mk (news-check): GNU Make understand $< very well.
166         (release-prep): NEWS is in $(srcdir).
167
168 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
169
170         readme-release: require the promoted modules.
171         * modules/readme-release (Depends-on): Add
172         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
173         in this text.
174
175 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
176             Bruno Haible  <bruno@clisp.org>
177
178         error, strerror-override: Support mingw64 from Fedora 17.
179         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
180         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
181         EINPROGRESS.
182         * lib/strerror-override.h (strerror_override): Test it.
183         * lib/strerror-override.c (strerror_override): Likewise.
184         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
185
186 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
187             Bruno Haible  <bruno@clisp.org>
188
189         error, strerror-override: Support mingw64 from Fedora 17.
190         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
191         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
192         * lib/strerror-override.h (strerror_override): Test it.
193         * lib/strerror-override.c (strerror_override): Likewise.
194
195 2012-06-03  Bruno Haible  <bruno@clisp.org>
196
197         error, strerror-override: Support new errno values from POSIX:2008.
198         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
199         ENOTRECOVERABLE.
200         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
201         platforms.
202         * lib/strerror-override.c (strerror_override): Conditionalize the
203         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
204         * lib/strerror-override.h (strerror_override): Declare also if
205         GNULIB_defined_EOWNERDEAD is defined.
206         * tests/test-errno.c (e130, e131): New variables.
207         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
208         ENOTRECOVERABLE.
209         Reported by Paolo Bonzini.
210
211 2012-05-31  Jim Meyering  <meyering@redhat.com>
212
213         savewd: add missing dependency on sys_wait module
214         * modules/savewd (Depends-on): Add sys_wait, needed at least
215         for MSVC.  Report and suggested change by Michael Goffioul.
216
217 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
218
219         system-quote-tests: port to CentOS 5
220         Problem reported by Tom G. Christensen in
221         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
222         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
223
224 2012-05-29  Jim Meyering  <meyering@redhat.com>
225
226         maint: fix typos in comments and ChangeLog
227         Culprits identified and fixed mostly automatically using these commands:
228         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
229         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
230         using http://github.com/lyda/misspell-check
231         * ChangeLog: Fix typos.
232         * doc/solaris-versions: Likewise.
233         * lib/regexec.c (re_search_stub): Likewise.
234         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
235
236 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
237
238         manywarnings: remove duplicate -Wmultichar entry
239         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
240         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
241         so keep the entry marked as documented.
242
243 2012-05-27  Karl Berry  <karl@gnu.org>
244
245         * config/srclist.txt (mktime.c): remove last libc sync,
246         perhaps just temporarily.
247
248 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
249
250         regex: don't assume uint64_t or uint32_t
251         * lib/regcomp.c (init_word_char): Don't assume that the types
252         uint64_t and uint32_t exist.  The C standard doesn't guarantee
253         them, and on some 32-bit compilers there is no uint64_t.
254         Problem reported by Gianluigi Tiesi in
255         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
256
257 2012-05-25  Jim Meyering  <meyering@redhat.com>
258
259         maint.mk: add strncpy-prohibiting syntax-check rule
260         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
261
262 2012-05-24  Jim Meyering  <meyering@redhat.com>
263
264         maint.mk: compute $(gpg_key_ID) more portably
265         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
266         That use of sed is not portable to some fringe systems.
267         Reported by Paul Eggert in
268         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
269
270 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
271
272         mktime: sync from glibc
273         * config/srclist.txt: Uncomment mktime.c.
274         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
275         First, indent with tabs, since glibc uses tabs and doesn't want to
276         change and we'd rather be identical to glibc.  Also, two small
277         coding changes:
278         (isdst_differ): Use &&, not &, as && is the usual style.
279         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
280         for clarity.
281
282 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
283
284         announce-gen: du -h is more portable than du --human
285         * build-aux/announce-gen (sizes): Invoke du with -h instead
286         of --human.  Accept leading white space in its output.
287
288 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
289
290         announce-gen: Improve diagnostics.
291         * build-aux/announce-gen: When parsing command line options,
292         prefer "announce-gen: option --release-type requires an argument"
293         to "Option release-type requires an argument".
294
295 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
296
297         maint.mk: gpg_key_ID: use sed more portably
298         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
299         the closing brace.
300         (refresh-po): Fuse two sed invocations into one.
301
302 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
303
304         gitlog-to-changelog: support the log message format used in Bison.
305         * build-aux/gitlog-to-changelog: Support --strip-tab and
306         --strip-cherry-picked.
307
308 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
309
310         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
311         the rest of the current time slice to another thread in the current
312         process. So if the thread that feeds the file decscriptor we're
313         polling is not in the current process, we get busy-waiting.
314         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
315         Patch from Theodore Leblond.
316         * lib/select.c: Split polling out of the loop that sets the output
317         fd_sets.  Check for zero result and loop if the wait timeout is
318         infinite.
319
320 2012-05-21  Simon Josefsson  <simon@josefsson.org>
321
322         select: Fix build error on IRIX 6.5.
323         * lib/select.c: Include stddef.h for NULL.
324
325 2012-05-21  Simon Josefsson  <simon@josefsson.org>
326
327         gc: fix libgcrypt detection on older machines.
328         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
329         copyright years because the file has been distributed every year
330         since it was created.
331
332 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
333
334         crypto: fix bug in large buffer handling
335         Problem reported by Serge Belyshev for glibc in
336         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
337         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
338         * lib/md4.c (md4_process_block):
339         * lib/md5.c (md5_process_block):
340         * lib/sha1.c (sha1_process_block):
341         * lib/sha256.c (sha256_process_block):
342         Don't assume the buffer length is less than 2**32.
343         * lib/sha512.c (sha512_process_block): Likewise.
344         Here, the bug is present only in the rare case where the host does
345         not support uint64_t or where size_t is wider than 64 bits.
346         Use u64size to work around the problems.
347         * lib/u64.h (u64size): New macro.
348
349 2012-05-15  Pádraig Brady  <P@draigBrady.com>
350
351         fsusage: fix block size returned on older Linux 2.6
352
353         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
354         which is available since Linux 2.6.
355         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
356         when the member is available so it can be used as a fallback.
357         * doc/posix-functions/statvfs.texi: Mention the hang issue
358         on Linux < 2.6.36.
359
360 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
361
362         bootstrap: suppress stderr chatter
363         * build-aux/bootstrap (insert_sorted_if_absent, main program):
364         Omit unnecessary chatter to stderr.  The main program chatter
365         was there only inadvertantly.
366
367         bootstrap: .gitignore files created by autopoint, libtool
368         I ran into this problem when bootstrapping the latest diffutils.
369         After './bootstrap', 'git status' reported lots of untracked files
370         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
371         autopoint and do not need to be version-controlled.
372         * build-aux/bootstrap: Put into .gitignore the files that
373         autopoint and libtool create, by keeping track of files that exist
374         after but not before these programs are run.
375         (version_controlled_file): Move up.  2nd arg is now full file
376         name, not base name; this is more convenient.  Put CVS at the end,
377         as it's now somewhat deprecated.
378
379 2012-05-14  Jim Meyering  <meyering@redhat.com>
380
381         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
382         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
383         definition.  Reported by Bruno Haible.
384
385 2012-05-13  Bruno Haible  <bruno@clisp.org>
386             Paul Eggert  <eggert@cs.ucla.edu>
387
388         binary-io: Define set_binary_mode function.
389         * lib/binary-io.h (set_binary_mode): New function.
390         (SET_BINARY): Define in terms of set_binary_mode.
391         * modules/binary-io (configure.ac): Require AC_C_INLINE.
392         * tests/test-binary-io.c (main): Accept an argument, and test either
393         set_binary_mode or SET_BINARY depending on the argument.
394         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
395         argument. Clean up also t-bin-out0.tmp.
396
397 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
398
399         bootstrap: take advantage of POSIX shell features
400
401         The 'bootstrap' script offered by Gnulib script already uses POSIX
402         shell features (like $((...)) arithmetic expansions) that are not
403         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
404         means that bootstrap must already be run using a proper POSIX shell,
405         which will thus provide more features, like ${var#pattern} parameter
406         expansion or inversion of a command exit status with '!'.  We can
407         thus use these features to improve the clarity and the performances
408         of the bootstrap script.
409
410         Suggested by Eric Blake.
411
412         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
413         of sed/expr plus command substitutions, to save some forks.  While
414         we are at it, prefer the POSIX $(...) form of command substitution,
415         rather than the legacy form `...` (since the former is visually
416         clearer and interacts better with quoting), and prefer the idiom:
417           "if ! CMD; then ACTION ..."
418         over the idiom:
419           "if CMD; then :; else ACTION ..."
420         which was required by legacy Bourne shells not supporting '!'.
421
422 2012-05-12  Bruno Haible  <bruno@clisp.org>
423
424         system-quote: Add more comments.
425         * lib/system-quote.h: Add more comments about wilcards and limitations.
426         Suggested by Eli Zaretskii <eliz@gnu.org>.
427
428         sh-quote, system-quote: Add comments about wildcards.
429         * lib/sh-quote.h: Clarify what happens with wildcard characters.
430         * lib/system-quote.h: Likewise.
431         Reported by Eli Zaretskii <eliz@gnu.org>.
432
433 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
434
435         fsusage: check for GNU/Linux statvfs problem dynamically
436         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
437         Define STAT_STATFS2_BSIZE too, since in this case the code now
438         checks dynamically whether statvfs is reliable, falling back on
439         Linux-style statfs otherwise.
440         (statvfs_works): New function, for dynamically testing statvfs.
441         (get_fs_usage) [STAT_STATVFS]: Use it.
442         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
443         statvfs on GNU/Linux hosts, since it's now done dynamically.
444
445 2012-05-10  Bruno Haible  <bruno@clisp.org>
446
447         system-quote, execute, spawn-pipe: Escape '?' on Windows.
448         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
449         '?' character.
450         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
451         * tests/test-system-quote-main.c (check_all): Check also strings like
452         "??????????".
453         Reported by Eli Zaretskii <eliz@gnu.org>.
454
455 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
456
457         _Noreturn: port config.h to gcc -Wundef
458         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
459         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
460         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
461
462 2012-05-10  Bruno Haible  <bruno@clisp.org>
463
464         system-quote: Refactor.
465         * lib/system-quote.h (system_quote_copy): Fix comment.
466         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
467         New functions, extracted from system_quote_copy.
468         (system_quote_length, system_quote_copy): Use these functions.
469         Reported by Paul Eggert.
470
471 2012-05-08  Bruno Haible  <bruno@clisp.org>
472
473         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
474         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
475
476 2012-05-08  Bruno Haible  <bruno@clisp.org>
477
478         Tests for module 'system-quote'.
479         * modules/system-quote-tests: New file.
480         * tests/test-system-quote.sh: New file.
481         * tests/test-system-quote-main.c: New file.
482         * tests/test-system-quote-child.c: New file.
483
484         New module 'system-quote'.
485         * lib/system-quote.h: New file.
486         * lib/system-quote.c: New file.
487         * modules/system-quote: New file.
488
489 2012-05-08  Bruno Haible  <bruno@clisp.org>
490
491         sh-quote: Make C++ safe and allow multiple inclusion.
492         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
493         declarations in extern "C".
494
495 2012-05-08  Bruno Haible  <bruno@clisp.org>
496
497         sh-quote tests: Make tests stricter.
498         * tests/test-sh-quote.c (check_one): Check the return value of
499         shell_quote_copy.
500         (main): Check a string with a CR character. Check a string that
501         contains UCHAR_MAX.
502
503 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
504
505         warnings.m4: provide a means to specify the program to compile.
506         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
507         (gl_WARN_ADD): here.
508         Use gl_AS_VAR_APPEND.
509         Support an argument to specify the program to compile.
510         (gl_WARN_ADD): Accept an argument to specify the program to compile.
511         AC_SUBST the WARN_CFLAGS when they are used.
512         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
513         leave this to gl_WARN_ADD.
514
515 2012-05-08  Eric Blake  <eblake@redhat.com>
516
517         doc: recommendations on gettext version
518         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
519         choice between versions.
520         * DEPENDENCIES (gettext): Cover both approaches.
521
522 2012-05-08  Jim Meyering  <meyering@redhat.com>
523
524         init.sh: explain why EXEEXT support uses aliases rather than functions
525         * tests/init.sh: Add a comment.
526
527         init.sh: don't let bash aliases interfere with tests
528         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
529         is bash.  This avoids problems for those who alias standard commands to
530         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
531         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
532
533 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
534
535         stdint: be more consistent with glibc, SunOS libc
536         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
537         (gl_int_fast16_t, gl_uint_fast16_t)
538         (gl_int_fast32_t, gl_uint_fast32_t)
539         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
540         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
541         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
542         Be consistent with glibc by default, and with SunOS 5.10 and later
543         if __sun is defined.  This lessens the likelihood of clashes if
544         code compiled for older hosts is combined with code compiled for
545         newer ones.  Problem reported by Niels Möller in
546         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
547
548 2012-05-07  Eric Blake  <eblake@redhat.com>
549
550         isatty: relax license to LGPLv2+
551         * modules/isatty (License): Relax license.
552
553 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
554
555         stat-size: comment fix
556         * lib/stat-size.h: Remove obsolete comment about indenting.
557
558 2012-05-06  Bruno Haible  <bruno@clisp.org>
559
560         Tests for module 'sh-quote'.
561         * modules/sh-quote-tests: New file.
562         * tests/test-sh-quote.c: New file.
563
564 2012-05-06  Bruno Haible  <bruno@clisp.org>
565
566         sh-quote: Improve shell_quote_argv's signature.
567         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
568         * lib/sh-quote.c (shell_quote_argv): Likewise.
569
570 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
571
572         stdint: document issues with int_fast8_t etc.
573         * doc/posix-headers/stdint.texi (stdint.h): Say that other
574         stdint.h substitutes may define these types differently.  See
575         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
576
577 2012-05-05  Bruno Haible  <bruno@clisp.org>
578
579         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
580         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
581         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
582         or 'guessing no (mishandles large arguments)'.
583
584 2012-05-05  Bruno Haible  <bruno@clisp.org>
585
586         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
587         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
588         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
589         set gl_cv_func_link_follows_symlink to "guessing no".
590
591 2012-05-05  Bruno Haible  <bruno@clisp.org>
592
593         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
594         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
595         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
596         "guessing no".
597         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
598
599 2012-05-05  Bruno Haible  <bruno@clisp.org>
600
601         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
602         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
603         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
604         set gl_cv_struct_dirent_d_ino to "guessing yes".
605
606 2012-05-05  Bruno Haible  <bruno@clisp.org>
607
608         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
609         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
610         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
611         "guessing yes".
612
613 2012-05-05  Bruno Haible  <bruno@clisp.org>
614
615         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
616         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
617         compiling to a glibc system, set gl_cv_func_signbit and
618         gl_cv_func_signbit_gcc to "guessing yes".
619
620 2012-05-05  Bruno Haible  <bruno@clisp.org>
621
622         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
623         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
624         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
625         to "guessing yes".
626         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
627         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
628
629 2012-05-05  Bruno Haible  <bruno@clisp.org>
630
631         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
632         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
633         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
634         gl_cv_func_realpath_works to "guessing yes".
635
636 2012-05-05  Bruno Haible  <bruno@clisp.org>
637
638         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
639         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
640         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
641
642 2012-05-04  Bruno Haible  <bruno@clisp.org>
643
644         Tweak last commit.
645         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
646         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
647
648 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
649
650         unistd_h: make it easier to avoid sys_types_h
651         This is useful for Emacs, which has its own method of porting to
652         Windows, and which therefore does not need the sys_types_h module.
653         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
654         code moved here from gl_SYS_TYPES_H.
655         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
656         using the code directly.
657         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
658         gl_SYS_TYPES_H.
659         * modules/sys_types (Files):
660         * modules/unistd (Files): Add m4/off_t.m4.
661
662 2012-05-03  Bruno Haible  <bruno@clisp.org>
663
664         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
665         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
666         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
667         "guessing yes" or "guessing no".
668         (gl_FUNC_LSTAT): Update.
669         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
670         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
671         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
672
673 2012-05-03  Bruno Haible  <bruno@clisp.org>
674
675         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
676         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
677         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
678         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
679         cross-compiling, choose the first alternative on glibc systems.
680         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
681
682 2012-05-03  Bruno Haible  <bruno@clisp.org>
683
684         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
685         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
686         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
687
688 2012-05-03  Bruno Haible  <bruno@clisp.org>
689
690         chown: Avoid "guessing no" when cross-compiling to glibc systems.
691         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
692
693 2012-05-03  Bruno Haible  <bruno@clisp.org>
694
695         Avoid "guessing no" guesses when cross-compiling to glibc systems.
696         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
697         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
698         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
699         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
700         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
701         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
702         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
703         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
704         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
705         compiling to glibc systems, set gl_cv_func_chown_slash_works,
706         gl_cv_func_chown_ctime_works to "guessing yes".
707         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
708         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
709         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
710         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
711         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
712         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
713         compiling to glibc systems, set gl_cv_func_open_directory_works to
714         "guessing yes".
715         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
716         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
717         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
718         "guessing yes".
719         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
720         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
721         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
722         compiling to glibc systems, set gl_cv_func_floorf_ieee to
723         "guessing yes".
724         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
725         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
726         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
727         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
728         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
729         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
730         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
731         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
732         "guessing yes".
733         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
734         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
735         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
736         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
737         "guessing yes".
738         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
739         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
740         "guessing yes".
741         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
742         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
743         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
744         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
745         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
746         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
747         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
748         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
749         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
750         compiling to glibc systems, set gl_cv_func_log10f_ieee to
751         "guessing yes".
752         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
753         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
754         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
755         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
756         "guessing yes".
757         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
758         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
759         "guessing yes".
760         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
761         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
762         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
763         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
764         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
765         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
766         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
767         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
768         compiling to glibc systems, set gl_cv_func_mkfifo_works to
769         "guessing yes".
770         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
771         compiling to glibc systems, set gl_cv_func_mknod_works to
772         "guessing yes".
773         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
774         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
775         "guessing yes".
776         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
777         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
778         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
779         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
780         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
781         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
782         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
783         compiling to glibc systems, set gl_cv_func_svid_putenv to
784         "guessing yes".
785         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
786         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
787         "guessing yes".
788         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
789         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
790         "guessing yes".
791         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
792         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
793         to "guessing yes".
794         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
795         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
796         to "guessing yes".
797         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
798         compiling to glibc systems, set gl_cv_func_rmdir_works to
799         "guessing yes".
800         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
801         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
802         gl_cv_func_unlink_parent_fails to "guessing yes".
803         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
804         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
805         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
806         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
807         gl_cv_func_rename_dest_works to "guessing yes".
808         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
809         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
810         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
811         compiling to glibc systems, set gl_cv_func_roundf_ieee to
812         "guessing yes".
813         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
814         compiling to glibc systems, set gl_cv_func_roundl_ieee to
815         "guessing yes".
816         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
817         compiling to glibc systems, set gl_cv_func_setenv_works to
818         "guessing yes".
819         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
820         compiling to glibc systems, set gl_cv_func_unsetenv_works to
821         "guessing yes".
822         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
823         compiling to glibc systems, set gl_cv_func_sleep_works to
824         "guessing yes".
825         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
826         compiling to glibc systems, set gl_cv_func_stat_file_slash to
827         "guessing yes".
828         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
829         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
830         "guessing yes".
831         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
832         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
833         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
834         compiling to glibc systems, set gl_cv_func_truncf_ieee to
835         "guessing yes".
836         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
837         compiling to glibc systems, set gl_cv_func_truncl_ieee to
838         "guessing yes".
839         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
840         compiling to glibc systems, set gl_cv_func_usleep_works to
841         "guessing yes".
842         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
843         compiling to glibc systems, set gl_cv_func_futimesat_works to
844         "guessing yes".
845
846 2012-05-03  Bruno Haible  <bruno@clisp.org>
847
848         Say "guessing yes" or "guessing no" when cross-compiling.
849         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
850         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
851         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
852         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
853         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
854         am_cv_func_working_getline to "guessing yes" or "guessing no".
855         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
856         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
857         (gl_FUNC_MEMMEM): When cross-compiling, set
858         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
859         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
860         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
861         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
862         set gl_cv_func_strcasestr_works_always to "guessing yes" or
863         "guessing no".
864         (gl_FUNC_STRCASESTR): When cross-compiling, set
865         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
866         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
867         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
868         (gl_FUNC_STRSTR): When cross-compiling, set
869         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
870         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
871         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
872         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
873         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
874
875 2012-05-01  Bruno Haible  <bruno@clisp.org>
876
877         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
878         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
879         * build-aux/reloc-ldflags: Likewise.
880         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
881
882 2012-05-01  Bruno Haible  <bruno@clisp.org>
883
884         gnulib-tool: Remove transitional code.
885         * gnulib-tool: Don't warn about --import with 0 arguments any more.
886         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
887
888 2012-05-01  Bruno Haible  <bruno@clisp.org>
889
890         getcwd: Fix misindentation.
891         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
892
893 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
894
895         exclude: process exclude and include directives in order
896         This restores the pre-2009 behavior, and is part of a fix of a
897         grep bug reported by Quentin Arce in
898         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
899         * lib/exclude.c (struct exclude): Remove 'tail' member.
900         (new_exclude_segment): Prepend the new segment instead of appending.
901         Return void, since that's now more convenient.
902         (file_pattern_matches): Renamed from excluded_file_pattern_p.
903         (file_name_matches): Renamed from excluded_file_name_p.
904         (file_pattern_matches, file_name_matches):
905         Return true if the pattern matches, not if it excludes.
906         All callers changed.
907         (excluded_file_name): Process the list in reverse order;
908         since the list is now reversed this restores the pre-2009 behavior.
909         (add_exclude): Adjust to new reversed-order list.  Use local var
910         rather than macro, for clarity.
911         * tests/test-exclude7.sh: Adjust to corrected behavior.
912
913         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
914         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
915         it's not possible here.  Handle the case of \ at end of pattern
916         without dumping core.
917         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
918
919         _Noreturn: future-proof non-GNU and non-MSVC compilers
920         * build-aux/snippet/_Noreturn.h (_Noreturn):
921         * m4/gnulib-common.m4 (gl_COMMON_BODY):
922         Do not define _Noreturn if __STDC_VERSION__ indicates this is
923         C11 or later.  This is more likely to work with random future C
924         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
925         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
926
927         exclude: handle wildcards with FNM_EXTMATCH
928         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
929         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
930         comment that "has wildcards" really means "has or may have
931         wildcards".  Simplify by avoiding the need to call strcspn.
932
933 2012-04-29  Bruno Haible  <bruno@clisp.org>
934
935         gnulib-tool: Fix list of authors.
936         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
937
938 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
939
940         bootstrap: support Automake-NG in $buildreq
941         * bootstrap (check_versions): Handle automake and aclocal from
942         Automake-NG specially.  They can be specified as respectively
943         the "automake-ng" and "aclocal-ng" requirements.
944
945 2012-04-25  Eric Blake  <eblake@redhat.com>
946
947         bootstrap: only force latest Makefile.in.in for gettext module
948         * build-aux/bootstrap (with_gettext): Only install latest
949         Makefile.in.in for projects requesting bleeding edge gettext.
950
951 2012-04-22  Bruno Haible  <bruno@clisp.org>
952
953         doc: Mention reason for replacement on glibc/Linux systems.
954         * doc/posix-functions/dprintf.texi: Mention the problem with special
955         'long double' values.
956         * doc/posix-functions/fprintf.texi: Likewise.
957         * doc/posix-functions/printf.texi: Likewise.
958         * doc/posix-functions/snprintf.texi: Likewise.
959         * doc/posix-functions/sprintf.texi: Likewise.
960         * doc/posix-functions/vdprintf.texi: Likewise.
961         * doc/posix-functions/vfprintf.texi: Likewise.
962         * doc/posix-functions/vprintf.texi: Likewise.
963         * doc/posix-functions/vsnprintf.texi: Likewise.
964         * doc/posix-functions/vsprintf.texi: Likewise.
965         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
966         platforms with F_DUPFD_CLOEXEC problems.
967         * doc/posix-functions/glob.texi: Mention which platforms are affected
968         by the problem with symbolic links.
969         * doc/posix-functions/linkat.texi: Mention the problem with
970         AT_SYMLINK_FOLLOW on Linux.
971
972 2012-04-22  Bruno Haible  <bruno@clisp.org>
973
974         pwrite: Don't replace on all platforms.
975         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
976
977 2012-04-22  Bruno Haible  <bruno@clisp.org>
978
979         rint* tests: Avoid gcc warnings.
980         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
981         * tests/test-rintf.c (INFINITY, NAN): Likewise.
982         * tests/test-rintl.c (INFINITY, NAN): Likewise.
983
984 2012-04-21  Bruno Haible  <bruno@clisp.org>
985
986         users.txt: Update.
987         * users.txt: Add freedink, wdiff. Update URLs for projects that have
988         switched from CVS to git, bzr, or svn.
989
990 2012-04-21  Bruno Haible  <bruno@clisp.org>
991
992         Large File Support for native Windows platforms.
993
994         * m4/largefile.m4 (gl_LARGEFILE): New macro.
995         * modules/largefile (configure.ac): Require gl_LARGEFILE.
996
997         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
998         type.
999         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
1000         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
1001         * doc/posix-headers/sys_types.texi: Mention the effect of the
1002         'largefile' module.
1003
1004         * lib/fcntl.in.h: Add comments about off_t.
1005         * modules/fcntl-h (Depends-on): Add sys_types.
1006
1007         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
1008         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
1009         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
1010         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
1011         * modules/unistd (Depends-on): Add sys_types.
1012         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
1013
1014         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
1015         instead of lseek.
1016         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
1017         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
1018         * modules/lseek (Depends-on): Add sys_types.
1019
1020         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
1021         msvc-nothrow.h.
1022         (SetFileSize): New function.
1023         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
1024         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
1025         if Large File Support is requested.
1026         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
1027         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
1028
1029         * lib/stdio.in.h: Add comments about off_t.
1030         * modules/stdio (Depends-on): Add sys_types.
1031
1032         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
1033         instead of ftello.
1034         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
1035         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
1036         (gl_PREREQ_FTELLO): New macro.
1037         * modules/ftello (Depends-on): Add sys_types.
1038         (configure.ac): Incoke gl_PREREQ_FTELLO.
1039
1040         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
1041         instead of fseeko.
1042         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
1043         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
1044         (gl_PREREQ_FSEEKO): New macro.
1045         * modules/fseeko (Depends-on): Add sys_types.
1046         (configure.ac): Invoke gl_PREREQ_FSEEKO.
1047
1048         * lib/sys_stat.in.h: Add comments about off_t.
1049         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
1050         64-bit integer for st_size in 'struct stat'.
1051         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
1052         Define _GL_WINDOWS_64_BIT_ST_SIZE.
1053         * modules/sys_stat (Depends-on): Add sys_types.
1054         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
1055
1056         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
1057         instead of stat or _stat.
1058
1059         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
1060         'struct _stati64' instead of fstat and 'struct stat'.
1061         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
1062         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
1063
1064         Reported by Ray Satiro <raysatiro@yahoo.com>.
1065
1066 2012-04-19  Eric Blake  <eblake@redhat.com>
1067
1068         bootstrap: accommodate older libtool
1069         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
1070         Reported by Daniel P. Berrange.
1071
1072 2012-04-19  Jim Meyering  <meyering@redhat.com>
1073
1074         announce-gen: avoid failure due to lack of Digest::SHA1
1075         Even with the preferred Digest::SHA available, this script
1076         would fail when the backup module, Digest::SHA1, was not installed.
1077         * build-aux/announce-gen: Quote the conditional use of "use".
1078         Reported by Reuben Thomas in:
1079         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
1080
1081         bootstrap: don't let a user's CDPATH setting affect this script
1082         When CDPATH is set, cd will sometimes generate output.
1083         When "cd" is run in a subshell whose output matters, that
1084         surprising-to-some output can cause malfunction.
1085         Unsetting CDPATH turns off this shell "feature."
1086         * build-aux/bootstrap (CDPATH): Unset.
1087         Reported by Reuben Thomas in:
1088         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
1089         and inspired by his patch here:
1090         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
1091
1092 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
1093         and Jim Meyering  <meyering@redhat.com>
1094
1095         maint.mk: catch "see @xref{}" and similar
1096         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
1097         prohibit "See also @xref{", "Also see @pxref{", and similar.
1098
1099 2012-04-16  Jim Meyering  <meyering@redhat.com>
1100
1101         bootstrap: really use gnulib's po/Makefile.in.in
1102         * build-aux/bootstrap: Correct the source file name in previous change.
1103         Reported by Akim Demaille.
1104
1105         configmake: correct minor inconsistency in Makefile rule
1106         * modules/configmake (Makefile.am): All other rules like this one
1107         run the final "mv -f ..." in the same backslash-continued command
1108         as the one that does everything else.  This one put the mv -f ...
1109         command on a separate, non-backslash-continued line.
1110         Make it like the others.
1111
1112         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
1113         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
1114         the one from gettext.  Reported by Akim Demaille.
1115
1116 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
1117
1118         Fix recursion of install-* into po directories.
1119         Bison's install-pdf bug reported by Hans Aberg at
1120         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
1121         * build-aux/po/Makefile.in.in (install-dvi, install-html)
1122         (install-info, install-pdf, install-ps): New targets.
1123
1124 2012-04-16  Jim Meyering  <meyering@redhat.com>
1125
1126         maint: avoid spurious "make sc_maint" failure
1127         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
1128         exempt all *.class file names, for lib/javaversion.class.
1129
1130 2012-04-15  Bruno Haible  <bruno@clisp.org>
1131
1132         lseek: Make configure test independent of environment.
1133         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
1134         Windows, we know that lseek() on pipes is broken; skip the runtime
1135         test.
1136
1137 2012-04-14  Bruno Haible  <bruno@clisp.org>
1138
1139         stat: Bypass buggy override in mingw64.
1140         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
1141         * lib/stat.c (stat) [mingw64]: Define to _stat.
1142         * doc/posix-functions/stat.texi: Mention mingw64 bug.
1143
1144 2012-04-14  Bruno Haible  <bruno@clisp.org>
1145
1146         pathmax: Fix compilation error on MSVC 9.
1147         * modules/pathmax (Depends-on): Add unistd.
1148
1149 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
1150
1151         README: document pointer comparison assumption
1152         * README (Portability guidelines): Document assumption about
1153         pointer comparisons, in response to a recent bug-gnulib comment by
1154         Jeffrey Kegler.
1155
1156 2012-04-12  Bruno Haible  <bruno@clisp.org>
1157
1158         Tests for module 'getrusage'.
1159         * modules/getrusage-tests: New file.
1160         * tests/test-getrusage.c: New file.
1161
1162         New module 'getrusage'.
1163         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
1164         warn-on-use.h.
1165         (getrusage): New declaration.
1166         * lib/getrusage.c: New file.
1167         * m4/getrusage.m4: New file.
1168         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
1169         is declared.
1170         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
1171         HAVE_GETRUSAGE.
1172         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
1173         snippet/c++defs, snippet/warn-on-use.
1174         (Makefile.am): Update generation of sys/resource.h. Substitute
1175         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
1176         * modules/getrusage: New file.
1177         * doc/posix-functions/getrusage.texi: Mention the new module.
1178
1179 2012-04-12  Bruno Haible  <bruno@clisp.org>
1180
1181         Tests for module 'sys_resource'.
1182         * modules/sys_resource-tests: New file.
1183         * tests/test-sys_resource.c: New file.
1184
1185         New module 'sys_resource'.
1186         * lib/sys_resource.in.h: New file.
1187         * m4/sys_resource_h.m4: New file.
1188         * modules/sys_resource: New file.
1189         * doc/posix-headers/sys_resource.texi: Mention the new module.
1190
1191 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
1192
1193         ioctl: Fix compilation error on mingw.
1194         * lib/ioctl.c: Include <windows.h>.
1195         Also reported by Ray Satiro <raysatiro@yahoo.com>.
1196
1197 2012-04-04  Jim Meyering  <meyering@redhat.com>
1198
1199         regex: correct #pragma guard expression
1200         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
1201         not 4.3.  Correct its cpp guard expression.
1202
1203 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
1204
1205         regex: remove unnecessary type punning
1206         Problem reported by Vladimir Serbinenko in
1207         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
1208         * lib/regex.h (struct re_pattern_buffer): Change the type of
1209         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
1210         Fix comment to match code.
1211         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
1212         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
1213         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
1214         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
1215         (set_regs):
1216         Omit no-longer-necessary casts.
1217
1218 2012-04-03  Bruno Haible  <bruno@clisp.org>
1219
1220         Tests for module 'ilogbl'.
1221         * modules/ilogbl-tests: New file.
1222         * tests/test-ilogbl.c: New file.
1223
1224         New module 'ilogbl'.
1225         * lib/math.in.h (ilogbl): New declaration.
1226         * lib/ilogbl.c: New file.
1227         * m4/ilogbl.m4: New file.
1228         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
1229         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
1230         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
1231         Split sed invocation, to avoid the limit of 100 substitutions of
1232         HP-UX 'sed'.
1233         * modules/ilogbl: New file.
1234         * tests/test-math-c++.cc: Check the declaration of ilogbl.
1235         * doc/posix-functions/ilogbl.texi: Mention the new module.
1236
1237 2012-04-03  Bruno Haible  <bruno@clisp.org>
1238
1239         Tests for module 'ilogbf'.
1240         * modules/ilogbf-tests: New file.
1241         * tests/test-ilogbf.c: New file.
1242
1243         New module 'ilogbf'.
1244         * lib/math.in.h (ilogbf): New declaration.
1245         * lib/ilogbf.c: New file.
1246         * m4/ilogbf.m4: New file.
1247         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
1248         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
1249         REPLACE_ILOGBF.
1250         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
1251         REPLACE_ILOGBF.
1252         * modules/ilogbf: New file.
1253         * tests/test-math-c++.cc: Check the declaration of ilogbf.
1254         * doc/posix-functions/ilogbf.texi: Mention the new module.
1255
1256 2012-04-03  Bruno Haible  <bruno@clisp.org>
1257
1258         Tests for module 'ilogb'.
1259         * modules/ilogb-tests: New file.
1260         * tests/test-ilogb.c: New file.
1261         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
1262         tests/test-logb-ieee.h.
1263
1264         New module 'ilogb'.
1265         * lib/math.in.h (ilogb): New declaration.
1266         * lib/ilogb.c: New file.
1267         * m4/ilogb.m4: New file.
1268         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
1269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
1270         REPLACE_ILOGB.
1271         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
1272         REPLACE_ILOGB.
1273         * modules/ilogb: New file.
1274         * tests/test-math-c++.cc: Check the declaration of ilogb.
1275         * doc/posix-functions/ilogb.texi: Mention the new module.
1276
1277 2012-04-03  Bruno Haible  <bruno@clisp.org>
1278
1279         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
1280         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
1281         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
1282         (main): Check their values.
1283         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
1284         problem.
1285
1286 2012-04-03  Bruno Haible  <bruno@clisp.org>
1287
1288         Tests for module 'logbl-ieee'.
1289         * modules/logbl-ieee-tests: New file.
1290         * tests/test-logbl-ieee.c: New file.
1291
1292         New module 'logbl-ieee'.
1293         * modules/logbl-ieee: New file.
1294
1295         Tests for module 'logb-ieee'.
1296         * modules/logb-ieee-tests: New file.
1297         * tests/test-logb-ieee.c: New file.
1298
1299         New module 'logb-ieee'.
1300         * modules/logb-ieee: New file.
1301
1302         Tests for module 'logbf-ieee'.
1303         * modules/logbf-ieee-tests: New file.
1304         * tests/test-logbf-ieee.c: New file.
1305         * tests/test-logb-ieee.h: New file.
1306
1307         New module 'logbf-ieee'.
1308         * modules/logbf-ieee: New file.
1309
1310 2012-04-03  Bruno Haible  <bruno@clisp.org>
1311
1312         Tests for module 'logbl'.
1313         * modules/logbl-tests: New file.
1314         * tests/test-logbl.c: New file.
1315
1316         New module 'logbl'.
1317         * lib/math.in.h (logbl): New declaration.
1318         * lib/logbl.c: New file.
1319         * m4/logbl.m4: New file.
1320         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
1321         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
1322         REPLACE_LOGBL.
1323         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
1324         REPLACE_LOGBL.
1325         * modules/logbl: New file.
1326         * tests/test-math-c++.cc: Check the declaration of logbl.
1327         * doc/posix-functions/logbl.texi: Mention the new module.
1328
1329 2012-04-02  Bruno Haible  <bruno@clisp.org>
1330
1331         Tests for module 'logbf'.
1332         * modules/logbf-tests: New file.
1333         * tests/test-logbf.c: New file.
1334
1335         New module 'logbf'.
1336         * lib/math.in.h (logbf): New declaration.
1337         * lib/logbf.c: New file.
1338         * m4/logbf.m4: New file.
1339         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
1340         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
1341         REPLACE_LOGBF.
1342         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
1343         REPLACE_LOGBF.
1344         * modules/logbf: New file.
1345         * tests/test-math-c++.cc: Check the declaration of logbf.
1346         * doc/posix-functions/logbf.texi: Mention the new module.
1347
1348 2012-04-02  Bruno Haible  <bruno@clisp.org>
1349
1350         logb tests: More tests.
1351         * tests/test-logb.h: New file, based on tests/test-logb.c and
1352         tests/test-frexp.h.
1353         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
1354         (main): Just invoke test_function.
1355         * modules/logb-tests (Files): Add tests/test-logb.h,
1356         tests/minus-zero.h, tests/randomd.c.
1357         (Makefile.am): Add randomd.c to test_logb_SOURCES.
1358
1359         logb: Provide replacement and workarounds.
1360         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
1361         is 1.
1362         * lib/logb.c: New file.
1363         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
1364         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
1365         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
1366         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
1367         * modules/logb (Files): Add lib/logb.c.
1368         (Depends-on): Add isfinite, frexp, isnand.
1369         (configure.ac): Compile the replacement code logb.c if needed.
1370         * tests/test-math-c++.cc: Check the declaration of logb.
1371         * doc/posix-functions/logb.texi: Mention the replacement and the bug
1372         with subnormal numbers.
1373
1374 2012-04-02  Bruno Haible  <bruno@clisp.org>
1375
1376         log10* tests: Speed up.
1377         * tests/test-log10.h (test_function): Reduce amount of random numbers
1378         to test.
1379
1380 2012-04-01  Bruno Haible  <bruno@clisp.org>
1381
1382         logf-ieee: Fix test whether logf works.
1383         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
1384
1385 2012-04-01  Bruno Haible  <bruno@clisp.org>
1386
1387         log10l: Work around log10l-ieee test failure on IRIX 6.5.
1388         * lib/log10l.c: Include <float.h>
1389         (log10l): On IRIX, normalize the +Infinity value.
1390         * modules/log10l (Depends-on): Add 'float'.
1391         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
1392         +Infinity.
1393
1394         log10f-ieee: Work around test failure on NetBSD 5.1.
1395         * m4/log10f-ieee.m4: New file.
1396         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
1397         test whether log10f works with a negative argument. Replace it if not.
1398         * lib/log10f.c (log10f): For negative arguments, return NaN.
1399         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
1400         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
1401         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
1402
1403         log10f-ieee: Work around test failure on Solaris 9.
1404         * modules/log10f-ieee (Depends-on): Add log10-ieee.
1405         (configure.ac): Require gl_FUNC_LOG10F.
1406
1407         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1408         * m4/log10-ieee.m4: New file.
1409         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
1410         whether log10 works with a negative argument. Replace it if not.
1411         * lib/log10.c (log10): For negative arguments, return NaN.
1412         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
1413         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
1414         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
1415
1416         Tests for module 'log10l-ieee'.
1417         * modules/log10l-ieee-tests: New file.
1418         * tests/test-log10l-ieee.c: New file.
1419
1420         New module 'log10l-ieee'.
1421         * modules/log10l-ieee: New file.
1422
1423         Tests for module 'log10-ieee'.
1424         * modules/log10-ieee-tests: New file.
1425         * tests/test-log10-ieee.c: New file.
1426
1427         New module 'log10-ieee'.
1428         * modules/log10-ieee: New file.
1429
1430         Tests for module 'log10f-ieee'.
1431         * modules/log10f-ieee-tests: New file.
1432         * tests/test-log10f-ieee.c: New file.
1433         * tests/test-log10-ieee.h: New file.
1434
1435         New module 'log10f-ieee'.
1436         * modules/log10f-ieee: New file.
1437
1438 2012-04-01  Bruno Haible  <bruno@clisp.org>
1439
1440         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
1441         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
1442         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
1443         workaround.
1444         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
1445         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
1446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
1447         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
1448         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
1449         (Depends-on): Update conditions.
1450         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
1451         IRIX 6.5, OSF/1 5.1 problems.
1452
1453 2012-04-01  Bruno Haible  <bruno@clisp.org>
1454
1455         log10f: Work around OSF/1 5.1 bug.
1456         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
1457         * lib/log10f.c (log10f): If logf exists, use it and provide just the
1458         workaround.
1459         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
1460         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
1461         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
1462         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
1463         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
1464         (Depends-on): Update conditions.
1465         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
1466
1467 2012-04-01  Bruno Haible  <bruno@clisp.org>
1468
1469         log10: Work around OSF/1 5.1 bug.
1470         * lib/math.in.h (log10): New declaration.
1471         * lib/log10.c: New file.
1472         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
1473         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
1474         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
1475         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
1476         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
1477         * modules/log10 (Files): Add lib/log10.c.
1478         (Depends-on): Add math.
1479         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
1480         * tests/test-math-c++.cc: Check the declaration of log10.
1481         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
1482
1483 2012-03-31  Bruno Haible  <bruno@clisp.org>
1484
1485         log10l tests: More tests.
1486         * modules/log10l-tests (Files): Add tests/test-log10l.h,
1487         tests/minus-zero.h, tests/randoml.c.
1488         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
1489         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
1490         (main): Invoke test_function.
1491
1492         log10f tests: More tests.
1493         * modules/log10f-tests (Files): Add tests/test-log10.h,
1494         tests/minus-zero.h, tests/randomf.c.
1495         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
1496         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
1497         (main): Invoke test_function.
1498
1499         log10 tests: More tests.
1500         * tests/test-log10.h: New file.
1501         * modules/log10-tests (Files): Add tests/test-log10.h,
1502         tests/minus-zero.h, tests/randomd.c.
1503         (Makefile.am): Add randomd.c to test_log10_SOURCES.
1504         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
1505         (main): Invoke test_function.
1506
1507 2012-03-31  Simon Josefsson  <simon@josefsson.org>
1508
1509         fflush: Fix syntax error.
1510         * lib/fflush.c: Include unused-parameter.h, needed for
1511         _GL_UNUSED_PARAMETER.
1512         * modules/fflush (Depends-on): Add snippet/unused-parameter.
1513
1514 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1515
1516         regex: pacify GCC when compiling GRUB
1517         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
1518         a diagnostic.  Reported by Vladimir Serbinenko in
1519         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
1520
1521 2012-03-29  Eric Blake  <eblake@redhat.com>
1522
1523         stdio: don't assume gets any more
1524         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
1525         support.
1526         * modules/stdio (Makefile.am): Likewise.
1527         * lib/stdio-read.c (gets): Likewise.
1528         * tests/test-stdio-c++.cc: Likewise.
1529         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
1530         * lib/stdio.in.h (gets): Make warning occur in more places.
1531         * doc/posix-functions/gets.texi (gets): Update documentation.
1532         Reported by Christer Solskogen.
1533
1534         maint.mk: fix syntax checks without exclusions
1535         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
1536         Reported by Daniel P. Berrange.
1537
1538         strerror_r: avoid compiler warning
1539         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
1540         level.
1541
1542         fflush: avoid compiler warning
1543         * lib/fflush.c (update_fpos_cache): Mark variables that are
1544         potentially unused.
1545
1546 2012-03-25  Bruno Haible  <bruno@clisp.org>
1547
1548         Tests for module 'localeconv'.
1549         * modules/localeconv-tests: New file.
1550         * tests/test-localeconv.c: New file.
1551
1552         New module 'localeconv'.
1553         * lib/locale.in.h (localeconv): New declaration.
1554         * lib/localeconv.c: New file.
1555         * m4/localeconv.m4: New file.
1556         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1557         REPLACE_LOCALECONV.
1558         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1559         REPLACE_LOCALECONV.
1560         * modules/localeconv: New file.
1561         * modules/nl_langinfo (Depends-on): Add localeconv.
1562         * modules/human (Depends-on): Likewise.
1563         * doc/posix-functions/localeconv.texi: Mention the new module.
1564
1565 2012-03-25  Bruno Haible  <bruno@clisp.org>
1566
1567         locale: Provide a complete 'struct lconv'.
1568         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1569         'struct lconv' does not contain int_p_cs_precedes.
1570         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1571         * doc/posix-headers/locale.texi: Update.
1572
1573         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1574         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1575         * doc/posix-headers/locale.texi: Update.
1576
1577         locale: Provide a working 'struct lconv'.
1578         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1579         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1580         'struct lconv' does not even contain decimal_point.
1581         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1582         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1583         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1584         * doc/posix-headers/locale.texi: Mention the problems with
1585         'struct lconv'.
1586         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1587
1588 2012-03-24  Bruno Haible  <bruno@clisp.org>
1589
1590         Enable common subexpression optimization in GCC.
1591         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1592         macros.
1593         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1594         GCC attribute 'const'.
1595         (uc_locale_language): Declare with GCC attribute 'pure'.
1596         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1597         with GCC attribute 'const'.
1598         * lib/unictype.in.h (uc_is_general_category_withtable,
1599         uc_combining_class, uc_combining_class_name,
1600         uc_combining_class_long_name, uc_bidi_class_name,
1601         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1602         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1603         uc_decimal_value, uc_digit_value, uc_numeric_value,
1604         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1605         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1606         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1607         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1608         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1609         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1610         Declare with GCC attribute 'const'.
1611         (uc_general_category_name, uc_general_category_long_name,
1612         uc_general_category_byname, uc_general_category,
1613         uc_is_general_category, uc_combining_class_byname,
1614         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1615         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1616         Declare with GCC attribute 'pure'.
1617         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1618         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1619         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1620         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1621         with GCC attribute 'pure'.
1622         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1623         'const'.
1624         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1625         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1626         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1627         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1628         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1629         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1630         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1631         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1632         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1633         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1634         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1635         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1636         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1637         GCC attribute 'pure'.
1638         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1639         'const'.
1640         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1641         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1642         u32_strwidth): Declare with GCC attribute 'pure'.
1643
1644         Enable common subexpression optimization in GCC.
1645         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1646         (alphasort): Declare with GCC attribute 'pure'.
1647         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1648         (atoll): Declare with GCC attribute 'pure'.
1649         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1650         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1651         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1652         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1653         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1654         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1655         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1656
1657 2012-03-24  Bruno Haible  <bruno@clisp.org>
1658
1659         gnulib-tool: Avoid unintended error output from 'cmp'.
1660         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1661         "cmp -s", not "cmp > /dev/null".
1662
1663 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1664
1665         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1666
1667         It's not just Automake versions < 1.9b that creates an empty
1668         pkgdatadir at installation time if pkgdata_DATA is specified
1669         to empty; modern automake versions do this as well, at least
1670         until automake 1.11.4 (not yet released at the moment of writing,
1671         but soon to appear).  That behaviour was generally considered a
1672         feature rather than a bug, at least until this discussion:
1673         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1674
1675         See also automake bugs #10997 and #11030.
1676
1677         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1678         reference to relevant automake bug numbers.
1679         (func_emit_tests_Makefile_am): Likewise.
1680
1681 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1682
1683         announce-gen: use Digest::SHA when possible
1684         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1685         back to Digest::SHA1 if necessary.
1686
1687 2012-03-20  Jim Meyering  <meyering@redhat.com>
1688
1689         tests: avoid gcc warnings about argv vs. const initializers
1690         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1691         warnings about discarding 'const' qualifier from pointer target type.
1692         * tests/test-posix_spawn2.c (main): Likewise.
1693
1694 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1695
1696         README-release: simplify slightly
1697         * top/README-release: Run "git checkout master" only once.
1698
1699 2012-03-15  Mark Wielaard  <mark@klomp.org>
1700
1701         git-merge-changelog: add specific example on how to use with hg.
1702         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1703
1704 2012-03-18  Mark Wielaard  <mark@klomp.org>
1705
1706         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1707
1708 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1709
1710         git-version-gen: don't let "prefix" envvar cause trouble
1711         * build-aux/git-version-gen (prefix): Initialize properly,
1712         so as not to use a value specified via the environment.
1713         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1714
1715 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1716
1717         regex: diagnose too-large repeat counts in EREs
1718         Previously, the code did not diagnose the too-large repeat count
1719         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1720         as if it were 'b\{1000000000}', which is unexpected.
1721         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1722         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1723         is a reasonable one for this problem.  Another option would be to
1724         create a new REG_OVERFLOW error for repeat counts that are too large.
1725         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1726         count is too large, so that the caller can distinguish the two cases.
1727         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1728         "Too large" return code, and that repeat counts are one example of this.
1729
1730 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1731
1732         doc: some glibc x32 integer width issues
1733         * doc/posix-headers/sys_types.texi (sys/types.h):
1734         * doc/posix-headers/time.texi (time.h):
1735         Mention that glibc x32 does not conform to POSIX in a couple of
1736         areas related to integer widths.
1737
1738 2012-03-15  Bruno Haible  <bruno@clisp.org>
1739
1740         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1741         * lib/fma.c (VOLATILE): New macro.
1742         (FUNC): Use it to work around a GCC compiler bug.
1743
1744 2012-03-13  Bruno Haible  <bruno@clisp.org>
1745
1746         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1747         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1748         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1749         REPLACE_HYPOTL to 1.
1750         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1751
1752 2012-03-13  Bruno Haible  <bruno@clisp.org>
1753
1754         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1755         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1756         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1757         REPLACE_REMAINDERL to 1.
1758         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1759         bug.
1760
1761 2012-03-13  Bruno Haible  <bruno@clisp.org>
1762
1763         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1764         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1765         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1766         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1767         too big rounding errors.
1768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1769         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1770         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1771         (Depends-on): Update conditions.
1772         * tests/test-sqrtl.c (my_ldexpl): New function.
1773         (main): Add test of a particular value.
1774         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1775
1776 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1777
1778         doc: Update timer_* platform portability notes.
1779         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1780         that always return ENOSYS.
1781         * doc/posix-functions/timer_delete.texi: Likewise.
1782         * doc/posix-functions/timer_gettime.texi: Likewise.
1783         * doc/posix-functions/timer_settime.texi: Likewise.
1784
1785 2012-03-13  Bruno Haible  <bruno@clisp.org>
1786
1787         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1788         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1789         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1790         REPLACE_CBRTL to 1.
1791         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1792
1793 2012-03-13  Bruno Haible  <bruno@clisp.org>
1794
1795         remainderl: Avoid compilation error on AIX >= 5.2.
1796         * lib/math.in.h (remainderl): Undefine macro from the system header.
1797
1798 2012-03-13  Bruno Haible  <bruno@clisp.org>
1799
1800         Avoid compilation errors with MSVC option -fp:strict.
1801         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1802         * lib/cbrtf.c: Likewise.
1803         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1804
1805 2012-03-12  Bruno Haible  <bruno@clisp.org>
1806
1807         uninorm: Don't crash in out-of-memory conditions.
1808         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1809         gracefully.
1810         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1811         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1812
1813 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1814
1815         quote: fix syntax-check
1816         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1817         also exports quote_quoting_options.
1818
1819 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1820
1821         Collapse list of copyright years to ranges.  See
1822         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1823         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1824         build-aux/csharpexec.sh.in, build-aux/gnupload,
1825         build-aux/install-reloc, build-aux/javacomp.sh.in,
1826         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1827         build-aux/move-if-change, build-aux/reloc-ldflags,
1828         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1829
1830 2012-03-11  Bruno Haible  <bruno@clisp.org>
1831
1832         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1833         * m4/log2f-ieee.m4: New file.
1834         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1835         whether log2f works with a minus zero argument. Replace it if not.
1836         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1837         (Depends-on): Add log2-ieee.
1838         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1839         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1840
1841         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1842         * m4/log2-ieee.m4: New file.
1843         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1844         whether log2 works with a minus zero argument. Replace it if not.
1845         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1846         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1847         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1848
1849         Tests for module 'log2l-ieee'.
1850         * modules/log2l-ieee-tests: New file.
1851         * tests/test-log2l-ieee.c: New file.
1852
1853         New module 'log2l-ieee'.
1854         * modules/log2l-ieee: New file.
1855
1856         Tests for module 'log2-ieee'.
1857         * modules/log2-ieee-tests: New file.
1858         * tests/test-log2-ieee.c: New file.
1859
1860         New module 'log2-ieee'.
1861         * modules/log2-ieee: New file.
1862
1863         Tests for module 'log2f-ieee'.
1864         * modules/log2f-ieee-tests: New file.
1865         * tests/test-log2f-ieee.c: New file.
1866         * tests/test-log2-ieee.h: New file.
1867
1868         New module 'log2f-ieee'.
1869         * modules/log2f-ieee: New file.
1870
1871 2012-03-11  Bruno Haible  <bruno@clisp.org>
1872
1873         Tests for module 'log2l'.
1874         * modules/log2l-tests: New file.
1875         * tests/test-log2l.c: New file.
1876
1877         New module 'log2l'.
1878         * lib/math.in.h (log2l): New declaration.
1879         * lib/log2l.c: New file.
1880         * m4/log2l.m4: New file.
1881         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1882         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1883         REPLACE_LOG2L.
1884         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1885         REPLACE_LOG2L.
1886         * modules/log2l: New file.
1887         * tests/test-math-c++.cc: Check the declaration of log2l.
1888         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1889         and OSF/1 problems.
1890
1891 2012-03-11  Bruno Haible  <bruno@clisp.org>
1892
1893         Tests for module 'log2f'.
1894         * modules/log2f-tests: New file.
1895         * tests/test-log2f.c: New file.
1896
1897         New module 'log2f'.
1898         * lib/math.in.h (log2f): New declaration.
1899         * lib/log2f.c: New file.
1900         * m4/log2f.m4: New file.
1901         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1902         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1903         REPLACE_LOG2F.
1904         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1905         REPLACE_LOG2F.
1906         * modules/log2f: New file.
1907         * tests/test-math-c++.cc: Check the declaration of log2f.
1908         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1909         and OSF/1 and Cygwin problems.
1910
1911 2012-03-11  Bruno Haible  <bruno@clisp.org>
1912
1913         Tests for module 'log2'.
1914         * modules/log2-tests: New file.
1915         * tests/test-log2.c: New file.
1916         * tests/test-log2.h: New file.
1917
1918         New module 'log2'.
1919         * lib/math.in.h (log2): New declaration.
1920         * lib/log2.c: New file.
1921         * m4/log2.m4: New file.
1922         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1924         REPLACE_LOG2.
1925         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1926         REPLACE_LOG2.
1927         * modules/log2: New file.
1928         * tests/test-math-c++.cc: Check the declaration of log2.
1929         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1930         and OSF/1 and Cygwin problems.
1931
1932 2012-03-11  Bruno Haible  <bruno@clisp.org>
1933
1934         exp2* tests: More tests.
1935         * tests/test-exp2.h (test_function): Test all integral arguments that
1936         don't need to overflow or denormalized numbers.
1937         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1938         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1939         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1940
1941 2012-03-10  Bruno Haible  <bruno@clisp.org>
1942
1943         log1pl-ieee: Work around test failure on AIX 7.1.
1944         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1945
1946         log1pl-ieee: Work around test failure on IRIX 6.5.
1947         * m4/log1pl-ieee.m4: New file.
1948         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1949         test whether log1pl works with a minus zero argument. Replace it if
1950         not.
1951         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1952         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1953         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1954         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1955         (Depends-on): Update conditions.
1956         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1957         m4/signbit.m4.
1958         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1959         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1960
1961         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1962         * m4/log1pf-ieee.m4: New file.
1963         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1964         test whether log1pf works with a minus zero argument. Replace it if
1965         not.
1966         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1967         m4/signbit.m4.
1968         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1969         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1970
1971         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1972         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1973         (configure.ac): Require gl_FUNC_LOG1PF.
1974
1975         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1976         * m4/log1p-ieee.m4: New file.
1977         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1978         whether log1p works with a minus zero argument. Replace it if not.
1979         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1981         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1982         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1983         (Depends-on): Update conditions.
1984         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1985         m4/signbit.m4.
1986         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1987         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1988
1989         Tests for module 'log1pl-ieee'.
1990         * modules/log1pl-ieee-tests: New file.
1991         * tests/test-log1pl-ieee.c: New file.
1992
1993         New module 'log1pl-ieee'.
1994         * modules/log1pl-ieee: New file.
1995
1996         Tests for module 'log1p-ieee'.
1997         * modules/log1p-ieee-tests: New file.
1998         * tests/test-log1p-ieee.c: New file.
1999
2000         New module 'log1p-ieee'.
2001         * modules/log1p-ieee: New file.
2002
2003         Tests for module 'log1pf-ieee'.
2004         * modules/log1pf-ieee-tests: New file.
2005         * tests/test-log1pf-ieee.c: New file.
2006         * tests/test-log1p-ieee.h: New file.
2007
2008         New module 'log1pf-ieee'.
2009         * modules/log1pf-ieee: New file.
2010
2011 2012-03-10  Bruno Haible  <bruno@clisp.org>
2012
2013         Tests for module 'log1pl'.
2014         * modules/log1pl-tests: New file.
2015         * tests/test-log1pl.c: New file.
2016
2017         New module 'log1pl'.
2018         * lib/math.in.h (log1pl): New declaration.
2019         * lib/log1pl.c: New file.
2020         * m4/log1pl.m4: New file.
2021         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
2022         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
2023         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
2024         * modules/log1pl: New file.
2025         * tests/test-math-c++.cc: Check the declaration of log1pl.
2026         * doc/posix-functions/log1pl.texi: Mention the new module.
2027
2028 2012-03-10  Bruno Haible  <bruno@clisp.org>
2029
2030         Tests for module 'log1pf'.
2031         * modules/log1pf-tests: New file.
2032         * tests/test-log1pf.c: New file.
2033
2034         New module 'log1pf'.
2035         * lib/math.in.h (log1pf): New declaration.
2036         * lib/log1pf.c: New file.
2037         * m4/log1pf.m4: New file.
2038         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
2039         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
2040         REPLACE_LOG1PF.
2041         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
2042         REPLACE_LOG1PF.
2043         * modules/log1pf: New file.
2044         * tests/test-math-c++.cc: Check the declaration of log1pf.
2045         * doc/posix-functions/log1pf.texi: Mention the new module.
2046
2047 2012-03-10  Bruno Haible  <bruno@clisp.org>
2048
2049         log1p tests: More tests.
2050         * tests/test-log1p.h: New file.
2051         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
2052         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
2053         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
2054         (main): Invoke test_function.
2055
2056         log1p: Provide replacement for Minix and MSVC.
2057         * lib/math.in.h (log1p): New declaration.
2058         * lib/log1p.c: New file.
2059         * m4/log1p.m4: New file.
2060         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
2061         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
2062         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
2063         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
2064         (Depends-on): Add math, isnand, log, round.
2065         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
2066         HAVE_LOG1P is 0.
2067         * tests/test-math-c++.cc: Check the declaration of log1p.
2068         * doc/posix-functions/log1p.texi: Mention the replacement.
2069
2070 2012-03-10  Bruno Haible  <bruno@clisp.org>
2071
2072         math tests: Small simplification.
2073         * tests/test-exp.h (test_function): Use the same err_bound for
2074         'double' on platforms with sizeof (long double) == sizeof (double)
2075         than on platforms with sizeof (long double) > sizeof (double).
2076         * tests/test-exp2.h (test_function): Likewise.
2077         * tests/test-expm1.h (test_function): Likewise.
2078         * tests/test-log.h (test_function): Likewise.
2079
2080 2012-03-10  Bruno Haible  <bruno@clisp.org>
2081
2082         Fix some comments.
2083         * lib/expl.c: Fix an ambiguous comment.
2084         * lib/expm1.c: Likewise.
2085         * lib/expm1l.c: Likewise.
2086         * lib/exp2.c: Likewise.
2087         * lib/exp2l.c: Likewise.
2088
2089 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
2090
2091         regex: allow inclusion of <regex.h> before <limits.h>
2092         Without this patch, portable programs had to include <limits.h> before
2093         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
2094         I ran into this problem with a test version of GNU grep on Solaris 8.
2095         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
2096         This is done conditionally so that this change can be merged
2097         back to glibc.
2098         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
2099         using the included regex.
2100
2101         fts: depend on fdopendir
2102         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
2103         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
2104         problem was introduced when fdopendir was split out.
2105
2106 2012-03-10  Bruno Haible  <bruno@clisp.org>
2107
2108         Remove unused variables.
2109         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
2110         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2111
2112 2012-03-10  Bruno Haible  <bruno@clisp.org>
2113
2114         isnanf-nolibm: Fix last commit.
2115         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
2116
2117         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
2118         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
2119
2120 2012-03-10  Bruno Haible  <bruno@clisp.org>
2121
2122         logf-ieee: Work around test failure on NetBSD 5.1.
2123         * m4/logf-ieee.m4: New file.
2124         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
2125         whether logf works with a negative argument. Replace it if not.
2126         * lib/logf.c (logf): For negative arguments, return NaN.
2127         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
2128         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
2129         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
2130
2131         logf-ieee: Work around test failure on Solaris 9.
2132         * modules/logf-ieee (Depends-on): Add log-ieee.
2133         (configure.ac): Require gl_FUNC_LOGF.
2134
2135         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2136         * m4/log-ieee.m4: New file.
2137         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
2138         log works with a negative argument. Replace it if not.
2139         * lib/log.c (log): For negative arguments, return NaN.
2140         * modules/log-ieee (Files): Add m4/log-ieee.m4.
2141         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
2142         * doc/posix-functions/log.texi: Mention the log-ieee module.
2143
2144         Tests for module 'logl-ieee'.
2145         * modules/logl-ieee-tests: New file.
2146         * tests/test-logl-ieee.c: New file.
2147
2148         New module 'logl-ieee'.
2149         * modules/logl-ieee: New file.
2150
2151         Tests for module 'log-ieee'.
2152         * modules/log-ieee-tests: New file.
2153         * tests/test-log-ieee.c: New file.
2154
2155         New module 'log-ieee'.
2156         * modules/log-ieee: New file.
2157
2158         Tests for module 'logf-ieee'.
2159         * modules/logf-ieee-tests: New file.
2160         * tests/test-logf-ieee.c: New file.
2161         * tests/test-log-ieee.h: New file.
2162
2163         New module 'logf-ieee'.
2164         * modules/logf-ieee: New file.
2165
2166 2012-03-10  Bruno Haible  <bruno@clisp.org>
2167
2168         log: Fix bug introduced on 2012-03-09.
2169         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
2170
2171 2012-03-10  Pádraig Brady  <P@draigBrady.com>
2172
2173         timer-time: link explicitly with pthreads on glibc
2174         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2175         to support static linking, when newer glibc is
2176         detected, as that contains pthread emulation of
2177         POSIX timer functions where required.
2178         * modules/timer-time: Depend on threadlib to
2179         pull in the appropriate library to link.
2180
2181 2012-03-10  Bruno Haible  <bruno@clisp.org>
2182
2183         log* tests: More tests.
2184         * tests/test-log.h: New file.
2185         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
2186         (main): Invoke test_function.
2187         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
2188         (main): Invoke test_function.
2189         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
2190         (main): Invoke test_function.
2191         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2192         tests/randomd.c.
2193         (Makefile.am): Add randomd.c to test_log_SOURCES.
2194         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2195         tests/randomf.c.
2196         (Makefile.am): Add randomf.c to test_logf_SOURCES.
2197         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2198         tests/randoml.c.
2199         (Depends-on): Add 'float'.
2200         (Makefile.am): Add randoml.c to test_logl_SOURCES.
2201
2202 2012-03-09  Bruno Haible  <bruno@clisp.org>
2203
2204         logl: Work around OSF/1 5.1 bug.
2205         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
2206         * lib/logl.c (logl): If logl exists, use it and provide just the
2207         workaround.
2208         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
2209         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
2210         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
2211         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
2212         * modules/logl (configure.ac): Consider REPLACE_LOGL.
2213         (Depends-on): Update conditions.
2214         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
2215
2216 2012-03-09  Bruno Haible  <bruno@clisp.org>
2217
2218         logf: Work around OSF/1 5.1 bug.
2219         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
2220         * lib/logf.c (logf): If logf exists, use it and provide just the
2221         workaround.
2222         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
2223         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
2224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
2225         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
2226         * modules/logf (configure.ac): Consider REPLACE_LOGF.
2227         (Depends-on): Update conditions.
2228         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
2229
2230 2012-03-09  Bruno Haible  <bruno@clisp.org>
2231
2232         log: Work around OSF/1 5.1 bug.
2233         * lib/math.in.h (log): New declaration.
2234         * lib/log.c: New file.
2235         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
2236         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
2237         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
2238         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
2239         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
2240         * modules/log (Files): Add lib/log.c.
2241         (Depends-on): Add math.
2242         (configure.ac): If REPLACE_LOG is 1, compile an override.
2243         * tests/test-math-c++.cc: Check the declaration of log.
2244         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
2245
2246 2012-03-09  Jim Meyering  <meyering@redhat.com>
2247
2248         readtokens.c: adjust wording in a comment
2249         * lib/readtokens.c: Insert omitted "that" in a comment.
2250
2251 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2252
2253         modechange: add notations +40, 00440, etc.
2254         * lib/modechange.c (mode_compile): Support new notations
2255         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
2256
2257 2012-03-08  Bruno Haible  <bruno@clisp.org>
2258
2259         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
2260         * m4/exp2l-ieee.m4: New file.
2261         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
2262         test whether exp2l works with a NaN argument and with a negative
2263         infinity argument. Replace it if not.
2264         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
2265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
2266         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
2267         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
2268         (Depends-on): Update conditions.
2269         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
2270         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
2271         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
2272
2273         Tests for module 'exp2l-ieee'.
2274         * modules/exp2l-ieee-tests: New file.
2275         * tests/test-exp2l-ieee.c: New file.
2276
2277         New module 'exp2l-ieee'.
2278         * modules/exp2l-ieee: New file.
2279
2280         Tests for module 'exp2-ieee'.
2281         * modules/exp2-ieee-tests: New file.
2282         * tests/test-exp2-ieee.c: New file.
2283
2284         New module 'exp2-ieee'.
2285         * modules/exp2-ieee: New file.
2286
2287         Tests for module 'exp2f-ieee'.
2288         * modules/exp2f-ieee-tests: New file.
2289         * tests/test-exp2f-ieee.c: New file.
2290         * tests/test-exp2-ieee.h: New file.
2291
2292         New module 'exp2f-ieee'.
2293         * modules/exp2f-ieee: New file.
2294
2295 2012-03-08  Bruno Haible  <bruno@clisp.org>
2296
2297         Tests for module 'exp2l'.
2298         * modules/exp2l-tests: New file.
2299         * tests/test-exp2l.c: New file.
2300
2301         New module 'exp2l'.
2302         * lib/math.in.h (exp2l): New declaration.
2303         * lib/exp2l.c: New file.
2304         * lib/expl-table.c: New file, extracted from lib/expl.c.
2305         * lib/expl.c (gl_expl_table): New declaration.
2306         (expl): Remove expl_table. Update reference.
2307         * m4/exp2l.m4: New file.
2308         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
2309         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
2310         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
2311         * modules/exp2l: New file.
2312         * modules/expl (Files): Add lib/expl-table.c.
2313         (configure.ac): Compile also expl-table.c.
2314         * tests/test-math-c++.cc: Check the declaration of exp2l.
2315         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
2316         problem.
2317
2318 2012-03-08  Bruno Haible  <bruno@clisp.org>
2319
2320         Tests for module 'exp2f'.
2321         * modules/exp2f-tests: New file.
2322         * tests/test-exp2f.c: New file.
2323
2324         New module 'exp2f'.
2325         * lib/math.in.h (exp2f): New declaration.
2326         * lib/exp2f.c: New file.
2327         * m4/exp2f.m4: New file.
2328         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
2329         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
2330         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
2331         * modules/exp2f: New file.
2332         * tests/test-math-c++.cc: Check the declaration of exp2f.
2333         * doc/posix-functions/exp2f.texi: Mention the new module and the
2334         IRIX problem.
2335
2336 2012-03-08  Bruno Haible  <bruno@clisp.org>
2337
2338         Tests for module 'exp2'.
2339         * modules/exp2-tests: New file.
2340         * tests/test-exp2.c: New file.
2341         * tests/test-exp2.h: New file.
2342
2343         New module 'exp2'.
2344         * lib/math.in.h (exp2): New declaration.
2345         * lib/exp2.c: New file.
2346         * m4/exp2.m4: New file.
2347         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
2348         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
2349         REPLACE_EXP2.
2350         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
2351         REPLACE_EXP2.
2352         * modules/exp2: New file.
2353         * tests/test-math-c++.cc: Check the declaration of exp2.
2354         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
2355         and OpenBSD problems.
2356
2357 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2358
2359         savedir: fix comment typo
2360         * lib/savedir.c (savedirstream): Fix typo in comment.
2361
2362 2012-03-08  Bruno Haible  <bruno@clisp.org>
2363
2364         test-readtokens.c: use const; remove unwarranted cast
2365         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
2366
2367 2012-03-08  Bruno Haible  <bruno@clisp.org>
2368
2369         fmal: Avoid compilation error on AIX.
2370         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
2371         AIX 5.2..7.1.
2372
2373 2012-03-08  Bruno Haible  <bruno@clisp.org>
2374
2375         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
2376         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
2377         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
2378         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
2379         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
2380         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
2381         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
2382
2383 2012-03-08  Bruno Haible  <bruno@clisp.org>
2384
2385         remainderf: Override buggy system function on IRIX 6.5.
2386         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
2387         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
2388         when it exists.
2389         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
2390
2391 2012-03-08  Jim Meyering  <meyering@redhat.com>
2392
2393         test-readtokens.c: avoid const-related compilation warnings
2394         * tests/test-readtokens.c: Avoid const-related compilation warnings.
2395
2396 2012-03-07  Jim Meyering  <meyering@redhat.com>
2397             Bruno Haible  <bruno@clisp.org>
2398
2399         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
2400         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
2401         tests/randomd.c.
2402         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
2403         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
2404         tests/randoml.c.
2405         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
2406
2407 2012-03-07  Bruno Haible  <bruno@clisp.org>
2408
2409         expm1l: Avoid compilation error on AIX.
2410         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
2411         AIX 5.2..7.1.
2412
2413 2012-03-07  Bruno Haible  <bruno@clisp.org>
2414
2415         expm1l: Don't override undeclared system function on IRIX 6.5.
2416         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
2417         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
2418         it exists. Set HAVE_DECL_EXPM1L.
2419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
2420         HAVE_EXPM1L.
2421         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
2422         HAVE_EXPM1L.
2423         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
2424
2425 2012-03-07  Bruno Haible  <bruno@clisp.org>
2426
2427         remainderl: Don't override undeclared system function on IRIX 6.5.
2428         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
2429         HAVE_REMAINDERL.
2430         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
2431         declared when it exists. Set HAVE_DECL_REMAINDERL.
2432         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
2433         not HAVE_REMAINDERL.
2434         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
2435         HAVE_REMAINDERL.
2436         * doc/posix-functions/remainderl.texi: Mention missing declaration
2437         problem.
2438
2439 2012-03-07  Bruno Haible  <bruno@clisp.org>
2440
2441         rintf: Don't override undeclared system function on IRIX 6.5.
2442         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
2443         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
2444         exists. Set HAVE_DECL_RINTF.
2445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
2446         HAVE_RINTF.
2447         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
2448         HAVE_RINTF.
2449         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
2450
2451 2012-03-07  Bruno Haible  <bruno@clisp.org>
2452
2453         roundl: Avoid compilation error on AIX.
2454         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
2455         AIX 5.2..7.1.
2456
2457 2012-03-07  Bruno Haible  <bruno@clisp.org>
2458
2459         roundl: Don't override undeclared system function on IRIX 6.5.
2460         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
2461         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
2462         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2463         * modules/roundl (configure.ac): For replacement code, test
2464         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2465         (Depends-on): Update conditions.
2466         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
2467
2468 2012-03-07  Bruno Haible  <bruno@clisp.org>
2469
2470         roundf: Don't override undeclared system function on IRIX 6.5.
2471         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
2472         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
2473         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2474         * modules/roundf (configure.ac): For replacement code, test
2475         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2476         (Depends-on): Update conditions.
2477         * modules/roundf-ieee (Depends-on): Update conditions.
2478         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
2479
2480 2012-03-07  Bruno Haible  <bruno@clisp.org>
2481
2482         round: Don't override undeclared system function on IRIX 6.5.
2483         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
2484         argument.
2485         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
2486         also when it is not declared. Set HAVE_ROUND. For replacement code,
2487         test HAVE_ROUND, not HAVE_DECL_ROUND.
2488         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
2489         not HAVE_DECL_ROUND.
2490         (Depends-on): Update conditions.
2491         * modules/round-ieee (Depends-on): Update conditions.
2492         * doc/posix-functions/round.texi: Mention the IRIX problem.
2493
2494 2012-03-07  Bruno Haible  <bruno@clisp.org>
2495
2496         copysignf: Don't override undeclared system function on IRIX 6.5.
2497         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
2498         HAVE_COPYSIGNF.
2499         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
2500         declared when it exists. Set HAVE_DECL_COPYSIGNF.
2501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
2502         not HAVE_COPYSIGNF.
2503         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
2504         HAVE_COPYSIGNF.
2505         * doc/posix-functions/copysignf.texi: Mention missing declaration
2506         problem.
2507
2508 2012-03-07  Jim Meyering  <meyering@redhat.com>
2509
2510         readtokens: add tests
2511         * modules/readtokens-tests: New file.
2512         * tests/test-readtokens.c: New file.
2513
2514 2012-03-07  Jim Meyering  <meyering@redhat.com>
2515
2516         quotearg: the module must now include quote.h
2517         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
2518         So must the module.
2519         * modules/quotearg (Files): Add quote.h.
2520
2521 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
2522
2523         readtokens: avoid core dumps with unusual calling patterns
2524         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
2525         * lib/readtokens.c: Include limits.h.
2526         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
2527         (readtoken): Don't cache the delimiters; the cache code was buggy
2528         if !delim && saved_delim, or if the new n_delim differs from the old.
2529         Also, it wasn't thread-safe.
2530
2531 2012-03-07  Bruno Haible  <bruno@clisp.org>
2532
2533         quote: Adhere to common module description layout.
2534         * modules/quote (Makefile.am): Add back empty section.
2535
2536 2012-03-06  Akim Demaille  <demaille@gostai.com>
2537
2538         quote: fuse into quotearg
2539         This patch is made for the benefit of Bison.
2540         quote does not leave the choice of the quoting style to the user.
2541         quoting_style provides poor customizability, yet quoting_options,
2542         which is very rich, is hidden inside quotearg.c.  So in order to
2543         allow quote customization, move its implementation to quotearg.c.
2544         * lib/quote.c: Remove.
2545         * modules/quote: Adjust.
2546         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
2547         warning: provide all the members of literal structs.
2548         (quote_quoting_options): New.
2549         (quote, quote_n): Import implementation from quote.c.
2550         * lib/quote.h: Import the comments from quote.c.
2551         (quote_quoting_options): New.
2552
2553 2012-03-06  Bruno Haible  <bruno@clisp.org>
2554
2555         Tests for module 'expm1l-ieee'.
2556         * modules/expm1l-ieee-tests: New file.
2557         * tests/test-expm1l-ieee.c: New file.
2558
2559         New module 'expm1l-ieee'.
2560         * modules/expm1l-ieee: New file.
2561
2562         Tests for module 'expm1f-ieee'.
2563         * modules/expm1f-ieee-tests: New file.
2564         * tests/test-expm1f-ieee.c: New file.
2565
2566         New module 'expm1f-ieee'.
2567         * modules/expm1f-ieee: New file.
2568
2569         Tests for module 'expm1-ieee'.
2570         * modules/expm1-ieee-tests: New file.
2571         * tests/test-expm1-ieee.c: New file.
2572         * tests/test-expm1-ieee.h: New file.
2573
2574         New module 'expm1-ieee'.
2575         * modules/expm1-ieee: New file.
2576         * m4/expm1-ieee.m4: New file.
2577         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2578         whether expm1 works with a minus zero argument. Replace it if not.
2579         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2581         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2582         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2583         (Depends-on): Update conditions.
2584         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2585         AIX problem.
2586
2587 2012-03-06  Bruno Haible  <bruno@clisp.org>
2588
2589         Work around expm1f bug on IRIX 6.5.
2590         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2591         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2592         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2593         not work.
2594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2595         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2596         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2597         (Depends-on): Update conditions.
2598         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2599
2600 2012-03-06  Bruno Haible  <bruno@clisp.org>
2601
2602         Tests for module 'expm1l'.
2603         * modules/expm1l-tests: New file.
2604         * tests/test-expm1l.c: New file.
2605
2606         New module 'expm1l'.
2607         * lib/math.in.h (expm1l): New declaration.
2608         * lib/expm1l.c: New file.
2609         * m4/expm1l.m4: New file.
2610         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2611         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2612         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2613         * modules/expm1l: New file.
2614         * tests/test-math-c++.cc: Check the declaration of expm1l.
2615         * doc/posix-functions/expm1l.texi: Mention the new module.
2616
2617 2012-03-06  Bruno Haible  <bruno@clisp.org>
2618
2619         Tests for module 'expm1f'.
2620         * modules/expm1f-tests: New file.
2621         * tests/test-expm1f.c: New file.
2622
2623         New module 'expm1f'.
2624         * lib/math.in.h (expm1f): New declaration.
2625         * lib/expm1f.c: New file.
2626         * m4/expm1f.m4: New file.
2627         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2628         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2629         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2630         * modules/expm1f: New file.
2631         * tests/test-math-c++.cc: Check the declaration of expm1f.
2632         * doc/posix-functions/expm1f.texi: Mention the new module.
2633
2634 2012-03-06  Bruno Haible  <bruno@clisp.org>
2635
2636         Tests for module 'expm1'.
2637         * modules/expm1-tests: New file.
2638         * tests/test-expm1.c: New file.
2639         * tests/test-expm1.h: New file.
2640
2641         New module 'expm1'.
2642         * lib/math.in.h (expm1): New declaration.
2643         * lib/expm1.c: New file.
2644         * m4/expm1.m4: New file.
2645         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2646         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2647         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2648         * modules/expm1: New file.
2649         * tests/test-math-c++.cc: Check the declaration of expm1.
2650         * doc/posix-functions/expm1.texi: Mention the new module.
2651
2652 2012-03-06  Bruno Haible  <bruno@clisp.org>
2653
2654         math: Ensure declarations of math functions.
2655         * modules/acosf (Depends-on): Add 'extensions'.
2656         * modules/asinf (Depends-on): Likewise.
2657         * modules/atan2f (Depends-on): Likewise.
2658         * modules/atanf (Depends-on): Likewise.
2659         * modules/cbrt (Depends-on): Likewise.
2660         * modules/cbrtf (Depends-on): Likewise.
2661         * modules/cbrtl (Depends-on): Likewise.
2662         * modules/copysignf (Depends-on): Likewise.
2663         * modules/copysignl (Depends-on): Likewise.
2664         * modules/cosf (Depends-on): Likewise.
2665         * modules/coshf (Depends-on): Likewise.
2666         * modules/expf (Depends-on): Likewise.
2667         * modules/fabsf (Depends-on): Likewise.
2668         * modules/fabsl (Depends-on): Likewise.
2669         * modules/fmaf (Depends-on): Likewise.
2670         * modules/fmal (Depends-on): Likewise.
2671         * modules/fmodf (Depends-on): Likewise.
2672         * modules/fmodl (Depends-on): Likewise.
2673         * modules/frexpf (Depends-on): Likewise.
2674         * modules/frexpl (Depends-on): Likewise.
2675         * modules/hypot (Depends-on): Likewise.
2676         * modules/hypotf (Depends-on): Likewise.
2677         * modules/hypotl (Depends-on): Likewise.
2678         * modules/ldexpf (Depends-on): Likewise.
2679         * modules/ldexpl (Depends-on): Likewise.
2680         * modules/log10f (Depends-on): Likewise.
2681         * modules/log10l (Depends-on): Likewise.
2682         * modules/log1p (Depends-on): Likewise.
2683         * modules/logb (Depends-on): Likewise.
2684         * modules/logf (Depends-on): Likewise.
2685         * modules/modff (Depends-on): Likewise.
2686         * modules/modfl (Depends-on): Likewise.
2687         * modules/powf (Depends-on): Likewise.
2688         * modules/remainderf (Depends-on): Likewise.
2689         * modules/remainderl (Depends-on): Likewise.
2690         * modules/rintf (Depends-on): Likewise.
2691         * modules/rintl (Depends-on): Likewise.
2692         * modules/sinf (Depends-on): Likewise.
2693         * modules/sinhf (Depends-on): Likewise.
2694         * modules/sqrtf (Depends-on): Likewise.
2695         * modules/tanf (Depends-on): Likewise.
2696         * modules/tanhf (Depends-on): Likewise.
2697         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2698         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2699         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2700         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2701         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2702         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2703         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2704         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2705         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2706         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2707         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2708         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2709         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2710         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2711         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2712         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2713         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2714         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2715         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2716         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2717         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2718         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2719         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2720         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2721         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2722         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2723         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2724         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2725         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2726         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2727         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2728         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2729         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2730         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2731         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2732         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2733         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2734         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2735         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2736         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2737         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2738
2739 2012-03-06  Bruno Haible  <bruno@clisp.org>
2740
2741         math: Update module names in warnings.
2742         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2743         tanl): Use specific module name in warn-on-use warning.
2744
2745 2012-03-06  Bruno Haible  <bruno@clisp.org>
2746
2747         expl: Simplify computation.
2748         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2749
2750 2012-03-05  Bruno Haible  <bruno@clisp.org>
2751
2752         exp* tests: More tests.
2753         * tests/test-exp.h: New file.
2754         * tests/test-exp.c: Include <float.h> and test-exp.h.
2755         (main): Invoke test_function.
2756         * tests/test-expf.c: Include <float.h> and test-exp.h.
2757         (main): Invoke test_function.
2758         * tests/test-expl.c: Include <float.h> and test-exp.h.
2759         (main): Invoke test_function.
2760         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2761         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2762         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2763         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2764         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2765         (Depends-on): Add 'float'.
2766         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2767
2768         expl: Fix precision of computed result.
2769         * lib/expl.c: Completely rewritten.
2770         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2771         (Maintainer): Add me.
2772         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2773
2774 2012-03-05  Bruno Haible  <bruno@clisp.org>
2775
2776         cbrt* tests: More tests.
2777         * tests/test-cbrt.h: New file.
2778         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2779         (main): Invoke test_function.
2780         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2781         (main): Invoke test_function.
2782         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2783         (main): Invoke test_function.
2784         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2785         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2786         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2787         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2788         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2789         (Depends-on): Add 'float'.
2790         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2791
2792 2012-03-05  Bruno Haible  <bruno@clisp.org>
2793
2794         hypot* tests: More tests.
2795         * tests/test-hypot.h: New file, partially extracted from
2796         tests/test-hypotl.c.
2797         * tests/test-hypot.c: Include test-hypot.h.
2798         (main): Invoke test_function.
2799         * tests/test-hypotf.c: Include test-hypot.h.
2800         (main): Invoke test_function.
2801         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2802         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2803         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2804         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2805         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2806         tests/randomf.c.
2807         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2808         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2809         tests/randoml.c.
2810         (Depends-on): Add 'fpucw', 'float'.
2811         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2812
2813 2012-03-05  Bruno Haible  <bruno@clisp.org>
2814
2815         fpucw: Doc about FreeBSD.
2816         * lib/fpucw.h: Mention FreeBSD in comments.
2817
2818 2012-03-04  Bruno Haible  <bruno@clisp.org>
2819
2820         sqrt* tests: More tests.
2821         * tests/test-sqrt.h: New file.
2822         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2823         (main): Invoke test_function.
2824         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2825         (main): Invoke test_function.
2826         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2827         (main): Invoke test_function.
2828         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2829         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2830         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2831         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2832         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2833         (Depends-on): Add 'float'.
2834         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2835
2836 2012-03-04  Bruno Haible  <bruno@clisp.org>
2837
2838         remainder* tests: More tests.
2839         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2840         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2841         (main): Invoke test_function.
2842         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2843         (main): Invoke test_function.
2844         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2845         (main): Invoke test_function.
2846         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2847         tests/randomd.c.
2848         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2849         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2850         tests/randomf.c.
2851         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2852         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2853         tests/randoml.c.
2854         (Depends-on): Add 'float'.
2855         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2856
2857 2012-03-04  Bruno Haible  <bruno@clisp.org>
2858
2859         remainder, remainderf, remainderl: Fix computation for large quotients.
2860         * lib/remainder.c: Completely rewritten.
2861         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2862         USE_FLOAT.
2863         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2864         USE_LONG_DOUBLE.
2865         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2866         isnand, isinf. Remove round, fma.
2867         * modules/remainderf (Files): Add lib/remainder.c.
2868         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2869         Remove roundf, fmaf.
2870         * modules/remainderl (Files): Add lib/remainder.c.
2871         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2872         isinf. Remove roundl, fmal.
2873         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2874         REMAINDER_LIBM.
2875         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2876         REMAINDERF_LIBM.
2877         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2878         REMAINDERL_LIBM.
2879
2880 2012-03-04  Bruno Haible  <bruno@clisp.org>
2881
2882         fmod* tests: More tests.
2883         * tests/test-fmod.h (my_ldexp): New function.
2884         (test_function): Reduce amount of random numbers to test. Add tests
2885         of very large quotients x / y.
2886         * tests/test-fmod.c (MAX_EXP): New macro.
2887         * tests/test-fmodf.c (MAX_EXP): Likewise.
2888         * tests/test-fmodl.c (MAX_EXP): Likewise.
2889
2890 2012-03-04  Bruno Haible  <bruno@clisp.org>
2891
2892         fmod, fmodl: Fix computation for large quotients x / y.
2893         * lib/fmod.c: Completely rewritten.
2894         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2895         USE_LONG_DOUBLE.
2896         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2897         isnand. Remove fma.
2898         * modules/fmodl (Files): Add lib/fmod.c.
2899         (Depends-on): Add float, isfinite, signbit, fabsl,
2900         frexpl, ldexpl, isnanl. Remove fma.
2901         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2902         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2903
2904 2012-03-03  Bruno Haible  <bruno@clisp.org>
2905
2906         fmod* tests: More tests.
2907         * tests/test-fmod.h: New file.
2908         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2909         (main): Invoke test_function.
2910         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2911         (main): Invoke test_function.
2912         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2913         (main): Invoke test_function.
2914         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2915         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2916         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2917         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2918         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2919         (Depends-on): Add 'float'.
2920         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2921
2922 2012-03-03  Bruno Haible  <bruno@clisp.org>
2923
2924         rint* tests: More tests.
2925         * tests/test-rint.h: New file, partially extracted from
2926         tests/test-rintl.c.
2927         * tests/test-rint.c: Include test-rint.h.
2928         (main): Invoke test_function.
2929         * tests/test-rintf.c: Include test-rint.h.
2930         (main): Invoke test_function.
2931         * tests/test-rintl.c: Include test-rint.h.
2932         (main): Invoke test_function.
2933         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2934         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2935         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2936         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2937         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2938         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2939
2940 2012-03-03  Bruno Haible  <bruno@clisp.org>
2941
2942         modf* tests: More tests.
2943         * tests/test-modf.h: New file.
2944         * tests/test-modf.c: Include <float.h> and test-modf.h.
2945         (main): Invoke test_function.
2946         * tests/test-modff.c: Include <float.h> and test-modf.h.
2947         (main): Invoke test_function.
2948         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2949         (main): Invoke test_function.
2950         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2951         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2952         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2953         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2954         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2955         (Depends-on): Add 'float'.
2956         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2957
2958 2012-03-03  Bruno Haible  <bruno@clisp.org>
2959
2960         fabs* tests: More tests.
2961         * tests/test-fabs.h: New file, partially extracted from
2962         tests/test-fabsl.c.
2963         * tests/test-fabs.c (RANDOM): New macro.
2964         * tests/test-fabsf.c (RANDOM): New macro.
2965         * tests/test-fabsl.c (RANDOM): New macro.
2966         * modules/fabs-tests (Files): Add tests/randomd.c.
2967         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2968         * modules/fabsf-tests (Files): Add tests/randomf.c.
2969         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2970         * modules/fabsl-tests (Files): Add tests/randoml.c.
2971         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2972
2973 2012-03-03  Bruno Haible  <bruno@clisp.org>
2974
2975         ldexp* tests: More tests.
2976         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2977         * tests/test-ldexp.c (RANDOM): New macro.
2978         * tests/test-ldexpf.c (RANDOM): New macro.
2979         * tests/test-ldexpl.c (RANDOM): New macro.
2980         * modules/ldexp-tests (Files): Add tests/randomd.c.
2981         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2982         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2983         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2984         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2985         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2986
2987 2012-03-03  Bruno Haible  <bruno@clisp.org>
2988
2989         frexp* tests: More tests.
2990         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2991         * tests/test-frexp.c (RANDOM): New macro.
2992         * tests/test-frexpf.c (RANDOM): New macro.
2993         * tests/test-frexpl.c (RANDOM): New macro.
2994         * modules/frexp-tests (Files): Add tests/randomd.c.
2995         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2996         * modules/frexpf-tests (Files): Add tests/randomf.c.
2997         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2998         * modules/frexpl-tests (Files): Add tests/randoml.c.
2999         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
3000
3001 2012-03-03  Bruno Haible  <bruno@clisp.org>
3002
3003         Support for pseudo-random numbers in tests.
3004         * tests/randomf.c: New file.
3005         * tests/randomd.c: New file.
3006         * tests/randoml.c: New file.
3007         * tests/macros.h (randomf, randomd, randoml): New declarations.
3008
3009 2012-03-03  Bruno Haible  <bruno@clisp.org>
3010
3011         frexp* tests: Refactor.
3012         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
3013         * tests/test-frexp.c: Include and use it.
3014         * tests/test-frexpf.c: Likewise.
3015         * tests/test-frexpl.c: Likewise.
3016         * modules/frexp-tests (Files): Add tests/test-frexp.h.
3017         * modules/frexpf-tests (Files): Likewise.
3018         * modules/frexpl-tests (Files): Likewise.
3019
3020 2012-03-02  Jim Meyering  <meyering@redhat.com>
3021
3022         maint: don't specify XZ_OPT=-9ev in dist-related rule
3023         Using xz's -9 option is warranted only if you have a very large
3024         tarball (see xz's documentation for the sizes vs. presets), and
3025         requires 64MiB of memory at decompression time.
3026         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
3027         Automake's default of just "-e" is fine.  Override on a
3028         per-package basis by setting XZ_OPT e.g., in cfg.mk.
3029
3030 2012-03-01  Eric Blake  <eblake@redhat.com>
3031
3032         maint.mk: allow announcement for non-gnulib project
3033         * maint.mk (announcement): Skip gnulib version if not used.
3034
3035 2012-03-01  Jim Meyering  <meyering@redhat.com>
3036
3037         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
3038         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
3039         envvar settings cannot interfere.  Otherwise, setting envvars like
3040         prohibit=foo require=bar, etc. would cause spurious test failures.
3041
3042 2012-03-01  Eric Blake  <eblake@redhat.com>
3043
3044         maint.mk: add per-line exclusions to prohibitions
3045         * maint.mk (_sc_search_regexp): Add $exclude parameter.
3046         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3047         (sc_const_long_option): Use it.
3048
3049 2012-03-01  Bruno Haible  <bruno@clisp.org>
3050
3051         Tests for module 'expl-ieee'.
3052         * modules/expl-ieee-tests: New file.
3053         * tests/test-expl-ieee.c: New file.
3054
3055         New module 'expl-ieee'.
3056         * modules/expl-ieee: New file.
3057
3058         Tests for module 'exp-ieee'.
3059         * modules/exp-ieee-tests: New file.
3060         * tests/test-exp-ieee.c: New file.
3061
3062         New module 'exp-ieee'.
3063         * modules/exp-ieee: New file.
3064
3065         Tests for module 'expf-ieee'.
3066         * modules/expf-ieee-tests: New file.
3067         * tests/test-expf-ieee.c: New file.
3068         * tests/test-exp-ieee.h: New file.
3069
3070         New module 'expf-ieee'.
3071         * modules/expf-ieee: New file.
3072
3073 2012-02-29  Bruno Haible  <bruno@clisp.org>
3074
3075         cbrtl-ieee: Work around test failure on IRIX 6.5.
3076         * m4/cbrtl-ieee.m4: New file.
3077         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
3078         test whether cbrtl works with a minus zero argument. Replace it if not.
3079         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
3080         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
3081         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
3082         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
3083         (Depends-on): Update conditions.
3084         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
3085         m4/signbit.m4.
3086         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
3087         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
3088         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
3089
3090         Tests for module 'cbrtl-ieee'.
3091         * modules/cbrtl-ieee-tests: New file.
3092         * tests/test-cbrtl-ieee.c: New file.
3093
3094         New module 'cbrtl-ieee'.
3095         * modules/cbrtl-ieee: New file.
3096
3097         Tests for module 'cbrt-ieee'.
3098         * modules/cbrt-ieee-tests: New file.
3099         * tests/test-cbrt-ieee.c: New file.
3100
3101         New module 'cbrt-ieee'.
3102         * modules/cbrt-ieee: New file.
3103
3104         Tests for module 'cbrtf-ieee'.
3105         * modules/cbrtf-ieee-tests: New file.
3106         * tests/test-cbrtf-ieee.c: New file.
3107         * tests/test-cbrt-ieee.h: New file.
3108
3109         New module 'cbrtf-ieee'.
3110         * modules/cbrtf-ieee: New file.
3111
3112 2012-02-29  Bruno Haible  <bruno@clisp.org>
3113
3114         cbrtf: Work around bug in IRIX 6.5 system function.
3115         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
3116         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
3117         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
3118         work.
3119         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
3120         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
3121         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
3122         (Depends-on): Update conditions.
3123         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
3124
3125 2012-02-29  Bruno Haible  <bruno@clisp.org>
3126
3127         Tests for module 'cbrtl'.
3128         * modules/cbrtl-tests: New file.
3129         * tests/test-cbrtl.c: New file.
3130
3131         New module 'cbrtl'.
3132         * lib/math.in.h (cbrtl): New declaration.
3133         * lib/cbrtl.c: New file.
3134         * m4/cbrtl.m4: New file.
3135         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
3136         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
3137         HAVE_DECL_CBRTL.
3138         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
3139         HAVE_DECL_CBRTL.
3140         * modules/cbrtl: New file.
3141         * tests/test-math-c++.cc: Check the declaration of cbrtl.
3142         * doc/posix-functions/cbrtl.texi: Mention the new module.
3143
3144 2012-02-29  Bruno Haible  <bruno@clisp.org>
3145
3146         Tests for module 'cbrtf'.
3147         * modules/cbrtf-tests: New file.
3148         * tests/test-cbrtf.c: New file.
3149
3150         New module 'cbrtf'.
3151         * lib/math.in.h (cbrtf): New declaration.
3152         * lib/cbrtf.c: New file.
3153         * m4/cbrtf.m4: New file.
3154         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
3155         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
3156         HAVE_DECL_CBRTF.
3157         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
3158         HAVE_DECL_CBRTF.
3159         * modules/cbrtf: New file.
3160         * tests/test-math-c++.cc: Check the declaration of cbrtf.
3161         * doc/posix-functions/cbrtf.texi: Mention the new module.
3162
3163 2012-02-29  Bruno Haible  <bruno@clisp.org>
3164
3165         cbrt: Provide replacement on MSVC and Minix.
3166         * lib/math.in.h (cbrt): New declaration.
3167         * lib/cbrt.c: New file.
3168         * m4/cbrt.m4: New file.
3169         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
3170         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
3171         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
3172         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
3173         (Depends-on): Add dependencies.
3174         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
3175         * tests/test-math-c++.cc: Check the declaration of cbrt.
3176         * doc/posix-functions/cbrt.texi: Mention that the module provides a
3177         replacement.
3178
3179 2012-02-29  Bruno Haible  <bruno@clisp.org>
3180
3181         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
3182         * m4/hypotl-ieee.m4: New file.
3183         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
3184         test whether hypotl works with mixed NaN and Infinity arguments.
3185         Replace it if not.
3186         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
3187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
3188         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
3189         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
3190         (Depends-on): Update conditions.
3191         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
3192         (Depends-on): Add hypot-ieee.
3193         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
3194         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
3195
3196         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
3197         * m4/hypotf-ieee.m4: New file.
3198         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
3199         test whether hypotf works with mixed NaN and Infinity arguments.
3200         Replace it if not.
3201         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
3202         (Depends-on): Add hypot-ieee.
3203         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
3204         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
3205
3206         hypot-ieee: Work around test failure on OSF/1 and native Windows.
3207         * lib/math.in.h (hypot): New declaration.
3208         * lib/hypot.c: New file.
3209         * m4/hypot-ieee.m4: New file.
3210         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
3211         whether hypot works with mixed NaN and Infinity arguments. Replace it
3212         if not.
3213         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
3214         REPLACE_HYPOT.
3215         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
3216         * modules/hypot (Files): Add lib/hypot.c.
3217         (Depends-on): Add dependencies.
3218         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
3219         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
3220         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
3221         * tests/test-math-c++.cc: Check the declaration of hypot.
3222         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
3223
3224         Tests for module 'hypotl-ieee'.
3225         * modules/hypotl-ieee-tests: New file.
3226         * tests/test-hypotl-ieee.c: New file.
3227
3228         New module 'hypotl-ieee'.
3229         * modules/hypotl-ieee: New file.
3230
3231         Tests for module 'hypot-ieee'.
3232         * modules/hypot-ieee-tests: New file.
3233         * tests/test-hypot-ieee.c: New file.
3234
3235         New module 'hypot-ieee'.
3236         * modules/hypot-ieee: New file.
3237
3238         Tests for module 'hypotf-ieee'.
3239         * modules/hypotf-ieee-tests: New file.
3240         * tests/test-hypotf-ieee.c: New file.
3241         * tests/test-hypot-ieee.h: New file.
3242
3243         New module 'hypotf-ieee'.
3244         * modules/hypotf-ieee: New file.
3245
3246 2012-02-29  Bruno Haible  <bruno@clisp.org>
3247
3248         Remove unused variables.
3249         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
3250         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3251         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3252         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3253
3254 2012-02-29  Eric Blake  <eblake@redhat.com>
3255
3256         termios: fix pid_t always, not just for tcgetsid
3257         * doc/posix-headers/termios.texi (termios.h): Mention problem.
3258         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
3259         just when building tcgetsid.
3260
3261 2012-02-29  Bruno Haible  <bruno@clisp.org>
3262
3263         Tests for module 'hypotl'.
3264         * modules/hypotl-tests: New file.
3265         * tests/test-hypotl.c: New file.
3266
3267         New module 'hypotl'.
3268         * lib/math.in.h (hypotl): New declaration.
3269         * lib/hypotl.c: New file.
3270         * m4/hypotl.m4: New file.
3271         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3272         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
3273         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
3274         * modules/hypotl: New file.
3275         * tests/test-math-c++.cc: Check the hypotl declaration.
3276         * doc/posix-functions/hypotl.texi: Mention the new module.
3277
3278 2012-02-29  Eric Blake  <eblake@redhat.com>
3279
3280         tcgetsid: fix cygwin header bug
3281         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
3282
3283         docs: update cygwin progress
3284         * doc/posix-functions/llround.texi (llround): Added in cygwin
3285         1.7.8.
3286         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
3287         * doc/glibc-functions/program_invocation_name.texi
3288         (program_invocation_name): Likewise.
3289         * doc/glibc-functions/program_invocation_short_name.texi
3290         (program_invocation_short_name): Likewise.
3291         * doc/glibc-functions/madvise.texi (madvise): Likewise.
3292         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
3293         Likewise.
3294         * doc/posix-functions/pthread_spin_destroy.texi
3295         (pthread_spin_destroy): Added in cygwin 1.7.10.
3296         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
3297         Likewise.
3298         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
3299         Likewise.
3300         * doc/posix-functions/pthread_spin_trylock.texi
3301         (pthread_spin_trylock): Likewise.
3302         * doc/posix-functions/pthread_spin_unlock.texi
3303         (pthread_spin_unlock): Likewise.
3304         * doc/posix-functions/pthread_setschedprio.texi
3305         (pthread_setschedprio): Likewise.
3306         * doc/posix-functions/pthread_attr_getstack.texi
3307         (pthread_attr_getstack): Likewise.
3308         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
3309         (pthread_attr_getstackaddr): Likewise.
3310         * doc/glibc-functions/pthread_getattr_np.texi
3311         (pthread_getattr_np): Likewise.
3312         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
3313         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
3314         * doc/posix-functions/clock_settime.texi (clock_settime):
3315         Likewise.
3316         * doc/posix-functions/pthread_attr_getguardsize.texi
3317         (pthread_attr_getguardsize): Likewise.
3318         * doc/posix-functions/pthread_attr_setguardsize.texi
3319         (pthread_attr_setguardsize): Likewise.
3320         * doc/posix-functions/pthread_attr_setstack.texi
3321         (pthread_attr_setstack): Likewise.
3322         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
3323         (pthread_attr_setstackaddr): Likewise.
3324         * doc/posix-functions/clock_getcpuclockid.texi
3325         (clock_getcpuclockid): Likewise.
3326         * doc/posix-functions/pthread_getcpuclockid.texi
3327         (pthread_getcpuclockid): Likewise.
3328         * doc/glibc-functions/error.texi (error): Likewise.
3329         * doc/glibc-functions/error_at_line.texi (error_at_line):
3330         Likewise.
3331         * doc/glibc-functions/error_message_count.texi
3332         (error_message_count): Likewise.
3333         * doc/glibc-functions/error_one_per_line.texi
3334         (error_one_per_line): Likewise.
3335         * doc/glibc-functions/error_print_progname.texi
3336         (error_print_progname): Likewise.
3337         * doc/posix-functions/pthread_condattr_getclock.texi
3338         (pthread_condattr_getclock): Likewise.
3339         * doc/posix-functions/pthread_condattr_setclock.texi
3340         (pthread_condattr_setclock): Likewise.
3341         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
3342         Likewise.
3343         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
3344         * doc/glibc-functions/getpt.texi (getpt): Likewise.
3345         * doc/glibc-functions/get_current_dir_name.texi
3346         (get_current_dir_name): Likewise.
3347         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
3348         Likewise.
3349         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
3350         wrong return type.
3351         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
3352         1.7.11.
3353
3354 2012-02-29  Bruno Haible  <bruno@clisp.org>
3355
3356         Tests for module 'hypotf'.
3357         * modules/hypotf-tests: New file.
3358         * tests/test-hypotf.c: New file.
3359
3360         New module 'hypotf'.
3361         * lib/math.in.h (hypotf): New declaration.
3362         * lib/hypotf.c: New file.
3363         * m4/hypotf.m4: New file.
3364         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3365         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
3366         REPLACE_HYPOTF.
3367         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
3368         REPLACE_HYPOTF.
3369         * modules/hypotf: New file.
3370         * tests/test-math-c++.cc: Check the hypotf declaration.
3371         * doc/posix-functions/hypotf.texi: Mention the new module.
3372
3373         hypot: Prepare for hypotf module.
3374         * m4/hypot.m4: New file.
3375         * modules/hypot (Files): Add m4/hypot.m4.
3376         (configure.ac): Invoke gl_FUNC_HYPOT.
3377
3378 2012-02-29  Bruno Haible  <bruno@clisp.org>
3379
3380         hypot tests: More tests.
3381         * tests/test-hypot.c: Include <float.h>.
3382         (main): Add tests about overflow and underflow.
3383
3384 2012-02-29  Bruno Haible  <bruno@clisp.org>
3385
3386         math code: Add comments.
3387         * lib/acosl.c: Add comment about related glibc source files.
3388         * lib/asinl.c: Likewise.
3389         * lib/atanl.c: Likewise.
3390         * lib/expl.c: Likewise.
3391         * lib/logl.c: Likewise.
3392         * lib/sincosl.c: Likewise.
3393         * lib/sinl.c: Likewise.
3394         * lib/tanl.c: Likewise.
3395         * lib/trigl.c: Likewise.
3396         * lib/cosl.c: Likewise. Fix comments.
3397
3398 2012-02-28  Bruno Haible  <bruno@clisp.org>
3399
3400         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
3401         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
3402         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
3403         HUGE_VALL are defined.
3404         (numeric_equald): Renamed from numeric_equal.
3405         (numeric_equalf, numeric_equall): New functions.
3406         (main): Check also HUGE_VALF, HUGE_VALL.
3407         * modules/math-tests (Files): Add tests/macros.h.
3408         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
3409         HUGE_VALL.
3410
3411 2012-02-28  Bruno Haible  <bruno@clisp.org>
3412
3413         doc: Move ISO C11 feature notes into POSIX chapters.
3414         * doc/posix-functions/aligned_alloc.texi: Renamed from
3415         doc/glibc-functions/aligned_alloc.texi.
3416         * doc/posix-functions/quick_exit.texi: Renamed from
3417         doc/glibc-functions/quick_exit.texi.
3418         * doc/posix-headers/uchar.texi: Renamed from
3419         doc/glibc-headers/uchar.texi.
3420         * doc/posix-functions/c16rtomb.texi: Renamed from
3421         doc/glibc-functions/c16rtomb.texi.
3422         * doc/posix-functions/c32rtomb.texi: Renamed from
3423         doc/glibc-functions/c32rtomb.texi.
3424         * doc/posix-functions/mbrtoc16.texi: Renamed from
3425         doc/glibc-functions/mbrtoc16.texi.
3426         * doc/posix-functions/mbrtoc32.texi: Renamed from
3427         doc/glibc-functions/mbrtoc32.texi.
3428         * doc/gnulib.texi: Update.
3429         (Glibc uchar.h): Remove section.
3430         Suggested by Eric Blake.
3431
3432 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
3433
3434         stdnoreturn: port to MSVC better
3435         MSVC standard headers use __declspec(noreturn), so #define noreturn
3436         to empty on that platform.  Reported by Bruno Haible in
3437         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
3438         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
3439         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
3440
3441 2012-02-28  Bruno Haible  <bruno@clisp.org>
3442
3443         doc: Mention new glibc headers and functions.
3444         * doc/glibc-headers/uchar.texi: New file.
3445         * doc/glibc-functions/aligned_alloc.texi: New file.
3446         * doc/glibc-functions/c16rtomb.texi: New file.
3447         * doc/glibc-functions/c32rtomb.texi: New file.
3448         * doc/glibc-functions/clock_adjtime.texi: New file.
3449         * doc/glibc-functions/fanotify_init.texi: New file.
3450         * doc/glibc-functions/fanotify_mark.texi: New file.
3451         * doc/glibc-functions/inet6_opt_append.texi: New file.
3452         * doc/glibc-functions/inet6_opt_find.texi: New file.
3453         * doc/glibc-functions/inet6_opt_finish.texi: New file.
3454         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
3455         * doc/glibc-functions/inet6_opt_init.texi: New file.
3456         * doc/glibc-functions/inet6_opt_next.texi: New file.
3457         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
3458         * doc/glibc-functions/inet6_rth_add.texi: New file.
3459         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
3460         * doc/glibc-functions/inet6_rth_init.texi: New file.
3461         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
3462         * doc/glibc-functions/inet6_rth_segments.texi: New file.
3463         * doc/glibc-functions/inet6_rth_space.texi: New file.
3464         * doc/glibc-functions/login.texi: New file.
3465         * doc/glibc-functions/mbrtoc16.texi: New file.
3466         * doc/glibc-functions/mbrtoc32.texi: New file.
3467         * doc/glibc-functions/name_to_handle_at.texi: New file.
3468         * doc/glibc-functions/ntp_gettimex.texi: New file.
3469         * doc/glibc-functions/open_by_handle_at.texi: New file.
3470         * doc/glibc-functions/prlimit.texi: New file.
3471         * doc/glibc-functions/process_vm_readv.texi: New file.
3472         * doc/glibc-functions/process_vm_writev.texi: New file.
3473         * doc/glibc-functions/recvmmsg.texi: New file.
3474         * doc/glibc-functions/scandirat.texi: New file.
3475         * doc/glibc-functions/sendmmsg.texi: New file.
3476         * doc/glibc-functions/setns.texi: New file.
3477         * doc/glibc-functions/timespec_get.texi: New file.
3478         * doc/gnulib.texi: Include them.
3479         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
3480         sections.
3481         Reported by Eric Blake.
3482
3483 2012-02-28  Bruno Haible  <bruno@clisp.org>
3484
3485         Avoid compilation errors with MSVC option -fp:strict.
3486         * lib/floor.c: Use MSVC specific pragma fenv_access.
3487         * lib/ceil.c: Likewise.
3488         * lib/trunc.c: Likewise.
3489         * lib/round.c: Likewise.
3490         * lib/rint.c: Likewise.
3491         * lib/fma.c: Likewise.
3492         * lib/integer_length.c: Likewise.
3493         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3494         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3495         * tests/test-floor2.c: Likewise.
3496         * tests/test-floorf2.c: Likewise.
3497         * tests/test-ceil2.c: Likewise.
3498         * tests/test-ceilf2.c: Likewise.
3499         * tests/test-trunc2.c: Likewise.
3500         * tests/test-truncf2.c: Likewise.
3501         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3502
3503 2012-02-27  Bruno Haible  <bruno@clisp.org>
3504
3505         Tests for module 'sqrtl-ieee'.
3506         * modules/sqrtl-ieee-tests: New file.
3507         * tests/test-sqrtl-ieee.c: New file.
3508
3509         New module 'sqrtl-ieee'.
3510         * modules/sqrtl-ieee: New file.
3511
3512         Tests for module 'sqrt-ieee'.
3513         * modules/sqrt-ieee-tests: New file.
3514         * tests/test-sqrt-ieee.c: New file.
3515
3516         New module 'sqrt-ieee'.
3517         * modules/sqrt-ieee: New file.
3518
3519         Tests for module 'sqrtf-ieee'.
3520         * modules/sqrtf-ieee-tests: New file.
3521         * tests/test-sqrtf-ieee.c: New file.
3522         * tests/test-sqrt-ieee.h: New file.
3523
3524         New module 'sqrtf-ieee'.
3525         * modules/sqrtf-ieee: New file.
3526
3527 2012-02-27  Bruno Haible  <bruno@clisp.org>
3528
3529         remainderl-ieee: Work around test failure on OSF/1.
3530         * m4/remainderl-ieee.m4: New file.
3531         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
3532         present, test whether remainderl works with a zero second argument.
3533         Replace it if not.
3534         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
3535         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
3536         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
3537         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
3538         (Depends-on): Update conditions.
3539         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
3540         (Depends-on): Add remainder-ieee.
3541         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
3542         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
3543         module.
3544
3545         remainderf-ieee: Work around test failure on OSF/1.
3546         * m4/remainderf-ieee.m4: New file.
3547         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
3548         present, test whether remainderf works with a zero second argument.
3549         Replace it if not.
3550         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
3551         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
3552         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
3553         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
3554         (Depends-on): Update conditions.
3555         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
3556         (Depends-on): Add remainder-ieee.
3557         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3558         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3559         module.
3560
3561         remainder-ieee: Work around test failure on OSF/1.
3562         * m4/remainder-ieee.m4: New file.
3563         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3564         present, test whether remainder works with a zero second argument.
3565         Replace it if not.
3566         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3568         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3569         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3570         (Depends-on): Update dependencies.
3571         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3572         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3573         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3574
3575         Tests for module 'remainderl-ieee'.
3576         * modules/remainderl-ieee-tests: New file.
3577         * tests/test-remainderl-ieee.c: New file.
3578
3579         New module 'remainderl-ieee'.
3580         * modules/remainderl-ieee: New file.
3581
3582         Tests for module 'remainder-ieee'.
3583         * modules/remainder-ieee-tests: New file.
3584         * tests/test-remainder-ieee.c: New file.
3585
3586         New module 'remainder-ieee'.
3587         * modules/remainder-ieee: New file.
3588
3589         Tests for module 'remainderf-ieee'.
3590         * modules/remainderf-ieee-tests: New file.
3591         * tests/test-remainderf-ieee.c: New file.
3592         * tests/test-remainder-ieee.h: New file.
3593
3594         New module 'remainderf-ieee'.
3595         * modules/remainderf-ieee: New file.
3596
3597 2012-02-27  Bruno Haible  <bruno@clisp.org>
3598
3599         modff, modfl: Fix configure syntax error.
3600         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3601         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3602
3603 2012-02-27  Bruno Haible  <bruno@clisp.org>
3604
3605         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3606         * m4/fmodl-ieee.m4: New file.
3607         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3608         whether fmodl works with zero arguments. Replace it if not.
3609         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3610         (Depends-on): Add fmod-ieee.
3611         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3612         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3613
3614         fmodf-ieee: Work around test failure on OSF/1.
3615         * m4/fmodf-ieee.m4: New file.
3616         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3617         whether fmodf works with zero arguments. Replace it if not.
3618         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3620         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3621         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3622         (Depends-on): Update dependencies.
3623         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3624         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3625         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3626
3627         fmodf-ieee: Work around test failure on MSVC 9.
3628         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3629         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3630
3631         fmod-ieee: Work around test failures on OSF/1, mingw.
3632         * m4/fmod-ieee.m4: New file.
3633         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3634         whether fmod works with zero arguments. Replace it if not.
3635         * lib/math.in.h (fmod): New declaration.
3636         * lib/fmod.c: New file.
3637         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3638         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3639         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3640         * modules/fmod (Files): Add lib/fmod.c.
3641         (Depends-on): Add math, isinf, trunc, fma.
3642         (configure.ac): Arrange to compile lib/fmod.c if needed.
3643         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3644         m4/signbit.m4.
3645         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3646         * tests/test-math-c++.cc: Check the declaration of fmod.
3647         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3648
3649         fmodl-ieee: Fix test failures.
3650         * lib/fmodl.c (fmodl): Treat Inf specially.
3651         * modules/fmodl (Depends-on): Add isinf.
3652
3653         Tests for module 'fmodl-ieee'.
3654         * modules/fmodl-ieee-tests: New file.
3655         * tests/test-fmodl-ieee.c: New file.
3656
3657         New module 'fmodl-ieee'.
3658         * modules/fmodl-ieee: New file.
3659
3660         Tests for module 'fmod-ieee'.
3661         * modules/fmod-ieee-tests: New file.
3662         * tests/test-fmod-ieee.c: New file.
3663
3664         New module 'fmod-ieee'.
3665         * modules/fmod-ieee: New file.
3666
3667         Tests for module 'fmodf-ieee'.
3668         * modules/fmodf-ieee-tests: New file.
3669         * tests/test-fmodf-ieee.c: New file.
3670         * tests/test-fmod-ieee.h: New file.
3671
3672         New module 'fmodf-ieee'.
3673         * modules/fmodf-ieee: New file.
3674
3675 2012-02-27  Bruno Haible  <bruno@clisp.org>
3676
3677         Tests for module 'rintl-ieee'.
3678         * modules/rintl-ieee-tests: New file.
3679         * tests/test-rintl-ieee.c: New file.
3680
3681         New module 'rintl-ieee'.
3682         * modules/rintl-ieee: New file.
3683
3684         Tests for module 'rint-ieee'.
3685         * modules/rint-ieee-tests: New file.
3686         * tests/test-rint-ieee.c: New file.
3687
3688         New module 'rint-ieee'.
3689         * modules/rint-ieee: New file.
3690
3691         Tests for module 'rintf-ieee'.
3692         * modules/rintf-ieee-tests: New file.
3693         * tests/test-rintf-ieee.c: New file.
3694         * tests/test-rint-ieee.h: New file.
3695
3696         New module 'rintf-ieee'.
3697         * modules/rintf-ieee: New file.
3698
3699 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3700
3701         regex: re_search etc. should return -2 when memory exhausted
3702         This bug was uncovered when testing 'grep'.  Without the fix,
3703         re_search and friends return -1 when memory is exhausted, but -1
3704         means no match, and this causes grep to falsely report no-match
3705         instead of memory-exhaustion.  See
3706         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3707         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3708         trouble; this can occur if re_search_internal ran out of memory.
3709
3710 2012-02-26  Bruno Haible  <bruno@clisp.org>
3711
3712         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3713         * m4/modfl-ieee.m4: New file.
3714         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3715         whether modfl works with Inf. Replace it if not.
3716         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3718         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3719         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3720         (Depends-on): Update dependencies.
3721         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3722         m4/signbit.m4.
3723         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3724         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3725
3726         modfl-ieee: Fix dependencies.
3727         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3728
3729         modfl-ieee: Fix test failures.
3730         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3731         * modules/modfl (Depends-on): Add isfinite, isinf.
3732
3733         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3734         * m4/modff-ieee.m4: New file.
3735         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3736         whether modff works with NaN and Inf. Replace it if not.
3737         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3739         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3740         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3741         (Depends-on): Update dependencies.
3742         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3743         m4/signbit.m4.
3744         (Depends-on): Add modf-ieee.
3745         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3746         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3747
3748         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3749         * m4/modf-ieee.m4: New file.
3750         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3751         whether modf works with NaN and Inf. Replace it if not.
3752         * lib/math.in.h (modf): New declaration.
3753         * lib/modf.c: New file.
3754         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3755         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3756         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3757         * modules/modf (Files): Add lib/modf.c.
3758         (Depends-on): Add math, isfinite, trunc, isinf.
3759         (configure.ac): Addrange to compile lib/modf.c if needed.
3760         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3761         m4/signbit.m4.
3762         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3763         * tests/test-math-c++.cc: Check the declaration of modf.
3764         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3765
3766         Tests for module 'modfl-ieee'.
3767         * modules/modfl-ieee-tests: New file.
3768         * tests/test-modfl-ieee.c: New file.
3769
3770         New module 'modfl-ieee'.
3771         * modules/modfl-ieee: New file.
3772
3773         Tests for module 'modf-ieee'.
3774         * modules/modf-ieee-tests: New file.
3775         * tests/test-modf-ieee.c: New file.
3776
3777         New module 'modf-ieee'.
3778         * modules/modf-ieee: New file.
3779
3780         Tests for module 'modff-ieee'.
3781         * modules/modff-ieee-tests: New file.
3782         * tests/test-modff-ieee.c: New file.
3783         * tests/test-modf-ieee.h: New file.
3784
3785         New module 'modff-ieee'.
3786         * modules/modff-ieee: New file.
3787
3788 2012-02-26  Bruno Haible  <bruno@clisp.org>
3789
3790         Tests for module 'fabsl-ieee'.
3791         * modules/fabsl-ieee-tests: New file.
3792         * tests/test-fabsl-ieee.c: New file.
3793
3794         New module 'fabsl-ieee'.
3795         * modules/fabsl-ieee: New file.
3796
3797         Tests for module 'fabs-ieee'.
3798         * modules/fabs-ieee-tests: New file.
3799         * tests/test-fabs-ieee.c: New file.
3800
3801         New module 'fabs-ieee'.
3802         * modules/fabs-ieee: New file.
3803
3804         Tests for module 'fabsf-ieee'.
3805         * modules/fabsf-ieee-tests: New file.
3806         * tests/test-fabsf-ieee.c: New file.
3807         * tests/test-fabs-ieee.h: New file.
3808
3809         New module 'fabsf-ieee'.
3810         * modules/fabsf-ieee: New file.
3811
3812 2012-02-26  Bruno Haible  <bruno@clisp.org>
3813
3814         Tests for module 'fmal-ieee'.
3815         * modules/fmal-ieee-tests: New file.
3816         * tests/test-fmal-ieee.c: New file.
3817
3818         New module 'fmal-ieee'.
3819         * modules/fmal-ieee: New file.
3820
3821         Tests for module 'fma-ieee'.
3822         * modules/fma-ieee-tests: New file.
3823         * tests/test-fma-ieee.c: New file.
3824
3825         New module 'fma-ieee'.
3826         * modules/fma-ieee: New file.
3827
3828         Tests for module 'fmaf-ieee'.
3829         * modules/fmaf-ieee-tests: New file.
3830         * tests/test-fmaf-ieee.c: New file.
3831         * tests/test-fma-ieee.h: New file.
3832
3833         New module 'fmaf-ieee'.
3834         * modules/fmaf-ieee: New file.
3835
3836 2012-02-26  Bruno Haible  <bruno@clisp.org>
3837
3838         Tests for module 'ldexpl-ieee'.
3839         * modules/ldexpl-ieee-tests: New file.
3840         * tests/test-ldexpl-ieee.c: New file.
3841
3842         New module 'ldexpl-ieee'.
3843         * modules/ldexpl-ieee: New file.
3844
3845         Tests for module 'ldexp-ieee'.
3846         * modules/ldexp-ieee-tests: New file.
3847         * tests/test-ldexp-ieee.c: New file.
3848
3849         New module 'ldexp-ieee'.
3850         * modules/ldexp-ieee: New file.
3851
3852         Tests for module 'ldexpf-ieee'.
3853         * modules/ldexpf-ieee-tests: New file.
3854         * tests/test-ldexpf-ieee.c: New file.
3855         * tests/test-ldexp-ieee.h: New file.
3856
3857         New module 'ldexpf-ieee'.
3858         * modules/ldexpf-ieee: New file.
3859
3860 2012-02-26  Bruno Haible  <bruno@clisp.org>
3861
3862         Refactor frexp*-ieee tests.
3863         * tests/test-frexp-ieee.h: New file.
3864         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3865         (main): Just call test_function.
3866         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3867         (main): Just call test_function.
3868         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3869         (main): Just call test_function.
3870         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3871         * modules/frexp-ieee-tests (Files): Likewise.
3872         * modules/frexpl-ieee-tests (Files): Likewise.
3873
3874         Tests for module 'frexpl-ieee'.
3875         * modules/frexpl-ieee-tests: New file.
3876         * tests/test-frexpl-ieee.c: New file.
3877
3878         New module 'frexpl-ieee'.
3879         * modules/frexpl-ieee: New file.
3880
3881         Tests for module 'frexp-ieee'.
3882         * modules/frexp-ieee-tests: New file.
3883         * tests/test-frexp-ieee.c: New file.
3884
3885         New module 'frexp-ieee'.
3886         * modules/frexp-ieee: New file.
3887
3888         Tests for module 'frexpf-ieee'.
3889         * modules/frexpf-ieee-tests: New file.
3890         * tests/test-frexpf-ieee.c: New file.
3891
3892         New module 'frexpf-ieee'.
3893         * modules/frexpf-ieee: New file.
3894
3895 2012-02-26  Bruno Haible  <bruno@clisp.org>
3896
3897         roundl-ieee tests: More tests.
3898         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3899         (main): Add tests for [MX] shaded specification in POSIX.
3900         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3901         (Depends-on): Add isnanl-nolibm.
3902
3903         round-ieee tests: More tests.
3904         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3905         (main): Add tests for [MX] shaded specification in POSIX.
3906         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3907         (Depends-on): Add isnand-nolibm.
3908
3909         roundf-ieee tests: More tests.
3910         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3911         (main): Add tests for [MX] shaded specification in POSIX.
3912         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3913         (Depends-on): Add isnanf-nolibm.
3914
3915         truncl-ieee tests: More tests.
3916         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3917         (main): Add tests for [MX] shaded specification in POSIX.
3918         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3919         (Depends-on): Add isnanl-nolibm.
3920
3921         trunc-ieee tests: More tests.
3922         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3923         (main): Add tests for [MX] shaded specification in POSIX.
3924         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3925         (Depends-on): Add isnand-nolibm.
3926
3927         truncf-ieee tests: More tests.
3928         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3929         (main): Add tests for [MX] shaded specification in POSIX.
3930         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3931         (Depends-on): Add isnanf-nolibm.
3932
3933         ceill-ieee tests: More tests.
3934         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3935         (main): Add tests for [MX] shaded specification in POSIX.
3936         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3937         (Depends-on): Add isnanl-nolibm.
3938
3939         ceil-ieee tests: More tests.
3940         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3941         (main): Add tests for [MX] shaded specification in POSIX.
3942         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3943         (Depends-on): Add isnand-nolibm.
3944
3945         ceilf-ieee tests: More tests.
3946         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3947         (main): Add tests for [MX] shaded specification in POSIX.
3948         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3949         (Depends-on): Add isnanf-nolibm.
3950
3951         floorl-ieee tests: More tests.
3952         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3953         (main): Add tests for [MX] shaded specification in POSIX.
3954         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3955         (Depends-on): Add isnanl-nolibm.
3956
3957         floor-ieee tests: More tests.
3958         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3959         (main): Add tests for [MX] shaded specification in POSIX.
3960         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3961         (Depends-on): Add isnand-nolibm.
3962
3963         floorf-ieee tests: More tests.
3964         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3965         (main): Add tests for [MX] shaded specification in POSIX.
3966         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3967         (Depends-on): Add isnanf-nolibm.
3968
3969 2012-02-26  Bruno Haible  <bruno@clisp.org>
3970
3971         fpieee: More comments.
3972         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3973
3974 2012-02-25  Bruno Haible  <bruno@clisp.org>
3975
3976         Tests for module 'log10l'.
3977         * modules/log10l-tests: New file.
3978         * tests/test-log10l.c: New file.
3979         * tests/test-math-c++.cc: Check the declaration of log10l.
3980
3981         New module 'log10l'.
3982         * lib/math.in.h (log10l): New declaration.
3983         * lib/log10l.c: New file.
3984         * m4/log10l.m4: New file.
3985         * modules/log10l: New file.
3986         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3987         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3988         HAVE_DECL_LOG10L.
3989         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3990         HAVE_DECL_LOG10L.
3991         * doc/posix-functions/log10l.texi: Mention the new module.
3992
3993 2012-02-25  Bruno Haible  <bruno@clisp.org>
3994
3995         fmodl, remainder*: Avoid wrong results due to rounding errors.
3996         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3997         expected bounds.
3998         * lib/remainderf.c (remainderf): Likewise.
3999         * lib/remainder.c (remainder): Likewise.
4000         * lib/remainderl.c (remainderl): Likewise.
4001
4002 2012-02-25  Bruno Haible  <bruno@clisp.org>
4003
4004         Tests for module 'remainderl'.
4005         * modules/remainderl-tests: New file.
4006         * tests/test-remainderl.c: New file.
4007         * tests/test-math-c++.cc: Check the declaration of remainderl.
4008
4009         New module 'remainderl'.
4010         * lib/math.in.h (remainderl): New declaration.
4011         * lib/remainderl.c: New file.
4012         * m4/remainderl.m4: New file.
4013         * modules/remainderl: New file.
4014         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
4015         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
4016         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
4017         HAVE_REMAINDERL.
4018         * doc/posix-functions/remainderl.texi: Mention the new module.
4019
4020 2012-02-25  Bruno Haible  <bruno@clisp.org>
4021
4022         Tests for module 'remainderf'.
4023         * modules/remainderf-tests: New file.
4024         * tests/test-remainderf.c: New file.
4025         * tests/test-math-c++.cc: Check the declaration of remainderf.
4026
4027         New module 'remainderf'.
4028         * lib/math.in.h (remainderf): New declaration.
4029         * lib/remainderf.c: New file.
4030         * m4/remainderf.m4: New file.
4031         * modules/remainderf: New file.
4032         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
4033         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
4034         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
4035         HAVE_REMAINDERF.
4036         * doc/posix-functions/remainderf.texi: Mention the new module.
4037
4038 2012-02-25  Bruno Haible  <bruno@clisp.org>
4039
4040         remainder: Support for MSVC.
4041         * lib/math.in.h (remainder): New declaration.
4042         * lib/remainder.c: New file.
4043         * m4/remainder.m4: New file.
4044         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
4045         (Depends-on): Add math, round, fma.
4046         (configure.ac): Use results of gl_FUNC_REMAINDER.
4047         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
4048         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
4049         HAVE_DECL_REMAINDER.
4050         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
4051         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
4052         * tests/test-math-c++.cc: Check the declaration of remainder.
4053         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
4054         problems are fixed.
4055
4056 2012-02-25  Bruno Haible  <bruno@clisp.org>
4057
4058         Tests for module 'fmodl'.
4059         * modules/fmodl-tests: New file.
4060         * tests/test-fmodl.c: New file.
4061         * tests/test-math-c++.cc: Check the declaration of fmodl.
4062
4063         New module 'fmodl'.
4064         * lib/math.in.h (fmodl): New declaration.
4065         * lib/fmodl.c: New file.
4066         * m4/fmodl.m4: New file.
4067         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
4068         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
4069         REPLACE_FMODL.
4070         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
4071         REPLACE_FMODL.
4072         * modules/fmodl: New file.
4073         * doc/posix-functions/fmodl.texi: Mention the new module.
4074
4075 2012-02-25  Bruno Haible  <bruno@clisp.org>
4076
4077         Tests for module 'modfl'.
4078         * modules/modfl-tests: New file.
4079         * tests/test-modfl.c: New file.
4080         * tests/test-math-c++.cc: Check the declaration of modfl.
4081
4082         New module 'modfl'.
4083         * lib/math.in.h (modfl): New declaration.
4084         * lib/modfl.c: New file.
4085         * m4/modfl.m4: New file.
4086         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
4087         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
4088         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
4089         * modules/modfl: New file.
4090         * doc/posix-functions/modfl.texi: Mention the new module.
4091
4092 2012-02-25  Bruno Haible  <bruno@clisp.org>
4093
4094         Tests for module 'fabsl'.
4095         * modules/fabsl-tests: New file.
4096         * tests/test-fabsl.c: New file.
4097         * tests/test-math-c++.cc: Check the declaration of fabsl.
4098
4099         New module 'fabsl'.
4100         * lib/math.in.h (fabsl): New declaration.
4101         * lib/fabsl.c: New file.
4102         * m4/fabsl.m4: New file.
4103         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
4104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
4105         REPLACE_FABSL.
4106         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
4107         REPLACE_FABSL.
4108         * modules/fabsl: New file.
4109         * doc/posix-functions/fabsl.texi: Mention the new module.
4110
4111 2012-02-25  Bruno Haible  <bruno@clisp.org>
4112
4113         fabs tests: More tests.
4114         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
4115         (zero): New variable.
4116         (main): Add tests for signed zero.
4117         * modules/fabs-tests (Files): Add tests/minus-zero.h.
4118
4119         fabsf tests: More tests.
4120         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
4121         (zero): New variable.
4122         (main): Add tests for signed zero.
4123         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
4124
4125 2012-02-24  Bruno Haible  <bruno@clisp.org>
4126
4127         atanl: Provide function definition on MSVC.
4128         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
4129         function pointer.
4130         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
4131
4132 2012-02-24  Bruno Haible  <bruno@clisp.org>
4133
4134         acosl: Provide function definition on MSVC.
4135         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
4136         function pointer.
4137         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
4138
4139 2012-02-24  Bruno Haible  <bruno@clisp.org>
4140
4141         asinl: Provide function definition on MSVC.
4142         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
4143         function pointer.
4144         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
4145
4146 2012-02-24  Bruno Haible  <bruno@clisp.org>
4147
4148         tanl: Provide function definition on MSVC.
4149         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
4150         function pointer.
4151         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
4152
4153 2012-02-24  Bruno Haible  <bruno@clisp.org>
4154
4155         cosl: Provide function definition on MSVC.
4156         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
4157         function pointer.
4158         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
4159
4160 2012-02-24  Bruno Haible  <bruno@clisp.org>
4161
4162         sinl: Provide function definition on MSVC.
4163         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
4164         function pointer.
4165         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
4166
4167 2012-02-24  Bruno Haible  <bruno@clisp.org>
4168
4169         logl: Provide function definition on MSVC.
4170         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
4171         function pointer.
4172         * lib/math.in.h (logl): Undefine if it does not exist as a function.
4173
4174 2012-02-24  Bruno Haible  <bruno@clisp.org>
4175
4176         expl: Provide function definition on MSVC.
4177         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
4178         function pointer.
4179         * lib/math.in.h (expl): Undefine if it does not exist as a function.
4180
4181 2012-02-24  Bruno Haible  <bruno@clisp.org>
4182
4183         sqrtl: Provide function definition on MSVC.
4184         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
4185         a function pointer.
4186         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
4187
4188 2012-02-24  Bruno Haible  <bruno@clisp.org>
4189
4190         ceill: Provide function definition on MSVC.
4191         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
4192         used as a function pointer.
4193         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
4194
4195 2012-02-24  Bruno Haible  <bruno@clisp.org>
4196
4197         floorl: Provide function definition on MSVC.
4198         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
4199         used as a function pointer.
4200         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
4201
4202 2012-02-24  Bruno Haible  <bruno@clisp.org>
4203
4204         ceilf: Provide function definition on MSVC.
4205         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
4206         used as a function pointer.
4207         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
4208
4209 2012-02-24  Bruno Haible  <bruno@clisp.org>
4210
4211         floorf: Provide function definition on MSVC.
4212         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
4213         used as a function pointer.
4214         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
4215
4216 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4217
4218         stdnoreturn: new module
4219         This implements a replacement for C11's <stdnoreturn.h>.
4220         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
4221         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
4222         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4223         * tests/test-stdnoreturn.c: New files.
4224
4225 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
4226
4227         regex: fix false multibyte matches in some regular expressions
4228         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
4229         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
4230         * lib/regex_internal.c (re_string_skip_chars):
4231         Fix miscomputation of remain_len that may cause incomplete
4232         multi-byte character and false match.
4233
4234 2012-02-24  Jim Meyering  <meyering@redhat.com>
4235
4236         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
4237         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
4238         uses with "==" *before* the call, e.g., 0 == strcmp (...)
4239         Remove now-unnecessary str''cmp obfuscation.
4240         Suggested by Akim Demaille.
4241
4242 2012-02-24  Bruno Haible  <bruno@clisp.org>
4243
4244         streq: Rename macro.
4245         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
4246         * NEWS: Mention the change.
4247         * lib/mbrtowc.c (mbrtowc): Update.
4248         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
4249         * lib/wcwidth.c (wcwidth): Update.
4250         Suggested by Akim Demaille and Jim Meyering.
4251
4252 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4253
4254         regex: fix typo in definition of MIN
4255         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
4256         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
4257
4258 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4259             Bruno Haible  <bruno@clisp.org>
4260
4261         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
4262         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
4263         entries into a stack-allocated buffer directly.
4264         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
4265
4266 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4267             Bruno Haible  <bruno@clisp.org>
4268
4269         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
4270
4271          - There were several instances of this pattern:
4272
4273              for (;;) {
4274                n = acl (f, GETACLCNT, 0, NULL);
4275                [ allocate an array A of size N ]
4276                if (acl (f, GETACL, n, a) == n)
4277                  break;
4278              }
4279
4280            This loop might never terminate if some other process is constantly
4281            manipulating the file's ACL.  The loop should be rewritten to
4282            terminate.
4283
4284          - The acl (... GETACLNT ...) call is merely an optimization; its value
4285            is merely a hint as to how big to make the array.  A better
4286            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
4287            and just guess a reasonably-big size, growing the size and trying
4288            again if it's not large enough.  This guarantees termination, and
4289            saves a system call.
4290
4291         * lib/acl-internal.h: Include <limits.h>.
4292         (MIN, SIZE_MAX): New macros.
4293         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
4294         a stack-allocated buffer, and use malloc if it does not fit. Don't
4295         use GETACLCNT.
4296         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4297
4298 2012-02-19  Bruno Haible  <bruno@clisp.org>
4299
4300         acl: Fix endless loop on Solaris with vxfs.
4301         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
4302         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
4303         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4304         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
4305         * tests/test-sameacls.c (main)[Solaris]: Likewise.
4306         Reported by Bill Jones in
4307         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
4308
4309 2012-02-19  Bruno Haible  <bruno@clisp.org>
4310
4311         acl: Fix copy-acl test failure on Solaris 11 2011-11.
4312         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
4313         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
4314         that this function returns 0 in some more cases.
4315
4316 2012-02-19  Bruno Haible  <bruno@clisp.org>
4317
4318         acl: Update doc references.
4319         * doc/acl-resources.txt: Update links to Solaris documentation.
4320
4321 2012-02-19  Bruno Haible  <bruno@clisp.org>
4322
4323         Fix test failure in many locales on Solaris 11.
4324         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
4325         'tr' arguments.
4326         * tests/test-pipe-filter-ii1.c (main): Likewise.
4327         * build-aux/bootstrap (check_versions): Run 'tr' command with range
4328         expressions in the C locale.
4329         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4330         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4331
4332 2012-02-19  Bruno Haible  <bruno@clisp.org>
4333
4334         gnulib-tool: Improve usage message.
4335         * gnulib-tool (func_usage): Move doc of --help and --version to the
4336         section "Operation modes".
4337
4338 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
4339
4340         README-release: make it easier to execute commands
4341         * top/README-release: break commands out on to separate lines.
4342
4343 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
4344
4345         GNUmakefile: simplify detection of unconfigured trees
4346         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
4347         whether the tree make is being run from is already configured or
4348         not.  Related simplifications.
4349
4350 2012-02-13  Simon Josefsson  <simon@josefsson.org>
4351
4352         * gnulib-tool (func_usage): Document --help and --version.
4353
4354 2012-02-11  Jim Meyering  <meyering@redhat.com>
4355
4356         bootstrap: don't exit 0 upon gnulib-tool failure
4357         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
4358         its exit status, not 0.
4359
4360 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
4361
4362         README-release: various improvements
4363         * top/README-release: Give a command to push changes for the
4364         release.  Add "distcheck" to list of other pre-release checks.
4365         Fix instance of "make stable" which should be "make TYPE".
4366
4367 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4368
4369         maint: replace FSF snail-mail addresses with URLs
4370         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
4371         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
4372         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
4373         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
4374         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
4375         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
4376         * lib/check-version.c, lib/check-version.h, lib/config.charset:
4377         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
4378         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
4379         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
4380         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
4381         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
4382         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
4383         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
4384         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
4385         * lib/glthread/thread.c, lib/glthread/thread.h:
4386         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
4387         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
4388         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
4389         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
4390         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
4391         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
4392         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
4393         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
4394         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
4395         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
4396         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
4397         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
4398         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
4399         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
4400         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
4401         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
4402         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
4403         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
4404         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
4405         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
4406         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
4407         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
4408         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
4409         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
4410         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
4411         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
4412         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
4413         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
4414         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
4415         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
4416         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
4417         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
4418         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
4419         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
4420         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
4421         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
4422         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
4423         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
4424         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
4425         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
4426         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
4427         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
4428         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
4429         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
4430         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
4431         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
4432         * tests/test-poll.c, tests/test-quotearg-simple.c:
4433         * tests/test-quotearg.c, tests/test-quotearg.h:
4434         * tests/test-round-ieee.c, tests/test-round1.c:
4435         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
4436         * tests/test-roundl-ieee.c, tests/test-roundl.c:
4437         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
4438         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
4439         * tests/test-strerror.c, tests/test-strerror_r.c:
4440         * tests/test-strsignal.c, tests/test-strverscmp.c:
4441         * tests/test-xmemdup0.c:
4442         Replace FSF snail mail addresses with URLs, as per GNU coding
4443         standards.  See glibc bug
4444         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
4445
4446 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4447
4448         README-release: capitalize a word and split a line
4449         * top/README-release: Fix punctuation and spacing.
4450
4451 2012-02-08  Akim Demaille  <demaille@gostai.com>
4452
4453         fatal-signal: use C prototypes (with explicit void).
4454         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4455         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
4456
4457 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4458
4459         regex: spelling fix
4460         * lib/regexec.c: spelling fix
4461
4462         regex: rely on stdint.h for SIZE_MAX
4463         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
4464
4465 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4466
4467         regex: merge glibc changes
4468
4469         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
4470         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
4471         (init_word_char): Work even if bitset words are not exactly 32 or
4472         64 bits wide.  Don't assume there are no padding bits.
4473         * lib/regex.c [_LIBC]: Do not include <config.h>.
4474         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
4475         and -Wtype-limits.
4476         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
4477         needless disagreement with glibc.  All uses changed.  Define it to
4478         1 only if _GNU_SOURCE, to match glibc.
4479         (_REG_RM_NAME): Remove; no longer needed, since the names in
4480         question are now all protected by __USE_GNU.
4481         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
4482         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
4483         * lib/regex_internal.h (MIN): New macro.
4484
4485         2012-01-03 Ulrich Drepper <drepper@gmail.com>
4486         * lib/regcomp.c (init_word_char): Optimize regex a bit.
4487
4488         2011-12-30 Jakub Jelinek <jakub@redhat.com>
4489         * lib/regex_internal.c (re_string_fetch_byte_case):
4490         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
4491         is miscompiled, and it turns out it is because of an incorrect
4492         attribute on re_string_fetch_byte_case.  Unlike
4493         re_string_peek_byte_case, this one is really not pure, it modifies
4494         memory (increments pstr->cur_idx), and with the pure attribute GCC
4495         assumed it doesn't and it cached the presumed value of
4496         regexp->cur_idx in a variable across the
4497          for (;; ++i)
4498            {
4499              if (i >= BRACKET_NAME_BUF_SIZE)
4500                return REG_EBRACK;
4501              if (token->type == OP_OPEN_CHAR_CLASS)
4502                ch = re_string_fetch_byte_case (regexp);
4503              else
4504                ch = re_string_fetch_byte (regexp);
4505              if (re_string_eoi(regexp))
4506                return REG_EBRACK;
4507              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
4508                break;
4509              elem->opr.name[i] = ch;
4510            }
4511
4512         2011-11-29 Andreas Schwab <schwab@redhat.com>
4513         * lib/regcomp.c (build_equiv_class):
4514         Fix access after end of search string in regex matcher.
4515
4516         2011-11-12 Ulrich Drepper <drepper@redhat.com>
4517         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
4518
4519         2011-10-12 Ulrich Drepper <drepper@redhat.com>
4520         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
4521
4522         2011-10-11 Ulrich Drepper <drepper@redhat.com>
4523         * lib/regcomp.c (parse_branch, parse_sub_exp):
4524         More regex memory leak fixes and tests.
4525         (parse_sub_exp, parse_bracket_exp):
4526         Fix memory leak for some invalid regular expressions.
4527
4528         2011-05-28 Ulrich Drepper <drepper@gmail.com>
4529         * lib/regex_internal.c, lib/regexec.c:
4530         Fix unnecessary overallocation due to incomplete character.  When
4531         incomplete characters are found at the end of a string the code
4532         ran amok and allocated lots of memory.  Stricter limits are now in
4533         place.
4534
4535         2011-05-20 Reuben Thomas <rrt@sc3d.org>
4536         * lib/regex.h: Update documentation.
4537
4538         2011-05-16 Aharon Robbins <arnold@skeeve.com>
4539         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
4540
4541         2010-05-05 Andreas Schwab <schwab@redhat.com>
4542         * lib/regexec.c (find_collation_sequence_value):
4543         Fix lookup of collation sequence value during regexp matching.
4544
4545         2010-01-22 Ulrich Drepper <drepper@redhat.com>
4546         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
4547
4548         2008-01-16 Ulrich Drepper <drepper@redhat.com>
4549         * lib/regex.h: Cleanup namespace.
4550
4551         2007-11-26 Ulrich Drepper <drepper@redhat.com>
4552         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
4553
4554         2007-08-26 Ulrich Drepper <drepper@redhat.com>
4555         * lib/regex_internal.h: Prevent some declarations and definitions
4556         to be seen when used in tests.
4557
4558         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4559         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4560         __libc_lock_* macros if not _LIBC.
4561         (struct re_dfa_t): Add lock.
4562
4563 2012-02-07  Eric Blake  <eblake@redhat.com>
4564
4565         maint.mk: also prohibit lower-case @var@
4566         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4567         lower case, like @top_srcdir@.
4568
4569 2012-02-04  Eric Blake  <eblake@redhat.com>
4570
4571         canonicalize: avoid uninitialized memory use
4572         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4573         random '/' left in dest.
4574         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4575
4576 2012-02-04  Bruno Haible  <bruno@clisp.org>
4577
4578         isatty: Fix test failure of ptsname_r on native Windows.
4579         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4580         and don't set errno.
4581         (isatty): Test first whether fd is valid. Set errno when returning 0.
4582
4583 2012-02-04  Bruno Haible  <bruno@clisp.org>
4584
4585         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4586         * tests/test-spawn-pipe-main.c: Include progname.h.
4587         (main): Invoke set_program_name.
4588         * modules/spawn-pipe-tests (Depends-on): Add progname.
4589
4590         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4591         * tests/test-nonblocking-socket-main.c: Include progname.h.
4592         (main): Invoke set_program_name.
4593         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4594
4595         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4596         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4597         (main): Invoke set_program_name.
4598         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4599
4600 2012-02-04  Eric Blake  <eblake@redhat.com>
4601
4602         canonicalize-lgpl: fix // handling
4603         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4604
4605         canonicalize: fix // handling
4606         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4607         /// to //, since only // is special.
4608
4609 2012-02-04  Bruno Haible  <bruno@clisp.org>
4610
4611         ioctl: Fix test failure on native Windows.
4612         * lib/ioctl.c: Include msvc-nothrow.h.
4613         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4614
4615 2012-02-04  Bruno Haible  <bruno@clisp.org>
4616
4617         fsync: Avoid test failure on native Windows.
4618         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4619         read-only.
4620
4621 2012-02-04  Bruno Haible  <bruno@clisp.org>
4622
4623         sys_select: Avoid syntax error on OpenBSD 5.0.
4624         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4625         currently being included, just include the system's <sys/select.h>.
4626
4627 2012-02-04  Bruno Haible  <bruno@clisp.org>
4628
4629         sys_select: Avoid syntax error on OpenBSD 5.0.
4630         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4631         <sys/select.h>, not before.
4632         Reported by Jiri B <jirib@devio.us>.
4633
4634 2012-02-04  Bruno Haible  <bruno@clisp.org>
4635
4636         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4637         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4638         global variables.
4639         * tests/test-get-rusage-data.c (main): Likewise.
4640         Reported by Jim Meyering.
4641
4642 2012-02-04  Bruno Haible  <bruno@clisp.org>
4643
4644         stdioext: Fix last commit.
4645         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4646
4647 2012-02-03  Bruno Haible  <bruno@clisp.org>
4648
4649         stdioext: Add tentative support for Plan9.
4650         * lib/stdio-impl.h: Include <errno.h>.
4651         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4652         * lib/freadable.c (freadable): Likewise.
4653         * lib/fwritable.c (fwritable): Likewise.
4654         * lib/fbufmode.c (fbufmode): Likewise.
4655         * lib/freading.c (freading): Likewise.
4656         * lib/fwriting.c (fwriting): Likewise.
4657         * lib/freadptr.c (freadptr): Likewise.
4658         * lib/freadseek.c (freadptrinc): Likewise.
4659         * lib/freadahead.c (freadahead): Likewise.
4660         * lib/fpurge.c (fpurge): Likewise.
4661         * lib/fseeko.c (rpl_fseeko): Likewise.
4662         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4663         Reported by Jens Staal <staal1978@gmail.com>.
4664
4665 2012-02-02  Jim Meyering  <meyering@redhat.com>
4666
4667         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4668         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4669         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4670         not even to try to add the attribute.  Instead, add a pragma to suppress
4671         the suggestion/warning.
4672
4673 2012-01-31  Karl Berry  <karl@gnu.org>
4674
4675         setstate doc: typo.
4676         * doc/posix-functions/setstate.texi (setstate): { not (.
4677
4678 2012-01-31  Bruno Haible  <bruno@clisp.org>
4679
4680         popen: Make more robust on Windows.
4681         * lib/popen.c: On native Windows, use the _popen based code even if
4682         HAVE_POPEN is set.
4683         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4684         environment variable on native Windows.
4685
4686 2012-01-30  Bruno Haible  <bruno@clisp.org>
4687
4688         pclose: Fix typo.
4689         * lib/stdio.in.h (pclose): Fix typo in warning message.
4690
4691 2012-01-30  Bruno Haible  <bruno@clisp.org>
4692
4693         doc about getlogin_r, setstate.
4694         * doc/posix-functions/getlogin_r.texi: List the incompatible
4695         declaration problem under "not fixed by gnulib".
4696         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4697         problem on Solaris 11 and other platforms.
4698
4699 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4700             Bruno Haible  <bruno@clisp.org>
4701
4702         poll tests: Make test more robust.
4703         * tests/test-poll.c: Include macros.h.
4704         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4705         return value of various I/O operations.
4706         * modules/poll-tests (Files): Add tests/macros.h.
4707
4708 2012-01-30  Bruno Haible  <bruno@clisp.org>
4709
4710         sys_stat: Fix support for mingw64 and MSVC.
4711         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4712         header files already do it.
4713         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4714         stat itself.
4715         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4716
4717 2012-01-30  Bruno Haible  <bruno@clisp.org>
4718
4719         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4720         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4721         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4722
4723 2012-01-29  Bruno Haible  <bruno@clisp.org>
4724
4725         quotearg: Fix test failure on MacOS X 10.5.
4726         * tests/test-quotearg-simple.c: Include localcharset.h.
4727         (main): If the locale encoding is not ASCII, bypass the tests of
4728         locale_quoting_style and clocale_quoting_style.
4729         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4730
4731 2012-01-29  Jim Meyering  <meyering@redhat.com>
4732
4733         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4734         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4735         detect uses of canonicalize_file_name.
4736
4737 2012-01-28  Bruno Haible  <bruno@clisp.org>
4738
4739         test-framework-sh: Fix test failure with AIX 7.1 diff.
4740         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4741         in column 1, like 'diff -c' does.
4742         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4743         whether 'diff -u' is used. Instead, test whether the output contains
4744         some '@' character.
4745
4746 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4747
4748         strtoimax: eliminate need for stdint.h, inttypes.h checks
4749         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4750         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4751         the prerequisites for a recently-introduced strtoimax test.
4752         I guess this might cause strtoimax to be replaced when not
4753         strictly necessary on older hosts, but this shouldn't introduce
4754         any bugs and it should make Emacs 'configure' faster on typical
4755         modern hosts.  Problem discovered when importing the latest gnulib
4756         to an Emacs test version.
4757         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4758
4759 2012-01-28  Bruno Haible  <bruno@clisp.org>
4760
4761         sys_time: Override 'struct timeval' on some native Windows platforms.
4762         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4763         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4764         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4765         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4766         needs to be overridden.
4767         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4768         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4769         * tests/test-sys_select.c: Check that the tv_sec member has the same
4770         size as a 'time_t'.
4771         * tests/test-sys_time.c: Likewise.
4772         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4773         is set, set also REPLACE_GETTIMEOFDAY.
4774         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4775         convert the resulting 'struct timeval' before returning.
4776         * lib/select.c: Include <sys/time.h>.
4777         (select, timeval): Undefine at the right place.
4778         * modules/select (Depends-on): Add sys_time.
4779         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4780         some Windows platforms.
4781         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4782
4783 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4784
4785         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4786         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4787         an integer.
4788         * lib/fcntl.c (dupfd): Likewise.
4789         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4790
4791 2012-01-28  Bruno Haible  <bruno@clisp.org>
4792
4793         fcntl: Avoid compilation error on native Windows.
4794         * modules/fcntl (Depends-on): Add 'close'.
4795
4796 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4797
4798         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4799         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4800         pointer to an integer.
4801         * lib/poll.c (IsConsoleHandle): Likewise.
4802         * lib/isatty.c (IsConsoleHandle): Likewise.
4803
4804 2012-01-28  Jim Meyering  <meyering@redhat.com>
4805
4806         doc: clarify README-release
4807         * top/README-release: Clarify: you should make a point to have
4808         the latest stable versions of build tools in your PATH, and the
4809         reference to buildreq is solely for its list of tool names, not
4810         for its minimal-functional version numbers.
4811         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4812
4813         maint.mk: use more readable (yet functionally equivalent) quoting
4814         It is common to quote a single quote in a single quoted string like
4815         this:  '...'\''...'.  Unless you know the idiom, that looks like
4816         gibberish, so prefer to double-quote the string when possible.
4817         Then you can use a more readable, lone single quote: "...'..."
4818         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4819         "don't" is more readable than the equivalent 'don'\''t'.
4820         (sc_cast_of_x_alloc_return_value): Likewise.
4821         (sc_cast_of_alloca_return_value): Likewise.
4822         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4823         rather than '\'':'\''.
4824
4825 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4826
4827         stdalign: relax _Alignof and tighten _Alignas test
4828         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4829         as it was too strict: alignof must divide offsetof, but it need
4830         not equal offsetof.  Inspired by Joseph S. Myers's comment
4831         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4832         Conversely, tighten the _Alignas test a bit, as the resulting
4833         alignment must be exactly 8.
4834
4835 2012-01-27  Bruno Haible  <bruno@clisp.org>
4836
4837         stdalign: Document the last change.
4838         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4839
4840 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4841
4842         stdalign: check that alignof and offsetof are consistent
4843         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4844         Problem reported for gnulib by Richard W.M. Jones in
4845         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4846
4847 2012-01-27  Jim Meyering  <meyering@redhat.com>
4848
4849         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4850         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4851         convert a sequence with gaps to the minimal containing range.
4852         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4853         * tests/test-update-copyright.sh: Test for this.
4854         The FSF confirmed it is ok to do this, assuming there is at
4855         least one significant change per year in the affected range:
4856         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4857
4858 2012-01-26  Bruno Haible  <bruno@clisp.org>
4859
4860         pipe2: refine doc about thread-safety
4861         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4862         multithread-safety problem.
4863         * doc/glibc-functions/accept4.texi: Likewise.
4864
4865 2012-01-26  Bruno Haible  <bruno@clisp.org>
4866
4867         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4868         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4869         In the test program, include <fcntl.h>, for O_RDONLY.
4870
4871 2012-01-26  Eric Blake  <eblake@redhat.com>
4872
4873         pipe2: document lack of thread-safety in replacement
4874         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4875         issue in replacement.
4876         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4877         Based on a report by Eric Wong.
4878
4879 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4880             Bruno Haible  <bruno@clisp.org>
4881
4882         malloca: Avoid warnings on x86_64 mingw64.
4883         * lib/malloca.c: Include <stdint.h>.
4884         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4885         * modules/malloca (Depends-on): Add stdint.
4886         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4887
4888 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4889
4890         obstack: remove __STDC__ conditionals
4891         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4892         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4893         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4894         m4/include_next.m4 as the only gnulib-maintained places that still
4895         refer to __STDC__.
4896
4897 2012-01-24  Bruno Haible  <bruno@clisp.org>
4898
4899         havelib: Modern quoting.
4900         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4901         the recent change to the GNU coding standards.
4902
4903 2012-01-24  Bruno Haible  <bruno@clisp.org>
4904
4905         stdint: Improve support for Android.
4906         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4907         Reported by Simon Josefsson <simon@josefsson.org>.
4908
4909 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4910
4911         doc: omit trailing empty lines from INSTALL etc.
4912         * doc/Makefile (INSTALL): Omit trailing empty lines.
4913         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4914         omit trailing empty lines.  This simplifies the build procedure.
4915
4916 2012-01-23  Jim Meyering  <meyering@redhat.com>
4917
4918         tests: avoid spurious warnings about gl_sockets_startup
4919         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4920         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4921         reporting a "statement with no effect".
4922         * tests/test-accept.c (main): Mark as "(void)".
4923         * tests/test-accept4.c (main): Likewise.
4924         * tests/test-bind.c (main): Likewise.
4925         * tests/test-connect.c (main): Likewise.
4926         * tests/test-getpeername.c (main): Likewise.
4927         * tests/test-getsockname.c (main): Likewise.
4928         * tests/test-getsockopt.c (main): Likewise.
4929         * tests/test-listen.c (main): Likewise.
4930         * tests/test-recv.c (main): Likewise.
4931         * tests/test-recvfrom.c (main): Likewise.
4932         * tests/test-send.c (main): Likewise.
4933         * tests/test-sendto.c (main): Likewise.
4934         * tests/test-setsockopt.c (main): Likewise.
4935         * tests/test-shutdown.c (main): Likewise.
4936
4937 2012-01-21  Bruno Haible  <bruno@clisp.org>
4938
4939         locale-fr.m4: Fix for Android.
4940         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4941         failure of the test program on Bionic libc.
4942
4943 2012-01-21  Jim Meyering  <meyering@redhat.com>
4944
4945         bootstrap: fail when bootstrap_post_import_hook fails
4946         Otherwise, it's far too easy to miss diagnostics emitted
4947         between gnulib-tool's output and that of running configure.
4948         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4949
4950 2012-01-17  Jim Meyering  <meyering@redhat.com>
4951
4952         maint: enable sc_trailing_blank
4953         * build-aux/pmccabe.css: Remove trailing blanks.
4954         * doc/acl-cygwin.txt: Likewise.
4955         * doc/gnu-oids.texi: Likewise
4956         * cfg.mk: Enable sc_trailing_blank.
4957         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4958
4959 2012-01-17  Jim Meyering  <meyering@redhat.com>
4960
4961         maint: enable sc_prohibit_openat_without_use
4962         * cfg.mk: Enable sc_prohibit_openat_without_use.
4963         Exempt lib/selinux-at.c.
4964
4965 2012-01-17  Jim Meyering  <meyering@redhat.com>
4966
4967         maint: enable sc_prohibit_cloexec_without_use
4968         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4969         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4970
4971 2012-01-17  Jim Meyering  <meyering@redhat.com>
4972
4973         maint: enable sc_prohibit_intprops_without_use
4974         * cfg.mk: Enable sc_prohibit_intprops_without_use
4975         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4976
4977 2012-01-17  Jim Meyering  <meyering@redhat.com>
4978
4979         maint: enable sc_prohibit_hash_pjw_without_use
4980         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4981         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4982         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4983         following " (".
4984
4985 2012-01-17  Jim Meyering  <meyering@redhat.com>
4986
4987         maint: enable double-word-prohibiting rule
4988         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4989         Exempt three files.
4990
4991 2012-01-17  Jim Meyering  <meyering@redhat.com>
4992
4993         maint: remove empty lines at EOF, but excluding modules/*
4994         Apply syntax rules at home as well as abroad.  Most changes
4995         were induced by running this:
4996           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4997             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4998             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4999         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
5000         Exempt modules/* and two binary files.
5001         Also exempt doc/INSTALL*, per request from Bruno Haible.
5002         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
5003         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
5004         * doc/Copyright/request-assign.future: Likewise.
5005         * doc/Copyright/request-disclaim.changes: Likewise.
5006         * doc/INSTALL: Likewise.
5007         * doc/INSTALL.ISO: Likewise.
5008         * doc/INSTALL.UTF-8: Likewise.
5009         * doc/acl-cygwin.txt: Likewise.
5010         * doc/acl-resources.txt: Likewise.
5011         * doc/fdl-1.2.texi: Likewise.
5012         * doc/fdl-1.3.texi: Likewise.
5013         * doc/fdl.texi: Likewise.
5014         * lib/argp-pin.c: Likewise.
5015         * lib/round.c: Likewise.
5016         * lib/unicase/u16-totitle.c: Likewise.
5017         * lib/unictype/block_test.c: Likewise.
5018         * lib/uninorm/canonical-decomposition.c: Likewise.
5019         * m4/README: Likewise.
5020         * m4/relocatable-lib.m4: Likewise.
5021         * tests/test-isnand-nolibm.c: Likewise.
5022         * tests/test-isnand.c: Likewise.
5023         * tests/uninorm/NormalizationTest.txt: Likewise.
5024
5025 2012-01-17  Jim Meyering  <meyering@redhat.com>
5026
5027         maint: add framework to run syntax-check rules against gnulib sources
5028         * cfg.mk: New file, to disable all currently-failing tests.
5029         We'll enable them one by one, as they are made to pass.
5030         * Makefile (sc_maint): New rule.
5031
5032 2012-01-21  Bruno Haible  <bruno@clisp.org>
5033
5034         stdint: Add support for Android.
5035         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
5036         include the system's <stdint.h>.
5037         Reported by Simon Josefsson <simon@josefsson.org>.
5038
5039 2012-01-19  Jim Meyering  <meyering@redhat.com>
5040
5041         bootstrap: add bootstrap_post_import_hook
5042         Bison does still need something like the gnulib_mk_hook whose
5043         invocation I had to remove along with slurp in commit 767ccd40.
5044         Technically, we could get along without it, but doing so would
5045         have required living with a warning and a mandatory post-bootstrap
5046         automake rerun.
5047         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
5048         (bootstrap_post_import_hook): New function.
5049         Invoke it after gnulib-tool --import and before autoreconf.
5050
5051 2012-01-18  Jim Meyering  <meyering@redhat.com>
5052
5053         gitlog-to-changelog: don't use "no_"-prefixed variable name
5054         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
5055         to enable both --cluster and --no-cluster.  Change variable name,
5056         s/\$no_cluster/$cluster/, and reverse usage to match.
5057
5058         gitlog-to-changelog: use "||", not "or" in expressions
5059         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
5060         expressions.
5061
5062 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
5063
5064         gitlog-to-changelog: new option --no-cluster
5065         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
5066         clustering of adjacent commit messages.
5067
5068 2012-01-17  Jim Meyering  <meyering@redhat.com>
5069
5070         maint: spell file systems with two words, not one
5071         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
5072         two words, not one.
5073
5074 2012-01-16  Jim Meyering  <meyering@redhat.com>
5075
5076         bootstrap: add a FIXME comment to ensure we eventually remove the hack
5077         * build-aux/bootstrap (gnulib_tool_options): Add comment.
5078
5079 2012-01-16  Eric Blake  <eblake@redhat.com>
5080
5081         bootstrap: cater to autoconf 2.59
5082         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
5083         is not available.
5084
5085         bootstrap: properly check for libtool
5086         * build-aux/bootstrap (libtoolize): Also run libtool when older
5087         usage is detected.
5088
5089 2012-01-15  Bruno Haible  <bruno@clisp.org>
5090
5091         Improve support for MSVC 9.
5092         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
5093         clashes on MSVC.
5094         * lib/fcntl.in.h: Likewise.
5095         * lib/stdlib.in.h: Likewise.
5096         * lib/sys_stat.in.h: Likewise.
5097
5098 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
5099
5100         gnupload: we hold the master copy of this script now
5101         For motivation and more information, see:
5102         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
5103         * build-aux/gnupload: Make it clear in the heading comments that the
5104         master copy of this file is maintained by gnulib.  Since we are at
5105         it, bump its copyright year and ...
5106         ($scriptversion): ... the date in its version.
5107         ($usage): Patches and bug reports should be sent to the gnulib list,
5108         not the automake one.
5109         * config/srclist.txt: Don't try to sync 'gnupload' from automake
5110         anymore.
5111
5112 2012-01-15  Bruno Haible  <bruno@clisp.org>
5113
5114         Fix module 'random'.
5115         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
5116         initstate, setstate are declared.
5117
5118 2012-01-14  Bruno Haible  <bruno@clisp.org>
5119
5120         Tests for module 'random'.
5121         * modules/random-tests: New file.
5122         * tests/test-random.c: New file, based on tests/test-random_r.c.
5123
5124         New module 'random'.
5125         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
5126         declarations.
5127         * lib/random.c: New file, based on glibc/stdlib/random.c.
5128         * m4/random.m4: New file.
5129         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
5130         HAVE_RANDOM.
5131         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
5132         * modules/random: New file.
5133         * config/srclist.txt: Add an entry for random.c.
5134         * doc/posix-functions/random.texi: Mention the 'random' module.
5135         * doc/posix-functions/initstate.texi: Likewise.
5136         * doc/posix-functions/setstate.texi: Likewise.
5137         * doc/posix-functions/srandom.texi: Likewise.
5138
5139 2012-01-12  Bruno Haible  <bruno@clisp.org>
5140
5141         random_r: Use common idioms.
5142         * lib/random_r.c: Include <stdlib.h> first.
5143
5144         random_r: Override incompatible API on AIX, OSF/1.
5145         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
5146         Override the system function if REPLACE_RANDOM_R is 1.
5147         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
5148         and OSF/1, set REPLACE_RANDOM_R.
5149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
5150         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
5151         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
5152         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
5153         * doc/glibc-functions/random_r.texi: Likewise.
5154         * doc/glibc-functions/setstate_r.texi: Likewise.
5155
5156         random_r: Support for MSVC 9.
5157         * lib/random_r.c: Include stdint.h, not inttypes.h.
5158
5159 2012-01-12  Eric Blake  <eblake@redhat.com>
5160
5161         inet_ntop: guard extra work by IF_LINT
5162         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
5163         better code generation when not checking for warnings.
5164         Suggested by Paul Eggert and Jim Meyering.
5165
5166         strptime: fix regression on mingw
5167         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
5168         Fix regression.  Reported by Bruno Haible.
5169
5170 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
5171             Bruno Haible  <bruno@clisp.org>
5172
5173         copy-file: add error-code-returning variant.
5174         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
5175         (qcopy_file_preserving): New declaration.
5176         * lib/copy-file.c (qcopy_file_preserving): Renamed from
5177         copy_file_preserving. Change return type to 'int'. Don't emit an error
5178         message here.
5179         (copy_file_preserving): New function.
5180         * tests/test-copy-file.c: Include <stdlib.h>.
5181         (main): Test qcopy_file_preserving if the environment variable
5182         NO_STDERR_OUTPUT is set.
5183         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
5184         with NO_STDERR_OUTPUT
5185         * tests/test-copy-file-2.sh: Likewise.
5186
5187 2012-01-10  Bruno Haible  <bruno@clisp.org>
5188
5189         copy-file: Use 'quote' module consistently.
5190         * lib/copy-file.c (copy_file_preserving): Use quote().
5191
5192         copy-file: Refactor.
5193         * lib/copy-file.c: Include quote.h.
5194         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
5195         message here.
5196         * modules/copy-file (Depends-on): Add quote.
5197
5198         acl: Export qcopy_acl.
5199         * lib/acl.h (qcopy_acl): New declaration.
5200         * lib/copy-acl.c (qcopy_acl): Make non-static.
5201
5202         acl: Rename a local variable.
5203         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
5204
5205         acl: Align return values of copy_acl and qcopy_acl.
5206         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
5207         maybe < -1.
5208
5209 2012-01-11  Eric Blake  <eblake@redhat.com>
5210
5211         strptime: silence gcc warnings
5212         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
5213         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
5214         Reported by Daniel P. Berrange.
5215
5216         inet_ntop: silence gcc warning
5217         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
5218         Reported by Daniel P. Berrange.
5219
5220 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
5221
5222         getloadavg test: skip the test on GNU/Linux without /proc mounted
5223         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
5224         file.  When /proc is not mounted, it always fails with ENOENT.
5225         * tests/test-getloadavg.c (main): Treat ENOENT return code from
5226         getloadavg(3) the same way as ENOSYS and ENOTSUP.
5227
5228 2012-01-10  Bruno Haible  <bruno@clisp.org>
5229
5230         regex: Avoid link error on MSVC 9.
5231         * modules/regex (Depends-on): Add wctype.
5232
5233 2012-01-10  Bruno Haible  <bruno@clisp.org>
5234
5235         doc: Mention --with-tests option.
5236         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
5237         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
5238         --with-tests.
5239         Reported by Reuben Thomas.
5240
5241 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
5242
5243         users.txt: order package names lexicographically.
5244         * users.txt: Order package names lexicographically.
5245
5246 2012-01-10  Jim Meyering  <meyering@redhat.com>
5247
5248         maint.mk: fix description in comment
5249         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
5250
5251         ignore-value: remove deprecated ignore_ptr function
5252         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
5253         * NEWS: Note this.
5254
5255 2012-01-09  Jim Meyering  <meyering@redhat.com>
5256
5257         test-init.sh: avoid a subshell
5258         * tests/test-init.sh: Remove protective subshell.
5259         Suggested by Bernhard Voelker.  While a subshell is normally
5260         required to protect against older shells (Solaris, FreeBSD) that
5261         warn about a missing program before performing redirection, the
5262         shell-selection tests performed by init.sh probably exclude any
5263         offending shell.
5264
5265 2012-01-08  Bruno Haible  <bruno@clisp.org>
5266
5267         setlocale tests: Avoid test failure on Solaris 11 2011-11.
5268         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
5269         variable.
5270
5271 2012-01-08  Bruno Haible  <bruno@clisp.org>
5272
5273         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
5274         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5275         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5276         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
5277         macro.
5278         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
5279         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5280         * lib/spawn_faction_addopen.c: Add workaround implementation if
5281         HAVE_WORKING_POSIX_SPAWN.
5282         * modules/spawn (Makefile): Substitute
5283         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5284         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
5285         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
5286         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5287         (Depends-on): Update conditions.
5288         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
5289         the Solaris 11 bug.
5290
5291 2012-01-08  Bruno Haible  <bruno@clisp.org>
5292
5293         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
5294         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5295         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5296         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
5297         macro.
5298         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
5299         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5300         * lib/spawn_faction_adddup2.c: Add workaround implementation if
5301         HAVE_WORKING_POSIX_SPAWN.
5302         * modules/spawn (Makefile): Substitute
5303         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5304         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
5305         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
5306         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5307         (Depends-on): Update conditions.
5308         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
5309         the Solaris 11 bug.
5310
5311 2012-01-08  Bruno Haible  <bruno@clisp.org>
5312
5313         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
5314         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5315         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5316         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
5317         HAVE_WORKING_POSIX_SPAWN.
5318         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
5319         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
5320         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5321         * lib/spawn_faction_addclose.c: Add workaround implementation if
5322         HAVE_WORKING_POSIX_SPAWN.
5323         * modules/spawn (Makefile): Substitute
5324         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5325         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
5326         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
5327         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5328         (Depends-on): Update conditions.
5329         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
5330         the Solaris 11 bug.
5331
5332 2012-01-08  Bruno Haible  <bruno@clisp.org>
5333
5334         doc: Update for Solaris 11 2011-11.
5335         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
5336         * m4/printf.m4: Update comments.
5337
5338 2012-01-08  Bruno Haible  <bruno@clisp.org>
5339
5340         mktime: Avoid compilation error on Solaris 11.
5341         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
5342
5343 2012-01-08  Bruno Haible  <bruno@clisp.org>
5344
5345         doc: Small fix.
5346         * doc/posix-headers/nl_types.texi: Correct platforms list.
5347
5348 2012-01-08  Simon Josefsson  <simon@josefsson.org>
5349
5350         Add lgpl-3.0 module.
5351         * MODULES.html.sh (Support for building documentation): Add
5352         lgpl-3.0.
5353         * modules/lgpl-3.0: New file.
5354
5355 2012-01-08  Jim Meyering  <meyering@redhat.com>
5356
5357         select.c: indent with spaces, not TABs
5358         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
5359
5360 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5361
5362         quotearg: do not use grave accent for left quote
5363         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
5364         locale_quoting_style.
5365         (quotearg_buffer_restyled): Fix example.
5366         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
5367
5368 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5369
5370         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
5371         Most programs do not have translation catalogs for English and much
5372         less separate catalogs for British and American English.  Drop the
5373         suggestion to translators about these two, and provide it
5374         automatically for Unicode locales.  Like most programs, even those
5375         using American English, we use single quotation marks.  This conflicts
5376         with the American typographic convention, but works better when you
5377         cite the entire error message within double quotes.  It also tries not
5378         to clash with established practice and with what non-gnulib programs
5379         will usually do.
5380         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
5381         using an UTF-8 or GB-18030 locale.  The list of other locales with
5382         quotes was provided by Bruno Haible.
5383         (quotearg_buffer_restyled): Adjust instructions to translators.
5384         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
5385         text, since this would be wrong when using Unicode.
5386         * modules/quotearg: Depend on c-strcaseeq.
5387
5388 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5389
5390         quotearg: fix Wikipedia link
5391         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
5392
5393 2012-01-07  Simon Josefsson  <simon@josefsson.org>
5394
5395         Fix for mingw with MSVC9.
5396         * m4/ld-version-script.m4: Check that compiler rejects version
5397         scripts with syntax errors.  Reported by Bruno Haible
5398         <bruno@clisp.org>.
5399
5400 2012-01-06  Bruno Haible  <bruno@clisp.org>
5401
5402         Talk about "native Windows API", not "Woe32".
5403         * lib/accept4.c: Update comments to mention native Windows.
5404         * lib/execute.c: Likewise.
5405         * lib/fatal-signal.c: Likewise.
5406         * lib/localcharset.c: Likewise.
5407         * lib/nanosleep.c: Likewise.
5408         * lib/nl_langinfo.c: Likewise.
5409         * lib/pclose.c: Likewise.
5410         * lib/pipe-filter-gi.c: Likewise.
5411         * lib/pipe-filter-ii.c: Likewise.
5412         * lib/pipe.c: Likewise.
5413         * lib/pipe2.c: Likewise.
5414         * lib/popen.c: Likewise.
5415         * lib/progreloc.c: Likewise.
5416         * lib/relocatable.c: Likewise.
5417         * lib/sigaction.c: Likewise.
5418         * lib/sigprocmask.c: Likewise.
5419         * lib/spawn-pipe.h: Likewise.
5420         * lib/spawn-pipe.c: Likewise.
5421         * lib/spawni.c: Likewise.
5422         * lib/stat-time.h: Likewise.
5423         * lib/w32spawn.h: Likewise.
5424         * tests/test-isatty.c: Likewise.
5425         * lib/config.charset: More comments.
5426         * doc/gnulib-intro.texi: Mention native Windows.
5427         * doc/posix-functions/_Exit_C99.texi: Likewise.
5428         * doc/posix-headers/fcntl.texi: Likewise.
5429
5430 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
5431
5432         argp: Avoid crash if translator uses % characters in a translation.
5433         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
5434         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5435
5436 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
5437
5438         doc: C11 and C++11 are now official
5439         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
5440         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
5441         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
5442         * modules/stdalign:
5443         Replace references to draft C1X to C11, and to draft C++0X to C++11.
5444
5445 2012-01-06  Bruno Haible  <bruno@clisp.org>
5446
5447         uc-is-grapheme-break tests: Tweak.
5448         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
5449         message.
5450
5451 2012-01-06  Bruno Haible  <bruno@clisp.org>
5452
5453         test-init.sh: correct the test for diff -u
5454         * tests/test-init.sh: Also redirect stdout to /dev/null.
5455
5456 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5457
5458         Use ', not `, for quoting output.
5459         * build-aux/announce-gen (usage, sizes, print_news_deltas)
5460         (print_changelog_deltas, get_tool_versions, main program):
5461         * build-aux/git-version-gen:
5462         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
5463         * build-aux/move-if-change (help):
5464         * build-aux/useless-if-before-free (usage, main program):
5465         * check-module (parse_module_file, usage)
5466         (find_included_lib_files, check_module):
5467         * lib/argmatch.c (main) [TEST]:
5468         * lib/argp-help.c (_help):
5469         * lib/getopt1.c (main) [TEST]:
5470         * lib/git-merge-changelog.c (usage):
5471         * lib/xstrtol-error.c (xstrtol_error):
5472         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5473         * m4/argz.m4 (gl_FUNC_ARGZ):
5474         * m4/bison.m4 (gl_BISON):
5475         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
5476         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
5477         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5478         * m4/fpending.m4 (gl_PREREQ_FPENDING):
5479         * m4/gc-random.m4 (gl_GC_RANDOM):
5480         * m4/intl.m4 (gt_CHECK_DECL):
5481         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
5482         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
5483         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
5484         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
5485         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5486         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
5487         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
5488         * tests/test-dirname.c (main):
5489         * tests/test-getpass.c (main):
5490         * tests/test-iconvme.c (main):
5491         * tests/test-parse-datetime.c (LOG):
5492         * tests/test-xstrtoimax.sh:
5493         * tests/test-xstrtol.sh:
5494         * tests/test-xstrtoll.sh:
5495         * tests/test-xstrtoumax.sh:
5496         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
5497         * top/GNUmakefile (abort-due-to-no-makefile):
5498         Quote 'like this', not `like this', as per the recent change to
5499         the GNU coding standards.
5500
5501 2012-01-05  Bruno Haible  <bruno@clisp.org>
5502
5503         strtoimax: Don't force a replacement on systems where intmax_t is int.
5504         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
5505         'intmax_t' is not larger than 'int'.
5506         Reported by Pádraig Brady <P@draigBrady.com>.
5507
5508 2012-01-05  Bruno Haible  <bruno@clisp.org>
5509
5510         doc: Mention NetBSD bugs.
5511         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
5512         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
5513
5514 2012-01-05  Bruno Haible  <bruno@clisp.org>
5515
5516         strtoumax tests: Enhance tests.
5517         * tests/test-strtoumax.c (main): Add tests for large values.
5518
5519 2012-01-05  Bruno Haible  <bruno@clisp.org>
5520
5521         strtoimax: Work around AIX 5.1 bug.
5522         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
5523         definition.
5524         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
5525         Set HAVE_STRTOIMAX.
5526         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
5527         REPLACE_STRTOIMAX.
5528         * modules/inttypes-incomplete (Makefile.am): Substitute
5529         REPLACE_STRTOIMAX.
5530         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
5531         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
5532         (Depends-on): Update conditions.
5533         * tests/test-strtoimax.c (main): Add tests for large values.
5534         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
5535
5536 2012-01-05  Bruno Haible  <bruno@clisp.org>
5537
5538         inttypes: Modernize.
5539         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
5540         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
5541         (Makefile.am): Update inttypes.h rule.
5542
5543 2012-01-05  Jim Meyering  <meyering@redhat.com>
5544
5545         init.sh: don't waste a subshell just to redirect stderr
5546         * tests/init.sh: In testing for diff -u and diff -c, use a
5547         stderr-redirecting exec inside `...` rather than a subshell.
5548
5549         test-init.sh: avoid failure on HP-UX 11.00
5550         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
5551         resolves to diff -c or cmp.  Reported by Bruno Haible.
5552
5553 2012-01-05  Bruno Haible  <bruno@clisp.org>
5554
5555         Tests for module 'strtoull'.
5556         * modules/strtoull-tests: New file.
5557         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5558
5559 2012-01-05  Bruno Haible  <bruno@clisp.org>
5560
5561         Tests for module 'strtoll'.
5562         * modules/strtoll-tests: New file.
5563         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5564
5565 2012-01-05  Bruno Haible  <bruno@clisp.org>
5566
5567         Tests for module 'strtoul'.
5568         * modules/strtoul-tests: New file.
5569         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5570
5571 2012-01-05  Bruno Haible  <bruno@clisp.org>
5572
5573         Tests for module 'strtol'.
5574         * modules/strtol-tests: New file.
5575         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5576
5577 2012-01-04  Jim Meyering  <meyering@redhat.com>
5578
5579         test-init.sh: accommodate Solaris 5.10's different diff -u output
5580         * tests/test-init.sh: Also exempt @@ lines from the comparison
5581         of diff output, since Solaris 5.10 and GNU diff formats differ.
5582         Reported by Stefano Lattarini.
5583
5584 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5585
5586         test-posixtm: don't assume signed integer wraparound
5587         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5588         after signed integer overflow.  Inspired by (though it may not
5589         fix) Bruno Haible's bug report in
5590         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5591
5592         Spell out "Windows 9x" and "Windows XP".
5593         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5594         "Windows 9x" and "WinXP" with "Windows XP".
5595
5596 2012-01-04  Jim Meyering  <meyering@redhat.com>
5597
5598         test-vc-list-files-cvs.sh: remove obsolete comment
5599         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5600         double exit.  Now that's all encapsulated via skip_ and Exit.
5601
5602 2012-01-04  Bruno Haible  <bruno@clisp.org>
5603
5604         Talk about "native Windows API", not "Win32".
5605         * lib/classpath.c: Update comments to mention native Windows.
5606         * lib/csharpexec.c: Likewise.
5607         * lib/dup2.c: Likewise.
5608         * lib/error.c: Likewise.
5609         * lib/fcntl.c: Likewise.
5610         * lib/filename.h: Likewise.
5611         * lib/findprog.c: Likewise.
5612         * lib/get-rusage-as.c: Likewise.
5613         * lib/get-rusage-data.c: Likewise.
5614         * lib/getpagesize.c: Likewise.
5615         * lib/javaexec.c: Likewise.
5616         * lib/msvc-inval.c: Likewise.
5617         * lib/msvc-nothrow.c: Likewise.
5618         * lib/nanosleep.c: Likewise.
5619         * lib/nonblocking.c: Likewise.
5620         * lib/printf-parse.c: Likewise.
5621         * lib/setlocale.c: Likewise.
5622         * lib/sigaction.c: Likewise.
5623         * lib/strerror_r.c: Likewise.
5624         * lib/tmpdir.c: Likewise.
5625         * lib/vasnprintf.c: Likewise.
5626         * lib/w32spawn.h: Likewise.
5627         * lib/waitpid.c: Likewise.
5628         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5629         * m4/locale-ar.m4: Likewise.
5630         * m4/locale-fr.m4: Likewise.
5631         * m4/locale-ja.m4: Likewise.
5632         * m4/locale-tr.m4: Likewise.
5633         * m4/locale-zh.m4: Likewise.
5634         * m4/printf.m4: Likewise.
5635         * tests/test-cloexec.c: Likewise.
5636         * tests/test-copy-acl.sh: Likewise.
5637         * tests/test-copy-file.sh: Likewise.
5638         * tests/test-file-has-acl.sh: Likewise.
5639         * tests/test-set-mode-acl.sh: Likewise.
5640         * tests/test-dup-safer.c: Likewise.
5641         * tests/test-dup2.c: Likewise.
5642         * tests/test-dup3.c: Likewise.
5643         * tests/test-fcntl.c: Likewise.
5644         * tests/test-nonblocking-pipe.h: Likewise.
5645         * tests/test-nonblocking-socket.h: Likewise.
5646         * tests/test-pipe.c: Likewise.
5647         * tests/test-pipe2.c: Likewise.
5648         * tests/test-spawn-pipe-child.c: Likewise.
5649         * doc/acl-resources.txt: Likewise.
5650         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5651         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5652         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5653         * lib/localcharset.c: Update comments to mention native Windows.
5654         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5655         * lib/localename.c: Likewise.
5656         * lib/progreloc.c: Likewise.
5657         * lib/relocatable.c: Likewise.
5658         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5659         (windows_compute_revents): Renamed from win32_compute_revents.
5660         (windows_compute_revents_socket): Renamed from
5661         win32_compute_revents_socket.
5662         * lib/select.c: Update comments to mention native Windows.
5663         (windows_poll_handle): Renamed from win32_poll_handle.
5664         * m4/threadlib.m4: Update comments to mention native Windows.
5665         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5666         --enable-threads=windows instead of --enable-threads=win32. Set
5667         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5668         * lib/glthread/lock.h: Update comments to mention native Windows.
5669         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5670         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5671         USE_WIN32_THREADS.
5672         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5673         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5674         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5675         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5676         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5677         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5678         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5679         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5680         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5681         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5682         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5683         * tests/test-tls.c: Likewise.
5684         Rationale:
5685         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5686         on both 32-bit and 64-bit Windows systems.
5687         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5688         line of distinction is between "native Windows" on one side and Unix/
5689         POSIX systems on the other side. More details in
5690         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5691         Suggested by Paul Eggert.
5692
5693 2012-01-03  Bruno Haible  <bruno@clisp.org>
5694
5695         isatty: Support for MSVC 9.
5696         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5697         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5698         (_isatty_nothrow): New function.
5699         (isatty): Use it instead of _isatty.
5700         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5701         * lib/poll.c (IsConsoleHandle): Likewise.
5702         * lib/select.c (IsConsoleHandle): Likewise.
5703         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5704         (gl_PREREQ_ISATTY): New macro.
5705         * modules/isatty (Depends-on): Add msvc-inval.
5706         (configure.ac): Invoke gl_PREREQ_ISATTY.
5707
5708 2012-01-03  Jim Meyering  <meyering@redhat.com>
5709
5710         maint.mk: remove temporary transition aid from over 1.5 years ago
5711         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5712         purpose was to aid in the transition (avoiding silent malfunction)
5713         from that old name to the new _sc_search_regexp.  This shim was
5714         added by commit 219c504b.
5715
5716         init.sh: do not try to accommodate compare arguments starting with "-"
5717         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5718         compare arguments that start with "-".  Besides, we do not worry
5719         about this when invoking diff or cmp; why start now with sed?
5720         Using "--" to separate options from argument would trigger sed
5721         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5722         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5723
5724 2012-01-02  Bruno Haible  <bruno@clisp.org>
5725
5726         Enhance tests for module 'isatty'.
5727         * modules/isatty-tests (Depends-on): Add pipe-posix.
5728         * tests/test-isatty.c: Include <fcntl.h>.
5729         (DEV_NULL): New macro.
5730         (main): Test the resut of isatty() also on regular files, pipes, and
5731         /dev/null.
5732
5733         New module 'isatty'.
5734         * lib/unistd.in.h (isatty): New declaration.
5735         * lib/isatty.c: New file, based on an idea of
5736         Bastien Roucariès <roucaries.bastien@gmail.com>.
5737         * m4/isatty.m4: New file.
5738         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5739         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5740         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5741         REPLACE_ISATTY.
5742         * modules/isatty: New file.
5743         * doc/posix-functions/isatty.texi: Mention the new module.
5744         Suggested by Paolo Bonzini.
5745
5746 2012-01-02  Bruno Haible  <bruno@clisp.org>
5747
5748         canonicalize: Tweak 2011-12-29 commit.
5749         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5750         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5751
5752 2012-01-02  Jim Meyering  <meyering@redhat.com>
5753
5754         gitlog-to-changelog: describe input syntax in --help output
5755         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5756
5757         gitlog-to-changelog: fix typo in --help: show backslash before email @
5758         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5759         in sources, but not in actual output.
5760
5761 2011-12-30  Jim Meyering  <meyering@redhat.com>
5762
5763         gitlog-to-changelog: don't malfunction when name contains %-directive
5764         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5765         in a name string cause trouble.  E.g., with a user name of "%s",
5766         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5767
5768 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5769
5770         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5771         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5772         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5773         the "  (tiny change)" notation that is appended to the standard
5774         ChangeLog "date  name  email" header line.
5775
5776 2012-01-01  Jim Meyering  <meyering@redhat.com>
5777
5778         test-framework-sh: init.sh: fix "make dist" failure
5779         When using gnulib-tool's --with-tests option and any module that
5780         depends on test-framework-sh, "make dist" would fail due to the
5781         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5782         in the gltests directory, and not in the gllib/ directory.
5783         One way to work around that is to move the EXTRA_DIST += init.sh
5784         from the primary module to the -tests one:
5785         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5786         * modules/test-framework-sh (Makefile.am): ...not here.
5787         Reported by Tom G. Christensen in
5788         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5789
5790         version-etc: update copyright year reported by --version
5791         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5792
5793 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5794
5795         canonicalize: only stat() if required
5796         * lib/canonicalize.c (canonicalize_filename_mode):
5797         Avoid calling l?stat() when both CAN_MISSING,
5798         and CAN_NOLINKS are set, as we neither need
5799         to resolve symlinks or test component existence.
5800
5801 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5802
5803         doc: cover st_ino issues once; add OpenVMS etc.
5804         * doc/posix-functions/stat.texi (stat):
5805         * doc/posix-functions/lstat.texi (lstat):
5806         * doc/posix-functions/fstatat.texi (fstatat):
5807         * doc/posix-functions/fstat.texi (fstat):
5808         Move general 'struct stat' stuff to sys_stat.texi,
5809         leaving behind a pointer.
5810         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5811         Merge duplicate info about 'struct stat' problems into here.
5812         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5813         and suggest partial workarounds.
5814
5815         same-inode: port to OpenVMS
5816         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5817         three st_ino values.
5818
5819 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5820
5821         canonicalize: fix references to stat() and lstat()
5822         * lib/canonicalize.c (canonicalize_filename_mode):
5823         Ensure references always resolve to a replacement
5824         function if required (even via a macro).
5825
5826 2011-12-30  Jim Meyering  <meyering@redhat.com>
5827
5828         gitlog-to-changelog: remove a little duplication
5829         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5830         rather than twice.
5831
5832 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5833
5834         canonicalize: add support for not resolving symlinks
5835         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5836         indicate we don't want to follow symlinks.  Also
5837         provide CAN_MODE_MASK to aid setting these existing
5838         mutually exclusive values.
5839         * lib/canonicalize.c (canonicalize_filename_mode):
5840         Extract the flags from can_mode parameter, which
5841         are currently just used to select between stat()
5842         and lstat().  Also ensure that mutually exclusive
5843         values are flagged immediately as invalid.
5844         * tests/test-canonicalize.c: Verify symlinks are
5845         not followed, and that invalid flag combinations
5846         are diagnosed.
5847
5848 2011-12-25  Jim Meyering  <meyering@redhat.com>
5849
5850         gitlog-to-changelog: do not clump multi-paragraph entries
5851         Identical header lines (date,name,email+coauthors) are suppressed,
5852         thus putting all entries with those same characteristics under
5853         a single header.  However, when a log entry consists of two or
5854         more paragraphs, it may not be clear where it starts and ends.
5855         This change makes it so that such an entry is always separated
5856         from others by a header line, even when that header would
5857         otherwise be suppressed.
5858         * build-aux/gitlog-to-changelog: Implement the above.
5859         Inspired by a related request from Stefano Lattarini in
5860         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5861
5862 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5863
5864         announce-gen: fix `cmd' typo in diagnostic
5865         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5866         diagnostic: a missing '$' meant that the command was not output.
5867
5868 2011-12-23  Jim Meyering  <meyering@redhat.com>
5869
5870         test-framework-sh: distribute init.sh
5871         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5872         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5873         fail due to the lack of init.sh.
5874
5875         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5876         * modules/atexit-tests: Rather than listing tests/init.sh,
5877         now that there's a module for it, simply depend on that new module.
5878         * modules/closein-tests: Likewise.
5879         * modules/exclude-tests: Likewise.
5880         * modules/getcwd-tests: Likewise.
5881         * modules/perror-tests: Likewise.
5882         * modules/pread-tests: Likewise.
5883         * modules/pwrite-tests: Likewise.
5884         * modules/vc-list-files-tests: Likewise.
5885         * modules/verify-tests: Likewise.
5886         * modules/xalloc-die-tests: Likewise.
5887         * modules/xstrtoimax-tests: Likewise.
5888         * modules/xstrtol-tests: Likewise.
5889         * modules/xstrtoll-tests: Likewise.
5890         * modules/xstrtoumax-tests: Likewise.
5891         * modules/yesno-tests: Likewise.
5892
5893 2011-12-22  Jim Meyering  <meyering@redhat.com>
5894
5895         test-framework-sh: add minimal tests of init.sh's compare function
5896         * modules/test-framework-sh-tests: New file.
5897         * tests/test-init.sh: New file.
5898
5899         test-framework-sh: new module
5900         * modules/test-framework-sh: New file.
5901         * MODULES.html.sh (Support for maintaining and releasing projects):
5902         List it.
5903
5904         init.sh: do not emit simulated diff output to stderr
5905         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5906
5907 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5908
5909         .gitignore: ignore gnulib.dvi and regex.info
5910         * doc/.gitignore:add gnulib.dvi and regex.info
5911
5912 2011-12-22  Jim Meyering  <meyering@redhat.com>
5913
5914         init.sh: correct previous change
5915         * tests/init.sh (compare): My previous change was wrong.
5916         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5917
5918         init.sh: avoid unwarranted test failure when using "set -e"
5919         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5920         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5921         a use like "compare exp out" would get evoke an unconditional failure.
5922
5923 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5924
5925         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5926         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5927         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5928         autoreconf that did not.
5929         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5930         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5931
5932 2011-12-17  Jim Meyering  <meyering@redhat.com>
5933
5934         bootstrap: remove some now-unneeded code
5935         This script arose back when gnulib-tool was young.
5936         Since then, it has seen improvements that render much of this
5937         script unnecessary.  In particular, it can now make symlinks
5938         to the files it uses.  Also, I no longer see as much value in
5939         marking files as read-only via comments.
5940         If you relied on the symlink-creation feature of the preceding
5941         version of this script, you can get most of that functionality
5942         by adding the --symlink option to the definition of
5943         gnulib_tool_option_extras in your bootstrap.conf file.
5944         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5945         Run autopoint and libtoolize *before* gnulib-tool.
5946         After it, run an abbreviated autoreconf, rather than a loop around
5947         all tools.
5948         (slirp, bt_mark_as_generated): Remove functions.
5949
5950 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5951
5952         ftoastr: fix typo
5953         * lib/ftoastr.h: Fix misspelling in comment.
5954
5955 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5956
5957         * top/README-release: fix punctuation.
5958
5959 2011-12-17  Jim Meyering  <meyering@redhat.com>
5960
5961         bootstrap: correct the recent buildreq change
5962         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5963         had no effect.
5964         * build-aux/bootstrap (buildreq): Bracket each search term with
5965         "*...*", so that the shell "case" statement works as intended.
5966         Add comments.
5967
5968 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5969
5970         build: let bootstrap resort to wget when downloading .po files
5971         * build-aux/bootstrap (download_po_files): Fallback to wget when
5972         downloading the .po files via rsync fails.  This is necessary to
5973         bootstrap from behind a strict firewall.
5974
5975 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5976
5977         stdint: don't assume C++11 when compiling with g++
5978         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5979         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5980         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5981         work also in C++ before C++11, as that improperly inhibits
5982         generating a substitute stdint.h for that case.
5983
5984 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5985
5986         alloca: protect comment from gnulib-tool
5987         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5988         that gnulib-tool doesn't think it's a license, and munge it to
5989         say "GCC version 3".
5990
5991 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5992
5993         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5994         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5995         $(abs_top_builddir) instead of $(top_builddir).
5996
5997 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5998
5999         strftime-tests: also test nanoseconds
6000         * tests/test-strftime.c (T): Add a test of %N.
6001
6002 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
6003
6004         inttypes, stdint: add C++11 support
6005         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
6006         when including inttypes.h and stdint.h.  Support this change to
6007         the standard.
6008         * doc/posix-headers/inttypes.texi (inttypes.h):
6009         * doc/posix-headers/stdint.texi (stdint.h): Document this.
6010         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
6011         Define if not defined already, for the benefit of pre-C++11 hosts.
6012         Define the standard format macros (e.g., PRId8) always.
6013         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
6014         Likewise, if __cpluspus.  Define the standard constant and limit
6015         macros (e.g., INT8_C, INT8_MAX) always.
6016         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
6017         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
6018         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
6019         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
6020         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
6021         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
6022         Likewise.
6023
6024 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6025
6026         nonblocking tests: Fix test failure on Linux/PPC.
6027         Suggested by Prerna Saxena in
6028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
6029         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
6030         Set to 1100000.
6031
6032 2011-12-12  Jim Meyering  <meyering@redhat.com>
6033
6034         argmatch: don't hard-code `' when listing valid option arguments
6035         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
6036         use the quote function to add quotes.  Use fputs rather than
6037         fprintf for the format string with no format directive.
6038
6039 2011-12-07  Eric Blake  <eblake@redhat.com>
6040
6041         bootstrap: detect tools required by gnulib-tool
6042         * build-aux/bootstrap (buildreq): Provide minimum implicit
6043         dependencies.
6044         * DEPENDENCIES: Mention patch as a prereq.
6045
6046 2011-12-04  Bruno Haible  <bruno@clisp.org>
6047
6048         sethostname: Port to Windows platforms.
6049         * lib/sethostname.c: Provide an alternate implementation for Windows
6050         platforms.
6051         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
6052         (main): Skip the test if sethostname() fails with EPERM. On Windows
6053         platforms, don't check the result of gethostname().
6054
6055 2011-12-04  Bruno Haible  <bruno@clisp.org>
6056             Jim Meyering  <meyering@redhat.com>
6057
6058         tests: Avoid spurious error message on platforms without mktemp program.
6059         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
6060
6061 2011-12-04  Bruno Haible  <bruno@clisp.org>
6062
6063         sethostname: Fix documentation.
6064         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
6065         "not fixed" section.
6066
6067 2011-12-03  Bruno Haible  <bruno@clisp.org>
6068
6069         gnulib-tool: Verify that the License field is present and non-empty.
6070         * gnulib-tool (func_get_license_raw): New function, extracted from
6071         func_get_license.
6072         (func_get_license): Use it. Warn if the module is not a test module and
6073         has no license.
6074         Suggested by Jim Meyering.
6075
6076 2011-12-03  Bruno Haible  <bruno@clisp.org>
6077
6078         sethostname tests: Fix link error on mingw.
6079         * tests/test-sethostname1.c: New file, extracted from
6080         tests/test-sethostname.c.
6081         * tests/test-sethostname2.c: New file, extracted from
6082         tests/test-sethostname.c.
6083         * tests/test-sethostname.c: Remove file.
6084         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
6085         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
6086         (Depends-on): Add gethostname.
6087         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
6088         Link the latter with $(GETHOSTNAME_LIB).
6089
6090         sethostname tests: Fix compilation error on mingw.
6091         * tests/test-sethostname.c: Don't include <sys/types.h>.
6092         (geteuid): Use a dummy value without uid_t.
6093         * modules/sethostname-tests (Depends-on): Remove sys_types.
6094
6095         sethostname tests: Avoid a gcc warning.
6096         * tests/test-sethostname.c (main): Remove an unused variable.
6097
6098         Tweak last commit.
6099         * modules/sethostname-tests (Files): Sort by decreasing importance.
6100         (configure.ac): Check for geteuid.
6101         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
6102         the test when there's nothing to test. Drop an unnecessary cast.
6103         Improve an error message. Verify that the final sethostname() call
6104         succeeds.
6105
6106 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6107
6108         Add a test suite for the sethostname module.
6109         * modules/sethostname-tests: New file.  A test program
6110         for the sethostname module.
6111         * tests/test-sethostname.c: Likewise.
6112
6113 2011-12-03  Bruno Haible  <bruno@clisp.org>
6114
6115         Tweak last commit.
6116         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
6117         Fix preprocessor directives indentation. Fix typos.
6118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
6119         * modules/unistd (Makefile): Likewise.
6120
6121 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6122
6123         Integrate the sethostname module into unistd.
6124         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
6125         into the unistd.h header.
6126         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
6127         preprocessor directives.
6128         * modules/unistd: Setup the Makefile substitutions of the
6129         SETHOSTNAME preprocessor directives.
6130
6131 2011-12-03  Bruno Haible  <bruno@clisp.org>
6132
6133         Tweak last commit.
6134         * lib/sethostname.c: Don't include <string.h>.
6135         (sethostname): No need to copy the argument string to the stack. Don't
6136         call clearerr. Preserve errno when fprintf failed.
6137         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
6138         Don't invoke AC_REPLACE_FUNCS.
6139         * modules/sethostname (Link): Remove empty section.
6140         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
6141         failure problem.
6142
6143 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6144
6145         New module 'sethostname'.
6146         * lib/sethostname.c (sethostname): New file.  Provide sethostname
6147         for systems that lack it.
6148         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
6149         sethostname declaration and function.
6150         * modules/sethostname: New file.  Define the sethostname module.
6151
6152 2011-12-03  Bruno Haible  <bruno@clisp.org>
6153
6154         Tweak last commit.
6155         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
6156
6157 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6158
6159         Split the HOST_NAME_MAX detection into a separate m4 macro.
6160         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
6161         macro so it can be used by the pending sethostname module.
6162
6163 2011-12-03  Bruno Haible  <bruno@clisp.org>
6164
6165         Fix module descriptions syntax.
6166         * modules/argv-iter (License): Fix syntax.
6167         * modules/di-set (License): Likewise.
6168         * modules/ino-map (License): Likewise.
6169         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
6170
6171 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
6172
6173         stdalign: port to Clang 3.0
6174         Problem reported by Simon Josefsson in
6175         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
6176         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
6177         which has <stdalign.h> but which does not define alignof.
6178         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
6179
6180 2011-12-01  Eric Blake  <eblake@redhat.com>
6181
6182         mktempd: silence dd usage
6183         * build-aux/mktempd (rand_bytes): Silence dd.
6184
6185 2011-11-30  Simon Josefsson  <simon@josefsson.org>
6186
6187         manywarnings: Don't mention gcc version in docstring.
6188         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
6189         Jim Meyering <meyering@redhat.com>.
6190
6191 2011-11-30  Jim Meyering  <meyering@redhat.com>
6192
6193         hash: mark a few floating point constants with "f" suffix
6194         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
6195         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
6196         floating point constants with "f", since they're destined to be
6197         saved/used as "float"s.
6198
6199 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
6200
6201         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
6202         * tests/test-float.c (test_long_double): Correct and re-enable the
6203         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
6204
6205 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
6206
6207         Avoid subtracting two pointers that don't point into the same block.
6208         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
6209         only pointers into the same memory block are subtracted. We cannot
6210         assume that sizeof (ptrdiff_t) == sizeof (void *).
6211
6212 2011-11-29  Eric Blake  <eblake@redhat.com>
6213
6214         maint.mk: add syntax check for use of compare from init.sh
6215         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
6216         moved here from coreutils.
6217
6218         manywarnings: drop -Wunsuffixed-float-constants
6219         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
6220         '1.0D', which is the only way to silence this warning for 'double'.
6221
6222 2011-11-29  Jim Meyering  <meyering@redhat.com>
6223
6224         hash: mark compute_bucket_size with the pure attribute
6225         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
6226
6227         quotearg, propername: correct pragma guard expression
6228         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
6229         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
6230
6231 2011-11-28  Jim Meyering  <meyering@redhat.com>
6232
6233         propername: do not mark proper_name with the const attribute
6234         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
6235         since it examines data pointed to by its parameter.
6236         * lib/propername.c (proper_name): Instead, add a pragma to suppress
6237         the suggestion from -Wsuggest-attribute=const.
6238
6239         propername: mark one more function as const
6240         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
6241
6242 2011-11-27  Jim Meyering  <meyering@redhat.com>
6243
6244         mark functions with const and pure attributes
6245
6246         Mark functions per suggestions from gcc-4.6 when using these options:
6247         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
6248         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
6249         Follow these guidelines: when possible, apply the attribute to
6250         an extern declaration, not to its definition.  Apply it to the
6251         definition only when the definition is static.
6252         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
6253         * lib/argv-iter.h (argv_iter_n_args): Likewise.
6254         * lib/base64.h (isbase64): Likewise.
6255         * lib/basename-lgpl.c (last_component, base_len): Likewise.
6256         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
6257         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
6258         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
6259         (c_tolower, c_toupper): Likewise.
6260         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
6261         * lib/chdir-long.c (find_non_slash): Likewise.
6262         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
6263         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
6264         * lib/file-type.h (file_type): Likewise.
6265         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
6266         * lib/filevercmp.c (verrevcmp): Likewise.
6267         * lib/freadahead.h (freadahead): Likewise.
6268         * lib/fts.c (fts_maxarglen): Likewise.
6269         * lib/hash-pjw.h (hash_pjw): Likewise.
6270         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
6271         * lib/hash.c (is_prime, next_prime): Likewise.
6272         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
6273         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
6274         (hash_table_ok, hash_get_first, hash_string): Likewise.
6275         (compute_bucket_size): Likewise.
6276         * lib/i-ring.h (i_ring_empty): Likewise.
6277         * lib/isnan.c (isnanl): Likewise.
6278         * lib/math.h (isnanl, rpl_isnanl): Likewise.
6279         * lib/memcasecmp.h (memcasecmp): Likewise.
6280         * lib/memchr2.h (memchr2): Likewise.
6281         * lib/memcmp2.h (memcmp2): Likewise.
6282         * lib/parse-datetime.y (lookup_zone): Likewise.
6283         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
6284         [!WINDOWS_SOCKETS]: Likewise.
6285         * lib/strnlen1.h (strnlen1): Likewise.
6286         * lib/uniwidth.in.h (uc_width): Likewise.
6287         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
6288         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
6289         (quoting_options_from_style): Add a comment.
6290         * lib/propername.h (proper_name): Add a comment.
6291
6292 2011-11-27  Bruno Haible  <bruno@clisp.org>
6293
6294         Remove unused macros from !_LIBC code in glibc-borrowed files.
6295         * lib/fnmatch.c (STRCOLL): Remove macro.
6296         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
6297         * lib/glob.c (__stat, __readdir64): Remove macros.
6298         * lib/tempname.c (__open64, __xstat64): Remove macros.
6299         Suggested by Paul Eggert.
6300
6301 2011-11-27  Bruno Haible  <bruno@clisp.org>
6302
6303         getcwd: Fix link error on MSVC 9.
6304         * modules/getcwd (Depends-on): Add readdir, rewinddir.
6305
6306 2011-11-27  Bruno Haible  <bruno@clisp.org>
6307
6308         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
6309         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
6310         HAVE_OPENDIR is 0.
6311         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
6312         HAVE_CLOSEDIR is 0.
6313         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
6314         is 0.
6315         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
6316
6317 2011-11-27  Bruno Haible  <bruno@clisp.org>
6318
6319         getcwd: Fix bug from 2011-08-17.
6320         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
6321         platforms that need it.
6322         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
6323         code of 4 to be a failure, not a success. This ensures that
6324         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
6325
6326 2011-11-27  Bruno Haible  <bruno@clisp.org>
6327
6328         binary-io tests: Avoid test failure on mingw when libtool is used.
6329         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
6330         Don't verify the size of t-bin-out1.tmp here.
6331         * tests/test-binary-io.sh: Verify it here.
6332         Reported by Simon Josefsson.
6333
6334 2011-11-26  Bruno Haible  <bruno@clisp.org>
6335
6336         Fix conflict between two instantiations of module 'unistd'.
6337         * gnulib-tool (func_emit_autoconf_snippet): Substitute
6338         ${include_guard_prefix} also in the autoconf snippet.
6339         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
6340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
6341         GNULIB_UNISTD_H_GETOPT.
6342         * modules/getopt-posix (configure.ac): Set the
6343         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
6344         * modules/getopt-gnu (configure.ac): Likewise.
6345         * modules/unistd (Makefile.am): Change the substitution value of
6346         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
6347         Reported by Simon Josefsson.
6348
6349 2011-11-25  Bruno Haible  <bruno@clisp.org>
6350
6351         pagealign_alloc: Doc and comments.
6352         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
6353         module.
6354         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
6355
6356 2011-11-25  Jim Meyering  <meyering@redhat.com>
6357
6358         test-update-copyright.sh: avoid false-positive failure
6359         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
6360         around false positive failure on Cygwin/Windows.  The latter was
6361         matching erroneously-created files with names like
6362         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
6363
6364 2011-11-25  Simon Josefsson  <simon@josefsson.org>
6365
6366         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
6367         * m4/valgrind-tests.m4: Check that the parameters that will be
6368         used works, not just a subset of them.  Reported by Bruno Haible
6369         <bruno@clisp.org>.
6370
6371 2011-11-24  Jim Meyering  <meyering@redhat.com>
6372
6373         test-stdalign.c: comment out long double tests
6374         * tests/test-stdalign.c: Don't try to reduce alignment of long double
6375         variables.  That provokes errors like this from gcc-4.7.0 20111124:
6376         error: '_Alignas' specifiers cannot reduce alignment of \
6377         'static_longdouble_alignas'.
6378
6379 2011-11-22  Jim Meyering  <meyering@redhat.com>
6380
6381         init.sh: make "compare /dev/null FILE" output more readable
6382         * tests/init.sh (compare_): Document the preferred order of arguments.
6383         (emit_diff_u_header_): New function.
6384         (compare_dev_null_): Emit a simulated diff, rather than just the
6385         contents of the unexpected file.  Suggestion from Bruno Haible.
6386
6387 2011-11-21  Jim Meyering  <meyering@redhat.com>
6388             Eric Blake  <eblake@redhat.com>
6389
6390         init.sh: work around OSF/1 5.1's mishandling of /dev/null
6391         * tests/init.sh: Make our compare function slightly more portable.
6392         Reported by Bruno Haible in
6393         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
6394
6395 2011-11-21  Simon Josefsson  <simon@josefsson.org>
6396
6397         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
6398         before using it, in code that ends up in config.h.
6399
6400 2011-11-20  Bruno Haible  <bruno@clisp.org>
6401
6402         getcwd: Work around getcwd bug on AIX 5..7.
6403         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
6404         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
6405         Use a different value for gl_cv_func_getcwd_path_max. Move the
6406         definition of HAVE_PARTLY_WORKING_GETCWD from here...
6407         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
6408         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
6409         Define HAVE_MINIMALLY_WORKING_GETCWD.
6410         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
6411         where it is not even minimally working, that is, on AIX.
6412         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
6413         m4/getcwd-path-max.m4.
6414         (main): Update exit code computation.
6415         * doc/posix-functions/getcwd.texi: Mention list of platforms where
6416         getcwd does not handle long file names.
6417
6418 2011-11-20  Bruno Haible  <bruno@clisp.org>
6419
6420         getcwd: Fix bug from 2009-09-10.
6421         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
6422         like "no".
6423
6424 2011-11-20  Simon Josefsson  <simon@josefsson.org>
6425
6426         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
6427
6428 2011-11-20  Bruno Haible  <bruno@clisp.org>
6429
6430         fma tests: Avoid shadowing local variables.
6431         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
6432         expected.
6433
6434 2011-11-20  Bruno Haible  <bruno@clisp.org>
6435
6436         copysignf tests: Fix.
6437         * tests/test-copysignf.c: Fix signature check.
6438
6439 2011-11-20  Bruno Haible  <bruno@clisp.org>
6440
6441         fma: Remove unused code.
6442         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
6443         unused macros.
6444
6445 2011-11-20  Bruno Haible  <bruno@clisp.org>
6446
6447         sethostname: Fix doc about AIX.
6448         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
6449         sethostname; it has it.
6450
6451         sethostname: Mention more portability problems.
6452         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
6453         problem.
6454         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6455
6456 2011-11-19  Bruno Haible  <bruno@clisp.org>
6457
6458         Depend on module fcntl-h when AT_FDCWD is used.
6459         * modules/utimens (Depends-on): Add fcntl-h.
6460         * modules/areadlinkat (Depends-on): Likewise.
6461         * modules/areadlinkat-with-size (Depends-on): Likewise.
6462         * modules/faccessat (Depends-on): Likewise.
6463         * modules/fchmodat (Depends-on): Likewise.
6464         * modules/fchownat (Depends-on): Likewise.
6465         * modules/getcwd (Depends-on): Likewise.
6466         * modules/mkdirat (Depends-on): Likewise.
6467         * modules/mkfifoat (Depends-on): Likewise.
6468         * modules/readlinkat (Depends-on): Likewise.
6469         * modules/symlinkat (Depends-on): Likewise.
6470         * modules/dup2-tests (Depends-on): Likewise.
6471         * modules/fdutimensat-tests (Depends-on): Likewise.
6472         * modules/futimens-tests (Depends-on): Likewise.
6473
6474 2011-11-19  Bruno Haible  <bruno@clisp.org>
6475
6476         euidaccess: Update a comment.
6477         * lib/euidaccess.c: Update comment about platforms with faccessat.
6478
6479 2011-11-19  Bruno Haible  <bruno@clisp.org>
6480
6481         openat: Fix file list.
6482         * modules/openat (Files): Remove lib/at-func.c.
6483
6484 2011-11-19  Bruno Haible  <bruno@clisp.org>
6485
6486         fstatat: Simplify.
6487         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
6488         gnulib should define rpl_fstatat, there is a
6489         "#define fstatat rpl_fstatat" in <sys/stat.h>.
6490
6491 2011-11-19  Bruno Haible  <bruno@clisp.org>
6492
6493         Ensure 'inline' can be used in tests/test-utimens-common.h.
6494         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
6495         * modules/futimens-tests (configure.ac): Likewise.
6496         * modules/utimens-tests (configure.ac): Likewise.
6497         * modules/utimensat-tests (configure.ac): Likewise.
6498
6499 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6500
6501         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
6502         not hash_insert0.
6503         (hash_insert_if_absent): Doc fix.
6504
6505 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6506
6507         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
6508
6509 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6510
6511         test-getcwd: disambiguate exit status
6512         * tests/test-getcwd.c (test_long_name): Return 0..7.
6513         (main): Exit with an unambiguous exit status.  The old
6514         code yielded a mysterious mixture of two failure codes.
6515
6516         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
6517         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
6518         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
6519         rpl_fstatat or fstatat.  This should fix the other problem
6520         reported by Kai Habel in
6521         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6522         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
6523         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
6524         and I reproduced it on a Solaris 8 host we still have in production.
6525
6526 2011-11-18  Jim Meyering  <meyering@redhat.com>
6527
6528         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
6529         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
6530         Add a sentence to the comment.
6531         (hash_insert0): New function that simply calls hash_insert_if_absent.
6532         * lib/hash.h (hash_insert_if_absent): Declare it.
6533         (hash_insert0): Add deprecation attribute.
6534         (_GL_ATTRIBUTE_DEPRECATED): Define.
6535         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
6536         not hash_insert0.
6537         * NEWS: Mention it, even though it's not really an incompatible change.
6538
6539 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
6540
6541         openat: avoid compilation failure due to lack of <errno.h> inclusion
6542         * lib/openat.c: Include <errno.h>.
6543
6544 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6545
6546         * modules/getcwd (Depends-on): Add fdopendir.
6547         This fixes one of the two problems reported by Kai Habel in
6548         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6549
6550         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
6551         stdalign problem reported by Ian Beckwith in
6552         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
6553         * modules/crypto/gc-arcfour (Depends-on):
6554         Depend conditionally on crypto/arcfour.
6555         * modules/crypto/gc-arctwo (Depends-on):
6556         Depend conditionally on crypto/arctwo.
6557         * modules/crypto/gc-des (Depends-on):
6558         Depend conditionally on crypto/des.
6559         * modules/crypto/gc-hmac-md5 (Depends-on):
6560         Depend conditionally on crypto/hmac-md5.
6561         * modules/crypto/gc-hmac-sha1 (Depends-on):
6562         Depend conditionally on crypto/hmac-sha1.
6563         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6564         * modules/crypto/gc-md4 (Depends-on):
6565         Depend conditionally on crypto/md4.
6566         * modules/crypto/gc-md5 (Depends-on):
6567         Depend conditionally on crypto/md5.
6568         * modules/crypto/gc-rijndael (Depends-on):
6569         Depend conditionally on crypto/rijndael.
6570         * modules/crypto/gc-sha1 (Depends-on):
6571         Depend conditionally on crypto/sha1.
6572         * modules/crypto/gc-arcfour:
6573         * modules/crypto/gc-arctwo:
6574         * modules/crypto/gc-des:
6575         * modules/crypto/gc-hmac-md5:
6576         * modules/crypto/gc-hmac-sha1:
6577         * modules/crypto/gc-md2:
6578         * modules/crypto/gc-md4:
6579         * modules/crypto/gc-md5:
6580         * modules/crypto/gc-rijndael:
6581         * modules/crypto/gc-sha1:
6582         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6583         now that the conditional dependencies do the work for us.
6584
6585 2011-11-17  Jim Meyering  <meyering@redhat.com>
6586
6587         tests: factor st_ctime-comparison out of two headers
6588         * tests/test-utimens-common.h (ctime_compare): Define.
6589         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6590         * tests/test-lutimens.h (test_lutimens): Likewise.
6591         * tests/test-utimens.h (test_utimens): Likewise.
6592
6593         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6594         Invoke the test program via an init.sh-using wrapper.
6595         * tests/test-getcwd.sh: New file.
6596         * modules/getcwd-tests (Files): Add it.
6597         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6598
6599 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6600
6601         gitlog-to-changelog: support multi-author commits.
6602         The FSF cares about keeping track of all authors of patches to its
6603         projects, but Git doesn't provide obvious support for multi-author
6604         changesets. Consensus seems to be forming around the use of extra
6605         Signed-off-by inspired lines in the log message formatted as
6606         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6607         multi-author commits between version control systems.
6608         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6609         log message and output in standard ChangeLog multi-author format.
6610         Reported by Peter Rosin <peda@lysator.liu.se>
6611
6612 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6613             Bruno Haible  <bruno@clisp.org>
6614
6615         Fix some modules' file list.
6616         * modules/fstatat (Files): Add m4/lstat.m4.
6617         * modules/openat (Files): Likewise.
6618         * modules/unlinkat (Files): Likewise.
6619
6620 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6621
6622         maint.mk: fix tight-scope.mk generation in VPATH builds.
6623         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6624         reference with $(srcdir) so that the file is found correctly even
6625         when running `make syntax-check' in a VPATH build.
6626
6627 2011-11-13  Bruno Haible  <bruno@clisp.org>
6628             Jim Meyering  <meyering@redhat.com>
6629
6630         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6631         * tests/init.sh (compare): Remove "No differences encountered" or
6632         synonymous output from the 'diff' program.
6633
6634 2011-11-13  Bruno Haible  <bruno@clisp.org>
6635
6636         Makefile: Tweak indentation.
6637         * Makefile: Use tab as first character in every line that contains rule
6638         commands.
6639
6640 2011-11-13  Bruno Haible  <bruno@clisp.org>
6641
6642         Syntax check for copyright statements.
6643         * check-copyright: New file.
6644         * Makefile (sc_check_copyright): New rule.
6645
6646 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6647
6648         * build-aux/git-version-gen: Add --prefix to configure the tag
6649         match string.
6650
6651 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6652
6653         * build-aux/git-version-gen: Add --help and --version.
6654
6655 2011-11-12  Jim Meyering  <meyering@redhat.com>
6656
6657         revamp the other test-exclude?.sh scripts to use init.sh, too
6658         * tests/test-exclude1.sh: Use init.sh.
6659         * tests/test-exclude2.sh: Likewise.
6660         * tests/test-exclude3.sh: Likewise.
6661         * tests/test-exclude4.sh: Likewise.
6662         * tests/test-exclude5.sh: Likewise.
6663         * tests/test-exclude6.sh: Likewise.
6664         * tests/test-exclude7.sh: Likewise.
6665         * tests/test-exclude8.sh: Likewise.
6666         * modules/exclude-tests (Files): List init.sh.
6667
6668         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6669         These shell scripts ignored failure of the binary test-exclude,
6670         so making the latter return 77 didn't cause them to be skipped.
6671         * tests/test-exclude5.sh: Exit with test-exclude's error status
6672         when that program fails.  Revamp to use init.sh.
6673         * tests/test-exclude2.sh: Likewise.
6674
6675         test-exclude: fix a typo
6676         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6677
6678 2011-11-11  Bruno Haible  <bruno@clisp.org>
6679
6680         obstack: Fix compilation error on MSVC 9.
6681         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6682
6683 2011-11-11  Jim Meyering  <meyering@redhat.com>
6684
6685         test-exclude: skip tests rather than failing on deficient systems
6686         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6687         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6688         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6689         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6690
6691 2011-11-10  Bruno Haible  <bruno@clisp.org>
6692
6693         ptsname_r test: Avoid gcc warning on glibc systems.
6694         * tests/test-ptsname_r.c (null_ptr): New function.
6695         (test_errors): Use it.
6696
6697 2011-11-10  Bruno Haible  <bruno@clisp.org>
6698
6699         ptsname_r: Avoid compilation error on OSF/1 5.1.
6700         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6702         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6703         function is not declared or incompatibly declared.
6704         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6705         * modules/ptsname_r (Depends-on, configure.ac): Update.
6706         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6707
6708 2011-11-10  Bruno Haible  <bruno@clisp.org>
6709
6710         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6711         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6712         When cross-compiling, guess yes on all platforms except AIX.
6713         Reported by Ludovic Courtès <ludo@gnu.org>.
6714
6715 2011-11-09  Bruno Haible  <bruno@clisp.org>
6716
6717         ptsname_r tests: Fix bugs.
6718         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6719         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6720
6721 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6722
6723         fstatat: work with cross-compilation
6724         Problem reported by Ludovic Courtès in
6725         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6726         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6727         "cross-compiling" and assume the bug is present.  Replace
6728         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6729         an inverted sense, to be more conservative about our assumptions.
6730         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6731
6732 2011-11-09  Bruno Haible  <bruno@clisp.org>
6733
6734         Improve MODULES.html output.
6735         * modules/mkfifoat (Description): Use the word "function".
6736         * modules/readlinkat (Description): Likewise.
6737         * modules/symlinkat (Description): Likewise.
6738
6739 2011-11-09  Eric Blake  <eblake@redhat.com>
6740
6741         ptsname_r-tests: new test module
6742         * modules/ptsname_r-tests: New module.
6743         * tests/test-ptsname_r.c: New file.
6744
6745         ptsname_r: new module
6746         * modules/ptsname_r: New module.
6747         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6748         * lib/ptsname.c (__ptsname_r): Split...
6749         * lib/ptsname_r.c: ...into new file.
6750         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6751         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6752         * modules/stdlib (Makefile.am): Substitute witnesses.
6753         * lib/stdlib.in.h (ptsname_r): Declare it.
6754         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6755         * MODULES.html.sh (Misc): Likewise.
6756         * modules/ptsname (Depends-on): Alter dependency.
6757         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6758
6759 2011-11-09  Jim Meyering  <meyering@redhat.com>
6760
6761         announce-gen: be more concise when there's only one URL+tarball
6762         * build-aux/announce-gen (get_tool_versions): When you distribute
6763         only one type of tarball, combine the first two "Here are..."
6764         sections and make the key-checking grammar independent of
6765         how many tarballs there are.
6766
6767 2011-11-09  Eric Blake  <eblake@redhat.com>
6768
6769         openpty: provide a stub on mingw
6770         * lib/pty.in.h (includes): Provide forward declarations.
6771         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6772
6773         raise: fix mingw handling of SIGPIPE
6774         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6775
6776 2011-11-08  Bruno Haible  <bruno@clisp.org>
6777
6778         More conditional dependencies.
6779         * modules/faccessat (Depends-on): Add conditions.
6780         * modules/fchmodat (Depends-on): Likewise.
6781         * modules/fchownat (Depends-on): Likewise.
6782         * modules/fstatat (Depends-on): Likewise.
6783         * modules/mkfifoat (Depends-on): Likewise.
6784         * modules/readlinkat (Depends-on): Likewise.
6785         * modules/symlinkat (Depends-on): Likewise.
6786         * modules/unlinkat (Depends-on): Likewise.
6787         * modules/utimensat (Depends-on): Likewise.
6788         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6789         * modules/linkat (Depends-on): Refine the conditions.
6790         * modules/renameat (Depends-on): Likewise.
6791
6792 2011-11-08  Bruno Haible  <bruno@clisp.org>
6793
6794         faccessat: Move AC_LIBOBJ invocation to module description.
6795         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6796         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6797         invocation from here...
6798         * modules/faccessat (configure.ac): ... to here. Invoke
6799         gl_PREREQ_FACCESSAT.
6800
6801 2011-11-08  Bruno Haible  <bruno@clisp.org>
6802
6803         faccessat: Simplify autoconf macro.
6804         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6805         gl_FUNC_EUIDACCESS.
6806
6807 2011-11-08  Bruno Haible  <bruno@clisp.org>
6808
6809         renameat: Fix dependencies.
6810         * modules/renameat (Depends-on): Add stdbool.
6811
6812 2011-11-08  Bruno Haible  <bruno@clisp.org>
6813
6814         mkfifoat: Fix module description.
6815         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6816         not gl_UNISTD_MODULE_INDICATOR.
6817
6818 2011-11-08  Bruno Haible  <bruno@clisp.org>
6819
6820         fstatat: Remove unused dependency.
6821         * modules/fstatat (Depends-on): Remove fstat.
6822
6823 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6824
6825         GNUmakefile: behave when Makefile is missing.
6826         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6827
6828 2011-11-08  Bruno Haible  <bruno@clisp.org>
6829
6830         openat: Conditionalize dependencies.
6831         * lib/openat.c: Reduce the scope of some #includes.
6832         * modules/openat (Depends-on): Add conditions.
6833
6834 2011-11-07  Jim Meyering  <meyering@redhat.com>
6835
6836         maint.mk: extract GPG key ID without using a temporary file
6837         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6838         without using a temporary file.  Based on a suggestion from Werner Koch
6839         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6840
6841 2011-11-07  Eric Blake  <eblake@redhat.com>
6842
6843         grantpt: fix typo
6844         * lib/stdlib.in.h (grantpt): Check correct function.
6845
6846         maint.mk: silence new syntax check
6847         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6848
6849 2011-11-06  Bruno Haible  <bruno@clisp.org>
6850
6851         Doc about floating-point and math API.
6852         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6853         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6854
6855 2011-11-06  Bruno Haible  <bruno@clisp.org>
6856
6857         stdalign tests: Skip the test when compiled by Sun C.
6858         * tests/test-stdalign.c (main): Skip the test on Sun C.
6859
6860 2011-11-06  Bruno Haible  <bruno@clisp.org>
6861
6862         ansi-c++-opt: Complete the 2011-06-05 change.
6863         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6864         does not support namespaces, set the variable to "no", not to ":".
6865
6866 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6867
6868         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6869
6870 2011-11-06  Bruno Haible  <bruno@clisp.org>
6871
6872         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6873         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6874         (minus_zerol) [HP-UX]: New macro.
6875         (unary_minus) [HP-UX]: New function.
6876         (copysignl) [HP-UX]: Use unary_minus function.
6877
6878 2011-11-06  Bruno Haible  <bruno@clisp.org>
6879
6880         ldexp, ldexpf, ldexpl: Enhance tests.
6881         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6882         and tests/test-ldexpl.c.
6883         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6884         LDEXP, MIN_EXP, MAX_EXP): New macros.
6885         Include test-ldexp.h.
6886         (main): Just call test_function.
6887         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6888         infinity.h, nan.h.
6889         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6890         MAX_EXP): New macros.
6891         Include test-ldexp.h.
6892         (x, y): Remove variables.
6893         (main): Just call test_function.
6894         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6895         infinity.h, nan.h.
6896         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6897         MAX_EXP): New macros.
6898         Include test-ldexp.h.
6899         (x, y): Remove variables.
6900         (main): Just call test_function.
6901         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6902         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6903         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6904         (Depends-on): Add isnand-nolibm, signbit, float.
6905         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6906         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6907         (Depends-on): Add isnanf-nolibm, signbit, float.
6908
6909 2011-11-06  Bruno Haible  <bruno@clisp.org>
6910
6911         math tests: Cosmetics.
6912         * tests/test-math-c++.cc: Reorder declarations.
6913
6914 2011-11-05  Bruno Haible  <bruno@clisp.org>
6915
6916         fma*: Simplify test.
6917         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6918         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6919
6920         Tests for module 'fmal'.
6921         * modules/fmal-tests: New file.
6922         * tests/test-fmal1.c: New file.
6923         * tests/test-fmal2.c: New file.
6924
6925         New module 'fmal'.
6926         * lib/math.in.h (fmal): New declaration.
6927         * lib/fmal.c: New file.
6928         * m4/fmal.m4: New file.
6929         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6930         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6931         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6932         REPLACE_FMAL.
6933         * modules/fmal: New file.
6934         * doc/posix-functions/fmal.texi: Mention the new module and the various
6935         bugs.
6936
6937         Tests for module 'fmaf'.
6938         * modules/fmaf-tests: New file.
6939         * tests/test-fmaf1.c: New file.
6940         * tests/test-fmaf2.c: New file.
6941
6942         New module 'fmaf'.
6943         * lib/math.in.h (fmaf): New declaration.
6944         * lib/fmaf.c: New file.
6945         * m4/fmaf.m4: New file.
6946         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6947         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6948         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6949         REPLACE_FMAF.
6950         * modules/fmaf: New file.
6951         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6952         bugs.
6953
6954         Tests for module 'fma'.
6955         * modules/fma-tests: New file.
6956         * tests/test-fma1.c: New file.
6957         * tests/test-fma1.h: New file.
6958         * tests/test-fma2.c: New file.
6959         * tests/test-fma2.h: New file.
6960
6961         New module 'fma'.
6962         * lib/math.in.h (fma): New declaration.
6963         * lib/fma.c: New file.
6964         * m4/fma.m4: New file.
6965         * m4/fegetround.m4: New file.
6966         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6967         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6968         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6969         REPLACE_FMA.
6970         * modules/fma: New file.
6971         * doc/posix-functions/fma.texi: Mention the new module and the various
6972         bugs.
6973
6974         Extend gl_MATHFUNC.
6975         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6976         Support 'void' as argument type.
6977         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6978
6979 2011-11-05  Jim Meyering  <meyering@redhat.com>
6980
6981         maint.mk: also prohibit inclusion of dirent.h without use
6982         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6983
6984 2011-11-05  Bruno Haible  <bruno@clisp.org>
6985
6986         ldexpl tests: Avoid test failure on MSVC 9.
6987         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6988         value. Needed in order to enforce the conversion from a value greater
6989         than LDBL_MAX to Infinity.
6990
6991 2011-11-05  Bruno Haible  <bruno@clisp.org>
6992
6993         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6994         * modules/at-internal: New file, extracted from modules/openat.
6995         * modules/openat-h: New file.
6996         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6997         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6998         * modules/openat (Description): Add reference to POSIX function.
6999         (Files): Remove lib/openat.h, lib/openat-proc.c.
7000         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
7001         intprops, unistd.
7002         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
7003         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
7004         gl_FCNTL_MODULE_INDICATOR.
7005         (Include): Remove unistd.h, openat.h.
7006         * modules/areadlinkat (Files): Add lib/at-func.c.
7007         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7008         openat-die, openat-h, save-cwd.
7009         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
7010         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7011         openat-die, openat-h, save-cwd, unistd.
7012         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
7013         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7014         openat-h, save-cwd. Remove fcntl-h, openat.
7015         * modules/fchmodat (Files): Remove lib/openat.h.
7016         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7017         openat, stdbool, unistd.
7018         * modules/fchownat (Files): Remove lib/openat.h.
7019         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7020         openat, stdbool, sys_stat.
7021         * modules/fdopendir (Files): Remove lib/openat-priv.h,
7022         lib/openat-proc.c.
7023         (Depends-on): Add at-internal.
7024         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
7025         * modules/fstatat (Files): Remove lib/openat.h.
7026         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7027         stdbool, unistd.
7028         * modules/fts (Depends-on): Add openat-h.
7029         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
7030         openat.
7031         * modules/mkdirat (Files): Remove lib/openat.h.
7032         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7033         openat, stdbool, sys_stat.
7034         * modules/mkfifoat (Files): Add lib/at-func.c.
7035         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7036         openat-h, save-cwd. Remove fcntl-h, openat.
7037         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
7038         * modules/readlinkat (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/renameat (Depends-on): Add at-internal, openat-h. Remove
7042         openat.
7043         * modules/selinux-at (Files): Add lib/at-func.c.
7044         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7045         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
7046         * modules/symlinkat (Files): Add lib/at-func.c.
7047         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7048         openat-h, save-cwd. Remove fcntl-h, openat.
7049         * modules/unlinkat (Files): Remove lib/openat.h.
7050         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7051         stdbool.
7052         * modules/utimensat (Files): Add lib/at-func.c.
7053         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
7054         openat-die, openat-h, save-cwd.
7055         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
7056         * modules/fdutimensat-tests (Depends-on): Add openat.
7057         * modules/fstatat-tests (Depends-on): Add openat-h.
7058         * modules/readlinkat-tests (Depends-on): Add openat.
7059         * modules/symlinkat-tests (Depends-on): Add openat.
7060
7061 2011-11-05  Bruno Haible  <bruno@clisp.org>
7062
7063         openat: Include <stdbool.h>.
7064         * lib/openat.c: Include <stdbool.h>.
7065
7066 2011-11-04  Bruno Haible  <bruno@clisp.org>
7067
7068         fchownat, renameat, unlinkat: Fix dependencies.
7069         * modules/fchownat (Depends-on): Add fstatat.
7070         * modules/renameat (Depends-on): Likewise.
7071         * modules/unlinkat (Depends-on): Likewise.
7072
7073 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
7074
7075         openat: remove direct dependency on dirent
7076         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
7077         and hasn't been needed ever since fdopendir was split into its own
7078         module on 2009-08-31.
7079         * modules/openat (Depends-on): Remove dirent.
7080
7081 2011-11-04  Bruno Haible  <bruno@clisp.org>
7082
7083         renameat: Optimize code size.
7084         * modules/renameat (configure.ac): Don't compile at-func2.c if
7085         REPLACE_RENAMEAT is 1.
7086
7087 2011-11-04  Bruno Haible  <bruno@clisp.org>
7088
7089         openat tests: Fix file list.
7090         * modules/openat-tests (Files): Add tests/test-open.h.
7091
7092 2011-11-04  Bruno Haible  <bruno@clisp.org>
7093
7094         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
7095         * modules/fchmodat (Depends-on): Add openat-die.
7096         * modules/fchownat (Depends-on): Likewise.
7097         * modules/linkat (Depends-on): Likewise.
7098         * modules/renameat (Depends-on): Likewise.
7099         * modules/openat (Depends-on): Add dirent.
7100
7101 2011-11-04  Jim Meyering  <meyering@redhat.com>
7102
7103         at-func*.c: fix comments
7104         * lib/at-func2.c: Correct/improve first-line comment.
7105         * lib/at-func.c: Correct grammar in first-line comment.
7106
7107 2011-11-04  Bruno Haible  <bruno@clisp.org>
7108
7109         New module 'mkdirat', split off from module 'openat'.
7110         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
7111         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
7112         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
7113         * modules/mkdirat: New file, extracted from modules/openat.
7114         * modules/openat (Files): Remove lib/mkdirat.c.
7115         (Depends-on): Remove mkdir.
7116         (configure.ac): Remove AC_LIBOBJ of mkdirat.
7117         (Include): Remove <sys/stat.h>.
7118         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
7119         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
7120         tests/test-mkdir.h.
7121         (Depends-on): Remove ignore-value.
7122         (Makefile.am): Remove rules for test-mkdirat.
7123         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
7124         of module 'openat'.
7125         * NEWS: Mention the change.
7126
7127 2011-11-04  Bruno Haible  <bruno@clisp.org>
7128
7129         closedir: Avoid warning on mingw.
7130         * lib/closedir.c: Include <unistd.h>.
7131
7132 2011-11-04  Bruno Haible  <bruno@clisp.org>
7133
7134         New module 'fstatat', split off from module 'openat'.
7135         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
7136         defined.
7137         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
7138         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
7139         gl_FUNC_FSTATAT.
7140         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
7141         * modules/fstatat: New file, extracted from modules/openat.
7142         * modules/openat (Files): Remove lib/fstatat.c.
7143         (Depends-on): Remove lstat.
7144         (configure.ac): Remove AC_LIBOBJ of fstatat.
7145         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
7146         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
7147         tests/test-lstat.h, tests/test-stat.h.
7148         (Depends-on): Remove getcwd-lgpl.
7149         (Makefile.am): Remove rules for test-fstatat.
7150         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
7151         of module 'openat'.
7152         * NEWS: Mention the change.
7153         * modules/getcwd (Depends-on): Add fstatat.
7154         * modules/linkat (Depends-on): Likewise.
7155         * modules/mkfifoat-tests (Depends-on): Likewise.
7156         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
7157
7158 2011-11-03  Bruno Haible  <bruno@clisp.org>
7159
7160         New module 'unlinkat', split off from module 'openat'.
7161         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
7162         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
7163         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
7164         * modules/unlinkat: New file, extracted from modules/openat. Correct
7165         the dependency conditions.
7166         * modules/openat (Files): Remove lib/unlinkat.c.
7167         (Depends-on): Remove rmdir, unlink.
7168         (configure.ac): Remove AC_LIBOBJ of unlinkat.
7169         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
7170         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
7171         tests/test-rmdir.h, tests/test-unlink.h.
7172         (Depends-on): Remove unlinkdir.
7173         (Makefile.am): Remove rules for test-unlinkat.
7174         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
7175         of module 'openat'.
7176         * NEWS: Mention the change.
7177         * modules/linkat-tests (Depends-on): Add unlinkat.
7178         * modules/mkfifoat-tests (Depends-on): Likewise.
7179         * modules/readlinkat-tests (Depends-on): Likewise.
7180
7181 2011-11-02  Bruno Haible  <bruno@clisp.org>
7182
7183         New module 'fchmodat', split off from module 'openat'.
7184         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
7185         defined.
7186         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
7187         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
7188         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
7189         * modules/fchmodat: New file, extracted from modules/openat.
7190         * modules/openat (Files): Remove lib/fchmodat.c.
7191         (configure.ac): Remove AC_LIBOBJ of fchmodat.
7192         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
7193         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
7194         (Makefile.am): Remove rules for test-fchmodat.
7195         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
7196         of module 'openat'.
7197         * NEWS: Mention the change.
7198
7199 2011-11-02  Jim Meyering  <meyering@redhat.com>
7200
7201         putenv: indent #definition of "environ" to placate cppi
7202         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
7203
7204         gitlog-to-changelog: provide a ChangeLog-repair mechanism
7205         Git logs are often treated as immutable, because editing them
7206         changes the SHA1 checksums of all descendants.  Thus, errors in
7207         git logs tend to stay there forever.  However, when we generate
7208         a ChangeLog file -- typically for distribution -- from that git log,
7209         we can actually make corrections in the generated file.  The key
7210         lies in recording in machine-readable/applicable form the desired
7211         corrections.  See --help for description and an example.
7212         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
7213         (usage): Describe it; alphabetize option descriptions.
7214         (main): Honor the new option, carefully.
7215
7216 2011-11-01  Jim Meyering  <meyering@redhat.com>
7217
7218         gitlog-to-changelog: avoid an infloop
7219         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
7220         that ends up being empty.
7221
7222 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7223
7224         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
7225         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
7226         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
7227         contains (possibly-quoted) backslashes.  This should avoid
7228         all-too-common shell bugs if COMPLICATED contains backslashes in
7229         the "wrong" places.  Reported by David Evans in
7230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
7231         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
7232         because we want ASCII ranges.  Is there some reason we don't use
7233         the C locale everywhere in this script?
7234         (func_module, top level): Avoid unwanted pathname expansion when
7235         $repo_url_prefix or $repo_url_suffix_repl contain shell
7236         metacharacters like '?' and '*'.
7237
7238 2011-11-01  Bruno Haible  <bruno@clisp.org>
7239
7240         fchownat: Improve description.
7241         * modules/fchownat (Description): Add link to function.
7242
7243 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7244
7245         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
7246         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
7247         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
7248         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
7249
7250 2011-11-01  Bruno Haible  <bruno@clisp.org>
7251
7252         alignof: Avoid collision with stdalign module.
7253         * lib/alignof.h (alignof): Remove macro.
7254         * NEWS: Mention the change.
7255         Reported by Paul Eggert.
7256
7257 2011-11-01  Bruno Haible  <bruno@clisp.org>
7258
7259         New module 'fchownat', split off from module 'openat'.
7260         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
7261         defined.
7262         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
7263         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
7264         invoke gl_FUNC_FCHOWNAT.
7265         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
7266         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
7267         * modules/fchownat: New file, extracted from modules/openat.
7268         * modules/openat (Files): Remove lib/fchownat.c.
7269         (Depends-on): Remove lchown.
7270         (configure.ac): Remove AC_LIBOBJ of fchownat.
7271         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
7272         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
7273         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
7274         (Depends-on): Remove mgetgroups, usleep, stat-time.
7275         (configure.ac): Remove test for getegid.
7276         (Makefile.am): Remove rules for test-fchownat.
7277         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
7278         of module 'openat'.
7279         * NEWS: Mention the change.
7280
7281 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7282
7283         stdalign: port better to MSVC and to Sun C 5.11
7284         This fixes some of the problems reported by Bruno Haible in
7285         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
7286         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
7287         shortcomings of MSVC and of Sun C 5.11.
7288         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
7289         around __declspec arg.
7290         * modules/stdalign-tests (Files): Add tests/macros.h.
7291         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
7292         Include macros.h, for ASSERT.
7293         (DECLARE_ALIGNED): Remove.
7294         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
7295         to catch bug), and to 1 if not (simplifies the rest of the code).
7296         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
7297         (CHECK_AUTO): Remove.
7298         (CHECK_ALIGNED): Check only the alignment of the static vars,
7299         since auto var alignment isn't supported by Sun C 5.11.
7300         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
7301         ASSERT failures are easier to diagnose.
7302
7303 2011-10-31  Bruno Haible  <bruno@clisp.org>
7304
7305         doc about some IRIX 5.3 problems.
7306         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
7307         on IRIX 5.3.
7308         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
7309         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
7310         5.3.
7311         * doc/posix-functions/grantpt.texi: Likewise.
7312         * doc/posix-functions/unlockpt.texi: Likewise.
7313         * doc/posix-functions/lgamma.texi: Likewise.
7314         * doc/posix-functions/nextafter.texi: Likewise.
7315         * doc/posix-functions/remainder.texi: Likewise.
7316         * doc/posix-functions/select.texi: Mention misplaced declaration on
7317         IRIX 5.3.
7318         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7319
7320 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
7321
7322         gitlog-to-changelog: fix git-log invocation.
7323         git-log mishandles date strings before 1970-01-01 UTC, and there is
7324         no use to specify --since=1970-01-01 by default anyway.
7325         * build-aux/gitlog-to-changelog: By default, when no --since option
7326         was given, do not specify explicit --since option to git-log.
7327
7328 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
7329
7330         gitlog-to-changelog: new option --append-dot.
7331         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
7332         first non-blank line of each commit message terminated with a dot.
7333
7334 2011-10-30  Bruno Haible  <bruno@clisp.org>
7335
7336         ffsl, ffsll: Avoid compilation error due to 'restrict'.
7337         * lib/ffsl.h: Include <config.h>.
7338         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
7339
7340 2011-10-30  Jim Meyering  <meyering@redhat.com>
7341
7342         GNUmakefile: reenable "make syntax-check" for most projects
7343         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
7344         build-aux variable", "syntax-check" would do nothing but succeed with
7345         the "No version control files detected..." diagnostic (unless you
7346         happened to override _build-aux via cfg.mk).
7347         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
7348         to precede inclusion of maint.mk.  Otherwise, these variables would
7349         be used undefined in any project that does not override the default.
7350
7351 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
7352
7353         gitlog-to-changelog: treat a message with only blank lines as empty.
7354         * build-aux/gitlog-to-changelog: Move the code that removes leading and
7355         trailing blank lines before the code that issues a warning about an
7356         empty commit message.
7357
7358 2011-10-30  Jim Meyering  <meyering@redhat.com>
7359
7360         test-parse-datetime.c: avoid new DST-related false positive test failure
7361         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
7362         based on the time/date we'll convert, not the current time.
7363         Otherwise, the moment we cross a DST boundary like today's in
7364         Europe, (CEST to CET), that offset ends up being one hour off.
7365
7366 2011-10-27  Bruno Haible  <bruno@clisp.org>
7367
7368         fstat: Tweak documentation.
7369         * modules/fstat (Description): More precise description.
7370
7371 2011-10-27  Bruno Haible  <bruno@clisp.org>
7372
7373         Update documentation regarding 'largefile' module.
7374         * doc/posix-functions/fstat.texi: Tweak wording.
7375         * doc/posix-functions/opendir.texi: Mention that the module fixes the
7376         problems with huge directories and/or small ino_t types.
7377         * doc/posix-functions/readdir.texi: Likewise.
7378         * doc/posix-functions/rewinddir.texi: Likewise.
7379
7380 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
7381
7382         maint.mk: don't maintain a second build-aux variable.
7383         * maint.mk (build_aux): Removed.  The maintainer-makefile module
7384         depends on GNUmakefile, which already maintains a cfg.mk
7385         overridable $(_build-aux) for projects with a non-standard
7386         build-aux directory location, although without the $(srcdir)
7387         prefix.  Use that variable consistently instead of introducing a
7388         second one.  Adjust all call sites.
7389
7390 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
7391
7392         Add stdalign module and use it in other modules.
7393         This is based on a previous proposal by Bruno Haible
7394         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
7395
7396         stdalign: new module
7397         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
7398         * modules/stdalign: New files.
7399         * MODULES.html.sh (c1x_core_properties): Add stdalign.
7400         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
7401
7402         stdalign-tests: new module
7403         * modules/stdalign-tests, tests/test-stdalign.c: New files.
7404
7405         argp: use stdalign
7406         * lib/argp-parse.c: Include <stdalign.h>.
7407         (alignof): Remove.
7408         * modules/argp (Depends-on): Add stdalign.
7409
7410         crypto libraries: use stdalign
7411         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
7412         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
7413         Do not include <stdlib.h> twice, in md4.c.
7414         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
7415         because we are accessing a pointer's bit-pattern, not a size.
7416         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
7417         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
7418         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
7419         * modules/crypto/sha512: Likewise.
7420
7421         sys_socket: use stdalign, not alignof
7422         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
7423         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
7424
7425 2011-10-27  Bruno Haible  <bruno@clisp.org>
7426
7427         raise test: Avoid a test failure on Linux/MIPS.
7428         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
7429         because 99 is a valid signal on Linux/MIPS.
7430
7431 2011-10-27  Bruno Haible  <bruno@clisp.org>
7432
7433         nonblocking tests: Fix test failure on Linux/MIPS.
7434         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
7435         Set to 270000.
7436
7437 2011-10-27  Bruno Haible  <bruno@clisp.org>
7438
7439         utimensat: Work around problem on Linux/hppa.
7440         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
7441         values.
7442         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
7443
7444 2011-10-25  Jim Meyering  <meyering@redhat.com>
7445
7446         maint.mk: fix a bug in sc_prohibit_stddef_without_use
7447         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
7448         after symbols like NULL, size_t, etc.
7449         Reported by Alfred M. Szmidt.
7450
7451         maint.mk: exempt ENODATA from a syntax-check rule
7452         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
7453         from the sc_prohibit_always-defined_macros syntax-check rule.
7454         Add a comment.  See this for more details:
7455         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
7456
7457 2011-10-23  Jim Meyering  <meyering@redhat.com>
7458
7459         fts: close parent dir FD before returning from post-traversal fts_read
7460         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
7461         unlink A, even though an FD open on A remained.  This is suboptimal
7462         (holding a file descriptor open longer than needed), but otherwise not
7463         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
7464         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
7465         that represents a real problem: it causes the removal of A to fail
7466         with e.g., "rm: cannot remove `A': Device or resource busy"
7467
7468         fts visits each directory twice and keeps a cache (fts_fd_ring) of
7469         directory file descriptors.  After completing the final, FTS_DP,
7470         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
7471         cache, but then proceeded to add a new FD to it via the subsequent
7472         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
7473         final file descriptor would be closed only via fts_close's call to
7474         fd_ring_clear.  Now, it is usually closed earlier, via the final
7475         FTS_DP-returning fts_read call.
7476         * lib/fts.c (restore_initial_cwd): New function, converted from
7477         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
7478         Update callers.
7479         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
7480         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
7481
7482 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
7483             Bruno Haible  <bruno@clisp.org>
7484             Jim Meyering  <jim@meyering.net>
7485
7486         readme-release: improve safety of release prep instructions.
7487         * README-release: Don't git pull all branches when only master
7488         is needed for the release process.
7489         Run make maintainer-clean before changing trees and merging.
7490         Don't try to run ./configure right after git pull in case files
7491         that influence the bootstrap process have changed, move the
7492         ./configure step to after running ./bootstrap.
7493         Don't bootstrap "one last time"... it's the first time!
7494
7495 2011-10-22  Bruno Haible  <bruno@clisp.org>
7496
7497         errno, strerror-override: Support for MSVC 10.
7498         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
7499         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
7500         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
7501         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
7502         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
7503         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
7504         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
7505         Assign values compatible with MSVC 10.
7506         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
7507         New macros.
7508         (GNULIB_defined_EWINSOCK): New macro.
7509         * lib/strerror-override.c (strerror_override): Update accordingly.
7510         * lib/strerror-override.h: Likewise.
7511         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
7512         longer equal to the corresponding errno value.
7513         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7514
7515 2011-10-22  Bruno Haible  <bruno@clisp.org>
7516
7517         perror: Recognize when test program crashes.
7518         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
7519         strerror, set gl_cv_func_perror_works to no.
7520         Reported by Daniel Richard G. <skunk@iskunk.org>.
7521
7522         perror: Fix indentation.
7523         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
7524
7525 2011-10-22  Bruno Haible  <bruno@clisp.org>
7526
7527         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
7528         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
7529         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
7530         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
7531         functions, not as a macro.
7532         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
7533         macros.
7534         (isfinite, isinf, isnan, signbit): Check overloaded functions and
7535         absence of macro.
7536         Suggested by Eric Blake.
7537         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7538
7539 2011-10-21  Bruno Haible  <bruno@clisp.org>
7540
7541         relocatable-prog-wrapper: Don't leave object files behind.
7542         * build-aux/install-reloc: Re-synchronize list of .o files to be
7543         removed with list of compilation units.
7544
7545 2011-10-20  Bruno Haible  <bruno@clisp.org>
7546
7547         openpty, posix_openpt: Remove code duplication.
7548         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
7549         * lib/openpty.c: Include <stdlib.h>.
7550         (openpty): Use posix_openpt on all platforms except IRIX.
7551         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
7552
7553 2011-10-20  Bruno Haible  <bruno@clisp.org>
7554
7555         unlockpt: Detect invalid argument.
7556         * lib/unlockpt.c: Include <fcntl.h>.
7557         (unlockpt): Check whether fd is valid, using fcntl().
7558         * modules/unlockpt (Depends-on): Add fcntl-h.
7559
7560 2011-10-20  Bruno Haible  <bruno@clisp.org>
7561
7562         openpty: Avoid compilation error on AIX 6.1.
7563         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7564
7565 2011-10-20  Bruno Haible  <bruno@clisp.org>
7566
7567         posix_openpt: Support for OpenBSD.
7568         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7569         (posix_openpt) [OpenBSD]: New code.
7570         * lib/grantpt.c: Include <fcntl.h>.
7571         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7572         * modules/grantpt (Depends-on): Add fcntl-h.
7573
7574 2011-10-20  Bruno Haible  <bruno@clisp.org>
7575
7576         posix_openpt test: Coding style.
7577         * tests/test-posix_openpt.c: Use GNU coding style.
7578
7579 2011-10-20  Bruno Haible  <bruno@clisp.org>
7580
7581         grantpt: Support --avoid=pt_chown.
7582         * modules/grantpt (Files): Add lib/pty-private.h.
7583
7584 2011-10-20  Bruno Haible  <bruno@clisp.org>
7585
7586         posix_openpt: Fix autoconf macro.
7587         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7588         unneeded check for _getpty.
7589
7590 2011-10-20  Bruno Haible  <bruno@clisp.org>
7591
7592         openpty: Update comments.
7593         * lib/openpty.c: Add comments about Minix.
7594
7595 2011-10-19  Eric Blake  <eblake@redhat.com>
7596
7597         openpty: relax license
7598         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7599
7600         pt_chown: use configmake to simplify build
7601         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7602
7603         ptsname and others: relax license
7604         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7605         * modules/unlockpt (License): Likewise.
7606         * modules/pt_chown (License): Likewise.
7607         * modules/ptsname (License): Likewise.
7608         * modules/ttyname_r (License): Likewise.
7609
7610 2011-10-19  Jim Meyering  <meyering@redhat.com>
7611
7612         posix_openpt: remove spurious #endif
7613         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7614
7615 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7616
7617         maint.mk: Respect $(build_aux) in web-manual rule.
7618         * top/maint.mk (web-manual): Find gen-announce script in user's
7619         $(build_aux) directory instead of hard-coding 'build-aux'.
7620
7621 2011-10-19  Bruno Haible  <bruno@clisp.org>
7622
7623         posix_openpt: Fix compilation error.
7624         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7625         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7626         Mention the openpty module as an alternative.
7627
7628 2011-10-19  Bruno Haible  <bruno@clisp.org>
7629
7630         Support for old NeXTstep 3.3 frexp().
7631         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7632         execution time of the test to 5 seconds.
7633         Reported by Daniel Richard G. <skunk@iskunk.org>.
7634
7635 2011-10-19  Bruno Haible  <bruno@clisp.org>
7636
7637         Support for old NeXTstep 3.3 sed.
7638         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7639         part, use /.../, not \|...|. Escape periods in the header file name.
7640         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7641         Reported by Daniel Richard G. <skunk@iskunk.org>.
7642
7643 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7644
7645         Support for old NeXTstep 3.3 gcc.
7646         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7647         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7648         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7649         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7650         * lib/regex.h (_Restrict_arr_): Likewise.
7651         * lib/regex_internal.h (re_token_t): Likewise.
7652         * lib/regexec.c (check_node_accept_bytes): Likewise.
7653         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7654
7655 2011-10-18  Eric Blake  <eblake@redhat.com>
7656
7657         posix_openpt: new module
7658         * modules/posix_openpt: New module.
7659         * m4/posix_openpt.m4: New file.
7660         * lib/posix_openpt.c: Likewise.
7661         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7662         (gl_STDLIB_H_DEFAULTS): Set defaults.
7663         * modules/stdlib (Makefile.am): Substitute macros.
7664         * lib/stdlib.in.h (posix_openpt): Declare.
7665         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7666         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7667         * modules/posix_openpt-tests: New test module.
7668         * tests/test-posix_openpt.c: New test.
7669
7670 2011-10-15  Bruno Haible  <bruno@clisp.org>
7671
7672         xstrtoll: Fix compilation failure.
7673         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7674         from lib/strtol.c.
7675         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7676         some platforms.
7677         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7678
7679 2011-10-15  Bruno Haible  <bruno@clisp.org>
7680
7681         vasnprintf: Optimize bit search operation.
7682         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7683         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7684         gl_DOUBLE_EXPONENT_LOCATION.
7685         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7686         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7687         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7688         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7689         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7690         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7691         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7692         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7693         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7694
7695 2011-10-15  Bruno Haible  <bruno@clisp.org>
7696
7697         vasnprintf: Fix comments.
7698         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7699
7700 2011-10-14  Bruno Haible  <bruno@clisp.org>
7701
7702         Tests for module 'integer_length_ll'.
7703         * modules/integer_length_ll-tests: New file.
7704         * tests/test-integer_length_ll.c: New file.
7705
7706         New module 'integer_length_ll'.
7707         * lib/integer_length_ll.c: New file.
7708         * modules/integer_length_ll: New file.
7709
7710 2011-10-14  Bruno Haible  <bruno@clisp.org>
7711
7712         Tests for module 'integer_length_l'.
7713         * modules/integer_length_l-tests: New file.
7714         * tests/test-integer_length_l.c: New file.
7715
7716         New module 'integer_length_l'.
7717         * lib/integer_length_l.c: New file.
7718         * modules/integer_length_l: New file.
7719
7720 2011-10-14  Bruno Haible  <bruno@clisp.org>
7721
7722         Tests for module 'integer_length'.
7723         * modules/integer_length-tests: New file.
7724         * tests/test-integer_length.c: New file.
7725
7726         New module 'integer_length'.
7727         * lib/integer_length.h: New file.
7728         * lib/integer_length.c: New file.
7729         * modules/integer_length: New file.
7730
7731 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7732
7733         popen: Fix dependency conditions.
7734         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7735
7736 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7737
7738         perror: Fix autoconf test.
7739         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7740         <stdlib.h> and <string.h>.
7741
7742 2011-10-14  Bruno Haible  <bruno@clisp.org>
7743
7744         ffsl: Optimize on 64-bit platforms.
7745         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7746         unrolling.
7747
7748 2011-10-13  Bruno Haible  <bruno@clisp.org>
7749
7750         ffsl: Optimize on 32-bit platforms.
7751         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7752         use ffs() without a loop.
7753
7754         ffsl, ffsll: Optimize for GCC.
7755         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7756         * lib/ffsl.c (GCC_BUILTIN): New macro.
7757         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7758
7759 2011-10-13  Bruno Haible  <bruno@clisp.org>
7760
7761         ffs, bcopy, memset: Support symbol renaming via config.h.
7762         * lib/ffs.c: Include <config.h>.
7763         * lib/bcopy.c: Likewise.
7764         * lib/memset.c: Likewise.
7765
7766 2011-10-10  Bruno Haible  <bruno@clisp.org>
7767
7768         atanl: Simplify for platforms where 'long double' == 'double'.
7769         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7770         alternative implementation.
7771         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7772         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7773         * modules/atanl (Depends-on): Add atan. Update conditions.
7774
7775 2011-10-10  Bruno Haible  <bruno@clisp.org>
7776
7777         acosl: Simplify for platforms where 'long double' == 'double'.
7778         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7779         alternative implementation.
7780         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7781         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7782         * modules/acosl (Depends-on): Add acos. Update conditions.
7783
7784 2011-10-10  Bruno Haible  <bruno@clisp.org>
7785
7786         asinl: Simplify for platforms where 'long double' == 'double'.
7787         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7788         alternative implementation.
7789         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7790         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7791         * modules/asinl (Depends-on): Add asin. Update conditions.
7792
7793 2011-10-10  Bruno Haible  <bruno@clisp.org>
7794
7795         tanl: Simplify for platforms where 'long double' == 'double'.
7796         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7797         implementation.
7798         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7799         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7800         * modules/tanl (Depends-on): Add tan. Update conditions.
7801         (configure.ac): Don't compile trigl.c if
7802         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7803
7804 2011-10-10  Bruno Haible  <bruno@clisp.org>
7805
7806         cosl: Simplify for platforms where 'long double' == 'double'.
7807         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7808         implementation.
7809         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7810         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7811         * modules/cosl (Depends-on): Add cos. Update conditions.
7812         (configure.ac): Don't compile sincosl.c and trigl.c if
7813         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7814
7815 2011-10-10  Bruno Haible  <bruno@clisp.org>
7816
7817         sinl: Simplify for platforms where 'long double' == 'double'.
7818         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7819         implementation.
7820         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7821         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7822         * modules/sinl (Depends-on): Add sin. Update conditions.
7823         (configure.ac): Don't compile sincosl.c and trigl.c if
7824         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7825
7826 2011-10-10  Bruno Haible  <bruno@clisp.org>
7827
7828         logl: Simplify for platforms where 'long double' == 'double'.
7829         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7830         implementation.
7831         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7832         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7833         * modules/logl (Depends-on): Add log. Update conditions.
7834
7835 2011-10-10  Bruno Haible  <bruno@clisp.org>
7836
7837         expl: Simplify for platforms where 'long double' == 'double'.
7838         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7839         implementation.
7840         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7841         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7842         * modules/expl (Depends-on): Add exp. Update conditions.
7843
7844 2011-10-10  Bruno Haible  <bruno@clisp.org>
7845
7846         sqrtl: Simplify for platforms where 'long double' == 'double'.
7847         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7848         alternative implementation.
7849         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7850         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7851         * modules/sqrtl (Depends-on): Update conditions.
7852
7853 2011-10-10  Bruno Haible  <bruno@clisp.org>
7854
7855         ldexpl: Simplify for platforms where 'long double' == 'double'.
7856         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7857         alternative implementation.
7858         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7859         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7860         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7861
7862 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7863
7864         ffsll: set correct witness
7865         * modules/ffsll (configure.ac): Fix typo.
7866
7867 2011-10-10  Bruno Haible  <bruno@clisp.org>
7868
7869         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7870         * lib/printf-frexpl.c: Include <config.h>.
7871         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7872         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7873         second time.
7874         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7875         gl_LONG_DOUBLE_VS_DOUBLE.
7876         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7877         conditions.
7878
7879 2011-10-10  Bruno Haible  <bruno@clisp.org>
7880
7881         frexpl: Simplify for platforms where 'long double' == 'double'.
7882         * lib/frexpl.c: Include <config.h>.
7883         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7884         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7885         time.
7886         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7887         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7888         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7889         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7890         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7891         conditions.
7892
7893 2011-10-10  Jim Meyering  <meyering@redhat.com>
7894
7895         test-renameat: don't leave behind a temporary file
7896         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7897           ERROR: files left in build directory after distclean:
7898           ./gltests/test-renameat.too
7899           make[1]: *** [distcleancheck] Error 1
7900         Reported by Tom G. Christensen.
7901
7902 2011-10-09  Bruno Haible  <bruno@clisp.org>
7903
7904         rint: Determine RINT_LIBM correctly on AIX 7.
7905         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7906         directly, not only through a function pointer. Also accept an optional
7907         4th argument with extra code.
7908         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7909         rintf() call by gcc when optimizing.
7910
7911         mathfunc.m4: Refactor.
7912         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7913         m4 variable.
7914
7915 2011-10-09  Bruno Haible  <bruno@clisp.org>
7916
7917         rintl: Simplify for platforms where 'long double' == 'double'.
7918         * lib/rintl.c: Include <config.h>.
7919         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7920         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7921         time.
7922         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7923         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7924         * modules/rintl (Depends-on): Add rint. Update conditions.
7925
7926 2011-10-09  Bruno Haible  <bruno@clisp.org>
7927
7928         roundl: Simplify for platforms where 'long double' == 'double'.
7929         * lib/roundl.c: Include <config.h>.
7930         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7931         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7932         time.
7933         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7934         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7935         * modules/roundl (Depends-on): Add round. Update conditions.
7936
7937 2011-10-09  Bruno Haible  <bruno@clisp.org>
7938
7939         truncl: Simplify for platforms where 'long double' == 'double'.
7940         * lib/truncl.c: Include <config.h>.
7941         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7942         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7943         time.
7944         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7945         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7946         * modules/truncl (Depends-on): Add trunc. Update conditions.
7947
7948 2011-10-09  Bruno Haible  <bruno@clisp.org>
7949
7950         ceill: Simplify for platforms where 'long double' == 'double'.
7951         * lib/ceill.c: Include <config.h>.
7952         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7953         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7954         time.
7955         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7956         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7957         * modules/ceill (Depends-on): Add ceil. Update conditions.
7958
7959 2011-10-09  Bruno Haible  <bruno@clisp.org>
7960
7961         floorl: Simplify for platforms where 'long double' == 'double'.
7962         * lib/floorl.c: Include <config.h>.
7963         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7964         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7965         time.
7966         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7967         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7968         * modules/floorl (Depends-on): Add floor. Update conditions.
7969
7970 2011-10-09  Bruno Haible  <bruno@clisp.org>
7971
7972         rint: Fix ordering constraints.
7973         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7974         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7975         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7976
7977 2011-10-09  Bruno Haible  <bruno@clisp.org>
7978
7979         copysignl: Simplify for platforms where 'long double' == 'double'.
7980         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7981         alternative.
7982         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7983         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7984         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7985
7986 2011-10-09  Bruno Haible  <bruno@clisp.org>
7987
7988         Tests for module 'rintl'.
7989         * modules/rintl-tests: New file.
7990         * tests/test-rintl.c: New file.
7991
7992         New module 'rintl'.
7993         * lib/math.in.h (rintl): New declaration.
7994         * lib/rintl.c: New file.
7995         * m4/rintl.m4: New file.
7996         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7997         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7998         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7999         * modules/rintl: New file.
8000         * tests/test-math-c++.cc: Check the declaration of rintl.
8001         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8002         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
8003         * doc/posix-functions/rintl.texi: Mention the new module.
8004
8005 2011-10-09  Bruno Haible  <bruno@clisp.org>
8006
8007         Tests for module 'rintf'.
8008         * modules/rintf-tests: New file.
8009         * tests/test-rintf.c: New file.
8010
8011         New module 'rintf'.
8012         * lib/math.in.h (rintf): New declaration.
8013         * lib/rintf.c: New file.
8014         * m4/rintf.m4: New file.
8015         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
8016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
8017         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
8018         * modules/rintf: New file.
8019         * tests/test-math-c++.cc: Check the declaration of rintf.
8020         * doc/posix-functions/rintf.texi: Mention the new module.
8021
8022 2011-10-09  Bruno Haible  <bruno@clisp.org>
8023
8024         rint: Support for MSVC.
8025         * lib/math.in.h (rint): New declaration.
8026         * lib/rint.c: New file.
8027         * m4/rint.m4: New file.
8028         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
8029         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
8030         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
8031         * modules/rint (Description): Fix.
8032         (Files): Add lib/rint.c, m4/rint.m4.
8033         (Depends-on): Add math.
8034         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
8035         gl_MATH_MODULE_INDICATOR.
8036         * tests/test-math-c++.cc: Check the declaration of rint.
8037         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8038         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
8039         * doc/posix-functions/rint.texi: Mention the replacement provided by
8040         the module.
8041
8042         rint tests: More tests.
8043         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
8044         minus-zero.h, infinity.h, nan.h.
8045         (main): Skip the test if the current rounding mode is not standard. Add
8046         tests for negative numbers, minus zero, infinity, NaN.
8047         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
8048         tests/nan.h.
8049         (Depends-on): Add isnand-nolibm.
8050
8051 2011-10-09  Bruno Haible  <bruno@clisp.org>
8052
8053         Tests for module 'copysignl'.
8054         * modules/copysignl-tests: New file.
8055         * tests/test-copysignl.c: New file.
8056
8057         New module 'copysignl'.
8058         * lib/math.in.h (copysignl): New declaration.
8059         * lib/copysignl.c: New file.
8060         * m4/copysignl.m4: New file.
8061         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
8062         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
8063         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
8064         HAVE_COPYSIGNL.
8065         * modules/copysignl: New file.
8066         * tests/test-math-c++.cc: Check the declaration of copysignl.
8067         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8068         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
8069         * doc/posix-functions/copysignl.texi: Mention the new module.
8070
8071 2011-10-09  Bruno Haible  <bruno@clisp.org>
8072
8073         Tests for module 'copysignf'.
8074         * modules/copysignf-tests: New file.
8075         * tests/test-copysignf.c: New file.
8076
8077         New module 'copysignf'.
8078         * lib/math.in.h (copysignf): New declaration.
8079         * lib/copysignf.c: New file.
8080         * m4/copysignf.m4: New file.
8081         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
8082         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
8083         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
8084         HAVE_COPYSIGNF.
8085         * modules/copysignf: New file.
8086         * tests/test-math-c++.cc: Check the declaration of copysignf.
8087         * doc/posix-functions/copysignf.texi: Mention the new module.
8088
8089 2011-10-09  Bruno Haible  <bruno@clisp.org>
8090
8091         Ensure that HAVE_* variables are set to 1 before they are set to 0.
8092         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
8093         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
8094         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8095         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
8096         gl_SIGNAL_H_DEFAULTS.
8097
8098 2011-10-09  Bruno Haible  <bruno@clisp.org>
8099
8100         poll: Make macro safer.
8101         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
8102         ac_cv_header_poll_h is not set.
8103
8104 2011-10-09  Bruno Haible  <bruno@clisp.org>
8105
8106         copysign: Provide replacement.
8107         * lib/math.in.h (copysign): New declaration.
8108         * lib/copysign.c: New file.
8109         * m4/copysign.m4: New file.
8110         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
8111         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
8112         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
8113         HAVE_COPYSIGN.
8114         * modules/copysign (Description): Clarify.
8115         (Files): Add lib/copysign.c, m4/copysign.m4.
8116         (Depends-on): Add math, signbit.
8117         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
8118         gl_MATH_MODULE_INDICATOR.
8119         * tests/test-math-c++.cc: Check the declaration of copysign.
8120         * doc/posix-functions/copysign.texi: Mention the effects of the module
8121         on Minix and MSVC.
8122
8123 2011-10-09  Bruno Haible  <bruno@clisp.org>
8124
8125         isinf: Ensure macro on AIX 5.1.
8126         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
8127         macro.
8128         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
8129
8130 2011-10-09  Bruno Haible  <bruno@clisp.org>
8131
8132         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
8133         * modules/snprintf-posix-tests (configure.ac): Require
8134         gl_LONG_DOUBLE_VS_DOUBLE.
8135         * modules/sprintf-posix-tests (configure.ac): Likewise.
8136         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
8137         * modules/vasprintf-posix-tests (configure.ac): Likewise.
8138         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
8139         * modules/vsprintf-posix-tests (configure.ac): Likewise.
8140         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
8141         tests on platforms where 'long double' is the same as 'double'.
8142         * tests/test-sprintf-posix.h (test_function): Likewise.
8143         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8144         * tests/test-vasprintf-posix.c (test_function): Likewise.
8145
8146         *printf: Fix for platforms where 'long double' == 'double'.
8147         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
8148         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
8149         * modules/dprintf-posix (Files): Add m4/math_h.m4.
8150         * modules/fprintf-posix (Files): Likewise.
8151         * modules/obstack-printf-posix (Files): Likewise.
8152         * modules/snprintf-posix (Files): Likewise.
8153         * modules/sprintf-posix (Files): Likewise.
8154         * modules/vasnprintf (Files): Likewise.
8155         * modules/vasnprintf-posix (Files): Likewise.
8156         * modules/vasprintf-posix (Files): Likewise.
8157         * modules/vdprintf-posix (Files): Likewise.
8158         * modules/vfprintf-posix (Files): Likewise.
8159         * modules/vsnprintf-posix (Files): Likewise.
8160         * modules/vsprintf-posix (Files): Likewise.
8161         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8162         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8163         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8164         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8165         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8166         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8167         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8168
8169         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
8170         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
8171         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8172         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
8173         'long double'.
8174         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
8175
8176         isinf: Fix for platforms where 'long double' == 'double'.
8177         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8178         Don't blindly assume 80-bit 'long double'.
8179
8180         isfinite: Fix for platforms where 'long double' == 'double'.
8181         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8182         Don't blindly assume 80-bit 'long double'.
8183
8184         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
8185         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
8186         * modules/isfinite-tests (configure.ac): Require
8187         gl_LONG_DOUBLE_VS_DOUBLE.
8188         * modules/isinf-tests (configure.ac): Likewise.
8189         * modules/isnan-tests (configure.ac): Likewise.
8190         * modules/isnanl-tests (configure.ac): Likewise.
8191         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
8192         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
8193         tests on platforms where 'long double' is the same as 'double'.
8194         * tests/test-isinf.c (test_isinfl): Likewise.
8195         * tests/test-isnan.c (test_long_double): Likewise.
8196         * tests/test-isnanl.h (main): Likewise.
8197
8198 2011-10-08  Bruno Haible  <bruno@clisp.org>
8199
8200         Tests for module 'tanhf'.
8201         * modules/tanhf-tests: New file.
8202         * tests/test-tanhf.c: New file.
8203
8204         New module 'tanhf'.
8205         * lib/math.in.h (tanhf): New declaration.
8206         * lib/tanhf.c: New file.
8207         * m4/tanhf.m4: New file.
8208         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
8209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
8210         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
8211         * modules/tanhf: New file.
8212         * tests/test-math-c++.cc: Check the declaration of tanhf.
8213         * doc/posix-functions/tanhf.texi: Mention the new module.
8214
8215         tanh: Use a .m4 file.
8216         * m4/tanh.m4: New file.
8217         * modules/tanh (Files): Add it.
8218         (configure.ac): Just invoke gl_FUNC_TANH.
8219
8220 2011-10-08  Bruno Haible  <bruno@clisp.org>
8221
8222         Tests for module 'coshf'.
8223         * modules/coshf-tests: New file.
8224         * tests/test-coshf.c: New file.
8225
8226         New module 'coshf'.
8227         * lib/math.in.h (coshf): New declaration.
8228         * lib/coshf.c: New file.
8229         * m4/coshf.m4: New file.
8230         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
8231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
8232         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
8233         * modules/coshf: New file.
8234         * tests/test-math-c++.cc: Check the declaration of coshf.
8235         * doc/posix-functions/coshf.texi: Mention the new module.
8236
8237         cosh: Use a .m4 file.
8238         * m4/cosh.m4: New file.
8239         * modules/cosh (Files): Add it.
8240         (configure.ac): Just invoke gl_FUNC_COSH.
8241
8242 2011-10-08  Bruno Haible  <bruno@clisp.org>
8243
8244         Tests for module 'sinhf'.
8245         * modules/sinhf-tests: New file.
8246         * tests/test-sinhf.c: New file.
8247
8248         New module 'sinhf'.
8249         * lib/math.in.h (sinhf): New declaration.
8250         * lib/sinhf.c: New file.
8251         * m4/sinhf.m4: New file.
8252         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
8253         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
8254         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
8255         * modules/sinhf: New file.
8256         * tests/test-math-c++.cc: Check the declaration of sinhf.
8257         * doc/posix-functions/sinhf.texi: Mention the new module.
8258
8259         sinh: Use a .m4 file.
8260         * m4/sinh.m4: New file.
8261         * modules/sinh (Files): Add it.
8262         (configure.ac): Just invoke gl_FUNC_SINH.
8263
8264 2011-10-08  Bruno Haible  <bruno@clisp.org>
8265
8266         Tests for module 'atan2f'.
8267         * modules/atan2f-tests: New file.
8268         * tests/test-atan2f.c: New file.
8269
8270         New module 'atan2f'.
8271         * lib/math.in.h (atan2f): New declaration.
8272         * lib/atan2f.c: New file.
8273         * m4/atan2f.m4: New file.
8274         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
8275         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
8276         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
8277         * modules/atan2f: New file.
8278         * tests/test-math-c++.cc: Check the declaration of atan2f.
8279         * doc/posix-functions/atan2f.texi: Mention the new module.
8280
8281         atan2: Use a .m4 file.
8282         * m4/atan2.m4: New file.
8283         * modules/atan2 (Files): Add it.
8284         (configure.ac): Just invoke gl_FUNC_ATAN2.
8285
8286 2011-10-08  Bruno Haible  <bruno@clisp.org>
8287
8288         Tests for module 'atanf'.
8289         * modules/atanf-tests: New file.
8290         * tests/test-atanf.c: New file.
8291
8292         New module 'atanf'.
8293         * lib/math.in.h (atanf): New declaration.
8294         * lib/atanf.c: New file.
8295         * m4/atanf.m4: New file.
8296         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
8297         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
8298         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
8299         * modules/atanf: New file.
8300         * tests/test-math-c++.cc: Check the declaration of atanf.
8301         * doc/posix-functions/atanf.texi: Mention the new module.
8302
8303         atan: Use a .m4 file.
8304         * m4/atan.m4: New file.
8305         * modules/atan (Files): Add it.
8306         (configure.ac): Just invoke gl_FUNC_ATAN.
8307
8308 2011-10-08  Bruno Haible  <bruno@clisp.org>
8309
8310         Tests for module 'acosf'.
8311         * modules/acosf-tests: New file.
8312         * tests/test-acosf.c: New file.
8313
8314         New module 'acosf'.
8315         * lib/math.in.h (acosf): New declaration.
8316         * lib/acosf.c: New file.
8317         * m4/acosf.m4: New file.
8318         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
8319         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
8320         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
8321         * modules/acosf: New file.
8322         * tests/test-math-c++.cc: Check the declaration of acosf.
8323         * doc/posix-functions/acosf.texi: Mention the new module.
8324
8325         acos: Use a .m4 file.
8326         * m4/acos.m4: New file.
8327         * modules/acos (Files): Add it.
8328         (configure.ac): Just invoke gl_FUNC_ACOS.
8329
8330 2011-10-08  Bruno Haible  <bruno@clisp.org>
8331
8332         Tests for module 'asinf'.
8333         * modules/asinf-tests: New file.
8334         * tests/test-asinf.c: New file.
8335
8336         New module 'asinf'.
8337         * lib/math.in.h (asinf): New declaration.
8338         * lib/asinf.c: New file.
8339         * m4/asinf.m4: New file.
8340         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
8341         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
8342         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
8343         * modules/asinf: New file.
8344         * tests/test-math-c++.cc: Check the declaration of asinf.
8345         * doc/posix-functions/asinf.texi: Mention the new module.
8346
8347         asin: Use a .m4 file.
8348         * m4/asin.m4: New file.
8349         * modules/asin (Files): Add it.
8350         (configure.ac): Just invoke gl_FUNC_ASIN.
8351
8352 2011-10-08  Bruno Haible  <bruno@clisp.org>
8353
8354         Tests for module 'tanf'.
8355         * modules/tanf-tests: New file.
8356         * tests/test-tanf.c: New file.
8357
8358         New module 'tanf'.
8359         * lib/math.in.h (tanf): New declaration.
8360         * lib/tanf.c: New file.
8361         * m4/tanf.m4: New file.
8362         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
8363         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
8364         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
8365         * modules/tanf: New file.
8366         * tests/test-math-c++.cc: Check the declaration of tanf.
8367         * doc/posix-functions/tanf.texi: Mention the new module.
8368
8369         tan: Use a .m4 file.
8370         * m4/tan.m4: New file.
8371         * modules/tan (Files): Add it.
8372         (configure.ac): Just invoke gl_FUNC_TAN.
8373
8374 2011-10-08  Bruno Haible  <bruno@clisp.org>
8375
8376         Tests for module 'cosf'.
8377         * modules/cosf-tests: New file.
8378         * tests/test-cosf.c: New file.
8379
8380         New module 'cosf'.
8381         * lib/math.in.h (cosf): New declaration.
8382         * lib/cosf.c: New file.
8383         * m4/cosf.m4: New file.
8384         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
8385         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
8386         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
8387         * modules/cosf: New file.
8388         * tests/test-math-c++.cc: Check the declaration of cosf.
8389         * doc/posix-functions/cosf.texi: Mention the new module.
8390
8391         cos: Use a .m4 file.
8392         * m4/cos.m4: New file.
8393         * modules/cos (Files): Add it.
8394         (configure.ac): Just invoke gl_FUNC_COS.
8395
8396 2011-10-08  Bruno Haible  <bruno@clisp.org>
8397
8398         Tests for module 'sinf'.
8399         * modules/sinf-tests: New file.
8400         * tests/test-sinf.c: New file.
8401
8402         New module 'sinf'.
8403         * lib/math.in.h (sinf): New declaration.
8404         * lib/sinf.c: New file.
8405         * m4/sinf.m4: New file.
8406         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
8407         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
8408         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
8409         * modules/sinf: New file.
8410         * tests/test-math-c++.cc: Check the declaration of sinf.
8411         * doc/posix-functions/sinf.texi: Mention the new module.
8412
8413         sin: Use a .m4 file.
8414         * m4/sin.m4: New file.
8415         * modules/sin (Files): Add it.
8416         (configure.ac): Just invoke gl_FUNC_SIN.
8417
8418 2011-10-08  Bruno Haible  <bruno@clisp.org>
8419
8420         Tests for module 'powf'.
8421         * modules/powf-tests: New file.
8422         * tests/test-powf.c: New file.
8423
8424         New module 'powf'.
8425         * lib/math.in.h (powf): New declaration.
8426         * lib/powf.c: New file.
8427         * m4/powf.m4: New file.
8428         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
8429         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
8430         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
8431         * modules/powf: New file.
8432         * tests/test-math-c++.cc: Check the declaration of powf.
8433         * doc/posix-functions/powf.texi: Mention the new module.
8434
8435         pow: Use a .m4 file.
8436         * m4/pow.m4: New file.
8437         * modules/pow (Files): Add it.
8438         (configure.ac): Just invoke gl_FUNC_POW.
8439
8440 2011-10-08  Bruno Haible  <bruno@clisp.org>
8441
8442         Tests for module 'log10f'.
8443         * modules/log10f-tests: New file.
8444         * tests/test-log10f.c: New file.
8445
8446         New module 'log10f'.
8447         * lib/math.in.h (log10f): New declaration.
8448         * lib/log10f.c: New file.
8449         * m4/log10f.m4: New file.
8450         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
8451         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
8452         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
8453         * modules/log10f: New file.
8454         * tests/test-math-c++.cc: Check the declaration of log10f.
8455         * doc/posix-functions/log10f.texi: Mention the new module.
8456
8457         log10: Use a .m4 file.
8458         * m4/log10.m4: New file.
8459         * modules/log10 (Files): Add it.
8460         (configure.ac): Just invoke gl_FUNC_LOG10.
8461
8462 2011-10-08  Bruno Haible  <bruno@clisp.org>
8463
8464         Tests for module 'logf'.
8465         * modules/logf-tests: New file.
8466         * tests/test-logf.c: New file.
8467
8468         New module 'logf'.
8469         * lib/math.in.h (logf): New declaration.
8470         * lib/logf.c: New file.
8471         * m4/logf.m4: New file.
8472         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
8473         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
8474         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
8475         * modules/logf: New file.
8476         * tests/test-math-c++.cc: Check the declaration of logf.
8477         * doc/posix-functions/logf.texi: Mention the new module.
8478
8479         log: Use a .m4 file.
8480         * m4/log.m4: New file.
8481         * modules/log (Files): Add it.
8482         (configure.ac): Just invoke gl_FUNC_LOG.
8483
8484 2011-10-08  Bruno Haible  <bruno@clisp.org>
8485
8486         Tests for module 'expf'.
8487         * modules/expf-tests: New file.
8488         * tests/test-expf.c: New file.
8489
8490         New module 'expf'.
8491         * lib/math.in.h (expf): New declaration.
8492         * lib/expf.c: New file.
8493         * m4/expf.m4: New file.
8494         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
8495         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
8496         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
8497         * modules/expf: New file.
8498         * tests/test-math-c++.cc: Check the declaration of expf.
8499         * doc/posix-functions/expf.texi: Mention the new module.
8500
8501         exp: Use a .m4 file.
8502         * m4/exp.m4: New file.
8503         * modules/exp (Files): Add it.
8504         (configure.ac): Just invoke gl_FUNC_EXP.
8505
8506 2011-10-08  Bruno Haible  <bruno@clisp.org>
8507
8508         Tests for module 'sqrtf'.
8509         * modules/sqrtf-tests: New file.
8510         * tests/test-sqrtf.c: New file.
8511
8512         New module 'sqrtf'.
8513         * lib/math.in.h (sqrtf): New declaration.
8514         * lib/sqrtf.c: New file.
8515         * m4/sqrtf.m4: New file.
8516         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
8517         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
8518         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
8519         * modules/sqrtf: New file.
8520         * tests/test-math-c++.cc: Check the declaration of sqrtf.
8521         * doc/posix-functions/sqrtf.texi: Mention the new module.
8522
8523 2011-10-08  Bruno Haible  <bruno@clisp.org>
8524
8525         Tests: Avoid link failures w.r.t. libintl.
8526         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
8527         $(LIBINTL).
8528         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
8529         $(LIBINTL).
8530         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
8531         against $(LIBINTL).
8532         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
8533         $(LIBINTL).
8534         * modules/openat-tests (Makefile.am): Link test-fchmodat against
8535         $(LIBINTL).
8536         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
8537
8538 2011-10-08  Bruno Haible  <bruno@clisp.org>
8539
8540         pow tests: Defeat compiler optimizations.
8541         * tests/test-pow.c (main): Assign arguments to x and y before use.
8542
8543 2011-10-08  Bruno Haible  <bruno@clisp.org>
8544
8545         gnulib-tool: Improve last commit.
8546         * gnulib-tool (func_modules_transitive_closure): Simplify code.
8547         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
8548         ignore dependencies that are not among the modules list.
8549
8550 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
8551
8552         gnulib-tool: don't follow dependencies to avoided modules
8553         This fixes a bug that is related to the previous one.
8554         * gnulib-tool (func_modules_transitive_closure)
8555         (func_emit_autoconf_snippets):
8556         Check whether a dependency is acceptable before using it.
8557         (--extract-dependencies): Report an error if --avoid is also used,
8558         since this combination of options is not yet supported.
8559
8560         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8561         Problem reported by Peter Dyballa in
8562         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8563         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8564         when echoing "$condition".
8565
8566 2011-10-07  Bruno Haible  <bruno@clisp.org>
8567
8568         Fix documentation about math functions on MacOS X.
8569         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8570         MacOS X 10.5.
8571         * doc/posix-functions/fdim.texi: Likewise.
8572         * doc/posix-functions/feclearexcept.texi: Likewise.
8573         * doc/posix-functions/fegetenv.texi: Likewise.
8574         * doc/posix-functions/fegetround.texi: Likewise.
8575         * doc/posix-functions/feholdexcept.texi: Likewise.
8576         * doc/posix-functions/feraiseexcept.texi: Likewise.
8577         * doc/posix-functions/fesetenv.texi: Likewise.
8578         * doc/posix-functions/fesetround.texi: Likewise.
8579         * doc/posix-functions/fetestexcept.texi: Likewise.
8580         * doc/posix-functions/feupdateenv.texi: Likewise.
8581         * doc/posix-functions/fmax.texi: Likewise.
8582         * doc/posix-functions/fmin.texi: Likewise.
8583         * doc/posix-functions/log2.texi: Likewise.
8584         * doc/posix-functions/modff.texi: Likewise.
8585         * doc/posix-functions/nan.texi: Likewise.
8586         * doc/posix-functions/nanf.texi: Likewise.
8587         * doc/posix-functions/nextafterf.texi: Likewise.
8588         * doc/posix-functions/remquo.texi: Likewise.
8589
8590 2011-10-07  Bruno Haible  <bruno@clisp.org>
8591
8592         modff: Drop assumption about library that defines modff.
8593         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8594         AC_CHECK_FUNCS.
8595         * modules/modff (Files): Add m4/mathfunc.m4.
8596
8597 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8598
8599         raise tests: Avoid a GCC warning.
8600         * tests/test-raise.c (handler): Use _Noreturn.
8601
8602 2011-10-07  Bruno Haible  <bruno@clisp.org>
8603
8604         Tests for module 'ldexpf'.
8605         * modules/ldexpf-tests: New file.
8606         * tests/test-ldexpf.c: New file.
8607
8608         New module 'ldexpf'.
8609         * lib/math.in.h (ldexpf): New declaration.
8610         * lib/ldexpf.c: New file.
8611         * m4/ldexpf.m4: New file.
8612         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8613         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8614         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8615         * modules/ldexpf: New file.
8616         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8617         * doc/posix-functions/ldexpf.texi: Mention the new module.
8618
8619 2011-10-06  Bruno Haible  <bruno@clisp.org>
8620
8621         frexpf: Work around problems on IRIX and mingw.
8622         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8624         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8625         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8626         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8627         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8628         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8629
8630 2011-10-06  Bruno Haible  <bruno@clisp.org>
8631
8632         fabsf: Drop assumption about library that defines fabsf.
8633         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8634         AC_CHECK_FUNCS.
8635         * modules/fabsf (Files): Add m4/mathfunc.m4.
8636
8637 2011-10-06  Bruno Haible  <bruno@clisp.org>
8638
8639         frexpf: Drop assumption about library that defines frexpf.
8640         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8641         'int *', 'float *', 'long double *', 'float', 'long double'.
8642         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8643         AC_CHECK_FUNCS.
8644         * modules/frexpf (Files): Add m4/mathfunc.m4.
8645
8646         Tests for module 'frexpf'.
8647         * modules/frexpf-tests: New file.
8648         * tests/test-frexpf.c: New file.
8649
8650         New module 'frexpf'.
8651         * lib/math.in.h (frexpf): New declaration.
8652         * lib/frexpf.c: New file.
8653         * m4/frexpf.m4: New file.
8654         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8655         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8656         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8657         * modules/frexpf: New file.
8658         * tests/test-math-c++.cc: Check the declaration of frexpf.
8659         * doc/posix-functions/frexpf.texi: Mention the new module.
8660
8661 2011-10-06  Bruno Haible  <bruno@clisp.org>
8662
8663         math: Sort function declarations of math.in.h.
8664         * lib/math.in.h (frexp, logb): Move declarations.
8665
8666 2011-10-05  Bruno Haible  <bruno@clisp.org>
8667
8668         Tests for module 'modff'.
8669         * modules/modff-tests: New file.
8670         * tests/test-modff.c: New file.
8671
8672         New module 'modff'.
8673         * lib/math.in.h (modff): New declaration.
8674         * lib/modff.c: New file.
8675         * m4/modff.m4: New file.
8676         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8677         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8678         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8679         * modules/modff: New file.
8680         * tests/test-math-c++.cc: Check the declaration of modff.
8681         * doc/posix-functions/modff.texi: Mention the new module.
8682
8683         modf tests: Make test sharper.
8684         * tests/test-modf.c (main): Strengthen upper bound.
8685
8686         modf: Use a .m4 file.
8687         * m4/modf.m4: New file.
8688         * modules/modf (Files): Add it.
8689         (configure.ac): Just invoke gl_FUNC_MODF.
8690
8691 2011-10-05  Bruno Haible  <bruno@clisp.org>
8692
8693         Tests for module 'fmodf'.
8694         * modules/fmodf-tests: New file.
8695         * tests/test-fmodf.c: New file.
8696
8697         New module 'fmodf'.
8698         * lib/math.in.h (fmodf): New declaration.
8699         * lib/fmodf.c: New file.
8700         * m4/fmodf.m4: New file.
8701         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8702         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8703         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8704         * modules/fmodf: New file.
8705         * tests/test-math-c++.cc: Check the declaration of fmodf.
8706         * doc/posix-functions/fmodf.texi: Mention the new module.
8707
8708         fmod: Use a .m4 file.
8709         * m4/fmod.m4: New file.
8710         * modules/fmod (Files): Add it.
8711         (configure.ac): Just invoke gl_FUNC_FMOD.
8712
8713 2011-10-05  Bruno Haible  <bruno@clisp.org>
8714
8715         Tests for module 'fabsf'.
8716         * modules/fabsf-tests: New file.
8717         * tests/test-fabsf.c: New file.
8718
8719         New module 'fabsf'.
8720         * lib/math.in.h (fabsf): New declaration.
8721         * lib/fabsf.c: New file.
8722         * m4/fabsf.m4: New file.
8723         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8724         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8725         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8726         * modules/fabsf: New file.
8727         * tests/test-math-c++.cc: Check the declaration of fabsf.
8728         * doc/posix-functions/fabsf.texi: Mention the new module.
8729
8730         fabs: Use a .m4 file.
8731         * m4/fabs.m4: New file.
8732         * modules/fabs (Files): Add it.
8733         (configure.ac): Just invoke gl_FUNC_FABS.
8734
8735 2011-10-05  Jim Meyering  <meyering@redhat.com>
8736
8737         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8738         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8739         ls -lL regression introduced in coreutils-8.12, it does so at the
8740         cost of an additional stat call in the common case.  Besides, now
8741         that the kernel change that prompted commit 95f7c57f has been reverted
8742         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8743         we have no use for commit 95f7c57f, "file-has-acl: use
8744         acl_extended_file_nofollow if available".
8745
8746 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8747
8748         file-has-acl: revert unintended change in behavior of ls -L
8749         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8750         derived from...
8751         (file_has_acl): ...code here.  Call it.
8752         This problem was introduced with 2011-07-22 commit 95f7c57f,
8753         "file-has-acl: use acl_extended_file_nofollow if available".
8754         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8755
8756 2011-10-03  Bruno Haible  <bruno@clisp.org>
8757
8758         poll: Avoid link errors on MSVC.
8759         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8760         * modules/poll (Depends-on): Add sockets.
8761         (Link): New section.
8762         * NEWS: Mention the change.
8763         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8764         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8765         $(LIB_POLL) instead of $(LIBSOCKET).
8766
8767 2011-10-03  Bruno Haible  <bruno@clisp.org>
8768
8769         sys_select tests: Fix link error on MSVC 9.
8770         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8771         with $(LIB_SELECT) instead of $(LIBSOCKET).
8772
8773 2011-10-03  Bruno Haible  <bruno@clisp.org>
8774
8775         sys_select: Fix compilation error on mingw.
8776         * lib/sys_select.in.h: On native Windows, include <io.h>.
8777
8778 2011-10-03  Bruno Haible  <bruno@clisp.org>
8779
8780         wmemset: Support for MSVC.
8781         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8782         whether wmemset() exists.
8783
8784 2011-10-03  Bruno Haible  <bruno@clisp.org>
8785
8786         wmemmove: Support for MSVC.
8787         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8788         whether wmemmove() exists.
8789
8790 2011-10-03  Bruno Haible  <bruno@clisp.org>
8791
8792         wmemcpy: Support for MSVC.
8793         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8794         whether wmemcpy() exists.
8795
8796 2011-10-03  Bruno Haible  <bruno@clisp.org>
8797
8798         wmemcmp: Support for MSVC.
8799         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8800         whether wmemcmp() exists.
8801
8802 2011-10-03  Bruno Haible  <bruno@clisp.org>
8803
8804         wmemchr: Support for MSVC.
8805         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8806         whether wmemchr() exists.
8807
8808 2011-10-03  Bruno Haible  <bruno@clisp.org>
8809
8810         glthread/*, strsignal: Support for MSVC.
8811         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8812         including <winsock.h> on MSVC 9.
8813         * lib/glthread/lock.h: Likewise.
8814         * lib/glthread/thread.h: Likewise.
8815         * lib/glthread/tls.h: Likewise.
8816         * lib/glthread/yield.h: Likewise.
8817         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8818         if HAVE_UNISTD_H is false.
8819         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8820
8821 2011-10-03  Bruno Haible  <bruno@clisp.org>
8822
8823         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8824         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8825         Set to 100000.
8826
8827 2011-10-03  Bruno Haible  <bruno@clisp.org>
8828
8829         acl: Fix specification.
8830         * lib/file-has-acl.c (file_has_acl): Fix specification.
8831
8832 2011-10-03  Bruno Haible  <bruno@clisp.org>
8833
8834         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8835         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8836         (compute_curr_prefix, shared_library_fullname,
8837         find_shared_library_fullname, get_shared_library_fullname, relocate):
8838         Use it together with PIC && INSTALLDIR.
8839         Reported by <jojelino@gmail.com>
8840         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8841
8842 2011-10-01  Jim Meyering  <meyering@redhat.com>
8843
8844         maint.mk: adjust a release-related rule not to require use of gzip
8845         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8846         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8847         projects that build only .tar.xz files.  Also fix an erroneous test.
8848
8849         test-linkat: don't leave behind a temporary file
8850         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8851         Otherwise, coreutils' "make distcheck" would fail with this:
8852           Only in /c/cu/tests/torture/coreutils/test/\
8853             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8854           make[2]: *** [my-distcheck] Error 1
8855
8856         float, math: add omitted file
8857         * lib/itold.c: Add file, required for yesterday's float change.
8858
8859 2011-10-01  Bruno Haible  <bruno@clisp.org>
8860
8861         isinf: Fix for OpenBSD/x86.
8862         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8863         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8864         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8865
8866 2011-10-01  Bruno Haible  <bruno@clisp.org>
8867
8868         isfinite: Fix syntax error in configure test.
8869         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8870
8871         isfinite: Fix typo.
8872         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8873         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8874
8875 2011-10-01  Bruno Haible  <bruno@clisp.org>
8876
8877         nonblocking tests: Fix test failure on Linux/IA-64.
8878         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8879         Set to 270000.
8880
8881 2011-10-01  Bruno Haible  <bruno@clisp.org>
8882
8883         mkfifoat tests: Fix a test failure on mingw.
8884         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8885         with error ENOSYS.
8886
8887 2011-09-30  Bruno Haible  <bruno@clisp.org>
8888
8889         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8890         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8891         'long double'. Set REPLACE_ITOLD.
8892         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8893         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8894         * lib/itold.c: New file.
8895         * modules/float (Files): Add lib/itold.c.
8896         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8897         (Makefile.am): Substitute REPLACE_ITOLD.
8898         * modules/math (Depends-on): Add float.
8899         (Makefile.am): Substitute REPLACE_ITOLD.
8900         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8901         * doc/posix-headers/math.texi: Likewise.
8902         * doc/posix-functions/logl.texi: Likewise.
8903
8904 2011-09-30  Bruno Haible  <bruno@clisp.org>
8905
8906         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8907         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8908         Set to 140000.
8909
8910 2011-09-30  Bruno Haible  <bruno@clisp.org>
8911
8912         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8913         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8914         invocation, say "right after AC_PROG_CC_STDC", not "right after
8915         AC_PROG_CC".
8916         Reported by Gary V. Vaughan <gary@gnu.org>.
8917
8918 2011-09-30  Bruno Haible  <bruno@clisp.org>
8919
8920         Centralize C99 requirement.
8921         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8922         * modules/stdarg (configure.ac-early): Invoke it instead of
8923         AC_PROG_CC_STDC.
8924         Reported by Gary V. Vaughan and Paul Eggert.
8925
8926 2011-09-29  Bruno Haible  <bruno@clisp.org>
8927
8928         float: Fix LDBL_MAX value on Linux/PowerPC.
8929         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8930         on Linux/PowerPC.
8931         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8932         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8933         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8934         platform.
8935         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8936
8937 2011-09-29  Bruno Haible  <bruno@clisp.org>
8938
8939         doc: Improve doc about gl_EARLY.
8940         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8941         AC_PROG_CC_STDC invocation.
8942         Reported by Gary V. Vaughan <gary@gnu.org>.
8943
8944 2011-09-28  Bruno Haible  <bruno@clisp.org>
8945
8946         fgetc, fputc, fread, fwrite tests: Fix link error.
8947         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8948         on non-MSVC platforms.
8949         * tests/test-fputc.c (main): Likewise.
8950         * tests/test-fread.c (main): Likewise.
8951         * tests/test-fwrite.c (main): Likewise.
8952         Reported by Jim Meyering.
8953
8954 2011-09-27  Bruno Haible  <bruno@clisp.org>
8955
8956         fputc, fwrite tests: Avoid test failure on MSVC.
8957         * tests/test-fgetc.c: Include msvc-inval.h.
8958         (main): Invoke gl_msvc_inval_ensure_handler.
8959         * tests/test-fputc.c: Include msvc-inval.h.
8960         (main): Invoke gl_msvc_inval_ensure_handler.
8961         * tests/test-fread.c: Include msvc-inval.h.
8962         (main): Invoke gl_msvc_inval_ensure_handler.
8963         * tests/test-fwrite.c: Include msvc-inval.h.
8964         (main): Invoke gl_msvc_inval_ensure_handler.
8965         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8966         * modules/fputc-tests (Depends-on): Likewise.
8967         * modules/fread-tests (Depends-on): Likewise.
8968         * modules/fwrite-tests (Depends-on): Likewise.
8969
8970 2011-09-27  Bruno Haible  <bruno@clisp.org>
8971
8972         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8973         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8974         (raise): Remove older, duplicated declaration.
8975         (_gl_raise_SIGPIPE): New declaration.
8976         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8977         (rpl_raise): Remove function.
8978         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8979         a gnulib-defined SIGPIPE here.
8980         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8981         'sigprocmask' has detected missing signal-blocking and the module
8982         'sigpipe' is enabled.
8983         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8984
8985 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8986
8987         base64-tests: avoid memory leak
8988         * tests/test-base64.c (main): Plug memory leak.
8989
8990         base32: new module
8991         * modules/base32: New module.
8992         * lib/base32.c: New file.
8993         * lib/base32.h: Likewise.
8994         * m4/base32.m4: Likewise.
8995         * modules/base32-tests: New test.
8996         * tests/test-base32.c: Likewise.
8997         * MODULES.html.sh (Misc): Mention it.
8998
8999 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9000
9001         gnulib: use more-standard license notice wording
9002         * gnulib-tool (func_emit_copyright_notice): When emitting a
9003         license notice into a file, use the standard wording as suggested
9004         by the current information for GNU maintainers, except say "file"
9005         rather than "program".  The new wording gives a license version
9006         number, which addresses an issue raised by Glenn Morris in
9007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
9008         * m4/onceonly.m4: Use that same wording here, too.
9009
9010         dup2: minor simplification
9011         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
9012         as lib/dup2.c no longer uses 'inline'.
9013
9014 2011-09-25  Bruno Haible  <bruno@clisp.org>
9015
9016         strings: Fix compilation error on MSVC.
9017         * lib/strings.in.h: Include <stddef.h> for size_t.
9018
9019 2011-09-25  Bruno Haible  <bruno@clisp.org>
9020
9021         fflush et al.: Document limitation on MSVC.
9022         * doc/posix-functions/fflush.texi: Document possible crash in handling
9023         mode other than DEFAULT_HANDLING.
9024         * doc/posix-functions/fgetc.texi: Likewise.
9025         * doc/posix-functions/fputc.texi: Likewise.
9026         * doc/posix-functions/fread.texi: Likewise.
9027         * doc/posix-functions/fwrite.texi: Likewise.
9028
9029 2011-09-25  Bruno Haible  <bruno@clisp.org>
9030
9031         msvc-inval: Allow three invalid parameter handling modes.
9032         * lib/msvc-inval.h: Don't include <stdlib.h> here.
9033         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
9034         macros.
9035         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
9036         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
9037         SANE_LIBRARY_HANDLING as a no-op.
9038         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
9039         <stdlib.h>.
9040         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
9041
9042 2011-09-25  Bruno Haible  <bruno@clisp.org>
9043
9044         msvc-inval: Make handler multithread-safe.
9045         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
9046         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
9047         declarations.
9048         (gl_msvc_inval_current): New declaration.
9049         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9050         Operate on the structure returned by gl_msvc_inval_current().
9051         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
9052         Remove varaiables.
9053         (tls_index, tls_initialized): New variables.
9054         (not_per_thread): New variable.
9055         (gl_msvc_inval_current): New function.
9056         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
9057         returned by gl_msvc_inval_current().
9058
9059 2011-09-25  Bruno Haible  <bruno@clisp.org>
9060
9061         msvc-inval: Install handler globally.
9062         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
9063         !_MSC_VER.
9064         (gl_msvc_invalid_parameter_handler): Remove declaration.
9065         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
9066         declarations.
9067         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9068         Install the handler globally, don't uninstall it.
9069         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
9070         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
9071         currently valid, call RaiseException instead.
9072         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
9073         for !_MSC_VER.
9074
9075 2011-09-25  Bruno Haible  <bruno@clisp.org>
9076
9077         strerror_r-posix: Fix for MSVC 9.
9078         * lib/strerror_r.c (local_snprintf): New function.
9079         (snprintf): Define to local_snprintf, not to _snprintf.
9080
9081 2011-09-25  Bruno Haible  <bruno@clisp.org>
9082
9083         ftruncate: Support for MSVC 9.
9084         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
9085         (chsize_nothrow): New function.
9086         (chsize): Redefine as a macro.
9087         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
9088         * modules/ftruncate (Depends-on): Add msvc-inval.
9089
9090 2011-09-25  Bruno Haible  <bruno@clisp.org>
9091
9092         New module 'fstat'.
9093         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
9094         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
9095         * lib/fchdir.c (rpl_fstat): Remove function.
9096         * m4/fstat.m4: New file.
9097         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
9098         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
9099         declared.
9100         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
9101         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
9102         * modules/fstat: New file.
9103         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
9104         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
9105         is set.
9106         * doc/posix-functions/fstat.texi: Mention the new module and the
9107         problem on MSVC.
9108         * NEWS: Mention the change.
9109         * modules/acl (Depends-on): Add fstat.
9110         * modules/chdir-safer (Depends-on): Likewise.
9111         * modules/chown (Depends-on): Likewise.
9112         * modules/copy-file (Depends-on): Likewise.
9113         * modules/fchdir (Depends-on): Likewise.
9114         * modules/fdopendir (Depends-on): Likewise.
9115         * modules/fopen (Depends-on): Likewise.
9116         * modules/fts (Depends-on): Likewise.
9117         * modules/getcwd (Depends-on): Likewise.
9118         * modules/isapipe (Depends-on): Likewise.
9119         * modules/linkat (Depends-on): Likewise.
9120         * modules/lseek (Depends-on): Likewise.
9121         * modules/mkdir-p (Depends-on): Likewise.
9122         * modules/open (Depends-on): Likewise.
9123         * modules/openat (Depends-on): Likewise.
9124         * modules/read-file (Depends-on): Likewise.
9125         * modules/renameat (Depends-on): Likewise.
9126         * modules/utimens (Depends-on): Likewise.
9127
9128 2011-09-25  Bruno Haible  <bruno@clisp.org>
9129
9130         linkat: Fix compilation on MSVC 9.
9131         * lib/linkat.c: Don't include <stdint.h>.
9132
9133 2011-09-25  Bruno Haible  <bruno@clisp.org>
9134
9135         fclose: Support for MSVC 9.
9136         * lib/fclose.c: Include msvc-inval.h.
9137         (fclose_nothrow): New function.
9138         (rpl_fclose): Use it.
9139         * modules/fclose (Depends-on): Add msvc-inval.
9140         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
9141
9142 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9143
9144         dup2: minor simplifications
9145         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
9146         that it's a performance win.
9147         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
9148         ! defined __CYGWIN__)" to "ifdef F_GETFL".
9149
9150 2011-09-24  Jim Meyering  <meyering@redhat.com>
9151
9152         test-futimens: avoid a warning from gcc -Wshadow
9153         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
9154         to avoid a shadowing warning.
9155
9156 2011-09-24  Bruno Haible  <bruno@clisp.org>
9157
9158         fdopen: Support for MSVC 9.
9159         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
9160         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
9161         * lib/fdopen.c: Include msvc-inval.h.
9162         (fdopen_nothrow): New function.
9163         (rpl_fdopen): Use it.
9164         * modules/fdopen (Depends-on): Add msvc-inval.
9165         * modules/fclose-tests (Depends-on): Add fdopen.
9166         * modules/fflush-tests (Depends-on): Likewise.
9167         * modules/fgetc-tests (Depends-on): Likewise.
9168         * modules/fputc-tests (Depends-on): Likewise.
9169         * modules/fread-tests (Depends-on): Likewise.
9170         * modules/freopen-tests (Depends-on): Likewise.
9171         * modules/fseeko-tests (Depends-on): Likewise.
9172         * modules/ftello-tests (Depends-on): Likewise.
9173         * modules/fwrite-tests  (Depends-on): Likewise.
9174         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
9175
9176 2011-09-24  Bruno Haible  <bruno@clisp.org>
9177
9178         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
9179         * modules/fgetc-tests (Depends-on): Add unistd.
9180         * modules/fputc-tests (Depends-on): Likewise.
9181         * modules/fread-tests (Depends-on): Likewise.
9182         * modules/fwrite-tests (Depends-on): Likewise.
9183
9184 2011-09-24  Bruno Haible  <bruno@clisp.org>
9185
9186         dup: Simplify autoconf test.
9187         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
9188         on gl_MSVC_INVAL's result.
9189
9190 2011-09-24  Bruno Haible  <bruno@clisp.org>
9191
9192         Tests for function fwrite().
9193         * modules/fwrite-tests: New file.
9194         * tests/test-fwrite.c: New file.
9195         * modules/stdio-tests (Depends-on): Add fwrite-tests.
9196
9197         Tests for function fread().
9198         * modules/fread-tests: New file.
9199         * tests/test-fread.c: New file.
9200         * modules/stdio-tests (Depends-on): Add fread-tests.
9201
9202         Activate fputc tests.
9203         * modules/stdio-tests (Depends-on): Add fputc-tests.
9204
9205         Enhance fgetc, fputc tests.
9206         * tests/test-fgetc.c (main): Also test the stream's error indicator.
9207         * tests/test-fputc.c (main): Likewise.
9208
9209 2011-09-24  Bruno Haible  <bruno@clisp.org>
9210
9211         write: Support for MSVC 9.
9212         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9213         is not 1.
9214         * lib/write.c (write_nothrow): New function.
9215         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
9216         not 1. Use write_nothrow.
9217         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
9218         invalid parameter handler.
9219         (gl_PREREQ_WRITE): New macro.
9220         * modules/write (Depends-on): Add msvc-inval.
9221         (configure.ac): Invoke gl_PREREQ_WRITE.
9222         * doc/posix-functions/write.texi: Mention the problem on MSVC.
9223
9224 2011-09-24  Bruno Haible  <bruno@clisp.org>
9225
9226         read: Fix last commit.
9227         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
9228
9229 2011-09-24  Bruno Haible  <bruno@clisp.org>
9230
9231         dup2: Fix last commit.
9232         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
9233         (rpl_dup2): Disable fcntl workaround on native Windows.
9234
9235         sigprocmask: Make code safer.
9236         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
9237         section that changes macro definitions for this compilation unit.
9238
9239 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9240
9241         dup2: clarify by coalescing Windows-specific material
9242         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
9243         "msvc-nothrow.h"' to the Windows-specific section, so that the
9244         Emacs source need not contain these include files.
9245         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
9246         Windows-specific fixes into this function rather than just the
9247         nothrow fix, as this shortens and clarifies the code.  Always
9248         define as a function, as that's a bit cleaner than having it be
9249         sometimes a function and sometimes a macro.
9250         (rpl_dup2): Move the Windows-specific stuff out of here and into
9251         ms_windows_dup2.  Don't protect the Haiku-related fix with
9252         "#if !defined __linux__", as the same code also works around
9253         a Linux kernel bug, and it doesn't add any system calls on any
9254         platform.  Add comment about FreeBSD 6.1.
9255
9256         sigprocmask: move #include directive
9257         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
9258         Windows-specific section, so that the Emacs source need not
9259         contain msvc-inval.h.
9260
9261 2011-09-23  Bruno Haible  <bruno@clisp.org>
9262
9263         read: Support for MSVC 9.
9264         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9265         is not 1.
9266         * lib/read.c (read_nothrow): New function.
9267         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
9268         read_nothrow.
9269         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
9270         invalid parameter handler.
9271         (gl_PREREQ_READ): New macro.
9272         * modules/read (Depends-on): Add msvc-inval.
9273         (configure.ac): Invoke gl_PREREQ_READ.
9274         * doc/posix-functions/read.texi: Mention the problem on MSVC.
9275
9276 2011-09-23  Bruno Haible  <bruno@clisp.org>
9277
9278         close: Support for MSVC 9.
9279         * lib/close.c: Include <errno.h>, msvc-inval.h.
9280         (close_nothrow): New function.
9281         (rpl_close): Use it.
9282         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
9283         invalid parameter handler.
9284         * modules/close (Depends-on): Add msvc-inval.
9285         * modules/dup2-tests (Depends-on): Add close.
9286         * modules/dup3-tests (Depends-on): Likewise.
9287         * modules/fcntl-tests (Depends-on): Likewise.
9288         * modules/spawn-pipe-tests (Depends-on): Likewise.
9289         * modules/unistd-safer-tests (Depends-on): Likewise.
9290         * doc/posix-functions/close.texi: Mention the problem on MSVC.
9291
9292 2011-09-23  Bruno Haible  <bruno@clisp.org>
9293
9294         New module 'dup'.
9295         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
9296         Allow replacement.
9297         * lib/dup.c: New file.
9298         * lib/fchdir.c (rpl_dup): Remove function.
9299         * m4/dup.m4: New file.
9300         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
9301         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
9302         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
9303         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
9304         * modules/dup: New file.
9305         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
9306         'dup' module is in use.
9307         * modules/fdopendir (Depends-on): Add dup.
9308         * modules/fdutimensat-tests (Depends-on): Likewise.
9309         * modules/fts (Depends-on): Likewise.
9310         * modules/futimens-tests (Depends-on): Likewise.
9311         * modules/posix_spawnp-tests (Depends-on): Likewise.
9312         * modules/unistd-safer-tests (Depends-on): Likewise.
9313         * modules/utimens-tests (Depends-on): Likewise.
9314         * doc/posix-functions/dup.texi: Mention the new module and the problem
9315         on MSVC.
9316
9317 2011-09-23  Bruno Haible  <bruno@clisp.org>
9318
9319         getdtablesize: Support for MSVC 9.
9320         * lib/getdtablesize.c: Include msvc-inval.h.
9321         (_setmaxstdio_nothrow): New function.
9322         (_setmaxstdio): Redefine it.
9323         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
9324         * modules/getdtablesize (Depends-on): Add msvc-inval.
9325         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
9326
9327 2011-09-23  Bruno Haible  <bruno@clisp.org>
9328
9329         signal-h: Rename from signal.
9330         * modules/signal-h: Renamed from modules/signal.
9331         * modules/pthread_sigmask (Depends-on): Update.
9332         * modules/raise (Depends-on): Likewise.
9333         * modules/sigaction (Depends-on): Likewise.
9334         * modules/sigpipe (Depends-on): Likewise.
9335         * modules/sigprocmask (Depends-on): Likewise.
9336         * modules/sys_select (Depends-on): Likewise.
9337         * modules/signal-h-tests: Renamed from modules/signal-tests.
9338         (Files, Depends-on, Makefile.am): Update.
9339         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
9340         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
9341         (Files, Makefile.am): Update.
9342         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
9343         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
9344         * modules/signal: New placeholder file.
9345         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
9346         * doc/posix-headers/signal.texi: Update.
9347         * NEWS: Mention the change.
9348
9349 2011-09-23  Bruno Haible  <bruno@clisp.org>
9350
9351         sigprocmask: Avoid crashes through signal() on MSVC 9.
9352         * lib/sigprocmask.c: Include msvc-inval.h.
9353         (signal_nothrow): New function.
9354         (signal): Redefine it.
9355         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
9356         * modules/sigprocmask (Depends-on): Add msvc-inval.
9357         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
9358
9359 2011-09-23  Bruno Haible  <bruno@clisp.org>
9360
9361         Tests for module 'raise'.
9362         * modules/raise-tests: New file.
9363         * tests/test-raise.c: New file.
9364
9365         raise: Support for MSVC.
9366         * lib/signal.in.h (raise): New declaration.
9367         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
9368         for native Windows platforms.
9369         * m4/raise.m4: New file.
9370         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
9371         HAVE_RAISE, REPLACE_RAISE.
9372         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
9373         REPLACE_RAISE.
9374         * modules/raise (Status, Notice): Remove fields.
9375         (Files): Add m4/raise.m4.
9376         (Depends-on): Add signal, msvc-inval.
9377         (configure.ac): Use the common idioms.
9378         (Maintainer): Add me.
9379         * tests/test-signal-c++.cc: Check the signature of raise.
9380         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
9381
9382 2011-09-23  Bruno Haible  <bruno@clisp.org>
9383
9384         pipe2: Fix compilation on pre-C99 compilers.
9385         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
9386
9387 2011-09-23  Bruno Haible  <bruno@clisp.org>
9388
9389         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
9390         * lib/msvc-nothrow.h: New file.
9391         * lib/msvc-nothrow.c: New file.
9392         * m4/msvc-nothrow.m4: New file.
9393         * modules/msvc-nothrow: New file.
9394         * lib/dup2.c: Include msvc-nothrow.h.
9395         (rpl_dup2): No need to protect _get_osfhandle call here.
9396         * lib/accept4.c: Include msvc-nothrow.h.
9397         * lib/error.c: Likewise.
9398         * lib/fcntl.c: Likewise.
9399         * lib/lseek.c: Likewise.
9400         * lib/nonblocking.c: Likewise.
9401         * lib/poll.c: Likewise.
9402         * lib/read.c: Likewise.
9403         * lib/select.c: Likewise.
9404         * lib/sockets.h: Likewise.
9405         * lib/sockets.c: Likewise.
9406         * lib/stdio-read.c: Likewise.
9407         * lib/stdio-write.c: Likewise.
9408         * lib/write.c: Likewise.
9409         * lib/w32sock.h: Likewise.
9410         * lib/w32spawn.h: Likewise.
9411         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
9412         * lib/fsync.c: Likewise.
9413         * lib/isapipe.c: Likewise.
9414         * modules/dup2 (Depends-on): Add msvc-nothrow.
9415         * modules/accept4 (Depends-on): Likewise.
9416         * modules/error (Depends-on): Likewise.
9417         * modules/fcntl (Depends-on): Likewise.
9418         * modules/lseek (Depends-on): Likewise.
9419         * modules/nonblocking (Depends-on): Likewise.
9420         * modules/poll (Depends-on): Likewise.
9421         * modules/read (Depends-on): Likewise.
9422         * modules/select (Depends-on): Likewise.
9423         * modules/sockets (Depends-on): Likewise.
9424         * modules/sigpipe (Depends-on): Likewise.
9425         * modules/write (Depends-on): Likewise.
9426         * modules/accept (Depends-on): Likewise.
9427         * modules/bind (Depends-on): Likewise.
9428         * modules/connect (Depends-on): Likewise.
9429         * modules/gethostname (Depends-on): Likewise.
9430         * modules/getpeername (Depends-on): Likewise.
9431         * modules/getsockname (Depends-on): Likewise.
9432         * modules/getsockopt (Depends-on): Likewise.
9433         * modules/ioctl (Depends-on): Likewise.
9434         * modules/listen (Depends-on): Likewise.
9435         * modules/recv (Depends-on): Likewise.
9436         * modules/recvfrom (Depends-on): Likewise.
9437         * modules/send (Depends-on): Likewise.
9438         * modules/sendto (Depends-on): Likewise.
9439         * modules/setsockopt (Depends-on): Likewise.
9440         * modules/shutdown (Depends-on): Likewise.
9441         * modules/socket (Depends-on): Likewise.
9442         * modules/execute (Depends-on): Likewise.
9443         * modules/spawn-pipe (Depends-on): Likewise.
9444         * modules/flock (Depends-on): Likewise.
9445         * modules/fsync (Depends-on): Likewise.
9446         * modules/isapipe (Depends-on): Likewise.
9447         * tests/test-cloexec.c: Include msvc-nothrow.h.
9448         * tests/test-dup-safer.c: Likewise.
9449         * tests/test-dup2.c: Likewise.
9450         * tests/test-dup3.c: Likewise.
9451         * tests/test-fcntl.c: Likewise.
9452         * tests/test-pipe.c: Likewise.
9453         * tests/test-pipe2.c: Likewise.
9454         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
9455         * modules/unistd-safer-tests (Depends-on): Likewise.
9456         * modules/dup2-tests (Depends-on): Likewise.
9457         * modules/dup3-tests (Depends-on): Likewise.
9458         * modules/fcntl-tests (Depends-on): Likewise.
9459         * modules/pipe-posix-tests (Depends-on): Likewise.
9460         * modules/pipe2-tests (Depends-on): Likewise.
9461
9462 2011-09-23  Bruno Haible  <bruno@clisp.org>
9463
9464         dup2: Make code more maintainable.
9465         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
9466         (rpl_dup2): Use it.
9467         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
9468         * modules/dup2 (configure.ac): Invoke it.
9469         Reported by Paul Eggert.
9470
9471 2011-09-23  Bruno Haible  <bruno@clisp.org>
9472
9473         msvc-inval: Fix compilation error.
9474         * lib/msvc-inval.h: Include <excpt.h>.
9475
9476 2011-09-23  Bruno Haible  <bruno@clisp.org>
9477
9478         mkdir: Tweak for MSVC 9.
9479         * lib/sys_stat.in.h: Update comments.
9480         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
9481
9482         Tests for module 'chdir'.
9483         * modules/chdir-tests: New file.
9484         * tests/test-chdir.c: New file.
9485
9486         New module 'chdir'.
9487         * modules/chdir: New file.
9488         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
9489         (chdir): New declaration.
9490         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
9491         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
9492         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
9493         * tests/test-unistd-c++.cc: Check signature of chdir.
9494         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
9495         * modules/chdir-long (Depends-on): Add chdir.
9496         * modules/fchdir (Depends-on): Likewise.
9497         * modules/rename (Depends-on): Likewise.
9498         * modules/savewd (Depends-on): Likewise.
9499
9500         rmdir: Support for mingw, MSVC 9.
9501         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
9502         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
9503
9504         getcwd: Tweak for MSVC 9.
9505         * lib/unistd.in.h: Update comments.
9506         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
9507
9508 2011-09-22  Bruno Haible  <bruno@clisp.org>
9509
9510         strerror_r-posix: Avoid a link error on MSVC.
9511         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
9512         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
9513
9514 2011-09-22  Bruno Haible  <bruno@clisp.org>
9515
9516         select: Avoid link errors on MSVC.
9517         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
9518         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
9519         * modules/pselect (Link): Likewise.
9520         * NEWS: Mention the change.
9521         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
9522         test-select-stdin against $(LIB_SELECT).
9523         * modules/pselect-tests (Makefile.am): Link test-pselect against
9524         $(LIB_SELECT).
9525
9526 2011-09-22  Bruno Haible  <bruno@clisp.org>
9527
9528         select: Avoid compilation error on MSVC.
9529         * lib/select.c: Don't include <stdbool.h>.
9530
9531 2011-09-21  Bruno Haible  <bruno@clisp.org>
9532
9533         Consolidate all uses of PATH_MAX in *.m4 files.
9534         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
9535         macros.
9536         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
9537         and gl_PATHMAX_SNIPPET.
9538         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9539         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9540         * modules/chdir-long (Files): Add m4/pathmax.m4.
9541         * modules/getcwd (Files): Likewise.
9542
9543 2011-09-21  Bruno Haible  <bruno@clisp.org>
9544
9545         ftruncate: Un-deprecate, concentrate on Win32 support.
9546         * modules/ftruncate (Status, Notice): Remove sections.
9547         (Depends-on): Add largefile.
9548         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
9549         non-mingw platforms.
9550         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
9551         include <io.h>.
9552         * modules/perror-tests (Depends-on): Add ftruncate.
9553         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
9554         'ftruncate' module.
9555
9556 2011-09-21  Bruno Haible  <bruno@clisp.org>
9557
9558         Add dependencies to new dirent related modules.
9559         * modules/opendir (Depends-on): Add closedir.
9560         * modules/getcwd (Depends-on): Add opendir, closedir.
9561         * modules/dirent-safer-tests (Depends-on): Likewise.
9562         * modules/fdopendir-tests (Depends-on): Likewise.
9563         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9564         * modules/renameat-tests (Depends-on): Likewise.
9565
9566 2011-09-21  Bruno Haible  <bruno@clisp.org>
9567
9568         opendir: Avoid compilation error on mingw.
9569         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9570         * modules/opendir (Depends-on): Add unistd.
9571
9572 2011-09-21  Bruno Haible  <bruno@clisp.org>
9573
9574         ftruncate tests: Avoid a test failure on mingw.
9575         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9576
9577 2011-09-21  Bruno Haible  <bruno@clisp.org>
9578
9579         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9580         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9581         native Windows.
9582
9583 2011-09-21  Bruno Haible  <bruno@clisp.org>
9584
9585         New module 'fdopen'.
9586         * lib/stdio.in.h (fdopen): New declaration.
9587         * lib/fdopen.c: New file.
9588         * m4/fdopen.m4: New file.
9589         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9590         REPLACE_FDOPEN.
9591         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9592         REPLACE_FDOPEN.
9593         * modules/fdopen: New file.
9594         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9595         * tests/test-stdio-c++.cc: Check signature of fdopen.
9596         * doc/posix-functions/fdopen.texi: Mention the new module.
9597
9598 2011-09-21  Bruno Haible  <bruno@clisp.org>
9599
9600         unlockpt tests: Avoid test failure on NetBSD 5.1.
9601         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9602         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9603
9604 2011-09-21  Bruno Haible  <bruno@clisp.org>
9605
9606         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9607         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9608         * tests/test-getlogin_r.c (main): Likewise.
9609
9610 2011-09-20  Bruno Haible  <bruno@clisp.org>
9611
9612         time tests: Don't require pid_t.
9613         * doc/posix-headers/time.texi: Revert last change.
9614         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9615         * tests/test-time.c: Comment out the check for pid_t.
9616
9617 2011-09-20  Bruno Haible  <bruno@clisp.org>
9618
9619         fsync tests: Avoid a test failure on mingw.
9620         * tests/test-fsync.c (main): Allow a failure with EIO.
9621
9622 2011-09-20  Bruno Haible  <bruno@clisp.org>
9623
9624         euidaccess: Update comments.
9625         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9626
9627 2011-09-20  Bruno Haible  <bruno@clisp.org>
9628
9629         Ensure EBADF returns for socket functions on mingw.
9630         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9631         descriptor is invalid.
9632         * lib/bind.c (rpl_bind): Likewise.
9633         * lib/connect.c (rpl_connect): Likewise.
9634         * lib/getpeername.c (rpl_getpeername): Likewise.
9635         * lib/getsockname.c (rpl_getsockname): Likewise.
9636         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9637         * lib/listen.c (rpl_listen): Likewise.
9638         * lib/recv.c (rpl_recv): Likewise.
9639         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9640         * lib/send.c (rpl_send): Likewise.
9641         * lib/sendto.c (rpl_sendto): Likewise.
9642         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9643         * lib/shutdown.c (rpl_shutdown): Likewise.
9644
9645 2011-09-20  Bruno Haible  <bruno@clisp.org>
9646
9647         select tests: EBADF tests.
9648         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9649         test_bad_fd): New functions.
9650         (test_function): Invoke also test_bad_fd.
9651
9652 2011-09-20  Bruno Haible  <bruno@clisp.org>
9653
9654         Tests for module 'posix_spawn_file_actions_addopen.
9655         * modules/posix_spawn_file_actions_addopen-tests: New file.
9656         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9657
9658         Tests for module 'posix_spawn_file_actions_adddup2'.
9659         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9660         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9661
9662         Tests for module 'posix_spawn_file_actions_addclose'.
9663         * modules/posix_spawn_file_actions_addclose-tests: New file.
9664         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9665
9666 2011-09-20  Bruno Haible  <bruno@clisp.org>
9667
9668         Tests for module 'unlockpt'.
9669         * modules/unlockpt-tests: New file.
9670         * tests/test-unlockpt.c: New file.
9671         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9672
9673         Tests for module 'grantpt'.
9674         * modules/grantpt-tests: New file.
9675         * tests/test-grantpt.c: New file.
9676         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9677
9678 2011-09-20  Bruno Haible  <bruno@clisp.org>
9679
9680         freopen tests: EBADF tests.
9681         * tests/test-freopen.c: Include errno.h, unistd.h.
9682         (main): Add tests for EBADF, commented out for the moment.
9683
9684         fclose tests: EBADF tests.
9685         * tests/test-fclose.c (main): Add tests for EBADF.
9686
9687         fflush tests: EBADF tests.
9688         * tests/test-fflush.c: Include errno.h, macros.h.
9689         (main): Add tests for EBADF.
9690
9691         ftello tests: EBADF tests.
9692         * tests/test-ftello4.sh: New file.
9693         * tests/test-ftello4.c: New file.
9694         * modules/ftello-tests (Files): Add them.
9695         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9696
9697         fseeko tests: EBADF tests.
9698         * tests/test-fseeko4.sh: New file.
9699         * tests/test-fseeko4.c: New file.
9700         * modules/fseeko-tests (Files): Add them.
9701         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9702
9703         Tests for function fputc().
9704         * modules/fputc-tests: New file.
9705         * tests/test-fputc.c: New file.
9706         * modules/stdio-tests (Depends-on): Add fputc-tests.
9707
9708         Tests for function fgetc().
9709         * modules/fgetc-tests: New file.
9710         * tests/test-fgetc.c: New file.
9711         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9712
9713         Tests for function fdopen().
9714         * modules/fdopen-tests: New file.
9715         * tests/test-fdopen.c: New file.
9716         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9717
9718         Tests for module 'vdprintf'.
9719         * modules/vdprintf-tests: New file.
9720         * tests/test-vdprintf.c: New file.
9721
9722         Tests for module 'dprintf'.
9723         * modules/dprintf-tests: New file.
9724         * tests/test-dprintf.c: New file.
9725
9726 2011-09-20  Bruno Haible  <bruno@clisp.org>
9727
9728         Tests for module 'ioctl'.
9729         * modules/ioctl-tests: New file.
9730         * tests/test-ioctl.c: New file.
9731
9732 2011-09-20  Bruno Haible  <bruno@clisp.org>
9733
9734         fcntl tests: EBADF tests.
9735         * tests/test-fcntl.c (main): Add more tests for EBADF.
9736
9737 2011-09-20  Bruno Haible  <bruno@clisp.org>
9738
9739         utimensat tests: EBADF tests.
9740         * tests/test-utimensat.c (main): Add tests for EBADF.
9741
9742         renameat tests: EBADF tests.
9743         * tests/test-renameat.c (main): Add tests for EBADF.
9744
9745         mkfifoat tests: EBADF tests.
9746         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9747
9748         readlinkat tests: EBADF tests.
9749         * tests/test-readlinkat.c (main): Add tests for EBADF.
9750
9751         symlinkat tests: EBADF tests.
9752         * tests/test-symlinkat.c (main): Add tests for EBADF.
9753
9754         linkat tests: EBADF tests.
9755         * tests/test-linkat.c (main): Add tests for EBADF.
9756
9757         Tests for module 'faccessat'.
9758         * modules/faccessat-tests: New file.
9759         * tests/test-faccessat.c: New file.
9760
9761         fdopendir tests: EBADF tests.
9762         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9763
9764         openat tests: EBADF tests.
9765         * tests/test-fchownat.c (main): Add tests for EBADF.
9766         * tests/test-fstatat.c (main): Likewise.
9767         * tests/test-mkdirat.c (main): Likewise.
9768         * tests/test-openat.c (main): Likewise.
9769         * tests/test-unlinkat.c (main): Likewise.
9770         * tests/test-fchmodat.c: New file.
9771         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9772         (Makefile.am): Also run 'test-fchmodat'.
9773
9774 2011-09-20  Bruno Haible  <bruno@clisp.org>
9775
9776         utimens, futimens, fdutimensat tests: EBADF tests.
9777         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9778
9779         Tests for function fstat().
9780         * modules/fstat-tests: New file.
9781         * tests/test-fstat.c: New file.
9782         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9783
9784 2011-09-20  Bruno Haible  <bruno@clisp.org>
9785
9786         test-ttyname_r tests: EBADF tests.
9787         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9788
9789         Tests for module 'isatty'.
9790         * modules/isatty-tests: New file.
9791         * tests/test-isatty.c: New file.
9792
9793         Tests for module 'write'.
9794         * modules/write-tests: New file.
9795         * tests/test-write.c: New file.
9796
9797         Tests for module 'read'.
9798         * modules/read-tests: New file.
9799         * tests/test-read.c: New file.
9800
9801         pwrite tests: EBADF tests.
9802         * tests/test-pwrite.c (main): Add tests for EBADF.
9803
9804         pread tests: EBADF tests.
9805         * tests/test-pread.c (main): Add tests for EBADF.
9806
9807         lseek tests: EBADF tests.
9808         * tests/test-lseek.c (main): Add more tests for EBADF.
9809
9810         Tests for module 'ftruncate'.
9811         * modules/ftruncate-tests: New file.
9812         * tests/test-ftruncate.sh: New file.
9813         * tests/test-ftruncate.c: New file.
9814
9815         fsync tests: EBADF tests.
9816         * tests/test-fsync.c (main): Add more tests for EBADF.
9817
9818         fdatasync tests: EBADF tests.
9819         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9820
9821         Tests for module 'fchown'.
9822         * modules/fchown-tests: New file.
9823         * tests/test-fchown.c: New file.
9824
9825         Tests for module 'fchmod'.
9826         * modules/fchmod-tests: New file.
9827         * tests/test-fchmod.c: New file.
9828
9829         fchdir tests: EBADF tests.
9830         * tests/test-fchdir.c (main): Add more tests for EBADF.
9831
9832         dup2 tests: EBADF tests.
9833         * tests/test-dup2.c (main): Add more tests for EBADF.
9834
9835         Tests for module 'dup'.
9836         * modules/dup-tests: New file.
9837         * tests/test-dup.c: New file.
9838
9839         Tests for module 'close'.
9840         * modules/close-tests: New file.
9841         * tests/test-close.c: New file.
9842
9843 2011-09-20  Bruno Haible  <bruno@clisp.org>
9844
9845         Tests for module 'shutdown'.
9846         * modules/shutdown-tests: New file.
9847         * tests/test-shutdown.c: New file.
9848
9849         Tests for module 'setsockopt'.
9850         * modules/setsockopt-tests: New file.
9851         * tests/test-setsockopt.c: New file.
9852
9853         Tests for module 'sendto'.
9854         * modules/sendto-tests: New file.
9855         * tests/test-sendto.c: New file.
9856
9857         Tests for module 'send'.
9858         * modules/send-tests: New file.
9859         * tests/test-send.c: New file.
9860
9861         Tests for module 'recvfrom'.
9862         * modules/recvfrom-tests: New file.
9863         * tests/test-recvfrom.c: New file.
9864
9865         Tests for module 'recv'.
9866         * modules/recv-tests: New file.
9867         * tests/test-recv.c: New file.
9868
9869         Tests for module 'listen'.
9870         * modules/listen-tests: New file.
9871         * tests/test-listen.c: New file.
9872
9873         Tests for module 'getsockopt'.
9874         * modules/getsockopt-tests: New file.
9875         * tests/test-getsockopt.c: New file.
9876
9877         Tests for module 'getsockname'.
9878         * modules/getsockname-tests: New file.
9879         * tests/test-getsockname.c: New file.
9880
9881         Tests for module 'getpeername'.
9882         * modules/getpeername-tests: New file.
9883         * tests/test-getpeername.c: New file.
9884
9885         Tests for module 'connect'.
9886         * modules/connect-tests: New file.
9887         * tests/test-connect.c: New file.
9888
9889         Tests for module 'bind'.
9890         * modules/bind-tests: New file.
9891         * tests/test-bind.c: New file.
9892
9893         accept4 tests: Fix for native Windows.
9894         * tests/test-accept4.c: Include sockets.h.
9895         (main): Invoke gl_sockets_startup.
9896         * modules/accept4-tests (Depends-on): Add sockets.
9897
9898         accept tests: Fix for native Windows.
9899         * tests/test-accept.c: Include sockets.h.
9900         (main): Invoke gl_sockets_startup.
9901         * modules/accept-tests (Depends-on): Add sockets.
9902
9903 2011-09-19  Bruno Haible  <bruno@clisp.org>
9904
9905         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9906         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9907         do...while(0).
9908         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9909         Suggested by Paul Eggert.
9910
9911 2011-09-19  Bruno Haible  <bruno@clisp.org>
9912
9913         sched: Ensure pid_t is defined.
9914         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9915         not define pid_t.
9916         * lib/sched.in.h: Include <sys/types.h>.
9917         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9918         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9919
9920 2011-09-19  Bruno Haible  <bruno@clisp.org>
9921
9922         msvc-inval: Ensure the entire expansion is a single statement.
9923         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9924         of braces.
9925
9926 2011-09-19  Jim Meyering  <meyering@redhat.com>
9927
9928         tests: use printf, not echo in init.sh's warn_ function
9929         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9930         misbehave when given strings containing a backslash or starting
9931         with e.g., -n.  James Youngman suggested setting IFS.
9932
9933 2011-09-19  Eric Blake  <eblake@redhat.com>
9934
9935         futimens: enhance test
9936         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9937         closed non-negative fd.
9938
9939         date: accept 'hence' as opposite of 'ago'
9940         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9941         * tests/test-parse-datetime.c (main): Enhance test.
9942         Suggested by Jesse Wilson.
9943
9944 2011-09-19  Jim Meyering  <meyering@redhat.com>
9945
9946         getcwd: don't fail in a deep directory on a system without openat
9947         Before this change, getcwd would fail when called from a directory
9948         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9949         the non-openat implementation used "..", "../..", "../../..", etc.
9950         to access ancestor directories.  With too many, that string would
9951         be longer than PATH_MAX.
9952         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9953         using gnulib's openat replacement.
9954         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9955         we're using the replacement function.
9956
9957 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9958
9959         maint.mk: avoid warnings from perl about missing files
9960         * top/maint.mk (def_sym_regex): Ignore files listed in
9961         $(gl_other_headers_) that do not exist, say because a project
9962         does not use a corresponding module.
9963
9964 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9965
9966         stat: use pathmax.h only if needed
9967         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9968         This is better for Emacs, which does not have a mingw port and
9969         therefore can avoid the pathmax module.
9970
9971         utimens: remove dependency on dup2
9972         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9973         to work around the Linux kernel bug.
9974         * modules/utimens (Depends-on): Remove dup2.
9975
9976 2011-09-18  Bruno Haible  <bruno@clisp.org>
9977
9978         inet_ntop, inet_pton: Look for it also in libresolv.
9979         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9980         libnsl, search for it in libresolv.
9981         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9982         Needed on Solaris 7.
9983
9984 2011-09-18  Bruno Haible  <bruno@clisp.org>
9985
9986         accept, accept4 tests: Avoid link error on Solaris.
9987         * modules/accept-tests (Makefile.am): Link test-accept against
9988         $(LIBSOCKET).
9989         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9990         $(LIBSOCKET).
9991
9992         accept4: Avoid link error on Solaris.
9993         * modules/accept4 (Link): New section.
9994
9995         socket functions: Avoid link errors on Solaris.
9996         * modules/accept (Depends-on): Add socketlib.
9997         (Link): New section.
9998         * modules/bind (Depends-on): Add socketlib.
9999         (Link): New section.
10000         * modules/connect (Depends-on): Add socketlib.
10001         (Link): New section.
10002         * modules/getpeername (Depends-on): Add socketlib.
10003         (Link): New section.
10004         * modules/getsockname (Depends-on): Add socketlib.
10005         (Link): New section.
10006         * modules/getsockopt (Depends-on): Add socketlib.
10007         (Link): New section.
10008         * modules/listen (Depends-on): Add socketlib.
10009         (Link): New section.
10010         * modules/recv (Depends-on): Add socketlib.
10011         (Link): New section.
10012         * modules/recvfrom (Depends-on): Add socketlib.
10013         (Link): New section.
10014         * modules/send (Depends-on): Add socketlib.
10015         (Link): New section.
10016         * modules/sendto (Depends-on): Add socketlib.
10017         (Link): New section.
10018         * modules/setsockopt (Depends-on): Add socketlib.
10019         (Link): New section.
10020         * modules/shutdown (Depends-on): Add socketlib.
10021         (Link): New section.
10022         * modules/socket (Depends-on): Add socketlib.
10023         (Link): New section.
10024
10025 2011-09-18  Bruno Haible  <bruno@clisp.org>
10026
10027         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
10028         * tests/test-ptsname.c (main): Terminate the test if it takes longer
10029         than 5 seconds.
10030         * modules/ptsname-tests (configure.ac): Test for alarm.
10031
10032 2011-09-18  Bruno Haible  <bruno@clisp.org>
10033
10034         posix_spawn_file_actions_add*: Fix module dependencies.
10035         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
10036         posix_spawn_file_actions_init.
10037         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
10038         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
10039
10040 2011-09-18  Bruno Haible  <bruno@clisp.org>
10041
10042         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
10043         * tests/test-rename.h (test_rename): Allow error code EEXIST.
10044         * tests/test-renameat.c (main): Likewise.
10045
10046 2011-09-18  Bruno Haible  <bruno@clisp.org>
10047
10048         Tests for module 'accept4'.
10049         * modules/accept4-tests: New file.
10050         * tests/test-accept4.c: New file.
10051
10052 2011-09-18  Bruno Haible  <bruno@clisp.org>
10053
10054         Tests for module 'accept'.
10055         * modules/accept-tests: New file.
10056         * tests/test-accept.c: New file.
10057
10058 2011-09-18  Bruno Haible  <bruno@clisp.org>
10059
10060         dup2: Support for MSVC.
10061         * lib/dup2.c: Include msvc-inval.h.
10062         (rpl_dup2): Handle invalid parameter notifications during dup2 and
10063         _get_osfhandle calls.
10064         * modules/dup2 (Depends-on): Add msvc-inval.
10065         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
10066
10067         New module 'msvc-inval'.
10068         * lib/msvc-inval.h: New file.
10069         * lib/msvc-inval.c: New file.
10070         * m4/msvc-inval.m4: New file.
10071         * modules/msvc-inval: New file.
10072
10073 2011-09-17  Bruno Haible  <bruno@clisp.org>
10074
10075         Tests for module 'pclose'.
10076         * modules/pclose-tests: New file.
10077
10078         New module 'pclose'.
10079         * lib/stdio.in.h (pclose): New declaration.
10080         * lib/pclose.c: New file.
10081         * m4/pclose.m4: New file.
10082         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
10083         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
10084         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
10085         * modules/pclose: New file.
10086         * modules/popen-tests (Depends-on): Add pclose.
10087         * modules/popen-safer-tests (Depends-on): Likewise.
10088         * doc/posix-functions/pclose.texi: Mention the new module.
10089
10090 2011-09-17  Bruno Haible  <bruno@clisp.org>
10091
10092         popen: Support for MSVC.
10093         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
10094         * lib/popen.c (popen): Provide alternate definition for native Windows.
10095         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
10096         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
10097         * modules/popen (Depends-on, configure.ac): Update condition.
10098         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
10099         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
10100         fixed.
10101
10102 2011-09-17  Bruno Haible  <bruno@clisp.org>
10103
10104         isnanl, isnand, isnanf: Work around MSVC bug.
10105         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
10106
10107 2011-09-17  Bruno Haible  <bruno@clisp.org>
10108
10109         sys_socket tests: Fix recent mistake.
10110         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
10111
10112 2011-09-17  Bruno Haible  <bruno@clisp.org>
10113
10114         putenv: Support for MSVC.
10115         * modules/putenv (Depends-on): Add environ.
10116         * lib/putenv.c (environ): Disable declaration.
10117         * lib/unistd.in.h: Update comment.
10118
10119 2011-09-17  Bruno Haible  <bruno@clisp.org>
10120
10121         math: Avoid macro redefinition warnings on MSVC.
10122         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
10123         Undefine before redefining.
10124
10125 2011-09-17  Bruno Haible  <bruno@clisp.org>
10126
10127         doc: Mention functions which are declared as macros.
10128         * doc/posix-functions/*[fl].texi: Mention that some functions are
10129         defined as macros with arguments only.
10130
10131 2011-09-17  Bruno Haible  <bruno@clisp.org>
10132
10133         Add dependencies to new dirent related modules.
10134         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
10135         * modules/fts (Depends-on): Likewise.
10136         * modules/glob (Depends-on): Likewise.
10137         * modules/savedir (Depends-on): Likewise.
10138         * modules/scandir (Depends-on): Likewise.
10139         * modules/dirent-safer (Depends-on): Add opendir, closedir.
10140         * modules/fdopendir (Depends-on): Add opendir.
10141
10142 2011-09-17  Bruno Haible  <bruno@clisp.org>
10143
10144         inet_pton: Support for MSVC on Windows Vista or newer.
10145         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
10146         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
10147         HAVE_DECL_INET_PTON is defined.
10148         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10149         On platforms with <winsock2.h>, test whether inet_pton is declared in
10150         <ws2tcpip.h>. If so, arrange to replace it.
10151         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10152         REPLACE_INET_PTON.
10153         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
10154         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
10155         (Depends-on, configure.ac): Update condition.
10156         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
10157
10158 2011-09-17  Bruno Haible  <bruno@clisp.org>
10159
10160         inet_ntop: Support for MSVC on Windows Vista or newer.
10161         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
10162         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
10163         HAVE_DECL_INET_NTOP is defined.
10164         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10165         On platforms with <winsock2.h>, test whether inet_ntop is declared in
10166         <ws2tcpip.h>. If so, arrange to replace it.
10167         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10168         REPLACE_INET_NTOP.
10169         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
10170         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
10171         (Depends-on, configure.ac): Update condition.
10172         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
10173
10174 2011-09-16  Eric Blake  <eblake@redhat.com>
10175
10176         test-fsync: yet another enhancement
10177         * tests/test-fsync.c (main): Also test behavior on read-only text
10178         file.
10179
10180 2011-09-16  Bruno Haible  <bruno@clisp.org>
10181
10182         Enhance fsync, fdatasync tests.
10183         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
10184         * tests/test-fdatasync.c (main): Likewise.
10185
10186 2011-09-16  Bruno Haible  <bruno@clisp.org>
10187
10188         Support for MSVC compiler: Ensure mode_t gets defined.
10189         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
10190         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10191         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10192         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
10193         * tests/test-fcntl-h.c: Check that mode_t is defined.
10194         * tests/test-sys_stat.c: Likewise.
10195         * tests/test-sys_types.c: Likewise.
10196         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
10197         * doc/posix-headers/sys_stat.texi: Likewise.
10198         * doc/posix-headers/sys_types.texi: Likewise.
10199
10200 2011-09-16  Bruno Haible  <bruno@clisp.org>
10201
10202         sys_stat: Support for MSVC.
10203         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
10204         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
10205         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
10206         MSVC.
10207
10208 2011-09-16  Bruno Haible  <bruno@clisp.org>
10209
10210         Support for MSVC compiler: Ensure off_t gets defined.
10211         * lib/unistd.in.h: Include <sys/types.h>.
10212         * tests/test-fcntl-h.c: Check that off_t is defined.
10213         * tests/test-sys_stat.c: Likewise.
10214         * tests/test-sys_types.c: Likewise.
10215
10216 2011-09-16  Eric Blake  <eblake@redhat.com>
10217
10218         fdatasync: port to Solaris
10219         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
10220         * modules/fdatasync (Link): Document it.
10221         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
10222
10223         fdatasync: port to MacOS X 10.7
10224         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
10225         declared.
10226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
10227         * modules/unistd (Makefile.am): Substitute it.
10228         * lib/unistd.in.h (fdatasync): Declare on MacOS.
10229         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
10230
10231         fdatasync: minor improvements
10232         * modules/fdatasync (Depends-on): Add condition for fsync.
10233         * lib/fdatasync.c (fdatasync): Add comment.
10234         * tests/test-unistd-c++.cc: Test fdatasync.
10235
10236         unistd: update refs to newer POSIX
10237         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
10238         Suggested by Bruno Haible.
10239
10240         fdatasync: new module
10241         * modules/fsync (Description): Document difference to fdatasync.
10242         * modules/fdatasync: New module.
10243         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
10244         * lib/fdatasync.c (fdatasync): Likewise.
10245         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
10246         defaults.
10247         * modules/unistd (Makefile.am): Set witnesses.
10248         * lib/unistd.in.h (fdatasync): Declare.
10249         * MODULES.html.sh: Document it.
10250         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
10251         * modules/fdatasync-tests: New test.
10252         * tests/test-fdatasync.c: Likewise.
10253
10254 2011-09-16  Eric Blake  <eblake@redhat.com>
10255
10256         test-fsync: enhance tests
10257         * modules/fsync-tests (Depends-on): Add errno, for mingw.
10258         * tests/test-fsync.c (main): Enhance test.
10259
10260 2011-09-15  Bruno Haible  <bruno@clisp.org>
10261
10262         Support for MSVC compiler: Ensure ssize_t gets defined.
10263         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
10264         * doc/posix-headers/stdio.texi: Likewise.
10265         * modules/stdio (Depends-on): Add ssize_t.
10266         * modules/sys_socket (Depends-on): Likewise.
10267         * modules/sys_types (Depends-on): Likewise.
10268         * modules/sys_uio (Depends-on): Likewise.
10269         * modules/unistd (Depends-on): Likewise.
10270         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
10271         * tests/test-sys_types.c: Check that ssize_t is defined.
10272
10273 2011-09-14  Bruno Haible  <bruno@clisp.org>
10274
10275         Avoid using #, the m4 comment starter character, near brackets.
10276         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
10277         delimiter character in sed expressions.
10278         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10279         Suggested by Eric Blake.
10280
10281         Properly quote AC_CHECK_DECLS' 4th argument.
10282         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
10283         argument.
10284         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10285         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10286         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10287         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10288         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10289         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
10290         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
10291         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
10292         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
10293         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10294         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
10295         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10296         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10297         * m4/isinf.m4 (gl_ISINF): Likewise.
10298         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10299         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10300         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10301         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10302         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10303         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10304         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10305         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10306         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
10307         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10308         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10309         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10310         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
10311         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10312         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10313         Reported by Eric Blake.
10314
10315         Properly quote AC_CHECK_DECL's 4th argument.
10316         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
10317         argument.
10318         * m4/argp.m4 (gl_ARGP): Likewise.
10319         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10320         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10321         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10322         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10323         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
10324         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
10325         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
10326         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10327         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10328         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10329         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10330         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10331         Reported by Eric Blake.
10332
10333 2011-09-14  Eric Blake  <eblake@redhat.com>
10334
10335         opendir: avoid compile warning
10336         * lib/opendir.c (includes): Always include errno.h.
10337         Reported by Tatsuro MATSUOKA.
10338
10339 2011-09-14  Jim Meyering  <meyering@redhat.com>
10340
10341         maint.mk: sc_tight_scope: propagate failure from sub-make
10342         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
10343         Reported by Martin von Gagern.
10344
10345 2011-09-13  Bruno Haible  <bruno@clisp.org>
10346
10347         tempname: Support for MSVC.
10348         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
10349         MSVC.
10350         * modules/tempname (Depends-on): Add fcntl-h.
10351
10352 2011-09-13  Bruno Haible  <bruno@clisp.org>
10353
10354         sys_time: Support for MSVC.
10355         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
10356         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
10357         include <winsock2.h>.
10358         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
10359         function declarations that collide with POSIX.
10360         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
10361         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10362
10363 2011-09-13  Bruno Haible  <bruno@clisp.org>
10364
10365         stat: Support for MSVC.
10366         * lib/stat.c: Include pathmax.h.
10367         * modules/stat (Depends-on): Add pathmax.
10368
10369         pathmax: Support for native Windows.
10370         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
10371
10372 2011-09-12  Bruno Haible  <bruno@clisp.org>
10373
10374         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
10375         * lib/dirent.in.h (struct dirent): New type.
10376         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
10377         DT_WHT): New macros.
10378         (DIR): New type.
10379         (opendir, closedir): Declare only if the module 'opendir' is enabled.
10380         (readdir, rewinddir): New declarations.
10381         * lib/dirent-private.h: New file.
10382         * lib/opendir.c: New file.
10383         * lib/readdir.c: New file.
10384         * lib/rewinddir.c: New file.
10385         * lib/closedir.c: New file.
10386         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
10387         * m4/opendir.m4: New file.
10388         * m4/readdir.m4: New file.
10389         * m4/rewinddir.m4: New file.
10390         * m4/closedir.m4: New file.
10391         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
10392         REPLACE_CLOSEDIR here.
10393         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
10394         readdir, rewinddir are declared.
10395         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
10396         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
10397         HAVE_REWINDDIR, HAVE_CLOSEDIR.
10398         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
10399         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
10400         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
10401         * modules/opendir: New file.
10402         * modules/readdir: New file.
10403         * modules/rewinddir: New file.
10404         * modules/closedir: New file.
10405         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
10406         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
10407         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
10408         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
10409         * NEWS: Mention the 'fchdir' change.
10410
10411 2011-09-11  Bruno Haible  <bruno@clisp.org>
10412
10413         asm-underscore.m4: Support for MSVC.
10414         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
10415         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
10416
10417 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
10418
10419         Doc about crypt functions.
10420         * doc/posix-functions/crypt.texi: Expand range of glibc versions
10421         needing for _GNU_SOURCE to get crypt.
10422         * doc/posix-functions/encrypt.texi: Likewise.
10423         * doc/posix-functions/setkey.texi: Likewise.
10424
10425 2011-09-11  Bruno Haible  <bruno@clisp.org>
10426
10427         doc: Update regarding MSVC 9.
10428         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
10429         tested".
10430         * doc/posix-functions/*.texi: Update with info about MSVC 9.
10431         * doc/posix-headers/*.texi: Likewise.
10432         * doc/pastposix-functions/*.texi: Likewise.
10433         * doc/glibc-functions/*.texi: Likewise.
10434         * doc/glibc-headers/*.texi: Likewise.
10435
10436 2011-09-11  Bruno Haible  <bruno@clisp.org>
10437
10438         unistd et al.: Don't assume <unistd.h> exists.
10439         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
10440         does not exist.
10441         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
10442         exist. But include <stdlib.h>.
10443         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
10444         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
10445         symlink() does not exist.
10446         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
10447         include <io.h> instead.
10448         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
10449         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
10450         include <direct.h> instead.
10451         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10452         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10453         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
10454         <io.h> instead.
10455         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
10456         correctly if the system does not have hard links.
10457         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
10458         <direct.h> instead.
10459         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
10460         it when looking for function declarations.
10461         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
10462         <direct.h> and <io.h> instead.
10463         * doc/posix-headers/unistd.texi: More details about MSVC problem.
10464
10465 2011-09-11  Bruno Haible  <bruno@clisp.org>
10466
10467         strcase: Support for MSVC.
10468         * modules/strcase (Status, Notice): Remove obsoletion mark.
10469         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
10470         * doc/posix-functions/strncasecmp.texi: Likewise.
10471
10472         strings: Don't assume <strings.h> exists.
10473         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
10474         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
10475         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
10476         * doc/posix-headers/strings.texi: Mention the MSVC problem.
10477
10478 2011-09-11  Bruno Haible  <bruno@clisp.org>
10479
10480         dirent: Don't assume <dirent.h> exists.
10481         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
10482         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
10483         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
10484         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
10485
10486 2011-09-11  Bruno Haible  <bruno@clisp.org>
10487
10488         Fix wint_t on MSVC.
10489         * lib/wchar.in.h (wint_t): On MSVC, override it.
10490         * lib/wctype.in.h (wint_t): Likewise.
10491         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
10492         MSVC.
10493         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
10494         * doc/posix-headers/wctype.texi: Likewise.
10495
10496 2011-09-11  Bruno Haible  <bruno@clisp.org>
10497
10498         sys_types: Fix typo.
10499         * lib/sys_types.in.h: Fix typo in comment.
10500         Reported by Paul Eggert.
10501
10502         Support for MSVC compiler: Ensure size_t gets defined.
10503         * modules/strings (Depends-on): Add 'sys_types'.
10504         * modules/sys_uio (Depends-on): Likewise.
10505         * lib/sys_uio.in.h: Update comment.
10506
10507         C++ tests for module 'sys_types'.
10508         * modules/sys_types-c++-tests: New file.
10509         * tests/test-sys_types-c++.cc: New file.
10510
10511         Tests for module 'sys_types'.
10512         * modules/sys_types-tests: New file.
10513         * tests/test-sys_types.c: New file.
10514
10515         New module 'sys_types'.
10516         * lib/sys_types.in.h: New file.
10517         * m4/sys_types_h.m4: New file.
10518         * modules/sys_types: New file.
10519         * doc/posix-headers/sys_types.texi: Mention the new module and the
10520         size_t problem on MSVC 9.
10521
10522 2011-09-11  Bruno Haible  <bruno@clisp.org>
10523
10524         Support for MSVC compiler: Avoid division by a literal 0.
10525         * lib/math.in.h (NAN): Define through a function call also on MSVC.
10526         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
10527         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
10528         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
10529         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
10530         * tests/infinity.h: New file.
10531         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
10532         on MSVC.
10533         * tests/test-ceilf1.c: Include infinity.h.
10534         (main): Use Infinityf.
10535         * tests/test-ceil1.c: Include infinity.h.
10536         (main): Use Infinityd.
10537         * tests/test-ceill.c: Include infinity.h.
10538         (main): Use Infinityl.
10539         * tests/test-dprintf-posix.c: Include infinity.h.
10540         (test_function): Use Infinityd.
10541         * tests/test-floorf1.c: Include infinity.h.
10542         (main): Use Infinityf.
10543         * tests/test-floor1.c: Include infinity.h.
10544         (main): Use Infinityd.
10545         * tests/test-floorl.c: Include infinity.h.
10546         (main): Use Infinityl.
10547         * tests/test-fprintf-posix.c: Include infinity.h.
10548         (test_function): Use Infinityd.
10549         * tests/test-frexp.c: Include infinity.h.
10550         (main): Use Infinityd.
10551         * tests/test-frexpl.c: Include infinity.h.
10552         (main): Use Infinityl.
10553         * tests/test-isfinite.c: Include infinity.h.
10554         (test_isfinitef): Use Infinityf.
10555         (test_isfinited): Use Infinityd.
10556         (test_isfinitel): Use Infinityl.
10557         * tests/test-isinf.c: Include infinity.h.
10558         (test_isinff): Use Infinityf.
10559         (test_isinfd): Use Infinityd.
10560         (test_isinfl): Use Infinityl.
10561         * tests/test-isnan.c: Include infinity.h.
10562         (test_float): Use Infinityf.
10563         (test_double): Use Infinityd.
10564         (test_long_double): Use Infinityl.
10565         * tests/test-isnanf.h: Include infinity.h.
10566         (main): Use Infinityf.
10567         * tests/test-isnand.h: Include infinity.h.
10568         (main): Use Infinityd.
10569         * tests/test-isnanl.h: Include infinity.h.
10570         (main): Use Infinityl.
10571         * tests/test-ldexpl.c: Include infinity.h.
10572         (main): Use Infinityl.
10573         * tests/test-printf-posix.h: Include infinity.h.
10574         (test_function): Use Infinityd.
10575         * tests/test-roundf1.c: Include infinity.h.
10576         (main): Use Infinityf.
10577         * tests/test-round1.c: Include infinity.h.
10578         (main): Use Infinityd.
10579         * tests/test-roundl.c: Include infinity.h.
10580         (main): Use Infinityl.
10581         * tests/test-signbit.c: Include infinity.h.
10582         (test_signbitf): Use Infinityf.
10583         (test_signbitd): Use Infinityd.
10584         (test_signbitl): Use Infinityl.
10585         * tests/test-snprintf-posix.h: Include infinity.h.
10586         (test_function): Use Infinityd, Infinityl.
10587         * tests/test-sprintf-posix.h: Include infinity.h.
10588         (test_function): Use Infinityd, Infinityl.
10589         * tests/test-truncf1.c: Include infinity.h.
10590         (main): Use Infinityf.
10591         * tests/test-trunc1.c: Include infinity.h.
10592         (main): Use Infinityd.
10593         * tests/test-truncl.c: Include infinity.h.
10594         (main): Use Infinityl.
10595         * tests/test-vasnprintf-posix.c: Include infinity.h.
10596         (test_function): Use Infinityd, Infinityl.
10597         * tests/test-vasprintf-posix.c: Include infinity.h.
10598         (test_function): Use Infinityd, Infinityl.
10599         * modules/ceilf-tests (Files): Add tests/infinity.h.
10600         * modules/ceil-tests (Files): Likewise.
10601         * modules/ceill-tests (Files): Likewise.
10602         * modules/dprintf-posix-tests (Files): Likewise.
10603         * modules/floorf-tests (Files): Likewise.
10604         * modules/floor-tests (Files): Likewise.
10605         * modules/floorl-tests (Files): Likewise.
10606         * modules/fprintf-posix-tests (Files): Likewise.
10607         * modules/frexp-tests (Files): Likewise.
10608         * modules/frexp-nolibm-tests (Files): Likewise.
10609         * modules/frexpl-tests (Files): Likewise.
10610         * modules/frexpl-nolibm-tests (Files): Likewise.
10611         * modules/isfinite-tests (Files): Likewise.
10612         * modules/isinf-tests (Files): Likewise.
10613         * modules/isnan-tests (Files): Likewise.
10614         * modules/isnanf-tests (Files): Likewise.
10615         * modules/isnanf-nolibm-tests (Files): Likewise.
10616         * modules/isnand-tests (Files): Likewise.
10617         * modules/isnand-nolibm-tests (Files): Likewise.
10618         * modules/isnanl-tests (Files): Likewise.
10619         * modules/isnanl-nolibm-tests (Files): Likewise.
10620         * modules/ldexpl-tests (Files): Likewise.
10621         * modules/printf-posix-tests (Files): Likewise.
10622         * modules/roundf-tests (Files): Likewise.
10623         * modules/round-tests (Files): Likewise.
10624         * modules/roundl-tests (Files): Likewise.
10625         * modules/signbit-tests (Files): Likewise.
10626         * modules/snprintf-posix-tests (Files): Likewise.
10627         * modules/sprintf-posix-tests (Files): Likewise.
10628         * modules/truncf-tests (Files): Likewise.
10629         * modules/trunc-tests (Files): Likewise.
10630         * modules/truncl-tests (Files): Likewise.
10631         * modules/vasnprintf-posix-tests (Files): Likewise.
10632         * modules/vasprintf-posix-tests (Files): Likewise.
10633         * modules/vdprintf-posix-tests (Files): Likewise.
10634         * modules/vfprintf-posix-tests (Files): Likewise.
10635         * modules/vprintf-posix-tests (Files): Likewise.
10636         * modules/vsnprintf-posix-tests (Files): Likewise.
10637         * modules/vsprintf-posix-tests (Files): Likewise.
10638         * modules/xprintf-posix-tests (Files): Likewise.
10639
10640 2011-09-11  Bruno Haible  <bruno@clisp.org>
10641
10642         Ensure pid_t gets defined.
10643         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10644         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10645         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10646         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10647         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10648         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10649         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10650         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10651         * tests/test-fcntl-h.c: Check that pid_t is defined.
10652         * tests/test-sched.c: Likewise.
10653         * tests/test-termios.c: Likewise.
10654         * tests/test-time.c: Likewise.
10655         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10656         * doc/posix-headers/signal.texi: Likewise.
10657         * doc/posix-headers/sys_types.texi: Likewise.
10658         * doc/posix-headers/time.texi: Likewise.
10659
10660 2011-09-11  Bruno Haible  <bruno@clisp.org>
10661
10662         acl: Fix compilation on Solaris 10 (older version).
10663         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10664         of ACE_EVERYONE.
10665         * lib/set-mode-acl.c (qset_acl): Likewise.
10666         Reported by Christian Jullien <eligis@orange.fr>.
10667
10668 2011-09-10  Bruno Haible  <bruno@clisp.org>
10669
10670         iconv, unsetenv: Add support for MSVC compiler.
10671         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10672         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10673
10674 2011-09-10  Bruno Haible  <bruno@clisp.org>
10675
10676         *printf: Add support for MSVC compiler.
10677         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10678         handles the exception caused by the %n directive. When cross-compiling,
10679         guess no on native Windows.
10680         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10681         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10682         emulate it through vsnprintf.
10683         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10684         * doc/posix-functions/dprintf.texi: Update documentation regarding
10685         MSVC 9.
10686         * doc/posix-functions/fprintf.texi: Likewise.
10687         * doc/posix-functions/printf.texi: Likewise.
10688         * doc/posix-functions/snprintf.texi: Likewise.
10689         * doc/posix-functions/sprintf.texi: Likewise.
10690         * doc/posix-functions/swprintf.texi: Likewise.
10691         * doc/posix-functions/vdprintf.texi: Likewise.
10692         * doc/posix-functions/vfprintf.texi: Likewise.
10693         * doc/posix-functions/vprintf.texi: Likewise.
10694         * doc/posix-functions/vsnprintf.texi: Likewise.
10695         * doc/posix-functions/vsprintf.texi: Likewise.
10696         * doc/glibc-functions/asprintf.texi: Likewise.
10697         * doc/glibc-functions/obstack_printf.texi: Likewise.
10698         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10699         * doc/glibc-functions/vasprintf.texi: Likewise.
10700
10701 2011-09-10  Bruno Haible  <bruno@clisp.org>
10702
10703         nocrash: Add support for native Windows.
10704         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10705
10706 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10707             Bruno Haible  <bruno@clisp.org>
10708
10709         absolute-header, include-next: Add support for MSVC compiler.
10710         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10711         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10712         directory separator in #line directives.
10713         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10714         recognize also backslash as directory separator in #line directives.
10715
10716 2011-09-08  Jim Meyering  <meyering@redhat.com>
10717
10718         maint.mk: mark the post-release commit log with "maint: " prefix
10719         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10720         one-line commit-log summary.
10721
10722 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10723             Bruno Haible  <bruno@clisp.org>
10724
10725         Doc about crypt functions.
10726         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10727         systems.
10728         * doc/posix-functions/encrypt.texi: Likewise.
10729         * doc/posix-functions/setkey.texi: Likewise.
10730
10731 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10732
10733         * lib/gc.h: Fix copyright header.
10734
10735 2011-09-07  Bruno Haible  <bruno@clisp.org>
10736
10737         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10738         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10739         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10740
10741 2011-09-07  Bruno Haible  <bruno@clisp.org>
10742
10743         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10744         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10745         * lib/freopen.c: Likewise.
10746         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10747         * lib/lstat.c: Likewise.
10748         * lib/stat.c: Likewise.
10749         * lib/open.c: Use different syntax for include of <fcntl.h>.
10750         * lib/openat.c: Include fcntl.h again, explicitly.
10751
10752 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10753
10754         parse-datetime: document the newly accepted format
10755         * doc/parse-datetime.texi (Combined date and time of day items):
10756         New section.
10757
10758 2011-09-06  Bruno Haible  <bruno@clisp.org>
10759
10760         acl: Fix a test failure on newer Solaris 10 with ZFS.
10761         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10762         ENOSYS as no ACL.
10763         Reported by Jim Meyering.
10764
10765 2011-09-06  Bruno Haible  <bruno@clisp.org>
10766
10767         acl: Update for AIX >= 5.3 with NFS.
10768         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10769         ENOSYS as no ACL.
10770
10771         acl: Fix a test failure on AIX >= 5.3 with NFS.
10772         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10773         as no ACL.
10774
10775 2011-09-06  Bruno Haible  <bruno@clisp.org>
10776
10777         acl: Fix a test failure on IRIX 6.5 with NFS.
10778         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10779         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10780         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10781         * lib/copy-acl.c (qcopy_acl): Likewise.
10782
10783 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10784
10785         openat: port to AIX 7.1 with large files
10786         AIX 7.1 does a "#define openat open64at" if large files are in use,
10787         so we can't simply #undef openat.  Use the orig_openat trick (similar
10788         to orig_open in lib/open.c) to work around the problem.  Problem
10789         reported by Kevin Brott for GNU tar, in the thread containing
10790         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10791         * lib/openat.c (__need_system_fcntl_h): Define first.
10792         Include <fcntl.h> and <sys/types.h> before undefining.
10793         (orig_openat) [HAVE_OPENAT]: New inline function.
10794         (openat) [HAVE_OPENAT]: Do not undef.
10795         (rpl_openat): Use orig_openat, not openat.
10796
10797 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10798             Bruno Haible  <bruno@clisp.org>
10799
10800         acl: Avoid errors on NonStop Kernel.
10801         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10802         ENOTSUP errors.
10803
10804 2011-09-05  Bruno Haible  <bruno@clisp.org>
10805
10806         acl: Clean up Solaris code.
10807         * lib/acl-internal.h: Remove no-op #if.
10808         * lib/file-has-acl.c: Likewise.
10809         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10810         * lib/copy-acl.c (qcopy_acl): Likewise.
10811
10812 2011-09-05  Bruno Haible  <bruno@clisp.org>
10813
10814         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10815         binaries built on the original Solaris 10.
10816         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10817         trivial.
10818
10819 2011-09-05  Bruno Haible  <bruno@clisp.org>
10820
10821         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10822         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10823         10.
10824         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10825         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10826         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10827         instead of acl_get, facl_get, acl_set, facl_set.
10828
10829 2011-09-05  Bruno Haible  <bruno@clisp.org>
10830
10831         copy-file: Try unit tests on more file systems.
10832         * tests/test-copy-file-1.sh: New file.
10833         * tests/test-copy-file-2.sh: New file.
10834         * modules/copy-file-tests (Files): Add them.
10835         (Makefile.am): Add them to TESTS.
10836
10837         acl: Try unit tests on more file systems.
10838         * tests/test-file-has-acl-1.sh: New file.
10839         * tests/test-file-has-acl-2.sh: New file.
10840         * tests/test-set-mode-acl-1.sh: New file.
10841         * tests/test-set-mode-acl-2.sh: New file.
10842         * tests/test-copy-acl-1.sh: New file.
10843         * tests/test-copy-acl-2.sh: New file.
10844         * modules/acl-tests (Files): Add them.
10845         (Makefile.am): Add them to TESTS.
10846
10847 2011-09-04  Bruno Haible  <bruno@clisp.org>
10848
10849         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10850         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10851         10.
10852         (OLD_ALLOW, OLD_DENY): New macros.
10853         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10854         ACE_ACCESS_ALLOWED_ACE_TYPE.
10855         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10856         ACE_ACCESS_DENIED_ACE_TYPE.
10857         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10858         (NEW_ACE_EXECUTE): Fix value.
10859         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10860         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10861         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10862         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10863         NEW_ACE_SYNCHRONIZE): New macros.
10864         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10865         instead of acl_fromtext, acl_set, facl_set.
10866         Fixes a coreutils/tests/cp/perm failure.
10867
10868 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10869
10870         openat: test for fstatat (..., 0) bug
10871         Further testing with tar suggests that fstatat (..., 0)
10872         does not work in general, on AIX 7.1; see
10873         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10874         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10875         replacement fstatat (which is what older AIX releases were using
10876         anyway).
10877         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10878         use is now changed to orig_fstatat.  This was probably the right
10879         thing to do anyway.
10880         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10881         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10882         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10883         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10884         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10885         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10886         if the bug is found.
10887
10888         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10889         This tests for another fstatat bug on AIX 7.1:
10890         fstatat (AT_FDCWD, ..., 0) does not work.  See
10891         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10892         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10893         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10894         (rpl_fstatat): Adjust so that it works around either (or both)
10895         bugs if present.
10896         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10897
10898 2011-09-03  Karl Berry  <karl@gnu.org>
10899
10900         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10901         in index entries.
10902
10903 2011-09-02  Bruno Haible  <bruno@clisp.org>
10904
10905         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10906         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10907         values of AR, ARFLAGS, RANLIB.
10908         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10909
10910 2011-09-02  Bruno Haible  <bruno@clisp.org>
10911
10912         Find 'ar' program that fits with --host argument.
10913         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10914
10915 2011-09-02  Bruno Haible  <bruno@clisp.org>
10916
10917         tests: init.sh: Support any non-GNU diff.
10918         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10919         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10920         Solaris 8.
10921
10922 2011-09-02  Bruno Haible  <bruno@clisp.org>
10923
10924         tests: init.sh: work also with any non-GNU diff that supports -u
10925         * tests/init.sh: Relax check for diff -u support.
10926         Rather than checking for GNU diff via --version, simply check
10927         for support for -u itself.  Useful at least on OpenBSD 4.9,
10928         AIX 7.1, IRIX 6.5, and Solaris 10.
10929
10930 2011-09-01  Bruno Haible  <bruno@clisp.org>
10931
10932         strtoimax, strtoumax: Document problem on HP-UX 11.
10933         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10934         * doc/posix-functions/strtoumax.texi: Likewise.
10935
10936 2011-09-01  Bruno Haible  <bruno@clisp.org>
10937
10938         strtoumax: Avoid link error on OSF/1 with DTK cc.
10939         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10940         defined as a function.
10941         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10942         strtoumax is defined, not whether it is declared.
10943
10944 2011-09-01  Bruno Haible  <bruno@clisp.org>
10945
10946         strtoimax: Avoid link error on OSF/1 with DTK cc.
10947         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10948         defined as a function.
10949         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10950         strtoimax is defined, not whether it is declared.
10951
10952 2011-09-01  Bruno Haible  <bruno@clisp.org>
10953
10954         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10955         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10956         as a function.
10957         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10958         whether it is declared.
10959
10960 2011-09-01  Bruno Haible  <bruno@clisp.org>
10961
10962         imaxabs: Avoid link error on OSF/1 with DTK cc.
10963         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10964         as a function.
10965         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10966         whether it is declared.
10967
10968 2011-09-01  Bruno Haible  <bruno@clisp.org>
10969
10970         Tests for module 'strtoumax'.
10971         * modules/strtoumax-tests: New file.
10972         * tests/test-strtoumax.c: New file.
10973
10974         Tests for module 'strtoimax'.
10975         * modules/strtoimax-tests: New file.
10976         * tests/test-strtoimax.c: New file.
10977
10978         Tests for module 'imaxdiv'.
10979         * modules/imaxdiv-tests: New file.
10980         * tests/test-imaxdiv.c: New file.
10981
10982         Tests for module 'imaxabs'.
10983         * modules/imaxabs-tests: New file.
10984         * tests/test-imaxabs.c: New file.
10985
10986 2011-09-01  Bruno Haible  <bruno@clisp.org>
10987
10988         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10989         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10990         pthread_create.
10991
10992 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10993
10994         openat: work around AIX 7.1 fstatat issue
10995         This should fix the problem that was not properly fixed
10996         in the previous change, dated 2011-08-30.
10997         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10998         __need_system_stat_h defined.
10999         (orig_fstatat) [HAVE_FSTATAT]: New function.
11000         (rpl_fstatat): Go back to the old way of doing things,
11001         except call orig_fstatat instead of fstatat.
11002         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
11003         Remove unnecessary check whether fstatat fills in st_size etc.
11004
11005 2011-09-01  Bruno Haible  <bruno@clisp.org>
11006
11007         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
11008         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
11009         just include the system's header.
11010
11011 2011-08-31  Jim Meyering  <meyering@redhat.com>
11012
11013         tests: avoid spurious assertion failure in test-float.c on ppc64
11014         * tests/test-float.c (test_long_double): Comment out an assertion,
11015         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
11016         with gcc-4.4.4.
11017
11018         maint: indent with spaces, not TABs
11019         I need to get in the habit of running gnulib's "make check".
11020         Both of these would have been caught.
11021         * m4/largefile.m4: Indent with spaces, not TABs.
11022         * lib/parse-datetime.y (iso_8601_time): Likewise.
11023         Spotted by Pádraig Brady.
11024
11025         test-parse-datetime.c: accommodate a relatively strict gcc warning
11026         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
11027         to avoid a warning from gcc's -Werror=missing-declarations.
11028         Insert a few spaces-before-funcall-parenthesis.
11029
11030 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
11031
11032         parse-datetime: accept ISO 8601 date and time rep with "T" separator
11033         The parser now accepts ISO 8601 date-time strings with "T" as the
11034         separator.  It has long parsed dates like "2004-02-29 16:21:42"
11035         with a space between the date and time strings.  Now it also parses
11036         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
11037         variants like "2004-02-29T16:21:42.333-07:00"
11038         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
11039         of day representation using the 'T' separator character.
11040         * doc/parse-datetime.texi (General date syntax): replace use of
11041         deprecated --iso-8601 option with --rfc-3339 in example of date
11042         command output formats that can be parsed.
11043         * tests/test-parse-datetime.c (tm_diff): New function, taken from
11044         lib/parse-datetime.y.
11045         (gmt_offset): New function.
11046         (main): Add additional test cases to validate ISO8601 extended
11047         date and time of day parsing.
11048
11049 2011-08-31  Bruno Haible  <bruno@clisp.org>
11050
11051         freopen: Documentation.
11052         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
11053         name.
11054         Reported by Claudio Bley <claudio.bley@gmail.com>.
11055
11056 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
11057
11058         freopen: Don't crash if the filename argument is NULL.
11059         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
11060         NULL.
11061
11062 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11063
11064         openat: work around AIX 7.1 fstatat bug
11065         Problem reported by Kevin Brott for GNU tar, in the thread containing
11066         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
11067         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
11068         FSTATAT_ST_SIZE_ETC_BROKEN.
11069         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
11070         rpl_fstatat.
11071         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
11072         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
11073         AC_CHECK_FUNCS_ONCE for fstatat.
11074         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
11075         fchmodat, mkdirat, openat and unlinkat.
11076
11077 2011-08-30  Bruno Haible  <bruno@clisp.org>
11078
11079         Avoid endless recursions if config.h includes some header files.
11080         * lib/fopen.c (__need_FILE): Define already before including config.h.
11081         * lib/freopen.c (__need_FILE): Likewise.
11082         * lib/open.c (__need_system_fcntl_h): Likewise.
11083         * lib/stat.c (__need_system_sys_stat_h): Likewise.
11084         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
11085         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11086
11087 2011-08-25  Karl Berry  <karl@gnu.org>
11088
11089         * config/srclist.txt (ylwrap): new try.
11090         * build-aux/ylwrap: new file.
11091
11092 2011-08-23  Bruno Haible  <bruno@clisp.org>
11093
11094         tmpdir: Use a good default directory on native Windows.
11095         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
11096         (P_tmpdir): Default to _P_tmpdir on native Windows.
11097         (path_search): On native Windows, try the value returned by GetTempPath
11098         before trying P_tmpdir.
11099         * modules/tmpdir (Depends-on): Add pathmax.
11100         Suggested by John Darrington <john@darrington.wattle.id.au>.
11101
11102 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
11103
11104         doc: fix typo in README-release
11105         * top/README-release: Capitalize first word of a sentence.
11106
11107 2011-08-19  Jim Meyering  <meyering@redhat.com>
11108
11109         fts: do not exhaust memory when processing million-entry directories
11110         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
11111         directory would require about 256*N bytes of memory.  Thus, it was
11112         easy to construct a directory too large to be processed by any of
11113         those tools.  With this change, fts' maximum memory utilization is
11114         now limited to around 30MB.
11115         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
11116         (fts_read): When we've processed the final entry (i.e., when
11117         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
11118         using the parent entry to read any remaining entries.  Dispatch
11119         depending on what fts_build returns:
11120         - NULL+stop, aka failure: stop
11121         - NULL otherwise: move up in the dir hierarchy
11122         - non-NULL: handle this new entry
11123         (fts_build): Declare and use new local, continue_readdir.
11124         Prepare to be called from fts_read, when the entries
11125         from a partially-read directory have just been exhausted.
11126         In that case, we'll skip the opendir and instead use the parent's
11127         fts_dirp and derive dir_fd from that.
11128         Finally, in the readdir loop, if we read max_entries entries,
11129         exit the loop ensuring *not* to call closedir.  This is required
11130         so that fts_dirp can be reused on a subsequent call.
11131         Prompted by Ben England's report of memory exhaustion in find
11132         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
11133
11134         maint: fts: move decl of `dp' down into while loop; split a long line
11135         * lib/fts.c (fts_build): No semantic change.
11136
11137         fts: add/use new struct member, fts_dirp
11138         We are about to use this to manage any directory with
11139         too many entries to read all of them into memory at once.
11140         To do that, we'll need to save the DIR* pointer in each
11141         affected FTSENT struct.
11142         * lib/fts_.h: Include <dirent.h>.
11143         (struct FTSENT) [fts_dirp]: New member.
11144         * lib/fts.c (closedir_and_clear): Define.
11145         Use it in place of closedir so that we are sure to
11146         clear the new fts_dirp member when done with it.
11147         (fts_alloc): Initialize the new member.
11148         (fts_lfree): Free, if needed.
11149
11150         maint: fts: give __opendir2 a new parameter and rename
11151         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
11152         than surreptitiously using sole caller's "dir_fd".
11153         (fts_opendir): Rename from __opendir2.
11154
11155         maint: fts.c: remove __opendir2's now-unused parameter, oflag
11156         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
11157
11158         maint: fts.c: correct off-by-one indentation
11159         * lib/fts.c (fts_build): Correct indentation, change style
11160         of a couple of block comments, and bracing style.
11161
11162         maint: fts.c: move __opendir2 #define "up" out of function body
11163         * lib/fts.c (__opendir2): Move "up".  No semantic change.
11164
11165         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
11166         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
11167         out for a long time and besides was useful only on BSD systems.
11168
11169 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11170
11171         regex: port to Stratus OpenVOS
11172         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
11173         define to empty, rather than attempting nonportable optimizations.
11174         Problem reported by Paul Green in:
11175         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
11176         and fix suggested by Eric Blake in:
11177         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
11178
11179 2011-08-17  Eric Blake  <eblake@redhat.com>
11180
11181         getcwd: fix test failures on mingw
11182         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
11183         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
11184         test if long directory cannot be created, and allow mingw errno.
11185
11186         getcwd-lgpl: fix m4 to match relaxed test for BSD
11187         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
11188         (gl_FUNC_GETCWD_SIGNATURE): New macro.
11189         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
11190         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
11191         signature problem.
11192
11193         getcwd: fix compilation on mingw64
11194         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
11195         getcwd.
11196         Reported by Marc-André Lureau.
11197
11198         pipe2: silence compiler warning
11199         * lib/pipe2.c (pipe2): Hide label if it is not used.
11200
11201 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
11202
11203         relocatable-prog: fix link error
11204         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
11205         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
11206         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
11207         into modules/relocatable-lib without noticing that
11208         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
11209         also needs to build relocatable.c.
11210
11211 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11212
11213         getaddrinfo: fix sh typo in gai_strerrorA decl checking
11214         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
11215         shell code: it contained a 'break' that was not in a loop.
11216         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
11217         via a shell-language loop; this may have been true in old Autoconf
11218         versions, but it's not true in Autoconf 2.68.  I found this bug
11219         when testing coreutils git on Solaris 8, whose shell complains
11220         about the syntax error.
11221
11222 2011-08-12  Simon Josefsson  <simon@josefsson.org>
11223
11224         * lib/base64.c: Fix comment to reference RFC 4648.
11225         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
11226         <gvtulder@gmail.com>.
11227
11228 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11229
11230         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
11231
11232         po/Makefile.in.in: fix make -q problem
11233         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
11234         rule, since there's no file named 'check-macro-version' and its
11235         use as a file breaks make -q.
11236         (all): Don't depend on check-macro-version.
11237         (CHECK_MACRO_VERSION): New macro.
11238         (stamp-po): Use it.
11239
11240         configmake: fix make -q problem
11241         * modules/configmake (configmake.h): Update configmake.h's time stamp
11242         even if the file does not change.  Otherwise, 'make -q' fails.
11243         Problem reported by Simon Josefsson in
11244         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
11245
11246 2011-08-11  Jim Meyering  <meyering@redhat.com>
11247
11248         git-version-gen: correct the advice in a comment
11249         * build-aux/git-version-gen: Correct comment.
11250         Don't recommend to list .tarball-version in .gitignore.
11251
11252 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11253
11254         base64: fix off-by-one buffer size bug
11255         Problem and (trivial) fix reported by Gijs van Tulder in
11256         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
11257         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
11258         * tests/test-base64.c (main): Catch the bug.
11259
11260 2011-08-10  Eric Blake  <eblake@redhat.com>
11261
11262         closein: correct comments
11263         * lib/closein.c (close_stdin): Improve comments.
11264
11265 2011-08-09  Bruno Haible  <bruno@clisp.org>
11266
11267         More tests for 'fseeko'.
11268         * tests/test-fseeko3.c: New file, from Eric Blake.
11269         * tests/test-fseeko3.sh: New file.
11270         * modules/fseeko-tests (Files): Add them.
11271         (TESTS): Add test-fseeko3.sh.
11272         (check_PROGRAMS): Add test-fseeko3.
11273
11274 2011-08-09  Eric Blake  <eblake@redhat.com>
11275
11276         fseeko: remove unneeded hack
11277         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
11278
11279         fseeko: fix bug on glibc
11280         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
11281         Reported by John W. Eaton.
11282
11283 2011-08-08  Bruno Haible  <bruno@clisp.org>
11284
11285         unictype/base: Fix interoperability with preinstalled libunistring.
11286         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
11287         Reported by Simon Josefsson.
11288
11289 2011-08-08  Bruno Haible  <bruno@clisp.org>
11290
11291         iswblank: Detect declaration correctly.
11292         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
11293         AC_CHECK_DECLS invocation.
11294
11295 2011-08-08  Bruno Haible  <bruno@clisp.org>
11296
11297         tcgetsid: Detect declaration correctly.
11298         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
11299         AC_CHECK_DECLS invocation.
11300         Reported by Simon Josefsson.
11301
11302 2011-08-08  Eric Blake  <eblake@redhat.com>
11303
11304         largefile: fix typo that regressed large file support
11305         * modules/largefile (configure.ac-early): Fix section name.
11306
11307 2011-08-06  Karl Berry  <karl@gnu.org>
11308
11309         * MODULES.html.sh (func_all_files): _Noreturn is no longer
11310         a separate module.
11311
11312 2011-08-05  Simon Josefsson  <simon@josefsson.org>
11313
11314         openat: Fix warnings and commens when building unlinkat.c on Hurd.
11315         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
11316         get prototype for free.
11317
11318 2011-08-04  Bruno Haible  <bruno@clisp.org>
11319
11320         Tests for module 'pathmax'.
11321         * modules/pathmax-tests: New file.
11322         * tests/test-pathmax.c: New file.
11323
11324         canonicalize-lgpl: Support larger filenames on the Hurd.
11325         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
11326         Reported by Paul Eggert.
11327
11328         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
11329         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
11330         * lib/chdir-long.h: Include pathmax.h.
11331         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
11332         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
11333         (PATH_MAX): Remove code that is done by pathmax.h.
11334         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
11335         * lib/tmpfile.c: Add a comment.
11336         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
11337         * modules/chdir-long (Depends-on): Add pathmax.
11338         * modules/getcwd (Depends-on): Add pathmax.
11339         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
11340         is not defined.
11341         * doc/posix-headers/limits.texi: Mention the pathmax module.
11342         * NEWS: Mention the change.
11343
11344 2011-08-02  Bruno Haible  <bruno@clisp.org>
11345
11346         pthread_sigmask: Actually use results of gl_THREADLIB.
11347         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
11348         gl_THREADLIB, not gl_[]THREADLIB.
11349         Reported by Eric Blake.
11350
11351 2011-08-02  Jim Meyering  <meyering@redhat.com>
11352
11353         maint.mk: relax the default _gl_TS_function_match regexp
11354         * top/maint.mk (_gl_TS_function_match): Don't require at least one
11355         space between function name and "(" in an "extern" declaration.
11356         That would fail to match a decl with no space there: extern void foo();
11357
11358 2011-07-31  Iain Nicol  <iain@thenicols.net>
11359
11360         git-version-gen: document that EXTRA_DIST must include .version
11361         * build-aux/git-version-gen: In the how-to-use comment, document
11362         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
11363         will fail when run from an unpacked distribution tarball.
11364
11365 2011-08-01  Bruno Haible  <bruno@clisp.org>
11366
11367         wctype-h: Fix last change.
11368         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
11369         REPLACE_TOWLOWER to 0.
11370         Reported by Sam Steingold <sds@gnu.org>.
11371
11372 2011-07-31  Bruno Haible  <bruno@clisp.org>
11373
11374         frexpl: Update autoconf test.
11375         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
11376         according to changes of 2011-06-20.
11377
11378 2011-07-31  Bruno Haible  <bruno@clisp.org>
11379
11380         sys_utsname: Add support for Minix.
11381         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
11382         <sys/utsname.h>.
11383         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11384         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
11385
11386 2011-07-31  Bruno Haible  <bruno@clisp.org>
11387
11388         strings: Add support for Minix.
11389         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
11390         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
11391         * doc/posix-headers/strings.texi: Document the Minix problem.
11392
11393 2011-07-31  Bruno Haible  <bruno@clisp.org>
11394
11395         wctype-h: Add support for Minix.
11396         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
11397         REPLACE_TOWLOWER.
11398         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
11399         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
11400         REPLACE_ISWCNTRL.
11401
11402 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
11403
11404         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
11405         This is a performance improvement for 64-bit hosts: it causes the
11406         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
11407
11408 2011-07-31  Bruno Haible  <bruno@clisp.org>
11409
11410         stdioext: Add support for Minix.
11411         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
11412         * lib/fpurge.c (fpurge): Likewise.
11413         * lib/freadahead.c (freadahead): Likewise.
11414         * lib/freadable.c (freadable): Likewise.
11415         * lib/freading.c (freading): Likewise.
11416         * lib/freadptr.c (freadptr): Likewise.
11417         * lib/freadseek.c (freadptrinc): Likewise.
11418         * lib/fseeko.c (rpl_fseeko): Likewise.
11419         * lib/fseterr.c (fseterr): Likewise.
11420         * lib/fwritable.c (fwritable): Likewise.
11421         * lib/fwriting.c (fwriting): Likewise.
11422         * lib/fflush.c (clear_ungetc_buffer): Update comment.
11423         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
11424
11425 2011-07-31  Bruno Haible  <bruno@clisp.org>
11426
11427         errno: Port to Minix.
11428         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
11429         ECONNABORTED are defined.
11430         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
11431         GNULIB_defined_ECONNABORTED): New macros.
11432         * lib/strerror-override.h (strerror_override): Test also
11433         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
11434         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
11435         ECONNABORTED.
11436         * doc/posix-headers/errno.texi: Mention the Minix problem.
11437
11438 2011-07-31  Bruno Haible  <bruno@clisp.org>
11439
11440         Work around declaration collisions on Minix.
11441         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
11442         defined, set REPLACE_MBSINIT.
11443         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
11444         defined, set REPLACE_MBRTOWC.
11445         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
11446         set REPLACE_MBRLEN.
11447         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
11448         defined, set REPLACE_MBSRTOWCS.
11449         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
11450         defined, set REPLACE_WCRTOMB.
11451         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
11452         defined, set REPLACE_WCSRTOMBS.
11453
11454 2011-07-31  Bruno Haible  <bruno@clisp.org>
11455
11456         Add support for Minix with ACK compiler.
11457         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
11458         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
11459         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
11460
11461 2011-07-31  Bruno Haible  <bruno@clisp.org>
11462
11463         Documentation about Minix.
11464         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
11465         * doc/glibc-headers/*.texi: Likewise.
11466         * doc/posix-functions/*.texi: Likewise.
11467         * doc/glibc-functions/*.texi: Likewise.
11468
11469 2011-07-31  Bruno Haible  <bruno@clisp.org>
11470
11471         snippet/warn-on-use: Fix indentation.
11472         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
11473
11474 2011-07-25  Jim Meyering  <meyering@redhat.com>
11475
11476         tests: test-update-copyright.sh: remove unnecessary "rm" commands
11477         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
11478         commands.
11479
11480 2011-07-27  Jim Meyering  <meyering@redhat.com>
11481
11482         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
11483         * top/maint.mk (gl_extract_significant_defines_): Now that
11484         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
11485         gnulib/lib/signal.in.h, and now that we recommend to
11486         define-if-undefined those two symbols in application code,
11487         we must filter them out of the "significant" list.
11488         This avoids a "make syntax-check" failure in coreutils.
11489
11490 2011-07-26  Eric Blake  <eblake@redhat.com>
11491
11492         warnings: add comments about previous patch
11493         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
11494         * m4/include_next.m4: Likewise.
11495         * m4/warn-on-use.m4: Likewise.
11496         * m4/warnings.m4: Likewise, and simplify use.
11497         Suggested by Stefano Lattarini.
11498
11499         include-next, warnings: support older autoconf
11500         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
11501         AS_VAR_PUSHDEF in a way that works with older autoconf.
11502         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
11503         Reported by Daniel P. Berrange.
11504
11505 2011-07-25  Bruno Haible  <bruno@clisp.org>
11506
11507         fseek, ftell: Fix doc.
11508         * doc/posix-functions/fseek.texi: Reword statement about
11509         AC_SYS_LARGEFILE.
11510         * doc/posix-functions/ftell.texi: Likewise.
11511
11512 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11513             Bruno Haible  <bruno@clisp.org>
11514
11515         Add dependencies to the 'largefile' module.
11516         * modules/fopen (Depends-on): Add 'largefile'.
11517         * modules/freopen (Depends-on): Likewise.
11518         * modules/fseeko (Depends-on): Likewise.
11519         * modules/ftello (Depends-on): Likewise.
11520         * modules/glob (Depends-on): Likewise.
11521         * modules/lseek (Depends-on): Likewise.
11522         * modules/lstat (Depends-on): Likewise.
11523         * modules/mkostemp (Depends-on): Likewise.
11524         * modules/mkostemps (Depends-on): Likewise.
11525         * modules/mkstemp (Depends-on): Likewise.
11526         * modules/mkstemps (Depends-on): Likewise.
11527         * modules/open (Depends-on): Likewise.
11528         * modules/openat (Depends-on): Likewise.
11529         * modules/pread (Depends-on): Likewise.
11530         * modules/pwrite (Depends-on): Likewise.
11531         * modules/scandir (Depends-on): Likewise.
11532         * modules/stat (Depends-on): Likewise.
11533         * modules/tmpfile (Depends-on): Likewise.
11534         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
11535         since the containing module now depends on the largefile module.
11536         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
11537         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
11538         off_t is fixed by gnulib.
11539         * doc/posix-functions/freopen.texi: Likewise.
11540         * doc/posix-functions/fseeko.texi: Likewise.
11541         * doc/posix-functions/fstatat.texi: Likewise.
11542         * doc/posix-functions/ftello.texi: Likewise.
11543         * doc/posix-functions/glob.texi: Likewise.
11544         * doc/posix-functions/lseek.texi: Likewise.
11545         * doc/posix-functions/lstat.texi: Likewise.
11546         * doc/posix-functions/mkstemp.texi: Likewise.
11547         * doc/posix-functions/open.texi: Likewise.
11548         * doc/posix-functions/openat.texi: Likewise.
11549         * doc/posix-functions/pread.texi: Likewise.
11550         * doc/posix-functions/pwrite.texi: Likewise.
11551         * doc/posix-functions/scandir.texi: Likewise.
11552         * doc/posix-functions/stat.texi: Likewise.
11553         * doc/posix-functions/tmpfile.texi: Likewise.
11554         * doc/glibc-functions/mkostemp.texi: Likewise.
11555         * doc/glibc-functions/mkostemps.texi: Likewise.
11556         * doc/glibc-functions/mkstemps.texi: Likewise.
11557
11558 2011-07-25  Bruno Haible  <bruno@clisp.org>
11559
11560         fcntl: Move AC_LIBOBJ invocation to module description.
11561         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11562         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11563
11564         fcntl: Remove call-in from fchdir.m4.
11565         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11566         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11567
11568         dup3: Remove potential call-in from fchdir.m4.
11569         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11570         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11571
11572         dup2: Move AC_LIBOBJ invocation to module description.
11573         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11574         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11575         Don't invoke AC_LIBOBJ.
11576         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11577
11578         dup2: Remove call-in from fchdir.m4.
11579         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11580         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11581
11582         fclose: Move AC_LIBOBJ invocation to module description.
11583         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11584         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11585         to 1.
11586         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11587
11588         fclose: Remove call-in from close.m4.
11589         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11590         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11591
11592         close: Move AC_LIBOBJ invocation to module description.
11593         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11594         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11595         1.
11596         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11597
11598         close: Remove call-in from fchdir.m4.
11599         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11600         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11601
11602         open: Move AC_LIBOBJ invocation to module description.
11603         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11604         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11605         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11606
11607         open: Remove call-in from fchdir.m4.
11608         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11609         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11610
11611         fchdir: Start to remove gl_REPLACE_* idiom.
11612         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11613         (gl_FUNC_FCHDIR): Invoke it.
11614
11615 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11616
11617         * lib/ftell.c (ftell): Comment out cast.
11618
11619         close: use gl_REPLACE_FCLOSE only if defined
11620         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11621         is defined.  The close module doesn't depend on the fclose module
11622         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11623         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11624         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11625
11626 2011-07-24  Jim Meyering  <meyering@redhat.com>
11627
11628         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11629         * tests/test-select.h (test_function): Declare as "static".
11630
11631 2011-07-24  Bruno Haible  <bruno@clisp.org>
11632
11633         doc: Mention the effects of AC_SYS_LARGEFILE.
11634         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11635         on this function.
11636         * doc/posix-functions/aio_error.texi: Likewise.
11637         * doc/posix-functions/aio_fsync.texi: Likewise.
11638         * doc/posix-functions/aio_read.texi: Likewise.
11639         * doc/posix-functions/aio_return.texi: Likewise.
11640         * doc/posix-functions/aio_suspend.texi: Likewise.
11641         * doc/posix-functions/aio_write.texi: Likewise.
11642         * doc/posix-functions/fgetpos.texi: Likewise.
11643         * doc/posix-functions/fopen.texi: Likewise.
11644         * doc/posix-functions/freopen.texi: Likewise.
11645         * doc/posix-functions/fsetpos.texi: Likewise.
11646         * doc/posix-functions/fstatvfs.texi: Likewise.
11647         * doc/posix-functions/ftruncate.texi: Likewise.
11648         * doc/posix-functions/ftw.texi: Likewise.
11649         * doc/posix-functions/getrlimit.texi: Likewise.
11650         * doc/posix-functions/glob.texi: Likewise.
11651         * doc/posix-functions/lio_listio.texi: Likewise.
11652         * doc/posix-functions/lockf.texi: Likewise.
11653         * doc/posix-functions/mkstemp.texi: Likewise.
11654         * doc/posix-functions/mmap.texi: Likewise.
11655         * doc/posix-functions/nftw.texi: Likewise.
11656         * doc/posix-functions/openat.texi: Likewise.
11657         * doc/posix-functions/opendir.texi: Likewise.
11658         * doc/posix-functions/posix_fadvise.texi: Likewise.
11659         * doc/posix-functions/posix_fallocate.texi: Likewise.
11660         * doc/posix-functions/pread.texi: Likewise.
11661         * doc/posix-functions/pwrite.texi: Likewise.
11662         * doc/posix-functions/readdir.texi: Likewise.
11663         * doc/posix-functions/readdir_r.texi: Likewise.
11664         * doc/posix-functions/rewinddir.texi: Likewise.
11665         * doc/posix-functions/scandir.texi: Likewise.
11666         * doc/posix-functions/seekdir.texi: Likewise.
11667         * doc/posix-functions/setrlimit.texi: Likewise.
11668         * doc/posix-functions/statvfs.texi: Likewise.
11669         * doc/posix-functions/telldir.texi: Likewise.
11670         * doc/posix-functions/tmpfile.texi: Likewise.
11671         * doc/posix-functions/truncate.texi: Likewise.
11672         * doc/glibc-functions/fallocate.texi: Likewise.
11673         * doc/glibc-functions/fstatfs.texi: Likewise.
11674         * doc/glibc-functions/fts_children.texi: Likewise.
11675         * doc/glibc-functions/fts_read.texi: Likewise.
11676         * doc/glibc-functions/getdirentries.texi: Likewise.
11677         * doc/glibc-functions/mkostemp.texi: Likewise.
11678         * doc/glibc-functions/mkostemps.texi: Likewise.
11679         * doc/glibc-functions/mkstemps.texi: Likewise.
11680         * doc/glibc-functions/preadv.texi: Likewise.
11681         * doc/glibc-functions/pwritev.texi: Likewise.
11682         * doc/glibc-functions/sendfile.texi: Likewise.
11683         * doc/glibc-functions/statfs.texi: Likewise.
11684
11685 2011-07-24  Bruno Haible  <bruno@clisp.org>
11686
11687         doc: Fix typo.
11688         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11689
11690 2011-07-24  Bruno Haible  <bruno@clisp.org>
11691
11692         doc: Mention fsusage.
11693         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11694
11695 2011-07-24  Bruno Haible  <bruno@clisp.org>
11696
11697         doc: Mention new glibc headers and functions.
11698         * doc/glibc-headers/gshadow.texi: New file.
11699         * doc/glibc-functions/endsgent.texi: New file.
11700         * doc/glibc-functions/fgetsgent.texi: New file.
11701         * doc/glibc-functions/fgetsgent_r.texi: New file.
11702         * doc/glibc-functions/getsgent.texi: New file.
11703         * doc/glibc-functions/getsgent_r.texi: New file.
11704         * doc/glibc-functions/getsgnam.texi: New file.
11705         * doc/glibc-functions/getsgnam_r.texi: New file.
11706         * doc/glibc-functions/putsgent.texi: New file.
11707         * doc/glibc-functions/setsgent.texi: New file.
11708         * doc/glibc-functions/sgetsgent.texi: New file.
11709         * doc/glibc-functions/sgetsgent_r.texi: New file.
11710         * doc/glibc-functions/malloc_info.texi: New file.
11711         * doc/glibc-functions/preadv.texi: New file.
11712         * doc/glibc-functions/pwritev.texi: New file.
11713         * doc/glibc-functions/register_printf_modifier.texi: New file.
11714         * doc/glibc-functions/register_printf_specifier.texi: New file.
11715         * doc/glibc-functions/register_printf_type.texi: New file.
11716         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11717         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11718         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11719         * doc/glibc-functions/pthread_getname_np.texi: New file.
11720         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11721         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11722         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11723         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11724         * doc/glibc-functions/pthread_setname_np.texi: New file.
11725         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11726         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11727         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11728         * doc/glibc-functions/qsort_r.texi: New file.
11729         * doc/glibc-functions/quick_exit.texi: New file.
11730         * doc/glibc-functions/syncfs.texi: New file.
11731         * doc/gnulib.texi: Include them.
11732         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11733         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11734         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11735         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11736         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11737         * doc/glibc-functions/execvpe.texi: Likewise.
11738
11739 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11740
11741         ftell: don't include <unistd.h>
11742         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11743         guaranteed to define off_t, and the ftell module depends on the
11744         stdio module.
11745
11746         ftell: do not assume wraparound signed arithmetic
11747         * lib/ftell.c: Include <limits.h>.
11748         (ftell): Don't assume wraparound signed arithmetic.
11749
11750 2011-07-24  Bruno Haible  <bruno@clisp.org>
11751
11752         close: No longer depend on module 'fclose'.
11753         * modules/close (Depends-on): Remove fclose.
11754         * NEWS: Mention the change.
11755         Suggested by Sam Steingold <sds@gnu.org>.
11756
11757 2011-07-24  Bruno Haible  <bruno@clisp.org>
11758
11759         fsusage: Enable large volume support on AIX >= 5.2.
11760         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11761         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11762         instead of STAT_STATVFS.
11763         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11764
11765         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11766         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11767         f_blocks field only on MacOS X.
11768
11769         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11770         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11771         * modules/fsusage (Depends-on): Add largefile.
11772
11773 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11774
11775         * README: Modernize discussion of signed integers.
11776         Assuming overflow wraparound is no longer safe.
11777         Mention ones' complement and signed magnitude.
11778
11779 2011-07-22  Bruno Haible  <bruno@clisp.org>
11780
11781         select tests, pselect tests: Refactor.
11782         * tests/test-select.h: New file, extracted from tests/test-select.c.
11783         (select_fn): New type.
11784         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11785         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11786         test_pipe): Add my_select argument.
11787         (test_function): Renamed from main. Add my_select argument.
11788         * tests/test-select.c: Move most code to tests/test-select.h. Include
11789         test-select.h.
11790         * modules/select-tests (Files): Add tests/test-select.h.
11791         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11792         (my_select, main): New functions.
11793         * modules/pselect-tests (Files): Add tests/test-select.h,
11794         tests/macros.h, tests/signature.h.
11795         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11796         (configure.ac): Check for <sys/wait.h>.
11797
11798 2011-07-22  Bruno Haible  <bruno@clisp.org>
11799
11800         sys_select tests: Check the signature of FD_*.
11801         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11802         signature tests from here...
11803         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11804         here.
11805         * modules/sys_select-tests (Files): Add tests/signature.h.
11806
11807 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11808
11809         largefile: new module, replacing large-inode
11810         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11811         * MODULES.html.sh: Add largefile, remove large-inode.
11812         * modules/largefile, m4/largefile.m4: New files.
11813         * modules/large-inode, m4/large-inode.m4: Remove.
11814
11815         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11816         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11817         implementations that use only 32 bits to count blocks.
11818         On typical hosts with 1024-byte blocks, this fails with file
11819         systems as small as 4 TiB.  Problem reported by Herb Wartens
11820         <http://debbugs.gnu.org/9140> and this should also fix a similar
11821         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11822
11823         large-inode: New module
11824         * MODULES.html.sh: Add it.
11825         * modules/large-inode, m4/large-inode.m4: New files.
11826
11827         extensions: Enable extensions on MacOS X 10.5 and later.
11828         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11829
11830 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11831
11832         file-has-acl: use acl_extended_file_nofollow if available
11833         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11834         (acl_extended_file): New macro.
11835         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11836         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11837
11838 2011-07-21  Bruno Haible  <bruno@clisp.org>
11839
11840         Declare system functions in a way that works with C++.
11841         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11842         declare fdopendir as extern "C".
11843         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11844         declare frexpl as extern "C".
11845         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11846         declare gai_strerror as extern "C".
11847         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11848         programs, declare gai_strerror as extern "C".
11849         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11850         declare getlogin_r as extern "C".
11851         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11852         as extern "C".
11853         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11854         declare ldexpl as extern "C".
11855         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11856         as extern "C".
11857         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11858         program, declare getmntinfo as extern "C".
11859         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11860         stpncpy as extern "C".
11861         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11862         program, declare __xpg_strerror_r as extern "C".
11863         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11864         strndup as extern "C".
11865         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11866         declare memset and bzero as extern "C".
11867         Reported by Sam Steingold <sds@gnu.org>.
11868
11869 2011-07-12  Jim Meyering  <meyering@redhat.com>
11870
11871         maint.mk: prohibit inclusion of "verify.h" without use
11872         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11873
11874 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11875
11876         timer-time: A new module to check for timer_settime()
11877         * m4/timer_time.m4: Check for the posix function.
11878         * modules/timer-time: Add the new module.
11879         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11880         Mention it.
11881
11882 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11883             Bruno Haible  <bruno@clisp.org>
11884
11885         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11886         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11887         not defined, assume POSIX threads and look for pthread_sigmask in
11888         $LIBS, without changing $CPPFLAGS.
11889
11890 2011-07-19  Bruno Haible  <bruno@clisp.org>
11891
11892         strstr: Update cross-compilation guess.
11893         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11894         CPUs, guess no, in view of glibc
11895         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11896         Suggested by Eric Blake. Reported by Reuben Thomas.
11897
11898 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11899
11900         getopt-gnu: suppress core dumps from detection code
11901         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11902         to suppress core dumps that may well occur on glibc systems.
11903         * modules/getopt-gnu: Depend on nocrash.
11904
11905 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11906
11907         pthread_sigmask: ensure usleep is declared
11908         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11909         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11910
11911 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11912
11913         doc: Document NonStop portability issues.
11914         * doc/posix-functions/sigaction.texi (sigaction):
11915         * doc/posix-headers/signal.texi (signal.h):
11916         Document NonStop.  See Joachim Schmitz in
11917         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11918
11919 2011-07-15  Bruno Haible  <bruno@clisp.org>
11920
11921         ffsl, ffsll: Avoid unportable behaviour.
11922         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11923
11924 2011-07-15  Bruno Haible  <bruno@clisp.org>
11925
11926         ffs: More tests.
11927         * tests/test-ffs.c (NBITS): New macro.
11928         (main): Add more tests.
11929         * tests/test-ffsl.c (NBITS): New macro.
11930         (main): Add more tests.
11931         * tests/test-ffsll.c (NBITS): New macro.
11932         (main): Add more tests.
11933
11934 2011-07-15  Eric Blake  <eblake@redhat.com>
11935
11936         ffsl, ffsll: new modules
11937         * modules/ffsl: New file.
11938         * modules/ffsll: Likewise.
11939         * m4/ffsl.m4: Likewise.
11940         * m4/ffsll.m4: Likewise.
11941         * lib/ffsl.c: Likewise.
11942         * lib/ffsl.h: Likewise.
11943         * lib/ffsll.c: Likewise.
11944         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11945         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11946         * modules/string (Makefile.am): Substitute witnesses.
11947         * lib/strings.in.h (ffsl, ffsll): Declare.
11948         * modules/ffsl-tests: New test file.
11949         * modules/ffsll-tests: Likewise.
11950         * tests/test-ffsl.c: Likewise.
11951         * tests/test-ffsll.c: Likewise.
11952         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11953         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11954         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11955
11956         ffs: fix m4 prerequisite
11957         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11958
11959         ffs: avoid undefined behavior
11960         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11961         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11962         Reported by Bruno Haible.
11963
11964 2011-07-12  Bruno Haible  <bruno@clisp.org>
11965
11966         pthread_sigmask: Rely on module 'threadlib'.
11967         * modules/pthread_sigmask (Depends-on): Add threadlib.
11968         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11969         is defined.
11970
11971 2011-07-12  Bruno Haible  <bruno@clisp.org>
11972
11973         regex: Depend on module 'strcase'.
11974         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11975
11976 2011-07-12  Jim Meyering  <meyering@redhat.com>
11977
11978         warn-on-use: fix typo in file name
11979         * modules/snippet/warn-on-use (Files): Correct file name:
11980         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11981
11982 2011-07-12  Bruno Haible  <bruno@clisp.org>
11983
11984         strings: Document module.
11985         * doc/posix-headers/strings.texi: Mention module 'strings'.
11986
11987 2011-07-12  Bruno Haible  <bruno@clisp.org>
11988
11989         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11990         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11991         (Files, Makefile.am): Update.
11992         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11993         * modules/stdlib (Depends-on): Update.
11994
11995 2011-07-12  Bruno Haible  <bruno@clisp.org>
11996
11997         * NEWS: Mention the changes.
11998
11999         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
12000         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
12001         (Files, Makefile.am): Update.
12002         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
12003         * modules/arpa_inet (Depends-on): Update.
12004         * modules/ctype (Depends-on): Update.
12005         * modules/dirent (Depends-on): Update.
12006         * modules/fcntl-h (Depends-on): Update.
12007         * modules/glob (Depends-on): Update.
12008         * modules/iconv-h (Depends-on): Update.
12009         * modules/inttypes-incomplete (Depends-on): Update.
12010         * modules/langinfo (Depends-on): Update.
12011         * modules/locale (Depends-on): Update.
12012         * modules/math (Depends-on): Update.
12013         * modules/netdb (Depends-on): Update.
12014         * modules/poll-h (Depends-on): Update.
12015         * modules/pty (Depends-on): Update.
12016         * modules/search (Depends-on): Update.
12017         * modules/signal (Depends-on): Update.
12018         * modules/spawn (Depends-on): Update.
12019         * modules/stdio (Depends-on): Update.
12020         * modules/stdlib (Depends-on): Update.
12021         * modules/string (Depends-on): Update.
12022         * modules/strings (Depends-on): Update.
12023         * modules/sys_file (Depends-on): Update.
12024         * modules/sys_ioctl (Depends-on): Update.
12025         * modules/sys_select (Depends-on): Update.
12026         * modules/sys_socket (Depends-on): Update.
12027         * modules/sys_stat (Depends-on): Update.
12028         * modules/sys_time (Depends-on): Update.
12029         * modules/sys_times (Depends-on): Update.
12030         * modules/sys_utsname (Depends-on): Update.
12031         * modules/sys_wait (Depends-on): Update.
12032         * modules/termios (Depends-on): Update.
12033         * modules/time (Depends-on): Update.
12034         * modules/unistd (Depends-on): Update.
12035         * modules/wchar (Depends-on): Update.
12036         * modules/wctype-h (Depends-on): Update.
12037         * MODULES.html.sh (Support for building libraries and executables):
12038         Update.
12039
12040         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
12041         * modules/snippet/unused-parameter: Renamed from
12042         modules/unused-parameter.
12043         (Files, Makefile.am): Update.
12044         * build-aux/snippet/unused-parameter.h: Renamed from
12045         build-aux/unused-parameter.h.
12046         * modules/selinux-h (Depends-on): Update.
12047         * modules/unistr/base (Depends-on): Update.
12048         * MODULES.html.sh (Core language properties): Update.
12049
12050         Rename module 'link-warning' to 'snippet/link-warning'.
12051         * modules/snippet/link-warning: Renamed from modules/link-warning.
12052         (Files, Makefile.am): Update.
12053         * build-aux/snippet/link-warning.h: Renamed from
12054         build-aux/link-warning.h.
12055         * MODULES.html.sh (Support for building libraries and executables):
12056         Update.
12057
12058         Rename module 'c++defs' to 'snippet/c++defs'.
12059         * modules/snippet/c++defs: Renamed from modules/c++defs.
12060         (Files, Makefile.am): Update.
12061         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
12062         * modules/arpa_inet (Depends-on): Update.
12063         * modules/ctype (Depends-on): Update.
12064         * modules/dirent (Depends-on): Update.
12065         * modules/fcntl-h (Depends-on): Update.
12066         * modules/glob (Depends-on): Update.
12067         * modules/iconv-h (Depends-on): Update.
12068         * modules/langinfo (Depends-on): Update.
12069         * modules/locale (Depends-on): Update.
12070         * modules/math (Depends-on): Update.
12071         * modules/netdb (Depends-on): Update.
12072         * modules/poll-h (Depends-on): Update.
12073         * modules/pty (Depends-on): Update.
12074         * modules/search (Depends-on): Update.
12075         * modules/signal (Depends-on): Update.
12076         * modules/spawn (Depends-on): Update.
12077         * modules/stdio (Depends-on): Update.
12078         * modules/stdlib (Depends-on): Update.
12079         * modules/string (Depends-on): Update.
12080         * modules/strings (Depends-on): Update.
12081         * modules/sys_ioctl (Depends-on): Update.
12082         * modules/sys_select (Depends-on): Update.
12083         * modules/sys_socket (Depends-on): Update.
12084         * modules/sys_stat (Depends-on): Update.
12085         * modules/sys_time (Depends-on): Update.
12086         * modules/sys_wait (Depends-on): Update.
12087         * modules/termios (Depends-on): Update.
12088         * modules/time (Depends-on): Update.
12089         * modules/unistd (Depends-on): Update.
12090         * modules/wchar (Depends-on): Update.
12091         * modules/wctype-h (Depends-on): Update.
12092
12093         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
12094         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
12095         (Files, Makefile.am): Update.
12096         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
12097         * modules/argv-iter (Depends-on): Update.
12098         * modules/arpa_inet (Depends-on): Update.
12099         * modules/dirent (Depends-on): Update.
12100         * modules/fcntl-h (Depends-on): Update.
12101         * modules/fnmatch (Depends-on): Update.
12102         * modules/getopt-posix (Depends-on): Update.
12103         * modules/glob (Depends-on): Update.
12104         * modules/iconv-h (Depends-on): Update.
12105         * modules/inttypes-incomplete (Depends-on): Update.
12106         * modules/locale (Depends-on): Update.
12107         * modules/math (Depends-on): Update.
12108         * modules/netdb (Depends-on): Update.
12109         * modules/search (Depends-on): Update.
12110         * modules/signal (Depends-on): Update.
12111         * modules/spawn (Depends-on): Update.
12112         * modules/stdio (Depends-on): Update.
12113         * modules/stdlib (Depends-on): Update.
12114         * modules/string (Depends-on): Update.
12115         * modules/strings (Depends-on): Update.
12116         * modules/sys_socket (Depends-on): Update.
12117         * modules/sys_stat (Depends-on): Update.
12118         * modules/sys_time (Depends-on): Update.
12119         * modules/sys_times (Depends-on): Update.
12120         * modules/sys_utsname (Depends-on): Update.
12121         * modules/time (Depends-on): Update.
12122         * modules/unistd (Depends-on): Update.
12123         * modules/wchar (Depends-on): Update.
12124         * MODULES.html.sh (Support for building libraries and executables):
12125         Update.
12126
12127 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12128
12129         Improvements on _Noreturn and related modules.
12130
12131         modules/_Exit-tests: test _Noreturn too
12132         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
12133         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
12134         (main): Use them.
12135
12136         stdnoreturn, stdnoreturn-tests: remove modules
12137         They're not needed here and a bit premature for use elsewhere.  See
12138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
12139         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
12140         * tests/test-stdnoreturn.c: Remove files.
12141         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
12142         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
12143         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
12144         and using noreturn.
12145         * modules/openat, modules/sigpipe-die, modules/xalloc:
12146         * modules/xmemdup0, modules/xstrtol:
12147         Remove dependency on stdnoreturn.
12148
12149         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
12150         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
12151         Reparenthesize to avoid GCC warning.
12152         Support Microsoft's syntax.
12153         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
12154
12155         _Noreturn-tests: remove module
12156         * modules/_Noreturn-tests: Remove.
12157         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
12158         * tests/test-_Noreturn.c: Remove.
12159         * tests/test-stdnoreturn.c: Merge from the old
12160         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
12161
12162 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12163
12164         _Noreturn, stdnoreturn, and related modules.
12165
12166         * top/maint.mk: Adjust to new noreturn support.
12167         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
12168         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
12169
12170         xalloc: use stdnoreturn.h
12171         * lib/xalloc.h: Include <stdnoreturn.h>.
12172         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12173         * modules/xalloc (Depends-on): Add stdnoreturn.
12174
12175         xstrtol: use stdnoreturn.h
12176         * lib/xstrtol.h: Include <stdnoreturn.h>.
12177         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12178         * modules/xstrtol (Depends-on): Add stdnoreturn.
12179
12180         xmemdup0: use stdnoreturn.h
12181         * lib/xmemdup0.h: Include <stdnoreturn.h>.
12182         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12183         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
12184
12185         sigpipe-die: use stdnoreturn.h
12186         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
12187         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12188         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
12189
12190         openat: use stdnoreturn.h
12191         * lib/openat.h: Include <stdnoreturn.h>.
12192         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12193         * modules/openat (Depends-on): Add stdnoreturn.
12194
12195         * lib/openat-die.c (openat_save_fail): Modernize comment.
12196
12197         * lib/xalloc-die.c (xalloc_die): Modernize comment.
12198
12199         * lib/glthread/thread.h: Modernize comment.
12200
12201         obstack: use _Noreturn
12202         * lib/obstack.c (__attribute__): Remove macro.
12203         (print_and_abort): Use _Noreturn.
12204
12205         c-stack: use _Noreturn
12206         * lib/c-stack.c (die, overflow_handler, segv_handler):
12207         Use _Noreturn rather than __attribute__((noreturn)).
12208
12209         argmatch-tests, exclude_tests: use _Noreturn
12210         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
12211         Remove.
12212         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
12213
12214         stdlib: use _Noreturn
12215         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
12216         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
12217         * modules/stdlib (Depends-on): Add _Noreturn.
12218         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
12219
12220         stdnoreturn-tests: new module
12221         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
12222
12223         stdnoreturn: new module
12224         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
12225         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
12226
12227         _Noreturn-tests: new module
12228         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
12229
12230         _Noreturn: new module
12231         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
12232         New section, mentioning it.
12233         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
12234
12235         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
12236
12237 2011-07-11  Eric Blake  <eblake@redhat.com>
12238
12239         ffs: new module
12240         * modules/ffs: New file.
12241         * m4/ffs.m4: Likewise.
12242         * lib/ffs.c: Likewise.
12243         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
12244         * modules/strings (Makefile.am): Substitute witness.
12245         (Depends-on): Add c++defs.
12246         * lib/strings.in.h (ffs): Declare.
12247         * modules/ffs-tests: New test file.
12248         * tests/test-ffs.c: Test new module.
12249         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12250         * doc/posix-functions/ffs.texi (ffs): Likewise.
12251
12252         regex: avoid compiler warning
12253         * lib/regex.c (includes): Include <strings.h>, for use of
12254         strcasecmp in regcomp.c.
12255         Reported by Joachim Schmitz.
12256
12257 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12258
12259         stdint: respect system's intmax_t if INTMAX_MAX
12260         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
12261         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
12262         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
12263         long but int64_t is long long, and where we will clash with the
12264         system intmax_t if we override it.  See
12265         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
12266         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
12267         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
12268         similarly for UINTMAX_C.
12269
12270 2011-07-08  Bruno Haible  <bruno@clisp.org>
12271
12272         pthread_sigmask tests: Avoid a compiler warning.
12273         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
12274         non-zero.
12275
12276         sigprocmask tests: A better way to avoid a compiler warning.
12277         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
12278         (main): Complain if system() returns non-zero.
12279         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
12280
12281 2011-07-08  Bruno Haible  <bruno@clisp.org>
12282
12283         pthread_sigmask: Work around IRIX bug.
12284         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
12285         bug.
12286         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
12287         there may be unblocked pending signals.
12288         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
12289
12290 2011-07-08  Bruno Haible  <bruno@clisp.org>
12291
12292         pthread_sigmask: Work around Cygwin bug.
12293         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
12294         bug.
12295         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
12296         the system's pthread_sigmask function.
12297         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
12298
12299 2011-07-08  Bruno Haible  <bruno@clisp.org>
12300
12301         pthread_sigmask: Work around bug in single-threaded implementation.
12302         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
12303         FreeBSD, HP-UX, Solaris bug.
12304         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
12305         * lib/pthread_sigmask.c: Include <stddef.h>.
12306         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
12307         the system's pthread_sigmask function.
12308         * modules/pthread_sigmask (configure.ac): Invoke
12309         gl_PREREQ_PTHREAD_SIGMASK.
12310         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
12311         HP-UX, Solaris.
12312
12313 2011-07-08  Eric Blake  <eblake@redhat.com>
12314
12315         test-sigprocmask: avoid compiler warning
12316         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
12317         * tests/test-sigprocmask.c (main): Use it to silence warning.
12318         Reported by Jim Meyering.
12319
12320         test-snprintf: avoid compiler warning
12321         * tests/test-snprintf.c (main): Avoid shadowed declaration.
12322         * tests/test-vsnprintf.c (main): Likewise.
12323         Reported by Jim Meyering.
12324
12325 2011-07-08  Bruno Haible  <bruno@clisp.org>
12326
12327         Tests for module 'pthread_sigmask'.
12328         * modules/pthread_sigmask-tests: New file.
12329         * tests/test-pthread_sigmask1.c: New file, based on
12330         tests/test-sigprocmask.c.
12331         * tests/test-pthread_sigmask2.c: New file.
12332
12333 2011-07-08  Jim Meyering  <meyering@redhat.com>
12334
12335         test-getopt.h: avoid warning about an unused variable
12336         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
12337
12338 2011-07-07  Jim Meyering  <meyering@redhat.com>
12339
12340         maint: reduce list of files exempt from sc_prohibit_leading_TABs
12341         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
12342         now that it no longer contains leading TABs.
12343         Remove unused "url=FIXME" statement.
12344
12345 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12346
12347         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
12348         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12349         When gl_THREADLIB is not in use, assume that the POSIX sematics
12350         are desired.  This is better for Emacs, which uses POSIX semantics
12351         on GNUish and/or POSIXish platforms, and does not use threads at
12352         all otherwise.
12353
12354         pthread_sigmask: fix typo when testing for libraries
12355         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12356         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
12357
12358 2011-07-08  Eric Blake  <eblake@redhat.com>
12359
12360         fts: introduce FTS_NOATIME
12361         * lib/fts_.h (FTS_NOATIME): New bit flag.
12362         (FTS_OPTIONMASK): Adjust.
12363         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
12364         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
12365
12366 2011-07-08  Bruno Haible  <bruno@clisp.org>
12367
12368         Tests for module 'thread'.
12369         * modules/thread-tests: New file.
12370         * tests/test-thread_self.c: New file.
12371         * tests/test-thread_create.cc: New file.
12372
12373 2011-07-08  Bruno Haible  <bruno@clisp.org>
12374
12375         thread: Avoid gcc warnings when using gl_thread_self().
12376         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
12377         'void *'.
12378         (gl_thread_self_pointer): Update.
12379
12380 2011-07-07  Bruno Haible  <bruno@clisp.org>
12381
12382         signal-c++-tests: Check declaration of pthread_sigmask.
12383         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
12384         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
12385         $(LIB_PTHREAD_SIGMASK).
12386
12387 2011-07-07  Bruno Haible  <bruno@clisp.org>
12388
12389         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
12390         * lib/signal.in.h (pthread_sigmask): Override if
12391         REPLACE_PTHREAD_SIGMASK is 1.
12392         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12393         REPLACE_PTHREAD_SIGMASK.
12394         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
12395         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
12396         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
12397         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12398         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
12399
12400 2011-07-07  Bruno Haible  <bruno@clisp.org>
12401
12402         pthread_sigmask: Ensure declaration in <signal.h>.
12403         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
12404         include <pthread.h>.
12405         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
12406         problem.
12407
12408 2011-07-07  Bruno Haible  <bruno@clisp.org>
12409
12410         pthread_sigmask: Document the module.
12411         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
12412
12413 2011-07-07  Bruno Haible  <bruno@clisp.org>
12414
12415         pthread_sigmask: Follow gnulib conventions.
12416         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
12417         gl_PTHREAD_SIGMASK.
12418         * modules/pthread_sigmask (configure.ac): Update.
12419
12420 2011-07-07  Bruno Haible  <bruno@clisp.org>
12421
12422         pthread_sigmask: Make declaration C++ safe.
12423         * lib/signal.in.h: In two special conditions, just do an #include_next.
12424         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12425         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
12426         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12427         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12428         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
12429         not REPLACE_PTHREAD_MASK.
12430         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
12431         not REPLACE_PTHREAD_MASK.
12432         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12433
12434 2011-07-07  Bruno Haible  <bruno@clisp.org>
12435
12436         pthread_sigmask: Fix return value.
12437         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
12438         * lib/pthread_sigmask.c: New file.
12439         * modules/pthread_sigmask (Files): Add it.
12440         (configure.ac): Invoke AC_LIBOBJ.
12441
12442 2011-07-07  Eric Blake  <eblake@redhat.com>
12443
12444         getopt: more portable argv creation
12445         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
12446         const, use char arrays rather than strings.
12447         Suggested by Paul Eggert.
12448
12449 2011-07-07  Bruno Haible  <bruno@clisp.org>
12450
12451         Tests for module 'sigprocmask'.
12452         * modules/sigprocmask-tests: New file.
12453         * tests/test-sigprocmask.c: New file.
12454
12455 2011-07-07  Bruno Haible  <bruno@clisp.org>
12456
12457         float tests: Tweak.
12458         * tests/test-float.c (main): Tweak skip message.
12459
12460 2011-07-07  Eric Blake  <eblake@redhat.com>
12461
12462         getopt: avoid compiler warning during configure
12463         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
12464         assigning string literals to non-const pointer.
12465
12466         getopt-gnu: avoid crash in glibc getopt
12467         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
12468         * tests/test-getopt.h (test_getopt): Enhance test.
12469         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12470         * doc/posix-functions/getopt.texi (getopt): Document it.
12471         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12472         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12473         Likewise.
12474
12475 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
12476
12477         getopt: handle W; without long options in getopt [BZ #12922]
12478         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
12479         but no long options are defined, just return 'W'.
12480
12481 2011-07-07  Bruno Haible  <bruno@clisp.org>
12482
12483         Avoid literal tabs.
12484         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
12485         variable containing a tab instead of a literal tab.
12486         Reported by Jim Meyering.
12487
12488 2011-07-07  Bruno Haible  <bruno@clisp.org>
12489
12490         Comments.
12491         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
12492
12493 2011-07-06  Bruno Haible  <bruno@clisp.org>
12494
12495         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
12496         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
12497         <winsock2.h>.
12498         (rpl_fd_isset, FD_ISSET): New definitions, copied from
12499         lib/sys_socket.in.h.
12500         (close, gethostname): Hide declarations from <winsock2.h>.
12501         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12502         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
12503         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
12504         (select): Don't override if gnulib's <sys/select.h> was already
12505         included.
12506         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12507         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12508         setsockopt, shutdown, select): Tweak indentation.
12509
12510 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12511
12512         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
12513         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
12514         in an application that does not use the sys_select module.
12515
12516 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
12517
12518         poll: do not return 0 on timeout=-1
12519         * lib/poll.c: Loop with yield if no events occured
12520
12521 2011-07-06  Eric Blake  <eblake@redhat.com>
12522
12523         pthread_sigmask: always replace when not using pthread
12524         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
12525         replacement when using some threading other than pthread.  Fix
12526         logic bug.
12527
12528 2011-07-06  Bruno Haible  <bruno@clisp.org>
12529
12530         Comments.
12531         * m4/printf.m4: Update comments about mingw.
12532
12533 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12534
12535         sys_select: define sigset_t more portably
12536         * lib/sys_select.in.h: Always include <sys/types.h>, since
12537         we now need sigset_t and mingw defines it there.
12538         Include <signal.h> before split inclusion guard, to avoid
12539         mishaps on Solaris, whose <signal.h> eventually includes us.
12540         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
12541         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
12542         which come from ...
12543         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12544         gl_CHECK_TYPE_SIGSET_T.
12545         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
12546         does the real work.
12547         * modules/sys_select (Depends-on): Add 'signal'.
12548
12549         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
12550         Suggested by Bruno Haible.
12551
12552         pselect: Use pthread_sigmask, not sigprocmask.
12553         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
12554         multithreaded apps better than sigprocmask does.
12555         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
12556         sigprocmask directly.
12557
12558 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12559
12560         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12561         Don't #undef,  since we don't need any underlying pselect.
12562         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12563         (Depends-on): Add select.
12564         (Link): Add $(LIBSOCKET).
12565         These changes suggested by Bruno Haible.
12566
12567         pselect: document better
12568         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12569         * doc/posix-functions/pselect.texi (pselect): Document new module.
12570
12571         pthread_sigmask: new module
12572         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12573         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12574         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12575         This is done only as a macro; I don't know how well that'll
12576         work for C++.  Move <sys/types.h> include before the include_next,
12577         to avoid mishap on Solaris.
12578         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12579         * modules/signal (Makefile.am): Substitute the check's results.
12580         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12581
12582         test-pselect: new module
12583         * modules/pselect-tests, tests/test-pselect.c: New files.
12584         * tests/test-select.c, tests/test-sys_select-c++.cc:
12585         If TEST_PSELECT is defined, test pselect instead of testing select.
12586
12587         * tests/test-sys_select.c (sigset_t): Test for it, too.
12588         Suggested by Bruno Haible.
12589
12590 2011-07-05  Eric Blake  <eblake@redhat.com>
12591
12592         snprintf: guarantee %1$d, for libintl
12593         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12594         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12595         * doc/posix-functions/snprintf.texi (snprintf): Update.
12596         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12597         * tests/test-snprintf.c (main): Enhance test.
12598         * tests/test-vsnprintf.c (main): Likewise.
12599
12600 2011-07-05  Jim Meyering  <meyering@redhat.com>
12601
12602         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12603         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12604         per Bruno's request, to accommodate this idiom (no space after "#")
12605         even when the function is inside an #if block:
12606         char *
12607         gets (char *s)
12608         #undef gets
12609         {
12610           ...
12611         }
12612
12613 2011-07-04  Jim Meyering  <meyering@redhat.com>
12614
12615         maint: indent with spaces, not TABs, and add a rule to check this
12616         * tests/test-userspec.c: Indent with spaces, not TABs.
12617         * tests/test-argp.c: Likewise.
12618         * tests/test-c-stack2.sh: Likewise.
12619         * tests/test-parse-duration.sh: Likewise
12620         * m4/strtod.m4: Likewise.
12621         * m4/alloca.m4: Likewise.
12622         * m4/pselect.m4: Likewise.
12623         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12624
12625 2011-07-03  Jim Meyering  <meyering@redhat.com>
12626
12627         maint.mk: correct omissions in prohibit_argmatch_without_use check
12628         This rule would mistakenly report that argmatch.h is included without
12629         use even when both the argmatch and invalid_arg macro were used.
12630         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12631         of argmatch and invalid_arg.
12632
12633 2011-07-03  Bruno Haible  <bruno@clisp.org>
12634
12635         Comments about EINTR.
12636         * lib/safe-read.h: Explain the purpose of this module.
12637         * lib/safe-write.h: Likewise.
12638         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12639         module.
12640         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12641         module.
12642         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12643
12644 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12645
12646         xnanosleep: Rewrite to use new dtotimespec module.
12647         It has the conversion code that used to be in xnanosleep.
12648         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12649         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12650         (TIME_T_MAX): Remove.
12651         (xnanosleep): Rewrite in terms of dtotimespec.
12652         * modules/xnanosleep (Depends-on): Add dtotimespec.
12653         Remove intprops, stdbool.
12654
12655         timespec-add, timespec-sub: new modules
12656         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12657         * lib/timespec-add.c, lib/timespec-sub.c:
12658         * modules/timespec-add, modules/timespec-sub: New files.
12659
12660         dtotimespec: new module
12661         * lib/timespec.h (dtotimespec): New decl.
12662         * lib/dtotimespec.c, modules/dtotimespec: New files.
12663
12664         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12665
12666         pselect: new module
12667         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12668         (pselect): New decls.
12669         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12670         since the standard pselect decl uses 'restrict'.
12671         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12672         HAVE_PSELECT, REPLACE_PSELECT.
12673         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12674         HAVE_PSELECT, REPLACE_PSELECT.
12675         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12676
12677         sys_select: don't depend on sys_socket
12678         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12679         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12680         This fix works on GNU and GNU-like platforms, but has not been tested
12681         on native Windows.
12682         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12683         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12684         gl_HEADER_SYS_SOCKET.
12685         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12686         gl_PREREQ_SYS_H_WINSOCK2.
12687
12688 2011-06-29  Eric Blake  <eblake@redhat.com>
12689
12690         pipe2: fix C89 compile problem
12691         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12692         Reported by Bruno Haible.
12693
12694         pipe, pipe2: don't corrupt fd on error
12695         * lib/pipe.c (pipe): Leave fd unchanged on error.
12696         * lib/pipe2.c (pipe2): Likewise.
12697         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12698         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12699
12700 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12701
12702         mmap-anon: do not use regular expressions inadvertently
12703         * m4/mmap-anon.m4: Remove trailing period from strings sought
12704         in the output.
12705
12706 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12707
12708         nanosleep: fix integer overflow problem
12709         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12710         arithmetic wraps around on overflow.
12711
12712         nanosleep: simplify carrying
12713         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12714         first call to the underyling nanosleep, not for the last one.
12715         This doesn't fix any bugs, but it simplifies the computation of
12716         the remaining delay.  Found while auditing integer overflow issues.
12717
12718         dup2: remove test for existence of fcntl
12719         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12720         "#if HAVE_FCNTL", in the configure-time test program.
12721         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12722         and therefore speeds up "configure" a bit.  Found while
12723         adding the dup2 module to Emacs.
12724
12725 2011-06-24  Eric Blake  <eblake@redhat.com>
12726
12727         maint.mk: enhance useless header checks
12728         * top/maint.mk (_sc_header_without_use): Check both include
12729         styles.
12730         (sc_prohibit_assert_without_use)
12731         (sc_prohibit_close_stream_without_use)
12732         (sc_prohibit_getopt_without_use)
12733         (sc_prohibit_quotearg_without_use)
12734         (sc_prohibit_quote_without_use)
12735         (sc_prohibit_long_options_without_use)
12736         (sc_prohibit_inttostr_without_use)
12737         (sc_prohibit_ignore_value_without_use)
12738         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12739         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12740         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12741         (sc_prohibit_hash_pjw_without_use)
12742         (sc_prohibit_safe_read_without_use)
12743         (sc_prohibit_argmatch_without_use)
12744         (sc_prohibit_canonicalize_without_use)
12745         (sc_prohibit_root_dev_ino_without_use)
12746         (sc_prohibit_openat_without_use)
12747         (sc_prohibit_c_ctype_without_use)
12748         (sc_prohibit_signal_without_use)
12749         (sc_prohibit_stdio--_without_use)
12750         (sc_prohibit_stdio-safer_without_use)
12751         (sc_prohibit_strings_without_use)
12752         (sc_prohibit_intprops_without_use)
12753         (sc_prohibit_stddef_without_use)
12754         (sc_prohibit_xfreopen_without_use): Update clients.
12755
12756 2011-06-24  Jim Meyering  <meyering@redhat.com>
12757
12758         syntax-check: keep one maint.mk rule in sync with its header
12759         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12760         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12761         I prefer to avoid temporary files here, so use <(...), but that
12762         is not supported by /bin/sh, so...
12763         (SHELL): Define to /bin/bash.
12764
12765 2011-06-24  Eric Blake  <eblake@redhat.com>
12766
12767         maint.mk: update sc_prohibit_intprops_without_use
12768         * top/maint.mk (_intprops_names): Match recent changes.
12769
12770 2011-06-24  Bruno Haible  <bruno@clisp.org>
12771
12772         strerror-override: No-op tweak.
12773         * lib/strerror-override.h (strerror_override): Reorder conditions,
12774         for consistency with lib/strerror-override.c.
12775
12776 2011-06-23  Eric Blake  <eblake@redhat.com>
12777
12778         maint.mk: test further PATH_MAX issues
12779         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12780         (sc_prohibit_path_max_allocation): ...and also test alloca.
12781         Suggested by Jim Meyering.
12782
12783 2011-06-22  Eric Blake  <eblake@redhat.com>
12784
12785         maint.mk: add syntax-check to avoid char[PATH_MAX]
12786         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12787
12788         stat: be robust to PATH_MAX definition
12789         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12790         * modules/stat (Depends-on): Add verify.
12791
12792         link: work around IRIX bug
12793         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12794         * lib/link.c (rpl_link): Work around it.
12795         * tests/test-link.h (test_link): Enhance test.
12796         * doc/posix-functions/link.texi (link): Document the bug.
12797
12798         getopt: silence clang warning
12799         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12800         dereference.
12801         Reported by Gustavo Martin Domato.
12802
12803 2011-06-22  Jim Meyering  <meyering@redhat.com>
12804
12805         bootstrap: do not insert a blank line into each .gitignore file
12806         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12807
12808 2011-06-21  Eric Blake  <eblake@redhat.com>
12809
12810         perror: test for output mismatch
12811         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12812         perror on IRIX.
12813
12814         strerror_r: fix OpenBSD behavior on out-of-range
12815         * lib/strerror_r.c (strerror_r): Always use maximal string.
12816         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12817
12818         strerror_r: fix OpenBSD behavior on 0
12819         * lib/strerror-override.c (strerror_override): Also override 0
12820         when needed.
12821         * lib/strerror-override.h (strerror_override): Likewise.
12822         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12823         earlier.
12824         * lib/strerror_r.c (strerror_r): Likewise.
12825         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12826         behavior...
12827         (gl_FUNC_STRERROR_0): ...into new macro.
12828         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12829         is overridden.
12830         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12831         * modules/strerror-override (Files): Add strerror.m4.
12832         (configure.ac): Also provide override for 0 when needed.
12833         * doc/posix-functions/strerror.texi (strerror): Document this.
12834         * doc/posix-functions/perror.texi (perror): Likewise.
12835
12836         perror: adjust array size
12837         * modules/perror (Depends-on): Add strerror-override.
12838         * lib/perror.c (perror): Use it to avoid magic number.
12839
12840         strerror-override: reduce size
12841         * lib/strerror-override.c (strerror_override): Use fewer lines.
12842
12843 2011-06-20  Bruno Haible  <bruno@clisp.org>
12844
12845         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12846         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12847
12848 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12849
12850         alloca: port to compilers that can optimize like GCC 4.6.0
12851         * lib/alloca.c (find_stack_direction): New signature, taken from
12852         Autoconf git.  This works with GCC 4.6.0.  This code should never
12853         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12854         be used with other compilers that optimize as well as GCC 4.6.0 does.
12855         (alloca): Adjust to new signature.
12856         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12857         New macro, which patches Autoconf in a similar way.
12858
12859         c-stack: stop worrying about stack direction
12860         * lib/c-stack.c (find_stack_direction): Remove.
12861         (segv_handler): Don't worry about stack direction growth, as it's
12862         too much of a pain to configure this correctly, given how compilers
12863         are optimizing-away our stack-growth detection code.  Instead, assume
12864         that any access to just before or just after the stack is OK.
12865         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12866         Don't require AC_FUNC_ALLOCA; no longer needed.
12867
12868 2011-06-20  Eric Blake  <eblake@redhat.com>
12869
12870         test-stat: don't allocate PATH_MAX bytes
12871         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12872         PATH_MAX-sized buffer.
12873         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12874         * modules/stat-tests (Depends-on): Likewise.
12875         * tests/test-fstatat.c (includes): Drop pathmax.h.
12876         * tests/test-stat.c (includes): Likewise.
12877         Reported by Bruno Haible.
12878
12879 2011-06-20  Bruno Haible  <bruno@clisp.org>
12880
12881         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12882         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12883         * lib/float.c: New file.
12884         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12885         REPLACE_FLOAT_LDBL.
12886         * modules/float (Files): Add lib/float.c.
12887         (configure.ac): Invoke AC_LIBOBJ.
12888         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12889
12890 2011-06-20  Bruno Haible  <bruno@clisp.org>
12891
12892         Tests for module 'float'.
12893         * modules/float-tests: New file.
12894         * tests/test-float.c: New file.
12895
12896 2011-06-19  Bruno Haible  <bruno@clisp.org>
12897
12898         isinf: Coding style.
12899         * lib/isinf.c: Use GNU coding style.
12900
12901 2011-06-19  Bruno Haible  <bruno@clisp.org>
12902
12903         linkat test: Avoid test failure on AIX 7.1.
12904         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12905         * tests/test-link.h (test_link): Likewise.
12906
12907 2011-06-19  Bruno Haible  <bruno@clisp.org>
12908
12909         pread test: Avoid test failure on OpenBSD 4.9.
12910         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12911
12912 2011-06-19  Bruno Haible  <bruno@clisp.org>
12913
12914         sprintf-posix: Fix test failure on AIX 7.1.
12915         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12916         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12917         on AIX.
12918         * doc/posix-functions/fprintf.texi: Likewise.
12919         * doc/posix-functions/printf.texi: Likewise.
12920         * doc/posix-functions/snprintf.texi: Likewise.
12921         * doc/posix-functions/sprintf.texi: Likewise.
12922         * doc/posix-functions/vdprintf.texi: Likewise.
12923         * doc/posix-functions/vfprintf.texi: Likewise.
12924         * doc/posix-functions/vprintf.texi: Likewise.
12925         * doc/posix-functions/vsnprintf.texi: Likewise.
12926         * doc/posix-functions/vsprintf.texi: Likewise.
12927
12928 2011-06-19  Bruno Haible  <bruno@clisp.org>
12929
12930         roundl-ieee: Fix test failure on AIX 7.1.
12931         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12932         * doc/posix-functions/roundl.texi: Mention problem with negative
12933         arguments.
12934
12935 2011-06-19  Bruno Haible  <bruno@clisp.org>
12936
12937         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12938         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12939         * doc/posix-functions/round.texi: Mention problem with negative
12940         arguments.
12941         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12942
12943 2011-06-19  Bruno Haible  <bruno@clisp.org>
12944
12945         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12946         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12947         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12948         * doc/posix-functions/roundf.texi: Mention problem with negative
12949         arguments.
12950         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12951
12952 2011-06-19  Bruno Haible  <bruno@clisp.org>
12953
12954         ceilf-ieee: Work around bug on MacOS X 10.5.
12955         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12956
12957         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12958         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12959         IEEE compliant, avoid compiler optimizations.
12960         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12961         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12962         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12963         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12964         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12965         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12966         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12967         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12968         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12969         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12970
12971 2011-06-19  Bruno Haible  <bruno@clisp.org>
12972
12973         ceilf-ieee: Work around bug on AIX 7.1.
12974         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12975         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12976
12977 2011-06-19  Bruno Haible  <bruno@clisp.org>
12978
12979         ceil-ieee: Work around bug on AIX 7.1.
12980         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12981         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12982
12983 2011-06-18  Bruno Haible  <bruno@clisp.org>
12984
12985         fsync test: Avoid test failure on MacOS X and AIX.
12986         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12987         EINVAL.
12988
12989 2011-06-18  Bruno Haible  <bruno@clisp.org>
12990
12991         openat, fdopendir tests: Fix link errors.
12992         * modules/openat-tests (Depends-on): Add progname.
12993         * modules/fdopendir-tests (Depends-on): Likewise.
12994         * tests/test-fchownat.c: Include progname.h.
12995         (main): Call set_program_name.
12996         * tests/test-fstatat.c: Include progname.h.
12997         (main): Call set_program_name.
12998         * tests/test-mkdirat.c: Include progname.h.
12999         (main): Call set_program_name.
13000         * tests/test-openat.c: Include progname.h.
13001         (main): Call set_program_name.
13002         * tests/test-unlinkat.c: Include progname.h.
13003         (main): Call set_program_name.
13004         * tests/test-fdopendir.c: Include progname.h.
13005         (main): Call set_program_name.
13006
13007 2011-06-18  Bruno Haible  <bruno@clisp.org>
13008
13009         Doc update.
13010         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
13011         HP-UX.
13012         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
13013
13014 2011-06-18  Bruno Haible  <bruno@clisp.org>
13015
13016         getcwd tests: Avoid compilation error on HP-UX 11.31.
13017         * modules/getcwd-tests (Depends-on): Add pathmax.
13018         * tests/test-getcwd.c: Include pathmax.h.
13019
13020 2011-06-18  Bruno Haible  <bruno@clisp.org>
13021
13022         isfinite, isinf: Fix link error on AIX 6 and 7.
13023         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
13024         needed, also test the macro with a 'float' argument.
13025         * m4/isinf.m4 (gl_ISINF): Likewise.
13026
13027 2011-06-18  Bruno Haible  <bruno@clisp.org>
13028
13029         getloadavg: Don't clobber LIBS. Regression from previous commit.
13030         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
13031         AC_CHECK_LIB from here...
13032         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
13033         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
13034         gl_func_getloadavg_done.
13035         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13036
13037 2011-06-18  Bruno Haible  <bruno@clisp.org>
13038
13039         clean-temp: Improve documentation.
13040         * lib/clean-temp.h: Explain better how to use this module.
13041         Reported by John Darrington <john@darrington.wattle.id.au>.
13042
13043 2011-06-17  Bruno Haible  <bruno@clisp.org>
13044
13045         pread, pwrite: Avoid cc warning on AIX.
13046         * lib/unistd.in.h (pread): Undefine before defining as a macro.
13047         (pwrite): Likewise.
13048
13049 2011-06-17  Bruno Haible  <bruno@clisp.org>
13050
13051         spawn-pipe tests: Fix link error.
13052         * tests/test-spawn-pipe-child.c: Undefine fprintf.
13053         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13054
13055 2011-06-17  Bruno Haible  <bruno@clisp.org>
13056
13057         Tests: Remove unnecessary dependency.
13058         * modules/canonicalize-tests (Depends-on): Remove progname.
13059         * modules/chown-tests (Depends-on): Likewise.
13060         * modules/dirname-tests (Depends-on): Likewise.
13061         * modules/fdopendir-tests (Depends-on): Likewise.
13062         * modules/fdutimensat-tests (Depends-on): Likewise.
13063         * modules/hash-tests (Depends-on): Likewise.
13064         * modules/lchown-tests (Depends-on): Likewise.
13065         * modules/linkat-tests (Depends-on): Likewise.
13066         * modules/renameat-tests (Depends-on): Likewise.
13067         * modules/spawn-pipe-tests (Depends-on): Likewise.
13068         * modules/utimensat-tests (Depends-on): Likewise.
13069
13070 2011-06-17  Bruno Haible  <bruno@clisp.org>
13071
13072         spawn-pipe tests: Fix link error.
13073         * tests/test-spawn-pipe-child.c: Undefine fflush.
13074
13075 2011-06-17  Bruno Haible  <bruno@clisp.org>
13076
13077         Fix tests link errors.
13078         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
13079         * modules/chown-tests (Makefile.am): Don't link test-chown with
13080         LIBINTL.
13081         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
13082         LIBINTL.
13083         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
13084         LIBINTL.
13085         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
13086         LIBINTL.
13087
13088 2011-06-16  Bruno Haible  <bruno@clisp.org>
13089
13090         crypto/gc-sha1: Fix recent regression.
13091         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
13092         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
13093
13094         crypto/gc-md5: Fix recent regression.
13095         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
13096
13097         crypto/gc-md4: Fix recent regression.
13098         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
13099         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
13100
13101         crypto/gc-arctwo: Fix recent regression.
13102         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
13103         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
13104
13105         crypto/gc-rijndael: Fix recent regression.
13106         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
13107         (configure.ac): Invoke AC_LIBOBJ here.
13108         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
13109         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13110
13111         crypto/gc-hmac-sha1: Fix recent regression.
13112         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
13113         (configure.ac): Invoke AC_LIBOBJ here.
13114         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
13115         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13116
13117         crypto/gc-hmac-md5: Fix recent regression.
13118         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
13119         (configure.ac): Invoke AC_LIBOBJ here.
13120         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
13121         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13122
13123         crypto/gc-des: Fix recent regression.
13124         * modules/crypto/gc-des (Files): Remove m4/des.m4.
13125         (configure.ac): Invoke AC_LIBOBJ here.
13126         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
13127         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13128
13129         crypto/gc-arcfour: Fix recent regression.
13130         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
13131         (configure.ac): Invoke AC_LIBOBJ here.
13132         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
13133         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13134
13135 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
13136
13137         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
13138         After the 2011-05-21 change, this macro requires
13139         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
13140         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13141
13142 2011-06-16  Bruno Haible  <bruno@clisp.org>
13143
13144         fprintftime: Move AC_LIBOBJ invocations to module description.
13145         * m4/fprintftime.m4: Remove file.
13146         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
13147         (configure.ac): Remove gl_FPRINTFTIME call.
13148         (Makefile.am): Augment lib_SOURCES.
13149         Reported by Jim Meyering.
13150
13151 2011-06-16  Bruno Haible  <bruno@clisp.org>
13152
13153         tmpfile-safer: Finish 2011-05-23 commit.
13154         * m4/stdio-safer.m4: Really remove file.
13155         Reported by Jim Meyering.
13156
13157 2011-06-16  Bruno Haible  <bruno@clisp.org>
13158
13159         syntax-check: Fix typo.
13160         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
13161         printf-posix.m4.
13162         Reported by Jim Meyering.
13163
13164 2011-06-13  Jim Meyering  <meyering@redhat.com>
13165
13166         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
13167         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
13168
13169 2011-05-23  Bruno Haible  <bruno@clisp.org>
13170
13171         yesno: Move AC_LIBOBJ invocations to module description.
13172         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
13173         * modules/yesno (Makefile.am): Augment lib_SOURCES.
13174
13175 2011-05-23  Bruno Haible  <bruno@clisp.org>
13176
13177         xstrtol: Move AC_LIBOBJ invocations to module description.
13178         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
13179         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
13180
13181 2011-05-23  Bruno Haible  <bruno@clisp.org>
13182
13183         xstrtold: Move AC_LIBOBJ invocations to module description.
13184         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
13185         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
13186
13187 2011-05-23  Bruno Haible  <bruno@clisp.org>
13188
13189         xstrtod: Move AC_LIBOBJ invocations to module description.
13190         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
13191         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
13192
13193 2011-05-23  Bruno Haible  <bruno@clisp.org>
13194
13195         xnanosleep: Move AC_LIBOBJ invocations to module description.
13196         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
13197         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
13198
13199 2011-05-23  Bruno Haible  <bruno@clisp.org>
13200
13201         xgetcwd: Move AC_LIBOBJ invocations to module description.
13202         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
13203         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
13204
13205 2011-05-23  Bruno Haible  <bruno@clisp.org>
13206
13207         xalloc: Move AC_LIBOBJ invocations to module description.
13208         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
13209         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
13210
13211 2011-05-23  Bruno Haible  <bruno@clisp.org>
13212
13213         write-any-file: Move AC_LIBOBJ invocations to module description.
13214         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
13215         invocation.
13216         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
13217
13218 2011-05-23  Bruno Haible  <bruno@clisp.org>
13219
13220         utimens: Move AC_LIBOBJ invocations to module description.
13221         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
13222         * modules/utimens (Makefile.am): Augment lib_SOURCES.
13223
13224 2011-05-23  Bruno Haible  <bruno@clisp.org>
13225
13226         utimecmp: Move AC_LIBOBJ invocations to module description.
13227         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
13228         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
13229
13230 2011-05-23  Bruno Haible  <bruno@clisp.org>
13231
13232         userspec: Move AC_LIBOBJ invocations to module description.
13233         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
13234         * modules/userspec (Makefile.am): Augment lib_SOURCES.
13235
13236 2011-05-23  Bruno Haible  <bruno@clisp.org>
13237
13238         unlinkdir: Move AC_LIBOBJ invocations to module description.
13239         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
13240         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
13241
13242 2011-05-23  Bruno Haible  <bruno@clisp.org>
13243
13244         unistd-safer: Move AC_LIBOBJ invocations to module description.
13245         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
13246         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
13247
13248 2011-05-23  Bruno Haible  <bruno@clisp.org>
13249
13250         tempname: Move AC_LIBOBJ invocations to module description.
13251         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
13252         * modules/tempname (Makefile.am): Augment lib_SOURCES.
13253
13254 2011-05-23  Bruno Haible  <bruno@clisp.org>
13255
13256         strftime: Move AC_LIBOBJ invocations to module description.
13257         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
13258         * modules/strftime (Makefile.am): Augment lib_SOURCES.
13259
13260 2011-05-23  Bruno Haible  <bruno@clisp.org>
13261
13262         stdlib-safer: Move AC_LIBOBJ invocations to module description.
13263         * m4/stdlib-safer.m4: Remove file.
13264         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
13265         (configure.ac): Remove gl_STDLIB_SAFER call.
13266         (Makefile.am): Augment lib_SOURCES.
13267
13268 2011-05-23  Bruno Haible  <bruno@clisp.org>
13269
13270         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
13271         * m4/stdio-safer.m4: Remove file.
13272         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
13273         (configure.ac): Remove gl_TMPFILE_SAFER call.
13274         (Makefile.am): Augment lib_SOURCES.
13275
13276 2011-05-23  Bruno Haible  <bruno@clisp.org>
13277
13278         popen-safer: Move AC_LIBOBJ invocations to module description.
13279         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
13280         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
13281         (configure.ac): Remove gl_POPEN_SAFER call.
13282         (Makefile.am): Augment lib_SOURCES.
13283
13284 2011-05-23  Bruno Haible  <bruno@clisp.org>
13285
13286         freopen-safer: Move AC_LIBOBJ invocations to module description.
13287         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
13288         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
13289         (configure.ac): Remove gl_FREOPEN_SAFER call.
13290         (Makefile.am): Augment lib_SOURCES.
13291
13292 2011-05-23  Bruno Haible  <bruno@clisp.org>
13293
13294         fopen-safer: Move AC_LIBOBJ invocations to module description.
13295         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
13296         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
13297         (configure.ac): Remove gl_FOPEN_SAFER call.
13298         (Makefile.am): Augment lib_SOURCES.
13299
13300 2011-05-23  Bruno Haible  <bruno@clisp.org>
13301
13302         crypto/sha512: Move AC_LIBOBJ invocations to module description.
13303         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
13304         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
13305
13306 2011-05-23  Bruno Haible  <bruno@clisp.org>
13307
13308         crypto/sha256: Move AC_LIBOBJ invocations to module description.
13309         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
13310         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
13311
13312 2011-05-23  Bruno Haible  <bruno@clisp.org>
13313
13314         crypto/sha1: Move AC_LIBOBJ invocations to module description.
13315         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
13316         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
13317
13318 2011-05-23  Bruno Haible  <bruno@clisp.org>
13319
13320         settime: Move AC_LIBOBJ invocations to module description.
13321         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
13322         * modules/settime (Makefile.am): Augment lib_SOURCES.
13323
13324 2011-05-23  Bruno Haible  <bruno@clisp.org>
13325
13326         savedir: Move AC_LIBOBJ invocations to module description.
13327         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
13328         * modules/savedir (Makefile.am): Augment lib_SOURCES.
13329
13330 2011-05-23  Bruno Haible  <bruno@clisp.org>
13331
13332         save-cwd: Move AC_LIBOBJ invocations to module description.
13333         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
13334         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
13335
13336 2011-05-23  Bruno Haible  <bruno@clisp.org>
13337
13338         same: Move AC_LIBOBJ invocations to module description.
13339         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
13340         * modules/same (Makefile.am): Augment lib_SOURCES.
13341
13342 2011-05-23  Bruno Haible  <bruno@clisp.org>
13343
13344         safe-write: Move AC_LIBOBJ invocations to module description.
13345         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
13346         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
13347         instead of gl_SAFE_WRITE.
13348         (Makefile.am): Augment lib_SOURCES.
13349
13350 2011-05-23  Bruno Haible  <bruno@clisp.org>
13351
13352         safe-read: Move AC_LIBOBJ invocations to module description.
13353         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
13354         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
13355         of gl_SAFE_READ.
13356         (Makefile.am): Augment lib_SOURCES.
13357
13358 2011-05-23  Bruno Haible  <bruno@clisp.org>
13359
13360         safe-alloc: Move AC_LIBOBJ invocations to module description.
13361         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
13362         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
13363
13364 2011-05-23  Bruno Haible  <bruno@clisp.org>
13365
13366         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
13367         * m4/rijndael.m4: Remove file.
13368         * modules/crypto/rijndael (Files): Remove it.
13369         (configure.ac): Remove gl_RIJNDAEL call.
13370         (Makefile.am): Augment lib_SOURCES.
13371
13372 2011-05-23  Bruno Haible  <bruno@clisp.org>
13373
13374         readtokens: Move AC_LIBOBJ invocations to module description.
13375         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
13376         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
13377
13378 2011-05-23  Bruno Haible  <bruno@clisp.org>
13379
13380         read-file: Move AC_LIBOBJ invocations to module description.
13381         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
13382         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
13383         of gl_FUNC_READ_FILE.
13384         (Makefile.am): Augment lib_SOURCES.
13385
13386 2011-05-23  Bruno Haible  <bruno@clisp.org>
13387
13388         quotearg: Move AC_LIBOBJ invocations to module description.
13389         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
13390         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
13391
13392 2011-05-23  Bruno Haible  <bruno@clisp.org>
13393
13394         quote: Move AC_LIBOBJ invocations to module description.
13395         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
13396         * modules/quote (Makefile.am): Augment lib_SOURCES.
13397
13398 2011-05-23  Bruno Haible  <bruno@clisp.org>
13399
13400         posixver: Move AC_LIBOBJ invocations to module description.
13401         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
13402         * modules/posixver (Makefile.am): Augment lib_SOURCES.
13403
13404 2011-05-23  Bruno Haible  <bruno@clisp.org>
13405
13406         posixtm: Move AC_LIBOBJ invocations to module description.
13407         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
13408         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
13409
13410 2011-05-23  Bruno Haible  <bruno@clisp.org>
13411
13412         physmem: Move AC_LIBOBJ invocations to module description.
13413         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
13414         * modules/physmem (Makefile.am): Augment lib_SOURCES.
13415
13416 2011-05-23  Bruno Haible  <bruno@clisp.org>
13417
13418         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
13419         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
13420         invocation.
13421         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
13422
13423 2011-05-23  Bruno Haible  <bruno@clisp.org>
13424
13425         mpsort: Move AC_LIBOBJ invocations to module description.
13426         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
13427         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
13428
13429 2011-05-23  Bruno Haible  <bruno@clisp.org>
13430
13431         modechange: Move AC_LIBOBJ invocations to module description.
13432         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
13433         * modules/modechange (Makefile.am): Augment lib_SOURCES.
13434
13435 2011-05-23  Bruno Haible  <bruno@clisp.org>
13436
13437         mkdir-p: Move AC_LIBOBJ invocations to module description.
13438         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
13439         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
13440
13441 2011-05-23  Bruno Haible  <bruno@clisp.org>
13442
13443         mkancesdirs: Move AC_LIBOBJ invocations to module description.
13444         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
13445         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
13446
13447 2011-05-23  Bruno Haible  <bruno@clisp.org>
13448
13449         mgetgroups: Move AC_LIBOBJ invocations to module description.
13450         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
13451         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
13452
13453 2011-05-23  Bruno Haible  <bruno@clisp.org>
13454
13455         memxor: Move AC_LIBOBJ invocations to module description.
13456         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
13457         * modules/memxor (Makefile.am): Augment lib_SOURCES.
13458
13459 2011-05-23  Bruno Haible  <bruno@clisp.org>
13460
13461         memcoll: Move AC_LIBOBJ invocations to module description.
13462         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
13463         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
13464
13465 2011-05-23  Bruno Haible  <bruno@clisp.org>
13466
13467         memcasecmp: Move AC_LIBOBJ invocations to module description.
13468         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
13469         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
13470
13471 2011-05-23  Bruno Haible  <bruno@clisp.org>
13472
13473         crypto/md5: Move AC_LIBOBJ invocations to module description.
13474         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
13475         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
13476
13477 2011-05-23  Bruno Haible  <bruno@clisp.org>
13478
13479         crypto/md4: Move AC_LIBOBJ invocations to module description.
13480         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
13481         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
13482
13483 2011-05-23  Bruno Haible  <bruno@clisp.org>
13484
13485         crypto/md2: Move AC_LIBOBJ invocations to module description.
13486         * m4/md2.m4: Remove file.
13487         * modules/crypto/md2 (Files): Remove it.
13488         (configure.ac): Remove gl_MD2 call.
13489         (Makefile.am): Augment lib_SOURCES.
13490
13491 2011-05-23  Bruno Haible  <bruno@clisp.org>
13492
13493         long-options: Move AC_LIBOBJ invocations to module description.
13494         * m4/long-options.m4: Remove file.
13495         * modules/long-options (Files): Remove it.
13496         (configure.ac): Remove gl_LONG_OPTIONS call.
13497         (Makefile.am): Augment lib_SOURCES.
13498
13499 2011-05-23  Bruno Haible  <bruno@clisp.org>
13500
13501         i-ring: Move AC_LIBOBJ invocations to module description.
13502         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
13503         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
13504
13505 2011-05-23  Bruno Haible  <bruno@clisp.org>
13506
13507         idcache: Move AC_LIBOBJ invocations to module description.
13508         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
13509         * modules/idcache (Makefile.am): Augment lib_SOURCES.
13510
13511 2011-05-23  Bruno Haible  <bruno@clisp.org>
13512
13513         human: Move AC_LIBOBJ invocations to module description.
13514         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
13515         * modules/human (Makefile.am): Augment lib_SOURCES.
13516
13517 2011-05-23  Bruno Haible  <bruno@clisp.org>
13518
13519         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
13520         * m4/hmac-sha1.m4: Remove file.
13521         * modules/crypto/hmac-sha1 (Files): Remove it.
13522         (configure.ac): Remove gl_HMAC_SHA1 call.
13523         (Makefile.am): Augment lib_SOURCES.
13524
13525 2011-05-23  Bruno Haible  <bruno@clisp.org>
13526
13527         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
13528         * m4/hmac-md5.m4: Remove file.
13529         * modules/crypto/hmac-md5 (Files): Remove it.
13530         (configure.ac): Remove gl_HMAC_MD5 call.
13531         (Makefile.am): Augment lib_SOURCES.
13532
13533 2011-05-23  Bruno Haible  <bruno@clisp.org>
13534
13535         hash: Move AC_LIBOBJ invocations to module description.
13536         * m4/hash.m4: Remove file.
13537         * modules/hash (Files): Remove it.
13538         (configure.ac): Remove gl_HASH call.
13539         (Makefile.am): Augment lib_SOURCES.
13540
13541 2011-05-23  Bruno Haible  <bruno@clisp.org>
13542
13543         hard-locale: Move AC_LIBOBJ invocations to module description.
13544         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
13545         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
13546
13547 2011-05-23  Bruno Haible  <bruno@clisp.org>
13548
13549         getugroups: Move AC_LIBOBJ invocations to module description.
13550         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
13551         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
13552
13553 2011-05-23  Bruno Haible  <bruno@clisp.org>
13554
13555         gettime: Move AC_LIBOBJ invocations to module description.
13556         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13557         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13558
13559 2011-05-23  Bruno Haible  <bruno@clisp.org>
13560
13561         getndelim2: Move AC_LIBOBJ invocations to module description.
13562         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13563         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13564
13565 2011-05-23  Bruno Haible  <bruno@clisp.org>
13566
13567         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13568         * m4/gc-pbkdf2-sha1.m4: Remove file.
13569         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13570         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13571         (Makefile.am): Augment lib_SOURCES.
13572
13573 2011-05-23  Bruno Haible  <bruno@clisp.org>
13574
13575         fts: Move AC_LIBOBJ invocations to module description.
13576         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13577         * modules/fts (configure.ac): ... to here.
13578
13579 2011-05-23  Bruno Haible  <bruno@clisp.org>
13580
13581         file-type: Move AC_LIBOBJ invocations to module description.
13582         * m4/file-type.m4: Remove file.
13583         * modules/file-type (Files): Remove it.
13584         (configure.ac): Remove gl_FILE_TYPE call.
13585         (Makefile.am): Augment lib_SOURCES.
13586
13587 2011-05-23  Bruno Haible  <bruno@clisp.org>
13588
13589         filenamecat*: Respect rules for use of AC_LIBOBJ.
13590         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13591         Remove AC_LIBOBJ invocation.
13592         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13593         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13594
13595 2011-05-23  Bruno Haible  <bruno@clisp.org>
13596
13597         filemode: Move AC_LIBOBJ invocations to module description.
13598         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13599         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13600
13601 2011-05-23  Bruno Haible  <bruno@clisp.org>
13602
13603         openat-safer: Move AC_LIBOBJ invocations to module description.
13604         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13605         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13606
13607 2011-05-23  Bruno Haible  <bruno@clisp.org>
13608
13609         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13610         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13611         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13612
13613 2011-05-23  Bruno Haible  <bruno@clisp.org>
13614
13615         exclude: Move AC_LIBOBJ invocations to module description.
13616         * m4/exclude.m4: Remove file.
13617         * modules/exclude (Files): Remove it.
13618         (configure.ac): Remove gl_EXCLUDE call.
13619         (Makefile.am): Augment lib_SOURCES.
13620
13621 2011-05-23  Bruno Haible  <bruno@clisp.org>
13622
13623         dirname*: Respect rules for use of AC_LIBOBJ.
13624         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13625         invocations.
13626         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13627         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13628
13629 2011-05-23  Bruno Haible  <bruno@clisp.org>
13630
13631         dirent-safer: Move AC_LIBOBJ invocations to module description.
13632         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13633         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13634
13635 2011-05-23  Bruno Haible  <bruno@clisp.org>
13636
13637         crypto/des: Move AC_LIBOBJ invocations to module description.
13638         * m4/des.m4: Remove file.
13639         * modules/crypto/des (Files): Remove it.
13640         (configure.ac): Remove gl_DES call.
13641         (Makefile.am): Augment lib_SOURCES.
13642
13643 2011-05-23  Bruno Haible  <bruno@clisp.org>
13644
13645         cycle-check: Move AC_LIBOBJ invocations to module description.
13646         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13647         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13648
13649 2011-05-23  Bruno Haible  <bruno@clisp.org>
13650
13651         c-strtold: Move AC_LIBOBJ invocations to module description.
13652         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13653         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13654
13655 2011-05-23  Bruno Haible  <bruno@clisp.org>
13656
13657         c-strtod: Move AC_LIBOBJ invocations to module description.
13658         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13659         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13660
13661 2011-05-23  Bruno Haible  <bruno@clisp.org>
13662
13663         crc: Move AC_LIBOBJ invocations to module description.
13664         * m4/crc.m4: Remove file.
13665         * modules/crc (Files): Remove it.
13666         (configure.ac): Remove gl_CRC call.
13667         (Makefile.am): Augment lib_SOURCES.
13668
13669 2011-05-23  Bruno Haible  <bruno@clisp.org>
13670
13671         close-stream: Move AC_LIBOBJ invocations to module description.
13672         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13673         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13674
13675 2011-05-23  Bruno Haible  <bruno@clisp.org>
13676
13677         closeout: Move AC_LIBOBJ invocations to module description.
13678         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13679         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13680
13681 2011-05-23  Bruno Haible  <bruno@clisp.org>
13682
13683         closein: Move AC_LIBOBJ invocations to module description.
13684         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13685         * modules/closein (Makefile.am): Augment lib_SOURCES.
13686
13687 2011-05-23  Bruno Haible  <bruno@clisp.org>
13688
13689         cloexec: Move AC_LIBOBJ invocations to module description.
13690         * m4/cloexec.m4: Remove file.
13691         * modules/cloexec (Files): Remove it.
13692         (configure.ac): Remove gl_CLOEXEC call.
13693         (Makefile.am): Augment lib_SOURCES.
13694
13695 2011-05-23  Bruno Haible  <bruno@clisp.org>
13696
13697         check-version: Move AC_LIBOBJ invocations to module description.
13698         * m4/check-version.m4: Remove file.
13699         * modules/check-version (Files): Remove it.
13700         (configure.ac): Remove gl_CHECK_VERSION call.
13701         (Makefile.am): Augment lib_SOURCES.
13702
13703 2011-05-23  Bruno Haible  <bruno@clisp.org>
13704
13705         chdir-safer: Move AC_LIBOBJ invocations to module description.
13706         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13707         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13708
13709 2011-05-23  Bruno Haible  <bruno@clisp.org>
13710
13711         canonicalize: Move AC_LIBOBJ invocations to module description.
13712         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13713         AC_LIBOBJ invocation.
13714         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13715
13716 2011-05-23  Bruno Haible  <bruno@clisp.org>
13717
13718         canon-host: Move AC_LIBOBJ invocations to module description.
13719         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13720         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13721         instead of gl_CANON_HOST.
13722         (Makefile.am): Augment lib_SOURCES.
13723
13724 2011-05-23  Bruno Haible  <bruno@clisp.org>
13725
13726         backupfile: Move AC_LIBOBJ invocations to module description.
13727         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13728         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13729
13730 2011-05-23  Bruno Haible  <bruno@clisp.org>
13731
13732         argmatch: Move AC_LIBOBJ invocations to module description.
13733         * m4/argmatch.m4: Remove file.
13734         * modules/argmatch (Files): Remove it.
13735         (configure.ac): Remove gl_ARGMATCH call.
13736         (Makefile.am): Augment lib_SOURCES.
13737
13738 2011-05-23  Bruno Haible  <bruno@clisp.org>
13739
13740         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13741         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13742         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13743
13744 2011-05-23  Bruno Haible  <bruno@clisp.org>
13745
13746         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13747         * m4/arcfour.m4: Remove file.
13748         * modules/crypto/arcfour (Files): Remove it.
13749         (configure.ac): Remove gl_ARCFOUR call.
13750         (Makefile.am): Augment lib_SOURCES.
13751
13752 2011-05-22  Bruno Haible  <bruno@clisp.org>
13753
13754         write: Move AC_LIBOBJ invocations to module description.
13755         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13756         * modules/write (configure.ac): ... to here.
13757
13758 2011-05-22  Bruno Haible  <bruno@clisp.org>
13759
13760         wmemset: Move AC_LIBOBJ invocations to module description.
13761         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13762         here...
13763         * modules/wmemset (configure.ac): ... to here.
13764
13765 2011-05-22  Bruno Haible  <bruno@clisp.org>
13766
13767         wmemmove: Move AC_LIBOBJ invocations to module description.
13768         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13769         here...
13770         * modules/wmemmove (configure.ac): ... to here.
13771
13772 2011-05-22  Bruno Haible  <bruno@clisp.org>
13773
13774         wmemcpy: Move AC_LIBOBJ invocations to module description.
13775         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13776         here...
13777         * modules/wmemcpy (configure.ac): ... to here.
13778
13779 2011-05-22  Bruno Haible  <bruno@clisp.org>
13780
13781         wmemcmp: Move AC_LIBOBJ invocations to module description.
13782         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13783         here...
13784         * modules/wmemcmp (configure.ac): ... to here.
13785
13786 2011-05-22  Bruno Haible  <bruno@clisp.org>
13787
13788         wmemchr: Move AC_LIBOBJ invocations to module description.
13789         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13790         here...
13791         * modules/wmemchr (configure.ac): ... to here.
13792
13793 2011-05-22  Bruno Haible  <bruno@clisp.org>
13794
13795         wcswidth: Move AC_LIBOBJ invocations to module description.
13796         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13797         here...
13798         * modules/wcswidth (configure.ac): ... to here.
13799
13800 2011-05-22  Bruno Haible  <bruno@clisp.org>
13801
13802         wcwidth: Respect rules for use of AC_LIBOBJ.
13803         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13804         invocation from here...
13805         * modules/wcwidth (configure.ac): ... to here.
13806         (Depends-on): Update conditions.
13807
13808 2011-05-22  Bruno Haible  <bruno@clisp.org>
13809
13810         wctype: Move AC_LIBOBJ invocations to module description.
13811         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13812         invocation from here...
13813         * modules/wctype (configure.ac): ... to here.
13814         (Depends-on): Update conditions.
13815
13816 2011-05-22  Bruno Haible  <bruno@clisp.org>
13817
13818         wctrans: Move AC_LIBOBJ invocations to module description.
13819         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13820         invocation from here...
13821         * modules/wctrans (configure.ac): ... to here.
13822
13823 2011-05-22  Bruno Haible  <bruno@clisp.org>
13824
13825         wctomb: Move AC_LIBOBJ invocations to module description.
13826         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13827         invocations from here...
13828         * modules/wctomb (configure.ac): ... to here.
13829
13830 2011-05-22  Bruno Haible  <bruno@clisp.org>
13831
13832         wctob: Move AC_LIBOBJ invocations to module description.
13833         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13834         gl_PREREQ_WCTOB invocations from here...
13835         * modules/wctob (configure.ac): ... to here.
13836         (Depends-on): Update conditions.
13837
13838 2011-05-22  Bruno Haible  <bruno@clisp.org>
13839
13840         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13841         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13842         here...
13843         * modules/wcsxfrm (configure.ac): ... to here.
13844
13845 2011-05-22  Bruno Haible  <bruno@clisp.org>
13846
13847         wcstok: Move AC_LIBOBJ invocations to module description.
13848         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13849         * modules/wcstok (configure.ac): ... to here.
13850
13851 2011-05-22  Bruno Haible  <bruno@clisp.org>
13852
13853         wcsstr: Move AC_LIBOBJ invocations to module description.
13854         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13855         * modules/wcsstr (configure.ac): ... to here.
13856
13857 2011-05-22  Bruno Haible  <bruno@clisp.org>
13858
13859         wcsspn: Move AC_LIBOBJ invocations to module description.
13860         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13861         * modules/wcsspn (configure.ac): ... to here.
13862
13863 2011-05-22  Bruno Haible  <bruno@clisp.org>
13864
13865         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13866         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13867         gl_PREREQ_WCSRTOMBS invocations from here...
13868         * modules/wcsrtombs (configure.ac): ... to here.
13869
13870 2011-05-22  Bruno Haible  <bruno@clisp.org>
13871
13872         wcsrchr: Move AC_LIBOBJ invocations to module description.
13873         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13874         here...
13875         * modules/wcsrchr (configure.ac): ... to here.
13876
13877 2011-05-22  Bruno Haible  <bruno@clisp.org>
13878
13879         wcspbrk: Move AC_LIBOBJ invocations to module description.
13880         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13881         here...
13882         * modules/wcspbrk (configure.ac): ... to here.
13883
13884 2011-05-22  Bruno Haible  <bruno@clisp.org>
13885
13886         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13887         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13888         gl_PREREQ_WCSNRTOMBS invocations from here...
13889         * modules/wcsnrtombs (configure.ac): ... to here.
13890
13891 2011-05-22  Bruno Haible  <bruno@clisp.org>
13892
13893         wcsnlen: Move AC_LIBOBJ invocations to module description.
13894         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13895         here...
13896         * modules/wcsnlen (configure.ac): ... to here.
13897
13898 2011-05-22  Bruno Haible  <bruno@clisp.org>
13899
13900         wcsncpy: Move AC_LIBOBJ invocations to module description.
13901         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13902         here...
13903         * modules/wcsncpy (configure.ac): ... to here.
13904
13905 2011-05-22  Bruno Haible  <bruno@clisp.org>
13906
13907         wcsncmp: Move AC_LIBOBJ invocations to module description.
13908         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13909         here...
13910         * modules/wcsncmp (configure.ac): ... to here.
13911
13912 2011-05-22  Bruno Haible  <bruno@clisp.org>
13913
13914         wcsncat: Move AC_LIBOBJ invocations to module description.
13915         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13916         here...
13917         * modules/wcsncat (configure.ac): ... to here.
13918
13919 2011-05-22  Bruno Haible  <bruno@clisp.org>
13920
13921         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13922         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13923         from here...
13924         * modules/wcsncasecmp (configure.ac): ... to here.
13925
13926 2011-05-22  Bruno Haible  <bruno@clisp.org>
13927
13928         wcslen: Move AC_LIBOBJ invocations to module description.
13929         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13930         * modules/wcslen (configure.ac): ... to here.
13931
13932 2011-05-22  Bruno Haible  <bruno@clisp.org>
13933
13934         wcsdup: Move AC_LIBOBJ invocations to module description.
13935         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13936         * modules/wcsdup (configure.ac): ... to here.
13937
13938 2011-05-22  Bruno Haible  <bruno@clisp.org>
13939
13940         wcscspn: Move AC_LIBOBJ invocations to module description.
13941         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13942         here...
13943         * modules/wcscspn (configure.ac): ... to here.
13944
13945 2011-05-22  Bruno Haible  <bruno@clisp.org>
13946
13947         wcscpy: Move AC_LIBOBJ invocations to module description.
13948         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13949         * modules/wcscpy (configure.ac): ... to here.
13950
13951 2011-05-22  Bruno Haible  <bruno@clisp.org>
13952
13953         wcscoll: Move AC_LIBOBJ invocations to module description.
13954         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13955         here...
13956         * modules/wcscoll (configure.ac): ... to here.
13957
13958 2011-05-22  Bruno Haible  <bruno@clisp.org>
13959
13960         wcscmp: Move AC_LIBOBJ invocations to module description.
13961         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13962         * modules/wcscmp (configure.ac): ... to here.
13963
13964 2011-05-22  Bruno Haible  <bruno@clisp.org>
13965
13966         wcschr: Move AC_LIBOBJ invocations to module description.
13967         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13968         * modules/wcschr (configure.ac): ... to here.
13969
13970 2011-05-22  Bruno Haible  <bruno@clisp.org>
13971
13972         wcscat: Move AC_LIBOBJ invocations to module description.
13973         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13974         * modules/wcscat (configure.ac): ... to here.
13975
13976 2011-05-22  Bruno Haible  <bruno@clisp.org>
13977
13978         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13979         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13980         here...
13981         * modules/wcscasecmp (configure.ac): ... to here.
13982
13983 2011-05-22  Bruno Haible  <bruno@clisp.org>
13984
13985         wcrtomb: Move AC_LIBOBJ invocations to module description.
13986         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13987         invocations from here...
13988         * modules/wcrtomb (configure.ac): ... to here.
13989
13990 2011-05-22  Bruno Haible  <bruno@clisp.org>
13991
13992         wcpncpy: Move AC_LIBOBJ invocations to module description.
13993         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13994         here...
13995         * modules/wcpncpy (configure.ac): ... to here.
13996
13997 2011-05-22  Bruno Haible  <bruno@clisp.org>
13998
13999         wcpcpy: Move AC_LIBOBJ invocations to module description.
14000         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
14001         * modules/wcpcpy (configure.ac): ... to here.
14002
14003 2011-05-22  Bruno Haible  <bruno@clisp.org>
14004
14005         waitpid: Move AC_LIBOBJ invocations to module description.
14006         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
14007         invocation from here...
14008         * modules/waitpid (configure.ac): ... to here.
14009
14010 2011-05-22  Bruno Haible  <bruno@clisp.org>
14011
14012         utimensat: Move AC_LIBOBJ invocations to module description.
14013         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
14014         here...
14015         * modules/utimensat (configure.ac): ... to here.
14016
14017 2011-05-22  Bruno Haible  <bruno@clisp.org>
14018
14019         usleep: Move AC_LIBOBJ invocations to module description.
14020         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
14021         here...
14022         * modules/usleep (configure.ac): ... to here.
14023
14024 2011-05-22  Bruno Haible  <bruno@clisp.org>
14025
14026         unlockpt: Move AC_LIBOBJ invocations to module description.
14027         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
14028         gl_PREREQ_UNLOCKPT invocations from here...
14029         * modules/unlockpt (configure.ac): ... to here.
14030
14031 2011-05-22  Bruno Haible  <bruno@clisp.org>
14032
14033         unlink: Respect rules for use of AC_LIBOBJ.
14034         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
14035         * modules/unlink (configure.ac): ... to here.
14036
14037 2011-05-22  Bruno Haible  <bruno@clisp.org>
14038
14039         uname: Move AC_LIBOBJ invocations to module description.
14040         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
14041         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
14042         here...
14043         * modules/uname (configure.ac): ... to here.
14044
14045 2011-05-22  Bruno Haible  <bruno@clisp.org>
14046
14047         ttyname_r: Move AC_LIBOBJ invocations to module description.
14048         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
14049         gl_PREREQ_TTYNAME_R invocations from here...
14050         * modules/ttyname_r (configure.ac): ... to here.
14051
14052 2011-05-22  Bruno Haible  <bruno@clisp.org>
14053
14054         tsearch: Move AC_LIBOBJ invocations to module description.
14055         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
14056         invocations from here...
14057         * modules/tsearch (configure.ac): ... to here.
14058
14059 2011-05-22  Bruno Haible  <bruno@clisp.org>
14060
14061         towctrans: Move AC_LIBOBJ invocations to module description.
14062         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
14063         AC_LIBOBJ invocation from here...
14064         * modules/towctrans (configure.ac): ... to here.
14065
14066 2011-05-22  Bruno Haible  <bruno@clisp.org>
14067
14068         tmpfile: Move AC_LIBOBJ invocations to module description.
14069         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
14070         invocations from here...
14071         * modules/tmpfile (configure.ac): ... to here.
14072
14073 2011-05-22  Bruno Haible  <bruno@clisp.org>
14074
14075         times: Move AC_LIBOBJ invocations to module description.
14076         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
14077         * modules/times (configure.ac): ... to here.
14078
14079 2011-05-22  Bruno Haible  <bruno@clisp.org>
14080
14081         time_r: Move AC_LIBOBJ invocations to module description.
14082         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
14083         invocations from here...
14084         * modules/time_r (configure.ac): ... to here.
14085
14086 2011-05-22  Bruno Haible  <bruno@clisp.org>
14087
14088         timegm: Move AC_LIBOBJ invocations to module description.
14089         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
14090         invocations from here...
14091         * modules/timegm (configure.ac): ... to here.
14092
14093 2011-05-22  Bruno Haible  <bruno@clisp.org>
14094
14095         tcgetsid: Move AC_LIBOBJ invocations to module description.
14096         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
14097         and gl_PREREQ_TCGETSID invocations from here...
14098         * modules/tcgetsid (configure.ac): ... to here.
14099         (Depends-on): Update conditions.
14100
14101 2011-05-22  Bruno Haible  <bruno@clisp.org>
14102
14103         symlinkat: Move AC_LIBOBJ invocations to module description.
14104         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
14105         here...
14106         * modules/symlinkat (configure.ac): ... to here.
14107
14108 2011-05-22  Bruno Haible  <bruno@clisp.org>
14109
14110         symlink: Move AC_LIBOBJ invocations to module description.
14111         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
14112         here...
14113         * modules/symlink (configure.ac): ... to here.
14114
14115 2011-05-22  Bruno Haible  <bruno@clisp.org>
14116
14117         strverscmp: Move AC_LIBOBJ invocations to module description.
14118         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
14119         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
14120         from here...
14121         * modules/strverscmp (configure.ac): ... to here.
14122
14123 2011-05-22  Bruno Haible  <bruno@clisp.org>
14124
14125         strtok_r: Move AC_LIBOBJ invocations to module description.
14126         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
14127         and gl_PREREQ_STRTOK_R invocations from here...
14128         * modules/strtok_r (configure.ac): ... to here.
14129         (Depends-on): Update conditions.
14130
14131 2011-05-22  Bruno Haible  <bruno@clisp.org>
14132
14133         strtoumax: Move AC_LIBOBJ invocations to module description.
14134         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
14135         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
14136         from here...
14137         * modules/strtoumax (configure.ac): ... to here.
14138
14139 2011-05-22  Bruno Haible  <bruno@clisp.org>
14140
14141         strtoimax: Move AC_LIBOBJ invocations to module description.
14142         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
14143         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
14144         from here...
14145         * modules/strtoimax (configure.ac): ... to here.
14146
14147 2011-05-22  Bruno Haible  <bruno@clisp.org>
14148
14149         strtoull: Move AC_LIBOBJ invocations to module description.
14150         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
14151         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
14152         from here...
14153         * modules/strtoull (configure.ac): ... to here.
14154
14155 2011-05-22  Bruno Haible  <bruno@clisp.org>
14156
14157         strtoll: Move AC_LIBOBJ invocations to module description.
14158         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
14159         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
14160         here...
14161         * modules/strtoll (configure.ac): ... to here.
14162
14163 2011-05-22  Bruno Haible  <bruno@clisp.org>
14164
14165         strtoul: Move AC_LIBOBJ invocations to module description.
14166         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
14167         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14168         * modules/strtoul (configure.ac): ... to here.
14169
14170 2011-05-22  Bruno Haible  <bruno@clisp.org>
14171
14172         strtol: Move AC_LIBOBJ invocations to module description.
14173         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
14174         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14175         * modules/strtol (configure.ac): ... to here.
14176
14177 2011-05-22  Bruno Haible  <bruno@clisp.org>
14178
14179         strtod: Move AC_LIBOBJ invocations to module description.
14180         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
14181         invocations from here...
14182         * modules/strtod (configure.ac): ... to here.
14183
14184 2011-05-22  Bruno Haible  <bruno@clisp.org>
14185
14186         strstr*: Move AC_LIBOBJ invocations to module description.
14187         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
14188         invocations from here...
14189         * modules/strstr-simple (configure.ac): ... to here.
14190         * modules/strstr (configure.ac): ... and here.
14191
14192 2011-05-22  Bruno Haible  <bruno@clisp.org>
14193
14194         strsignal: Move AC_LIBOBJ invocations to module description.
14195         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
14196         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
14197         * modules/strsignal (configure.ac): ... to here.
14198         (Depends-on): Update conditions.
14199
14200 2011-05-22  Bruno Haible  <bruno@clisp.org>
14201
14202         strsep: Move AC_LIBOBJ invocations to module description.
14203         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
14204         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
14205         here...
14206         * modules/strsep (configure.ac): ... to here.
14207
14208 2011-05-22  Bruno Haible  <bruno@clisp.org>
14209
14210         strptime: Move AC_LIBOBJ invocations to module description.
14211         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
14212         gl_PREREQ_STRPTIME invocations from here...
14213         * modules/strptime (configure.ac): ... to here.
14214
14215 2011-05-22  Bruno Haible  <bruno@clisp.org>
14216
14217         strpbrk: Move AC_LIBOBJ invocations to module description.
14218         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
14219         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
14220         here...
14221         * modules/strpbrk (configure.ac): ... to here.
14222
14223 2011-05-22  Bruno Haible  <bruno@clisp.org>
14224
14225         strnlen: Move AC_LIBOBJ invocations to module description.
14226         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
14227         invocations from here...
14228         * modules/strnlen (configure.ac): ... to here.
14229
14230 2011-05-22  Bruno Haible  <bruno@clisp.org>
14231
14232         strndup: Move AC_LIBOBJ invocations to module description.
14233         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
14234         invocations from here...
14235         * modules/strndup (configure.ac): ... to here.
14236         (Depends-on): Update conditions.
14237
14238 2011-05-22  Bruno Haible  <bruno@clisp.org>
14239
14240         strncat: Move AC_LIBOBJ invocations to module description.
14241         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
14242         invocations from here...
14243         * modules/strncat (configure.ac): ... to here.
14244
14245 2011-05-22  Bruno Haible  <bruno@clisp.org>
14246
14247         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
14248         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
14249         invocations from here...
14250         * modules/strdup (configure.ac): ... to here.
14251         * modules/strdup-posix (configure.ac): ... and here.
14252
14253 2011-05-22  Bruno Haible  <bruno@clisp.org>
14254
14255         strcspn: Move AC_LIBOBJ invocations to module description.
14256         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
14257         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
14258         here...
14259         * modules/strcspn (configure.ac): ... to here.
14260
14261 2011-05-22  Bruno Haible  <bruno@clisp.org>
14262
14263         strchrnul: Move AC_LIBOBJ invocations to module description.
14264         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
14265         gl_PREREQ_STRCHRNUL invocations from here...
14266         * modules/strchrnul (configure.ac): ... to here.
14267
14268 2011-05-22  Bruno Haible  <bruno@clisp.org>
14269
14270         strcasestr*: Move AC_LIBOBJ invocations to module description.
14271         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14272         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
14273         * modules/strcasestr-simple (configure.ac): ... to here.
14274         * modules/strcasestr (configure.ac): ... and here.
14275
14276 2011-05-22  Bruno Haible  <bruno@clisp.org>
14277
14278         strcase: Move AC_LIBOBJ invocations to module description.
14279         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
14280         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
14281         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
14282         gl_PREREQ_STRNCASECMP invocations from here...
14283         * modules/strcase (configure.ac): ... to here.
14284
14285 2011-05-22  Bruno Haible  <bruno@clisp.org>
14286
14287         stpncpy: Move AC_LIBOBJ invocations to module description.
14288         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
14289         here...
14290         * modules/stpncpy (configure.ac): ... to here.
14291
14292 2011-05-22  Bruno Haible  <bruno@clisp.org>
14293
14294         stpcpy: Move AC_LIBOBJ invocations to module description.
14295         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
14296         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
14297         here...
14298         * modules/stpcpy (configure.ac): ... to here.
14299
14300 2011-05-21  Bruno Haible  <bruno@clisp.org>
14301
14302         stat: Move AC_LIBOBJ invocations to module description.
14303         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
14304         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
14305         here...
14306         * modules/stat (configure.ac): ... to here.
14307
14308 2011-05-21  Bruno Haible  <bruno@clisp.org>
14309
14310         sleep: Move AC_LIBOBJ invocations to module description.
14311         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
14312         * modules/sleep (configure.ac): ... to here.
14313
14314 2011-05-21  Bruno Haible  <bruno@clisp.org>
14315
14316         signbit: Move AC_LIBOBJ invocations to module description.
14317         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
14318         * modules/signbit (configure.ac): ... to here.
14319
14320 2011-05-21  Bruno Haible  <bruno@clisp.org>
14321
14322         sigprocmask: Move AC_LIBOBJ invocations to module description.
14323         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
14324         gl_PREREQ_SIGPROMASK invocations from here...
14325         * modules/sigprocmask (configure.ac): ... to here.
14326
14327 2011-05-21  Bruno Haible  <bruno@clisp.org>
14328
14329         sigaction: Move AC_LIBOBJ invocations to module description.
14330         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
14331         gl_PREREQ_SIGACTION invocations from here...
14332         * modules/sigaction (configure.ac): ... to here.
14333
14334 2011-05-21  Bruno Haible  <bruno@clisp.org>
14335
14336         sig2str: Move AC_LIBOBJ invocations to module description.
14337         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
14338         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
14339         here...
14340         * modules/sig2str (configure.ac): ... to here.
14341
14342 2011-05-21  Bruno Haible  <bruno@clisp.org>
14343
14344         setlocale: Move AC_LIBOBJ invocations to module description.
14345         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
14346         gl_PREREQ_SETLOCALE invocations from here...
14347         * modules/setlocale (configure.ac): ... to here.
14348
14349 2011-05-21  Bruno Haible  <bruno@clisp.org>
14350
14351         unsetenv: Move AC_LIBOBJ invocations to module description.
14352         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
14353         and gl_PREREQ_UNSETENV invocations from here...
14354         * modules/unsetenv (configure.ac): ... to here.
14355         (Depends-on): Update.
14356
14357 2011-05-21  Bruno Haible  <bruno@clisp.org>
14358
14359         setenv: Move AC_LIBOBJ invocations to module description.
14360         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
14361         here...
14362         * modules/setenv (configure.ac): ... to here.
14363
14364 2011-05-21  Bruno Haible  <bruno@clisp.org>
14365
14366         selinux-h: Move AC_LIBOBJ invocations to module description.
14367         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
14368         AC_LIBOBJ invocation from here...
14369         * modules/selinux-h (configure.ac): ... to here.
14370
14371 2011-05-21  Bruno Haible  <bruno@clisp.org>
14372
14373         select: Respect rules for use of AC_LIBOBJ.
14374         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
14375         here...
14376         * modules/select (configure.ac): ... to here.
14377
14378 2011-05-21  Bruno Haible  <bruno@clisp.org>
14379
14380         scandir: Move AC_LIBOBJ invocations to module description.
14381         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
14382         invocations from here...
14383         * modules/scandir (configure.ac): ... to here.
14384
14385 2011-05-21  Bruno Haible  <bruno@clisp.org>
14386
14387         rpmatch: Move AC_LIBOBJ invocations to module description.
14388         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
14389         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
14390         here...
14391         * modules/rpmatch (configure.ac): ... to here.
14392
14393 2011-05-21  Bruno Haible  <bruno@clisp.org>
14394
14395         rmdir: Respect rules for use of AC_LIBOBJ.
14396         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
14397         * modules/rmdir (configure.ac): ... to here.
14398
14399 2011-05-21  Bruno Haible  <bruno@clisp.org>
14400
14401         renameat: Move AC_LIBOBJ invocations to module description.
14402         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
14403         here...
14404         * modules/renameat (configure.ac): ... to here.
14405
14406 2011-05-21  Bruno Haible  <bruno@clisp.org>
14407
14408         rename: Respect rules for use of AC_LIBOBJ.
14409         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
14410         here...
14411         * modules/rename (configure.ac): ... to here.
14412
14413 2011-05-21  Bruno Haible  <bruno@clisp.org>
14414
14415         remove: Move AC_LIBOBJ invocations to module description.
14416         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
14417         here...
14418         * modules/remove (configure.ac): ... to here.
14419
14420 2011-05-21  Bruno Haible  <bruno@clisp.org>
14421
14422         relocatable-lib: Move AC_LIBOBJ invocations to module description.
14423         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
14424         macro.
14425         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
14426         * modules/relocatable-lib (configure.ac): ... to here.
14427         * modules/relocatable-prog-wrapper (configure.ac): Invoke
14428         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
14429
14430 2011-05-21  Bruno Haible  <bruno@clisp.org>
14431
14432         relocatable-prog: Move AC_LIBOBJ invocations to module description.
14433         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
14434         here...
14435         * modules/relocatable-prog (configure.ac): ... to here.
14436
14437 2011-05-21  Bruno Haible  <bruno@clisp.org>
14438
14439         regex: Move AC_LIBOBJ invocations to module description.
14440         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
14441         invocations from here...
14442         * modules/regex (configure.ac): ... to here.
14443
14444 2011-05-21  Bruno Haible  <bruno@clisp.org>
14445
14446         realloc-*: Move AC_LIBOBJ invocations to module description.
14447         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
14448         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
14449         AC_LIBOBJ invocations from here...
14450         * modules/realloc-gnu (configure.ac): ... to here.
14451         * modules/realloc-posix (configure.ac): ... and here.
14452
14453 2011-05-21  Bruno Haible  <bruno@clisp.org>
14454
14455         readutmp: Move AC_LIBOBJ invocations to module description.
14456         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
14457         * modules/readutmp (configure.ac): ... to here.
14458
14459 2011-05-21  Bruno Haible  <bruno@clisp.org>
14460
14461         readlinkat: Move AC_LIBOBJ invocations to module description.
14462         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
14463         here...
14464         * modules/readlinkat (configure.ac): ... to here.
14465
14466 2011-05-21  Bruno Haible  <bruno@clisp.org>
14467
14468         readlink: Move AC_LIBOBJ invocations to module description.
14469         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
14470         gl_PREREQ_READLINK invocations from here...
14471         * modules/readlink (configure.ac): ... to here.
14472
14473 2011-05-21  Bruno Haible  <bruno@clisp.org>
14474
14475         readline: Move AC_LIBOBJ invocations to module description.
14476         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
14477         gl_PREREQ_READLINE invocations from here...
14478         * modules/readline (configure.ac): ... to here.
14479
14480 2011-05-21  Bruno Haible  <bruno@clisp.org>
14481
14482         read: Move AC_LIBOBJ invocations to module description.
14483         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
14484         * modules/read (configure.ac): ... to here.
14485
14486 2011-05-21  Bruno Haible  <bruno@clisp.org>
14487
14488         rawmemchr: Move AC_LIBOBJ invocations to module description.
14489         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
14490         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
14491         from here...
14492         * modules/rawmemchr (configure.ac): ... to here.
14493
14494 2011-05-21  Bruno Haible  <bruno@clisp.org>
14495
14496         random_r: Move AC_LIBOBJ invocations to module description.
14497         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
14498         gl_PREREQ_RANDOM_R invocations from here...
14499         * modules/random_r (configure.ac): ... to here.
14500
14501 2011-05-21  Bruno Haible  <bruno@clisp.org>
14502
14503         pwrite: Move AC_LIBOBJ invocations to module description.
14504         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
14505         * modules/pwrite (configure.ac): ... to here.
14506
14507 2011-05-21  Bruno Haible  <bruno@clisp.org>
14508
14509         putenv: Move AC_LIBOBJ invocations to module description.
14510         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
14511         * modules/putenv (configure.ac): ... to here.
14512
14513 2011-05-21  Bruno Haible  <bruno@clisp.org>
14514
14515         login_tty: Move AC_LIBOBJ invocations to module description.
14516         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
14517         * modules/login_tty (configure.ac): ... to here.
14518
14519 2011-05-21  Bruno Haible  <bruno@clisp.org>
14520
14521         openpty: Move AC_LIBOBJ invocations to module description.
14522         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
14523         * modules/openpty (configure.ac): ... to here.
14524
14525 2011-05-21  Bruno Haible  <bruno@clisp.org>
14526
14527         forkpty: Move AC_LIBOBJ invocations to module description.
14528         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
14529         * modules/forkpty (configure.ac): ... to here.
14530
14531 2011-05-21  Bruno Haible  <bruno@clisp.org>
14532
14533         ptsname: Move AC_LIBOBJ invocations to module description.
14534         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
14535         invocations from here...
14536         * modules/ptsname (configure.ac): ... to here.
14537
14538 2011-05-21  Bruno Haible  <bruno@clisp.org>
14539
14540         pread: Move AC_LIBOBJ invocations to module description.
14541         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
14542         * modules/pread (configure.ac): ... to here.
14543
14544 2011-05-21  Bruno Haible  <bruno@clisp.org>
14545
14546         posix_spawn*: Move AC_LIBOBJ invocations to module description.
14547         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
14548         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
14549         * modules/posix_spawn (configure.ac): ... to here.
14550         * modules/posix_spawnp (configure.ac): ... and here.
14551
14552 2011-05-21  Bruno Haible  <bruno@clisp.org>
14553
14554         popen: Move AC_LIBOBJ invocations to module description.
14555         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
14556         invocations from here...
14557         * modules/popen (configure.ac): ... to here.
14558
14559 2011-05-21  Bruno Haible  <bruno@clisp.org>
14560
14561         poll: Move AC_LIBOBJ invocations to module description.
14562         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14563         invocations from here...
14564         * modules/poll (configure.ac): ... to here.
14565
14566 2011-05-21  Bruno Haible  <bruno@clisp.org>
14567
14568         pipe-posix: Move AC_LIBOBJ invocations to module description.
14569         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14570         * modules/pipe-posix (configure.ac): ... to here.
14571
14572 2011-05-21  Bruno Haible  <bruno@clisp.org>
14573
14574         openat: Respect rules for use of AC_LIBOBJ.
14575         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14576         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14577         * modules/openat (configure.ac): ... to here.
14578
14579 2011-05-21  Bruno Haible  <bruno@clisp.org>
14580
14581         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14582         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14583         invocation from here...
14584         * modules/obstack-printf (configure.ac): ... to here.
14585         * modules/obstack-printf-posix (configure.ac): ... and here.
14586
14587 2011-05-21  Bruno Haible  <bruno@clisp.org>
14588
14589         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14590         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14591         from here...
14592         * modules/nl_langinfo (configure.ac): ... to here.
14593
14594 2011-05-21  Bruno Haible  <bruno@clisp.org>
14595
14596         nanosleep: Move AC_LIBOBJ invocations to module description.
14597         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14598         gl_PREREQ_NANOSLEEP invocations from here...
14599         * modules/nanosleep (configure.ac): ... to here.
14600
14601 2011-05-21  Bruno Haible  <bruno@clisp.org>
14602
14603         mountlist: Move AC_LIBOBJ invocations to module description.
14604         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14605         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14606         * modules/mountlist (configure.ac): ... to here.
14607
14608 2011-05-21  Bruno Haible  <bruno@clisp.org>
14609
14610         mktime: Respect rules for use of AC_LIBOBJ.
14611         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14612         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14613         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14614         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14615         * modules/mktime (configure.ac): ... to here.
14616         * modules/mktime-internal (configure.ac): ... and here.
14617         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14618
14619 2011-05-21  Bruno Haible  <bruno@clisp.org>
14620
14621         mkstemps: Move AC_LIBOBJ invocations to module description.
14622         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14623         here...
14624         * modules/mkstemps (configure.ac): ... to here.
14625
14626 2011-05-21  Bruno Haible  <bruno@clisp.org>
14627
14628         mkstemp: Move AC_LIBOBJ invocations to module description.
14629         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14630         gl_PREREQ_MKSTEMP invocations from here...
14631         * modules/mkstemp (configure.ac): ... to here.
14632
14633 2011-05-21  Bruno Haible  <bruno@clisp.org>
14634
14635         mkostemps: Move AC_LIBOBJ invocations to module description.
14636         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14637         here...
14638         * modules/mkostemps (configure.ac): ... to here.
14639
14640 2011-05-21  Bruno Haible  <bruno@clisp.org>
14641
14642         mkostemp: Move AC_LIBOBJ invocations to module description.
14643         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14644         gl_PREREQ_MKOSTEMP invocations from here...
14645         * modules/mkostemp (configure.ac): ... to here.
14646
14647 2011-05-21  Bruno Haible  <bruno@clisp.org>
14648
14649         mknod: Move AC_LIBOBJ invocations to module description.
14650         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14651         * modules/mknod (configure.ac): ... to here.
14652
14653 2011-05-21  Bruno Haible  <bruno@clisp.org>
14654
14655         mkfifoat: Move AC_LIBOBJ invocations to module description.
14656         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14657         here...
14658         * modules/mkfifoat (configure.ac): ... to here.
14659
14660 2011-05-21  Bruno Haible  <bruno@clisp.org>
14661
14662         mkfifo: Respect rules for use of AC_LIBOBJ.
14663         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14664         here...
14665         * modules/mkfifo (configure.ac): ... to here.
14666
14667 2011-05-21  Bruno Haible  <bruno@clisp.org>
14668
14669         mkdtemp: Move AC_LIBOBJ invocations to module description.
14670         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14671         invocations from here...
14672         * modules/mkdtemp (configure.ac): ... to here.
14673
14674 2011-05-21  Bruno Haible  <bruno@clisp.org>
14675
14676         mkdir: Move AC_LIBOBJ invocations to module description.
14677         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14678         * modules/mkdir (configure.ac): ... to here.
14679
14680 2011-05-21  Bruno Haible  <bruno@clisp.org>
14681
14682         memset: Move AC_LIBOBJ invocations to module description.
14683         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14684         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14685         here...
14686         * modules/memset (configure.ac): ... to here.
14687
14688 2011-05-21  Bruno Haible  <bruno@clisp.org>
14689
14690         memrchr: Move AC_LIBOBJ invocations to module description.
14691         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14692         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14693         here...
14694         * modules/memrchr (configure.ac): ... to here.
14695
14696 2011-05-21  Bruno Haible  <bruno@clisp.org>
14697
14698         mempcpy: Move AC_LIBOBJ invocations to module description.
14699         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14700         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14701         here...
14702         * modules/mempcpy (configure.ac): ... to here.
14703
14704 2011-05-21  Bruno Haible  <bruno@clisp.org>
14705
14706         memmove: Move AC_LIBOBJ invocations to module description.
14707         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14708         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14709         here...
14710         * modules/memmove (configure.ac): ... to here.
14711
14712 2011-05-21  Bruno Haible  <bruno@clisp.org>
14713
14714         memmem*: Move AC_LIBOBJ invocations to module description.
14715         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14716         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14717         here...
14718         (gl_FUNC_MEMMEM): ... and here...
14719         * modules/memmem-simple (configure.ac): ... to here.
14720         * modules/memmem (configure.ac): ... and here.
14721
14722 2011-05-21  Bruno Haible  <bruno@clisp.org>
14723
14724         memcpy: Move AC_LIBOBJ invocations to module description.
14725         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14726         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14727         here...
14728         * modules/memcpy (configure.ac): ... to here.
14729
14730 2011-05-21  Bruno Haible  <bruno@clisp.org>
14731
14732         memcmp: Simplify autoconf macro.
14733         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14734         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14735         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14736
14737 2011-05-21  Bruno Haible  <bruno@clisp.org>
14738
14739         memcmp: Move AC_LIBOBJ invocations to module description.
14740         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14741         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14742         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14743         * modules/memcmp (configure.ac): ... to here.
14744         (Depends-on): Update conditions.
14745
14746 2011-05-21  Bruno Haible  <bruno@clisp.org>
14747
14748         memchr: Respect rules for use of AC_LIBOBJ.
14749         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14750         invocations from here...
14751         * modules/memchr (configure.ac): ... to here.
14752
14753 2011-05-21  Bruno Haible  <bruno@clisp.org>
14754
14755         mbtowc: Move AC_LIBOBJ invocations to module description.
14756         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14757         invocations from here...
14758         * modules/mbtowc (configure.ac): ... to here.
14759
14760 2011-05-21  Bruno Haible  <bruno@clisp.org>
14761
14762         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14763         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14764         gl_PREREQ_MBSRTOWCS invocations from here...
14765         * modules/mbsrtowcs (configure.ac): ... to here.
14766
14767 2011-05-21  Bruno Haible  <bruno@clisp.org>
14768
14769         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14770         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14771         gl_PREREQ_MBSNRTOWCS invocations from here...
14772         * modules/mbsnrtowcs (configure.ac): ... to here.
14773
14774 2011-05-21  Bruno Haible  <bruno@clisp.org>
14775
14776         mbsinit: Move AC_LIBOBJ invocations to module description.
14777         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14778         invocations from here...
14779         * modules/mbsinit (configure.ac): ... to here.
14780
14781 2011-05-21  Bruno Haible  <bruno@clisp.org>
14782
14783         mbrlen: Move AC_LIBOBJ invocations to module description.
14784         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14785         invocations from here...
14786         * modules/mbrlen (configure.ac): ... to here.
14787
14788 2011-05-21  Bruno Haible  <bruno@clisp.org>
14789
14790         mbrtowc: Respect rules for use of AC_LIBOBJ.
14791         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14792         invocations from here...
14793         * modules/mbrtowc (configure.ac): ... to here.
14794
14795 2011-05-21  Bruno Haible  <bruno@clisp.org>
14796
14797         malloc-*: Move AC_LIBOBJ invocations to module description.
14798         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14799         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14800         AC_LIBOBJ invocations from here...
14801         * modules/malloc-gnu (configure.ac): ... to here.
14802         * modules/malloc-posix (configure.ac): ... and here.
14803
14804 2011-05-21  Bruno Haible  <bruno@clisp.org>
14805
14806         lstat, openat: Respect rules for use of AC_LIBOBJ.
14807         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14808         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14809         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14810         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14811         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14812         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14813         here.
14814         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14815
14816 2011-05-21  Bruno Haible  <bruno@clisp.org>
14817
14818         lseek: Move AC_LIBOBJ invocations to module description.
14819         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14820         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14821         * modules/lseek (configure.ac): ... to here.
14822
14823 2011-05-21  Bruno Haible  <bruno@clisp.org>
14824
14825         linkat: Move AC_LIBOBJ invocations to module description.
14826         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14827         here...
14828         * modules/linkat (configure.ac): ... to here.
14829
14830 2011-05-21  Bruno Haible  <bruno@clisp.org>
14831
14832         link: Respect rules for use of AC_LIBOBJ.
14833         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14834         * modules/link (configure.ac): ... to here.
14835
14836 2011-05-21  Bruno Haible  <bruno@clisp.org>
14837
14838         lchown: Move AC_LIBOBJ invocations to module description.
14839         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14840         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14841         * modules/lchown (configure.ac): ... to here.
14842
14843 2011-05-21  Bruno Haible  <bruno@clisp.org>
14844
14845         iswctype: Move AC_LIBOBJ invocations to module description.
14846         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14847         here...
14848         * modules/iswctype (configure.ac): ... to here.
14849
14850 2011-05-21  Bruno Haible  <bruno@clisp.org>
14851
14852         iswblank: Move AC_LIBOBJ invocations to module description.
14853         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14854         here...
14855         * modules/iswblank (configure.ac): ... to here.
14856
14857 2011-05-21  Bruno Haible  <bruno@clisp.org>
14858
14859         atanl: Move AC_LIBOBJ invocations to module description.
14860         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14861         * modules/atanl (configure.ac): ... to here.
14862
14863 2011-05-21  Bruno Haible  <bruno@clisp.org>
14864
14865         acosl: Move AC_LIBOBJ invocations to module description.
14866         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14867         * modules/acosl (configure.ac): ... to here.
14868
14869 2011-05-21  Bruno Haible  <bruno@clisp.org>
14870
14871         asinl: Respect rules for use of AC_LIBOBJ.
14872         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14873         * modules/asinl (configure.ac): ... to here.
14874
14875 2011-05-21  Bruno Haible  <bruno@clisp.org>
14876
14877         tanl: Move AC_LIBOBJ invocations to module description.
14878         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14879         * modules/tanl (configure.ac): ... to here.
14880
14881 2011-05-21  Bruno Haible  <bruno@clisp.org>
14882
14883         cosl: Move AC_LIBOBJ invocations to module description.
14884         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14885         * modules/cosl (configure.ac): ... to here.
14886
14887 2011-05-21  Bruno Haible  <bruno@clisp.org>
14888
14889         sinl: Move AC_LIBOBJ invocations to module description.
14890         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14891         * modules/sinl (configure.ac): ... to here.
14892
14893 2011-05-21  Bruno Haible  <bruno@clisp.org>
14894
14895         logl: Move AC_LIBOBJ invocations to module description.
14896         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14897         * modules/logl (configure.ac): ... to here.
14898
14899 2011-05-21  Bruno Haible  <bruno@clisp.org>
14900
14901         expl: Move AC_LIBOBJ invocations to module description.
14902         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14903         * modules/expl (configure.ac): ... to here.
14904
14905 2011-05-21  Bruno Haible  <bruno@clisp.org>
14906
14907         roundl: Move AC_LIBOBJ invocations to module description.
14908         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14909         * modules/roundl (configure.ac): ... to here.
14910
14911 2011-05-21  Bruno Haible  <bruno@clisp.org>
14912
14913         round: Move AC_LIBOBJ invocations to module description.
14914         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14915         * modules/round (configure.ac): ... to here.
14916
14917 2011-05-21  Bruno Haible  <bruno@clisp.org>
14918
14919         roundf: Move AC_LIBOBJ invocations to module description.
14920         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14921         * modules/roundf (configure.ac): ... to here.
14922
14923 2011-05-21  Bruno Haible  <bruno@clisp.org>
14924
14925         truncl: Move AC_LIBOBJ invocations to module description.
14926         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14927         * modules/truncl (configure.ac): ... to here.
14928
14929 2011-05-21  Bruno Haible  <bruno@clisp.org>
14930
14931         trunc: Move AC_LIBOBJ invocations to module description.
14932         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14933         * modules/trunc (configure.ac): ... to here.
14934
14935 2011-05-21  Bruno Haible  <bruno@clisp.org>
14936
14937         truncf: Move AC_LIBOBJ invocations to module description.
14938         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14939         * modules/truncf (configure.ac): ... to here.
14940
14941 2011-05-21  Bruno Haible  <bruno@clisp.org>
14942
14943         ceill: Move AC_LIBOBJ invocations to module description.
14944         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14945         * modules/ceill (configure.ac): ... to here.
14946
14947 2011-05-21  Bruno Haible  <bruno@clisp.org>
14948
14949         ceil: Move AC_LIBOBJ invocations to module description.
14950         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14951         * modules/ceil (configure.ac): ... to here.
14952
14953 2011-05-21  Bruno Haible  <bruno@clisp.org>
14954
14955         ceilf: Move AC_LIBOBJ invocations to module description.
14956         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14957         * modules/ceilf (configure.ac): ... to here.
14958
14959 2011-05-21  Bruno Haible  <bruno@clisp.org>
14960
14961         floorl: Respect rules for use of AC_LIBOBJ.
14962         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14963         * modules/floorl (configure.ac): ... to here.
14964
14965 2011-05-21  Bruno Haible  <bruno@clisp.org>
14966
14967         floor: Respect rules for use of AC_LIBOBJ.
14968         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14969         * modules/floor (configure.ac): ... to here.
14970
14971 2011-05-21  Bruno Haible  <bruno@clisp.org>
14972
14973         floorf: Move AC_LIBOBJ invocations to module description.
14974         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14975         * modules/floorf (configure.ac): ... to here.
14976
14977 2011-05-20  Bruno Haible  <bruno@clisp.org>
14978
14979         sqrtl: Respect rules for use of AC_LIBOBJ.
14980         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14981         * modules/sqrtl (configure.ac): ... to here.
14982
14983 2011-05-20  Bruno Haible  <bruno@clisp.org>
14984
14985         ldexpl: Respect rules for use of AC_LIBOBJ.
14986         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14987         * modules/ldexpl (configure.ac): ... to here.
14988
14989 2011-05-20  Bruno Haible  <bruno@clisp.org>
14990
14991         frexpl*: Respect rules for use of AC_LIBOBJ.
14992         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14993         invocation from here...
14994         * modules/frexpl (configure.ac): ... to here.
14995         * modules/frexpl-nolibm (configure.ac): ... and here.
14996
14997 2011-05-20  Bruno Haible  <bruno@clisp.org>
14998
14999         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
15000         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
15001         invocation from here...
15002         * modules/frexp (configure.ac): ... to here.
15003         * modules/frexp-nolibm (configure.ac): ... and here.
15004
15005 2011-05-20  Bruno Haible  <bruno@clisp.org>
15006
15007         isnan: Respect rules for use of AC_LIBOBJ.
15008         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
15009         invocations here.
15010         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
15011         REPLACE_ISNAN.
15012         * modules/isnand (configure.ac): Likewise.
15013         * modules/isnanl (configure.ac): Likewise.
15014
15015 2011-05-20  Bruno Haible  <bruno@clisp.org>
15016
15017         isnanl*: Respect rules for use of AC_LIBOBJ.
15018         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
15019         invocation from here...
15020         * modules/isnanl (configure.ac): ... to here.
15021         * modules/isnanl-nolibm (configure.ac): ... and here.
15022
15023 2011-05-20  Bruno Haible  <bruno@clisp.org>
15024
15025         isnand*: Move AC_LIBOBJ invocations to module description.
15026         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
15027         invocation from here...
15028         * modules/isnand (configure.ac): ... to here.
15029         * modules/isnand-nolibm (configure.ac): ... and here.
15030
15031 2011-05-20  Bruno Haible  <bruno@clisp.org>
15032
15033         isnanf*: Move AC_LIBOBJ invocations to module description.
15034         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
15035         invocation from here...
15036         * modules/isnanf (configure.ac): ... to here.
15037         * modules/isnanf-nolibm (configure.ac): ... and here.
15038
15039 2011-05-20  Bruno Haible  <bruno@clisp.org>
15040
15041         isnan*: Separate the AC_LIBOBJ invocations.
15042         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
15043         AC_LIBOBJ invocation.
15044         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
15045         here.
15046         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
15047         AC_LIBOBJ invocation.
15048         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
15049         here.
15050         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
15051         AC_LIBOBJ invocation.
15052         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
15053         here.
15054         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
15055
15056 2011-05-08  Bruno Haible  <bruno@clisp.org>
15057
15058         isinf: Move AC_LIBOBJ invocations to module description.
15059         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
15060         * modules/isinf (configure.ac): ... to here.
15061
15062 2011-05-08  Bruno Haible  <bruno@clisp.org>
15063
15064         isfinite: Move AC_LIBOBJ invocations to module description.
15065         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
15066         * modules/isfinite (configure.ac): ... to here.
15067
15068 2011-05-08  Bruno Haible  <bruno@clisp.org>
15069
15070         isblank: Move AC_LIBOBJ invocations to module description.
15071         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
15072         here...
15073         * modules/isblank (configure.ac): ... to here.
15074
15075 2011-05-08  Bruno Haible  <bruno@clisp.org>
15076
15077         isapipe: Move AC_LIBOBJ invocations to module description.
15078         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
15079         gl_PREREQ_ISAPIPE invocations from here...
15080         * modules/isapipe (configure.ac): ... to here.
15081         (Depends-on): Update condition.
15082
15083 2011-05-08  Bruno Haible  <bruno@clisp.org>
15084
15085         ioctl: Move AC_LIBOBJ invocations to module description.
15086         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
15087         invocations from here...
15088         * modules/ioctl (configure.ac): ... to here.
15089         (Depends-on): Update condition.
15090
15091 2011-05-08  Bruno Haible  <bruno@clisp.org>
15092
15093         imaxdiv: Move AC_LIBOBJ invocations to module description.
15094         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
15095         invocations from here...
15096         * modules/imaxdiv (configure.ac): ... to here.
15097
15098 2011-05-08  Bruno Haible  <bruno@clisp.org>
15099
15100         imaxabs: Move AC_LIBOBJ invocations to module description.
15101         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
15102         invocations from here...
15103         * modules/imaxabs (configure.ac): ... to here.
15104
15105 2011-05-08  Bruno Haible  <bruno@clisp.org>
15106
15107         getaddrinfo: Move AC_LIBOBJ invocations to module description.
15108         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
15109         AC_LIBOBJ invocations from here...
15110         * modules/getaddrinfo (configure.ac): ... to here.
15111         (Depends-on): Add conditions.
15112
15113 2011-05-08  Bruno Haible  <bruno@clisp.org>
15114
15115         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15116         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
15117         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15118         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
15119         (gl_PREREQ_INET_PTON): ... from here.
15120         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
15121         gl_PREREQ_INET_PTON here.
15122         (Depends-on): Update condition.
15123
15124 2011-05-08  Bruno Haible  <bruno@clisp.org>
15125
15126         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15127         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
15128         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15129         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
15130         (gl_PREREQ_INET_NTOP): ... from here.
15131         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
15132         gl_PREREQ_INET_NTOP here.
15133         (Depends-on): Update condition.
15134
15135 2011-05-08  Bruno Haible  <bruno@clisp.org>
15136
15137         iconv_open: Move AC_LIBOBJ invocations to module description.
15138         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
15139         AC_LIBOBJ invocations from here...
15140         * modules/iconv_open (configure.ac): ... to here.
15141
15142 2011-05-08  Bruno Haible  <bruno@clisp.org>
15143
15144         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
15145         If module 'iconv_open' is among the main modules and module
15146         'iconv_open-utf' is among the tests dependencies, then
15147         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
15148         return the special iconv_t values. Therefore iconv() and iconv_close()
15149         must support these special iconv_t values, already in lib, not only in
15150         tests.
15151         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
15152         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
15153         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
15154         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
15155         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
15156         (Depends-on): Add the dependencies of iconv_open-utf.
15157         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
15158         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
15159         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
15160
15161 2011-05-08  Bruno Haible  <bruno@clisp.org>
15162
15163         group-member: Move AC_LIBOBJ invocations to module description.
15164         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
15165         gl_PREREQ_GROUP_MEMBER invocations from here...
15166         * modules/group-member (configure.ac): ... to here.
15167
15168 2011-05-08  Bruno Haible  <bruno@clisp.org>
15169
15170         grantpt: Move AC_LIBOBJ invocations to module description.
15171         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
15172         invocations from here...
15173         * modules/grantpt (configure.ac): ... to here.
15174
15175 2011-05-08  Bruno Haible  <bruno@clisp.org>
15176
15177         glob: Move AC_LIBOBJ invocations to module description.
15178         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
15179         from here...
15180         * modules/glob (configure.ac): ... to here.
15181
15182 2011-05-08  Bruno Haible  <bruno@clisp.org>
15183
15184         getusershell: Move AC_LIBOBJ invocations to module description.
15185         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
15186         Move AC_LIBOBJ invocation from here...
15187         * modules/getusershell (configure.ac): ... to here.
15188         (Depends-on): Update condition.
15189
15190 2011-05-08  Bruno Haible  <bruno@clisp.org>
15191
15192         gettimeofday: Move AC_LIBOBJ invocations to module description.
15193         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15194         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
15195         gl_PREREQ_GETTIMEOFDAY invocations from here...
15196         * modules/gettimeofday (configure.ac): ... to here.
15197
15198 2011-05-08  Bruno Haible  <bruno@clisp.org>
15199
15200         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
15201         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
15202         just gl_FUNC_TZSET.
15203         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
15204         (gl_FUNC_TZSET_CLOBBER): Remove actions.
15205         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
15206         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
15207
15208 2011-05-08  Bruno Haible  <bruno@clisp.org>
15209
15210         getsubopt: Move AC_LIBOBJ invocations to module description.
15211         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
15212         gl_PREREQ_GETSUBOPT invocations from here...
15213         * modules/getsubopt (configure.ac): ... to here.
15214
15215 2011-05-08  Bruno Haible  <bruno@clisp.org>
15216
15217         getpass-gnu: Move AC_LIBOBJ invocations to module description.
15218         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
15219         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
15220         * modules/getpass-gnu (configure.ac): ... to here.
15221
15222 2011-05-08  Bruno Haible  <bruno@clisp.org>
15223
15224         getpass: Move AC_LIBOBJ invocations to module description.
15225         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
15226         gl_PREREQ_GETPASS invocations from here...
15227         * modules/getpass (configure.ac): ... to here.
15228
15229 2011-05-08  Bruno Haible  <bruno@clisp.org>
15230
15231         getpagesize: Move AC_LIBOBJ invocations to module description.
15232         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
15233         from here...
15234         * modules/getpagesize (configure.ac): ... to here.
15235
15236 2011-05-08  Bruno Haible  <bruno@clisp.org>
15237
15238         getopt: Move AC_LIBOBJ invocations to module description.
15239         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
15240         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
15241         invocations from here...
15242         * modules/getopt-gnu (configure.ac): ... to here.
15243         * modules/getopt-posix (configure.ac): ... and here.
15244         (Depends-on): Update condition.
15245
15246 2011-05-08  Bruno Haible  <bruno@clisp.org>
15247
15248         getopt, argp: Respect rules for use of AC_LIBOBJ.
15249         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
15250         (gl_REPLACE_GETOPT_ALWAYS): New macro.
15251         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
15252         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
15253
15254 2011-05-08  Bruno Haible  <bruno@clisp.org>
15255
15256         getlogin_r: Move AC_LIBOBJ invocations to module description.
15257         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
15258         gl_PREREQ_GETLOGIN_R invocations from here...
15259         * modules/getlogin_r (configure.ac): ... to here.
15260
15261 2011-05-08  Bruno Haible  <bruno@clisp.org>
15262
15263         getlogin: Move AC_LIBOBJ invocations to module description.
15264         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
15265         here...
15266         * modules/getlogin (configure.ac): ... to here.
15267
15268 2011-05-08  Bruno Haible  <bruno@clisp.org>
15269
15270         getloadavg: Move AC_LIBOBJ invocations to module description.
15271         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
15272         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
15273         * modules/getloadavg (configure.ac): ... to here.
15274
15275 2011-05-08  Bruno Haible  <bruno@clisp.org>
15276
15277         gethrxtime: Move AC_LIBOBJ invocations to module description.
15278         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
15279         LIB_GETHRXTIME from here...
15280         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
15281         invocations from here...
15282         * modules/gethrxtime (configure.ac): ... to here.
15283
15284 2011-05-08  Bruno Haible  <bruno@clisp.org>
15285
15286         gethostname: Move AC_LIBOBJ invocations to module description.
15287         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
15288         gl_PREREQ_GETHOSTNAME invocations from here...
15289         * modules/gethostname (configure.ac): ... to here.
15290
15291 2011-05-08  Bruno Haible  <bruno@clisp.org>
15292
15293         getgroups: Move AC_LIBOBJ invocations to module description.
15294         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
15295         here...
15296         * modules/getgroups (configure.ac): ... to here.
15297
15298 2011-05-08  Bruno Haible  <bruno@clisp.org>
15299
15300         getdtablesize: Move AC_LIBOBJ invocations to module description.
15301         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
15302         invocation from here...
15303         * modules/getdtablesize (configure.ac): ... to here.
15304
15305 2011-05-08  Bruno Haible  <bruno@clisp.org>
15306
15307         getdomainname: Move AC_LIBOBJ invocations to module description.
15308         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
15309         gl_PREREQ_GETDOMAINNAME invocations from here...
15310         * modules/getdomainname (configure.ac): ... to here.
15311
15312 2011-05-08  Bruno Haible  <bruno@clisp.org>
15313
15314         getline: Move AC_LIBOBJ invocations to module description.
15315         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
15316         invocations from here...
15317         * modules/getline (configure.ac): ... to here.
15318
15319 2011-05-08  Bruno Haible  <bruno@clisp.org>
15320
15321         getline: Simplify.
15322         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
15323         It's already handled through the module dependency.
15324
15325 2011-05-08  Bruno Haible  <bruno@clisp.org>
15326
15327         getdelim: Move AC_LIBOBJ invocations to module description.
15328         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
15329         and gl_PREREQ_GETDELIM invocations from here...
15330         * modules/getdelim (configure.ac): ... to here.
15331         (Depends-on): Fix condition.
15332
15333 2011-05-08  Bruno Haible  <bruno@clisp.org>
15334
15335         getcwd: Move AC_LIBOBJ invocations to module description.
15336         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
15337         invocations from here...
15338         * modules/getcwd (configure.ac): ... to here.
15339
15340 2011-05-08  Bruno Haible  <bruno@clisp.org>
15341
15342         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
15343         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
15344         here...
15345         * modules/getcwd-lgpl (configure.ac): ... to here.
15346
15347 2011-05-07  Bruno Haible  <bruno@clisp.org>
15348
15349         crypto/gc: Move AC_LIBOBJ invocations to module description.
15350         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
15351         * modules/crypto/gc (configure.ac): ... to here.
15352
15353 2011-05-07  Bruno Haible  <bruno@clisp.org>
15354
15355         fwriting: Move AC_LIBOBJ invocations to module description.
15356         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
15357         here...
15358         * modules/fwriting (configure.ac): ... to here.
15359
15360 2011-05-07  Bruno Haible  <bruno@clisp.org>
15361
15362         fwritable: Move AC_LIBOBJ invocations to module description.
15363         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
15364         here...
15365         * modules/fwritable (configure.ac): ... to here.
15366
15367 2011-05-07  Bruno Haible  <bruno@clisp.org>
15368
15369         futimens: Move AC_LIBOBJ invocations to module description.
15370         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
15371         here...
15372         * modules/futimens (configure.ac): ... to here.
15373
15374 2011-05-07  Bruno Haible  <bruno@clisp.org>
15375
15376         ftruncate: Move AC_LIBOBJ invocations to module description.
15377         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
15378         gl_PREREQ_FTRUNCATE invocations from here...
15379         * modules/ftruncate (configure.ac): ... to here.
15380
15381 2011-05-07  Bruno Haible  <bruno@clisp.org>
15382
15383         fsync: Move AC_LIBOBJ invocations to module description.
15384         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
15385         invocations from here...
15386         * modules/fsync (configure.ac): ... to here.
15387
15388 2011-05-07  Bruno Haible  <bruno@clisp.org>
15389
15390         fsusage: Move AC_LIBOBJ invocations to module description.
15391         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
15392         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
15393         * modules/fsusage (configure.ac): ... to here.
15394
15395 2011-05-07  Bruno Haible  <bruno@clisp.org>
15396
15397         freopen: Move AC_LIBOBJ invocations to module description.
15398         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
15399         invocations from here...
15400         * modules/freopen (configure.ac): ... to here.
15401
15402 2011-05-07  Bruno Haible  <bruno@clisp.org>
15403
15404         free: Move AC_LIBOBJ invocations to module description.
15405         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
15406         invocations from here...
15407         * modules/free (configure.ac): ... to here.
15408
15409 2011-05-07  Bruno Haible  <bruno@clisp.org>
15410
15411         freadable: Move AC_LIBOBJ invocations to module description.
15412         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
15413         here...
15414         * modules/freadable (configure.ac): ... to here.
15415
15416 2011-05-07  Bruno Haible  <bruno@clisp.org>
15417
15418         fpurge: Move AC_LIBOBJ invocations to module description.
15419         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
15420         invocations from here...
15421         * modules/fpurge (configure.ac): ... to here.
15422
15423 2011-05-07  Bruno Haible  <bruno@clisp.org>
15424
15425         fpending: Move AC_LIBOBJ invocations to module description.
15426         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
15427         gl_FUNC_FPENDING.
15428         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
15429         invocations from here...
15430         * modules/fpending (configure.ac): ... to here.
15431
15432 2011-05-07  Bruno Haible  <bruno@clisp.org>
15433
15434         fopen: Move AC_LIBOBJ invocations to module description.
15435         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
15436         invocations from here...
15437         * modules/fopen (configure.ac): ... to here.
15438
15439 2011-05-07  Bruno Haible  <bruno@clisp.org>
15440
15441         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
15442         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
15443         gl_FUNC_FNMATCH_POSIX.
15444         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
15445         invocations from here...
15446         * modules/fnmatch (configure.ac): ... to here.
15447         * modules/fnmatch-gnu (configure.ac): ... and here.
15448
15449 2011-05-07  Bruno Haible  <bruno@clisp.org>
15450
15451         flock: Move AC_LIBOBJ invocations to module description.
15452         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
15453         invocations from here...
15454         * modules/flock (configure.ac): ... to here.
15455
15456 2011-05-07  Bruno Haible  <bruno@clisp.org>
15457
15458         fileblocks: Move AC_LIBOBJ invocations to module description.
15459         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
15460         gl_PREREQ_FILEBLOCKS invocations from here...
15461         * modules/fileblocks (configure.ac): ... to here.
15462
15463 2011-05-06  Bruno Haible  <bruno@clisp.org>
15464
15465         fflush: Move AC_LIBOBJ invocations to module description.
15466         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
15467         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
15468         invocations from here...
15469         * modules/fflush (configure.ac): ... to here.
15470
15471 2011-05-06  Bruno Haible  <bruno@clisp.org>
15472
15473         fdopendir: Move AC_LIBOBJ invocations to module description.
15474         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
15475         here...
15476         * modules/fdopendir (configure.ac): ... to here.
15477         (Depends-on): Improve conditions.
15478
15479 2011-05-06  Bruno Haible  <bruno@clisp.org>
15480
15481         _Exit: Move AC_LIBOBJ invocations to module description.
15482         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
15483         invocations from here...
15484         * modules/_Exit (configure.ac): ... to here.
15485
15486 2011-05-21  Bruno Haible  <bruno@clisp.org>
15487
15488         euidaccess: Respect rules for use of AC_LIBOBJ.
15489         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15490         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
15491         from here...
15492         * modules/euidaccess (configure.ac): ... to here.
15493
15494 2011-05-06  Bruno Haible  <bruno@clisp.org>
15495
15496         error: Move AC_LIBOBJ invocations to module description.
15497         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
15498         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
15499         invocations from here...
15500         * modules/error (configure.ac): ... to here.
15501
15502 2011-05-06  Bruno Haible  <bruno@clisp.org>
15503
15504         duplocale: Move AC_LIBOBJ invocations to module description.
15505         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
15506         gl_PREREQ_DUPLOCALE invocations from here...
15507         * modules/duplocale (configure.ac): ... to here.
15508
15509 2011-05-05  Bruno Haible  <bruno@clisp.org>
15510
15511         dirfd: Move AC_LIBOBJ invocations to module description.
15512         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
15513         gl_FUNC_DIRFD.
15514         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
15515         here...
15516         * modules/dirfd (configure.ac): ... to here.
15517         (Depends-on): Fix condition.
15518
15519 2011-05-05  Bruno Haible  <bruno@clisp.org>
15520
15521         chown: Respect rules for use of AC_LIBOBJ.
15522         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
15523         * modules/chown (configure.ac): ... to here.
15524
15525 2011-05-05  Bruno Haible  <bruno@clisp.org>
15526
15527         chdir-long: Move AC_LIBOBJ invocations to module description.
15528         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
15529         gl_PREREQ_CHDIR_LONG invocations from here...
15530         * modules/chdir-long (configure.ac): ... to here.
15531
15532 2011-05-05  Bruno Haible  <bruno@clisp.org>
15533
15534         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
15535         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
15536         from here...
15537         * modules/canonicalize-lgpl (configure.ac): ... to here.
15538
15539 2011-05-05  Bruno Haible  <bruno@clisp.org>
15540
15541         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
15542         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
15543         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
15544         REPLACE_CALLOC.
15545         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
15546         * modules/calloc-gnu (configure.ac): Likewise.
15547
15548 2011-05-05  Bruno Haible  <bruno@clisp.org>
15549
15550         btowc: Move AC_LIBOBJ invocations to module description.
15551         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
15552         invocations from here...
15553         * modules/btowc (configure.ac): ... to here.
15554
15555 2011-05-21  Bruno Haible  <bruno@clisp.org>
15556
15557         atexit: Move AC_LIBOBJ invocations to module description.
15558         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15559         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15560         here...
15561         * modules/atexit (configure.ac): ... to here.
15562
15563 2011-05-05  Bruno Haible  <bruno@clisp.org>
15564
15565         atoll: Move AC_LIBOBJ invocations to module description.
15566         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15567         invocations from here...
15568         * modules/atoll (configure.ac): ... to here.
15569
15570 2011-05-05  Bruno Haible  <bruno@clisp.org>
15571
15572         argz: Move AC_LIBOBJ invocations to module description.
15573         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15574         * modules/argz (configure.ac): ... to here.
15575
15576 2011-05-05  Bruno Haible  <bruno@clisp.org>
15577
15578         alphasort: Move AC_LIBOBJ invocations to module description.
15579         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15580         gl_PREREQ_ALPHASORT invocations from here...
15581         * modules/alphasort (configure.ac): ... to here.
15582
15583 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15584
15585         verify: new macro verify_expr; verify_true deprecated
15586         * NEWS: Mention this.
15587         * doc/verify.texi (Compile-time Assertions): Document this.
15588         * lib/verify.h (verify_true): Deprecate.
15589         (verify_expr): New macro.
15590         * tests/test-verify.c (function): Test verify_expr.
15591
15592 2011-06-14  Jim Meyering  <meyering@redhat.com>
15593
15594         init.sh: give more portable redirection-related advice in a comment
15595         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15596         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15597         for lots of discussion.  Stefano Lattarini suggested the solution
15598         of putting "9>&2" after the command.  Reported by Bruno Haible.
15599
15600 2011-06-13  Bruno Haible  <bruno@clisp.org>
15601
15602         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15603         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15604         'none'.
15605
15606 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15607
15608         ftoastr: use strtof only if HAVE_STRTOF
15609         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15610         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15611         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15612         * modules/ftoastr (configure.ac): Check for strtof.
15613
15614 2011-06-13  Bruno Haible  <bruno@clisp.org>
15615
15616         gnulib-tool: Addendum to 2011-06-08 commit.
15617         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15618         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15619
15620 2011-06-13  Bruno Haible  <bruno@clisp.org>
15621
15622         fseeko: Provide a non-inline replacement of fseek().
15623         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15624         * modules/fseeko (Depends-on): Add fseek.
15625         * modules/fseek (License): Change to LGPLv2+.
15626
15627 2011-06-13  Bruno Haible  <bruno@clisp.org>
15628
15629         ftello: Provide a non-inline replacement of ftell().
15630         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15631         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15632         not have ftello() (such as on mingw).
15633         * modules/ftello (Depends-on): Add ftell.
15634         * modules/ftell (License): Change to LGPLv2+.
15635
15636 2011-05-07  Bruno Haible  <bruno@clisp.org>
15637
15638         ftell: Move AC_LIBOBJ invocations to module description.
15639         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15640         * modules/ftell (configure.ac): ... to here.
15641
15642 2011-05-07  Bruno Haible  <bruno@clisp.org>
15643
15644         ftello: Respect rules for use of AC_LIBOBJ.
15645         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15646         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15647         here...
15648         * modules/ftello (configure.ac): ... to here.
15649
15650 2011-05-07  Bruno Haible  <bruno@clisp.org>
15651
15652         fseeko: Simplify.
15653         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15654         (gl_FUNC_FSEEKO): Inline it here.
15655
15656 2011-05-07  Bruno Haible  <bruno@clisp.org>
15657
15658         fseek: Move AC_LIBOBJ invocations to module description.
15659         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15660         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15661         * modules/fseek (configure.ac): ... to here.
15662
15663 2011-05-07  Bruno Haible  <bruno@clisp.org>
15664
15665         fseek: Respect rules for use of AC_LIBOBJ.
15666         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15667         here...
15668         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15669
15670 2011-05-07  Bruno Haible  <bruno@clisp.org>
15671
15672         fseeko: Respect rules for use of AC_LIBOBJ.
15673         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15674         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15675         here...
15676         * modules/fseeko (configure.ac): ... to here.
15677
15678 2011-06-13  Bruno Haible  <bruno@clisp.org>
15679
15680         gnulib-tool: Allow comments in the 'Depends-on' section.
15681         * doc/gnulib.texi (Module description): Mention comment syntax in the
15682         Depends-on section.
15683         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15684
15685 2011-06-13  Bruno Haible  <bruno@clisp.org>
15686
15687         file-set.h: guard __attibute__ use, now that it's not always defined
15688         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15689         versions that support it.  This fixes a coreutils build failure with
15690         the vendor cc on HP-UX 11.31.
15691
15692 2011-06-12  Bruno Haible  <bruno@clisp.org>
15693
15694         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15695         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15696         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15697         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15698         (acl, aclsort): New declarations.
15699         (aclv_nontrivial): New declaration.
15700         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15701         (file_has_acl): Read also the second kind of HP-UX ACLs.
15702         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15703         kind of HP-UX ACLs if the first kind fails.
15704         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15705         second kind of HP-UX ACLs.
15706         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15707         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15708         agree.
15709         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15710         hpuxjfs.
15711         Handle hpuxjfs.
15712         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15713         hpuxjfs.
15714         Handle hpuxjfs.
15715         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15716         (func_test_same_acls): Use both lsacl and getacl.
15717         Handle hpuxjfs.
15718         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15719         (func_test_same_acls): Use both lsacl and getacl.
15720         Handle hpuxjfs.
15721
15722 2011-06-12  Bruno Haible  <bruno@clisp.org>
15723
15724         acl: Complete the 2010-08-10 fix.
15725         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15726         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15727         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15728         explicitly.
15729         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15730         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15731
15732 2011-06-12  Bruno Haible  <bruno@clisp.org>
15733
15734         spawn-pipe tests: Comments.
15735         * tests/test-spawn-pipe-child.c (main): Update comment.
15736         Reported by James Youngman <jay@gnu.org>.
15737
15738 2011-06-11  James Youngman  <jay@gnu.org>
15739
15740         New module 'stat-size'.
15741         * modules/stat-size: New module.  Provides macros for accessing
15742         file size information in instances of struct stat.  Depends on the
15743         fileblocks module because it calls st_blocks.
15744         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15745         * doc/gnulib.texi: Include stat-size.texi.
15746         * doc/stat-size.texi: Documentation for this module.
15747         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15748         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15749         AC_STRUCT_ST_BLOCKS.
15750
15751 2011-06-09  Bruno Haible  <bruno@clisp.org>
15752
15753         thread: Support pthreads-win32.
15754         * lib/glthread/thread.h (gl_thread_self): Define differently on
15755         pthreads-win32.
15756         (gl_null_thread): New declaration.
15757         (gl_thread_self_pointer): New macro.
15758         * lib/glthread/thread.c (gl_null_thread): New constant.
15759         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15760         gl_thread_self.
15761         * tests/test-tls.c: Likewise.
15762         Suggested by Paul Eggert. Reported by Eric Blake.
15763
15764 2011-06-09  Bruno Haible  <bruno@clisp.org>
15765
15766         thread: Fix confusion between NULL and 0.
15767         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15768         Reported by Paul Eggert.
15769
15770 2011-06-09  Bruno Haible  <bruno@clisp.org>
15771
15772         spawn-pipe tests: Avoid test failure on HP-UX 11.
15773         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15774         is closed.
15775
15776 2011-06-09  Bruno Haible  <bruno@clisp.org>
15777
15778         acl tests: Fix compilation error on HP-UX 11.
15779         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15780
15781 2011-06-09  Bruno Haible  <bruno@clisp.org>
15782
15783         rmdir: Avoid test failure on HP-UX 10.20.
15784         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15785         EEXIST.
15786
15787 2011-06-08  Eric Blake  <eblake@redhat.com>
15788
15789         perror: fix test on mingw
15790         * modules/perror-tests (Depends-on): Add dup2.
15791
15792         strerror_r-posix: fix on MacOS
15793         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15794         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15795         logic bug.
15796         * lib/strerror_r.c (strerror_r): Fix the bug.
15797         * lib/strerror.c (strerror): Likewise.
15798         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15799         problem.
15800         * doc/posix-functions/strerror.texi (strerror): Likewise.
15801         * doc/posix-functions/perror.texi (perror): Likewise.
15802         * tests/test-strerror.c (main): Enhance test.
15803         * tests/test-strerror_r.c (main): Likewise.
15804
15805 2011-06-08  Bruno Haible  <bruno@clisp.org>
15806
15807         gnulib-tool: Better isolation between different gnulib-tool invocations.
15808         * gnulib-tool: New option --witness-c-macro.
15809         (witness_c_macro): New variable.
15810         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15811         AM_CPPFLAGS define it as a C macro.
15812         (func_emit_tests_Makefile_am): Likewise.
15813         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15814         read it from there.
15815         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15816         m4_define, not AC_DEFUN.
15817         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15818         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15819         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15820         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15821         s|...|...|, to substitute the values of the GNULIB_* module indicator
15822         variables.
15823         * modules/dirent (Makefile.am): Likewise.
15824         * modules/fcntl-h (Makefile.am): Likewise.
15825         * modules/iconv-h (Makefile.am): Likewise.
15826         * modules/langinfo (Makefile.am): Likewise.
15827         * modules/locale (Makefile.am): Likewise.
15828         * modules/math (Makefile.am): Likewise.
15829         * modules/netdb (Makefile.am): Likewise.
15830         * modules/poll-h (Makefile.am): Likewise.
15831         * modules/pty (Makefile.am): Likewise.
15832         * modules/search (Makefile.am): Likewise.
15833         * modules/signal (Makefile.am): Likewise.
15834         * modules/spawn (Makefile.am): Likewise.
15835         * modules/stdio (Makefile.am): Likewise.
15836         * modules/stdlib (Makefile.am): Likewise.
15837         * modules/string (Makefile.am): Likewise.
15838         * modules/sys_ioctl (Makefile.am): Likewise.
15839         * modules/sys_select (Makefile.am): Likewise.
15840         * modules/sys_socket (Makefile.am): Likewise.
15841         * modules/sys_stat (Makefile.am): Likewise.
15842         * modules/sys_times (Makefile.am): Likewise.
15843         * modules/sys_utsname (Makefile.am): Likewise.
15844         * modules/sys_wait (Makefile.am): Likewise.
15845         * modules/termios (Makefile.am): Likewise.
15846         * modules/time (Makefile.am): Likewise.
15847         * modules/unistd (Makefile.am): Likewise.
15848         * modules/wchar (Makefile.am): Likewise.
15849
15850 2011-06-08  Eric Blake  <eblake@redhat.com>
15851
15852         strerror: simplify replacement
15853         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15854         * modules/strerror (configure.ac): No prereqs needed here...
15855         * modules/strerror-override (configure.ac): ...but this needs it.
15856         (Files): Add file for needed prereq macro.
15857
15858 2011-06-08  Bruno Haible  <bruno@clisp.org>
15859
15860         strerror_r-posix: Tweaks.
15861         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15862         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15863         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15864         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15865         (gl_FUNC_STRERROR_R): ... to here.
15866         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15867
15868 2011-06-07  Eric Blake  <eblake@redhat.com>
15869
15870         perror: document fixed bugs
15871         * doc/posix-functions/perror.texi (perror): Document recent
15872         patches.
15873
15874 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15875
15876         stat-time: get_stat_birthtime failure is better-defined
15877         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15878         return a timestamp whose tv_sec and tv_nsec values are both -1.
15879         Previously, the spec said only that the tv_nsec value was negative.
15880         This upward-compatible change simplifies GNU tar a bit.
15881
15882 2011-06-07  Eric Blake  <eblake@redhat.com>
15883
15884         strerror_r-posix: work around cygwin 1.7.9
15885         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15886         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15887         bug without replacing strerror_r.
15888         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15889         strerror_r is buggy, but without requiring strerror_r compilation.
15890         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15891
15892         test-perror: relax test to ignore cygwin bug
15893         * tests/test-perror2.c (main): Relax test on requiring detection
15894         of stream errors, and use unbuffered stream.
15895         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15896         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15897         * doc/posix-functions/fputc.texi (fputc): Likewise.
15898         * doc/posix-functions/fputs.texi (fputs): Likewise.
15899         * doc/posix-functions/fputws.texi (fputws): Likewise.
15900         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15901         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15902         * doc/posix-functions/getopt.texi (getopt): Likewise.
15903         * doc/posix-functions/perror.texi (perror): Likewise.
15904         * doc/posix-functions/printf.texi (printf): Likewise.
15905         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15906         * doc/posix-functions/psignal.texi (psignal): Likewise.
15907         * doc/posix-functions/putc.texi (putc): Likewise.
15908         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15909         Likewise.
15910         * doc/posix-functions/putchar.texi (putchar): Likewise.
15911         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15912         Likewise.
15913         * doc/posix-functions/puts.texi (puts): Likewise.
15914         * doc/posix-functions/putwc.texi (putwc): Likewise.
15915         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15916         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15917         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15918         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15919         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15920         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15921         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15922         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15923
15924 2011-05-22  Bruno Haible  <bruno@clisp.org>
15925
15926         strerror: Move AC_LIBOBJ invocations to module description.
15927         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15928         gl_PREREQ_STRERROR invocations from here...
15929         * modules/strerror (configure.ac): ... to here.
15930
15931 2011-05-21  Bruno Haible  <bruno@clisp.org>
15932
15933         perror: Use common idiom.
15934         * modules/perror (configure.ac): Reorder statements.
15935
15936 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15937
15938         tests: fix usage message in 'mktempd_'
15939         * tests/init.sh (mktempd_): In the usage message, use literal
15940         'mktempd_', not '$ME' (which is even undefined), as the name of
15941         the subroutine.
15942
15943 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15944
15945         tests init: new function 'fatal_', for hard errors
15946         Before this patch, the only way offered by tests/init.sh to
15947         properly signal a hard error was the `framework_failure_'
15948         function.  But the error message issued by that function,
15949         as its name would suggest, refers to a set-up failure in the
15950         testsuite, while hard errors can obviously also be due to
15951         other reasons.  The best way to fix this inconsistency is to
15952         introduce a new function with a more general error message.
15953         * tests/init.sh (fatal_): New function.
15954
15955 2011-06-06  Eric Blake  <eblake@redhat.com>
15956
15957         canonicalize-lgpl: use common idiom
15958         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15959         over newer POSIX -Rf.
15960         Reported by Bruno Haible.
15961
15962         canonicalize-lgpl: work around AIX realpath bug
15963         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15964         * doc/posix-functions/realpath.texi (realpath): Document it.
15965         Reported by Bruno Haible.
15966
15967         strerror: work around FreeBSD bug
15968         * lib/strerror.c (strerror): Special case 0.
15969         Reported by Bruno Haible.
15970
15971         strerror-override: avoid bloating errno module
15972         * modules/errno (Files, configure.ac): Move replacement strings...
15973         * modules/strerror-override: ...to new module.
15974         * modules/strerror (Depends-on): Add strerror-override.
15975         * modules/strerror_r-posix (Depends-on): Likewise.
15976         * MODULES.html.sh: Document new module.
15977         Reported by Bruno Haible.
15978
15979 2011-06-06  Bruno Haible  <bruno@clisp.org>
15980
15981         spawn-pipe tests: Rename program.
15982         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15983         * tests/test-spawn-pipe-child.c: Update comment.
15984         * tests/test-spawn-pipe.sh: Update.
15985         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15986
15987         spawn-pipe tests: Link the child program only against libc.
15988         * tests/test-spawn-pipe-child.c: New file, extracted from
15989         tests/test-spawn-pipe.c.
15990         (main): Expect only one argument.
15991         (is_open): New function, copied from tests/test-pipe.c.
15992         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15993         (child_main): Remove function.
15994         (test_pipe): Pass only one argument to the child program.
15995         (main): Remove child process code. Expect the child program's name as
15996         first argument.
15997         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15998         argument.
15999         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
16000         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
16001         test-spawn-pipe-child against no libraries.
16002
16003 2011-06-06  Bruno Haible  <bruno@clisp.org>
16004
16005         careadlinkat: Avoid mismatch between ssize_t and int.
16006         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
16007         * lib/careadlinkat.c (careadlinkatcwd): Define always.
16008
16009 2011-06-06  Jim Meyering  <meyering@redhat.com>
16010
16011         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
16012         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
16013         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
16014
16015 2011-06-05  Bruno Haible  <bruno@clisp.org>
16016
16017         ansi-c++-opt: Interoperability with libtool.
16018         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
16019         set the variable to "no", not to ":".
16020         * NEWS: Mention the change.
16021
16022 2011-06-05  Bruno Haible  <bruno@clisp.org>
16023
16024         acl: Fix test failure on AIX 7.
16025         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
16026         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
16027
16028 2011-06-05  Bruno Haible  <bruno@clisp.org>
16029
16030         pipe-filter-ii: Fix test failure on AIX and IRIX.
16031         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
16032         with EAGAIN, retry with a smaller buffer size.
16033
16034 2011-06-05  Bruno Haible  <bruno@clisp.org>
16035
16036         localename: Fix link dependencies.
16037         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
16038         * modules/localename-tests (Makefile.am): Link test-localename with
16039         $(LIBTHREAD).
16040
16041 2011-06-05  Bruno Haible  <bruno@clisp.org>
16042
16043         error: Avoid gcc warning.
16044         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
16045
16046 2011-06-05  Bruno Haible  <bruno@clisp.org>
16047
16048         unsetenv: Avoid gcc warning.
16049         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
16050
16051 2011-06-05  Bruno Haible  <bruno@clisp.org>
16052
16053         setenv: Avoid gcc warning.
16054         * lib/setenv.c (setenv): Provide declaration if system lacks it.
16055
16056 2011-06-05  Bruno Haible  <bruno@clisp.org>
16057
16058         sys_select: Ensure memset is declared also on AIX 7.
16059         * lib/sys_select.in.h: Include <string.h> also on AIX.
16060         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
16061         self-contained also on AIX 7.1.
16062
16063 2011-06-04  Jim Meyering  <meyering@redhat.com>
16064
16065         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
16066         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
16067         function name, "error".
16068         (_gl_translatable_diag_func_re): New configurable variable.
16069
16070 2011-06-04  Bruno Haible  <bruno@clisp.org>
16071
16072         getopt: Avoid gcc warning.
16073         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
16074
16075 2011-06-04  Bruno Haible  <bruno@clisp.org>
16076
16077         strerror_r: Fix comments.
16078         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
16079         commit.
16080
16081 2011-06-04  Bruno Haible  <bruno@clisp.org>
16082
16083         perror: Fix compilation error.
16084         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
16085         Undefine fprintf, not sprintf.
16086         * modules/perror (Depends-on): Remove intprops, verify.
16087
16088 2011-06-04  Bruno Haible  <bruno@clisp.org>
16089
16090         setlocale: Enable replacement on Cygwin 1.5.
16091         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
16092         Cygwin 1.5.x.
16093         * doc/posix-functions/setlocale.texi: Mention that the problem with the
16094         LC_CTYPE category also exists on Cygwin 1.5.x.
16095
16096 2011-06-04  Bruno Haible  <bruno@clisp.org>
16097
16098         strerror-override: Don't disable symbol renamings.
16099         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
16100         * lib/strerror-override.c: Include config.h.
16101         (strerror_override): Don't undefine.
16102
16103 2011-06-03  Bruno Haible  <bruno@clisp.org>
16104
16105         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
16106         * lib/localename.h: Update copyright header.
16107         * lib/localename.c: Likewise.
16108         * lib/relocatable.h: Likewise.
16109         * lib/relocatable.c: Likewise.
16110
16111 2011-06-02  Bruno Haible  <bruno@clisp.org>
16112
16113         doc: Fix a module name.
16114         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
16115
16116 2011-06-02  Bruno Haible  <bruno@clisp.org>
16117
16118         pipe2: Remove dependency on 'nonblocking' module.
16119         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
16120         O_NONBLOCK is defined by gnulib.
16121         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
16122         is zero.
16123         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
16124         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
16125         defined by gnulib.
16126         (get_nonblocking_flag): New function.
16127         (main): Test O_NONBLOCK flag only if it is nonzero.
16128         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
16129
16130 2011-06-03  Jim Meyering  <meyering@redhat.com>
16131
16132         maint: three new prohibit-header-without-use rules
16133         Prohibit use of cloexec.h, posixver.h, same.h without use.
16134         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
16135         (sc_prohibit_posixver_without_use): Likewise.
16136         (sc_prohibit_same_without_use): Likewise.
16137
16138 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16139
16140         allocator: 'die' routine is now given requested size
16141         * lib/allocator.h (struct allocator.die): New size arg.
16142         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
16143         If the actual problem is an ssize_t limitation, not a size_t or
16144         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
16145
16146 2011-06-01  Eric Blake  <eblake@redhat.com>
16147
16148         strerror: drop strerror_r dependency
16149         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
16150         * lib/strerror-override.c (strerror_override): ...to new file.
16151         * lib/strerror-override.h: Add prototype.
16152         * lib/strerror-impl.h: Delete.
16153         * lib/strerror.c (strerror): New implementation.
16154         * modules/errno (Files): Add new files.
16155         (configure.ac): Compile new file as appropriate.
16156         * modules/strerror (Files): Drop unused file.
16157         (Depends-on): Drop strerror_r-posix.
16158         * MODULES.html.sh: Document strerror_r-posix.
16159         Requested by Sam Steingold.
16160
16161         perror: call strerror_r directly
16162         * modules/perror (Files): Drop strerror-impl.h.
16163         * lib/perror.c (perror): Use our own stack buffer, rather than
16164         calling a wrapper that uses static storage.
16165         * doc/posix-functions/perror.texi (perror): Document a limitation
16166         of our replacement.
16167
16168         strerror_r: fix includes for FreeBSD
16169         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
16170         since we use abort on some platforms.
16171         Reported by Matthias Bolte.
16172
16173 2011-05-31  Bruno Haible  <bruno@clisp.org>
16174
16175         Fix link errors in tests: openat-die uses gettext-h.
16176         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
16177         against $(LIBINTL).
16178         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
16179         against $(LIBINTL).
16180         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
16181         $(LIBINTL).
16182         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
16183         against $(LIBINTL).
16184         * modules/linkat-tests (Makefile.am): Link test-linkat against
16185         $(LIBINTL).
16186         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
16187         $(LIBINTL).
16188         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
16189         against $(LIBINTL).
16190         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
16191         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
16192         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
16193         $(LIBINTL).
16194         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
16195         $(LIBINTL).
16196         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
16197         $(LIBINTL).
16198         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16199
16200 2011-05-31  Bruno Haible  <bruno@clisp.org>
16201
16202         Fix link errors in tests: wait-process uses gettext-h.
16203         * modules/nonblocking-pipe-tests (Makefile.am): Set
16204         test_nonblocking_pipe_main_LDADD.
16205         * modules/nonblocking-socket-tests (Makefile.am): Link
16206         test-nonblocking-socket-main against $(LIBINTL).
16207         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16208
16209 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16210
16211         assert-h: work around 'verify' incompatibility
16212         * lib/verify.h: Use @...@ directives, not ifdef.
16213         * modules/assert-h (assert.h): Implement the directives.
16214         (assert.h): Substitute the symbol-prefix more consistently.
16215
16216 2011-05-29  Jim Meyering  <meyering@redhat.com>
16217
16218         trim: remove three superfluous assignments
16219         * lib/trim.c (trim2): Remove three superfluous assignments
16220         and correct brace positioning.
16221
16222 2011-05-29  Bruno Haible  <bruno@clisp.org>
16223
16224         wctype-h: Avoid namespace pollution on Solaris 2.6.
16225         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
16226         identifiers.
16227         * doc/posix-headers/wctype.texi: Mention the problem.
16228         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16229
16230 2011-05-28  Jim Meyering  <meyering@redhat.com>
16231
16232         parse-datetime.y: accommodate -Wstrict-overflow
16233         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
16234         placate -Wstrict-overflow.
16235
16236         trim: avoid a warning from -O2 -Wstrict-overflow
16237         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
16238
16239 2011-05-29  Bruno Haible  <bruno@clisp.org>
16240
16241         gnulib-tool: Fix bug in yesterday's commit.
16242         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
16243         twice.
16244
16245 2011-05-29  Bruno Haible  <bruno@clisp.org>
16246
16247         Allow multiple gnulib generated include files to be combined.
16248         * gnulib-tool (func_compute_include_guard_prefix): New function.
16249         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
16250         ${gl_include_guard_prefix} references.
16251         (func_import, func_create_testdir): Invoke
16252         func_compute_include_guard_prefix.
16253         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
16254         * lib/ctype.in.h: Likewise.
16255         * lib/dirent.in.h: Likewise.
16256         * lib/errno.in.h: Likewise.
16257         * lib/fcntl.in.h: Likewise.
16258         * lib/float.in.h: Likewise.
16259         * lib/getopt.in.h: Likewise.
16260         * lib/iconv.in.h: Likewise.
16261         * lib/langinfo.in.h: Likewise.
16262         * lib/locale.in.h: Likewise.
16263         * lib/math.in.h: Likewise.
16264         * lib/netdb.in.h: Likewise.
16265         * lib/netinet_in.in.h: Likewise.
16266         * lib/poll.in.h: Likewise.
16267         * lib/pthread.in.h: Likewise.
16268         * lib/pty.in.h: Likewise.
16269         * lib/sched.in.h: Likewise.
16270         * lib/se-selinux.in.h: Likewise.
16271         * lib/search.in.h: Likewise.
16272         * lib/signal.in.h: Likewise.
16273         * lib/spawn.in.h: Likewise.
16274         * lib/stdarg.in.h: Likewise.
16275         * lib/stddef.in.h: Likewise.
16276         * lib/stdint.in.h: Likewise.
16277         * lib/stdio.in.h: Likewise.
16278         * lib/stdlib.in.h: Likewise.
16279         * lib/string.in.h: Likewise.
16280         * lib/strings.in.h: Likewise.
16281         * lib/sys_file.in.h: Likewise.
16282         * lib/sys_ioctl.in.h: Likewise.
16283         * lib/sys_select.in.h: Likewise.
16284         * lib/sys_socket.in.h: Likewise.
16285         * lib/sys_stat.in.h: Likewise.
16286         * lib/sys_time.in.h: Likewise.
16287         * lib/sys_times.in.h: Likewise.
16288         * lib/sys_uio.in.h: Likewise.
16289         * lib/sys_utsname.in.h: Likewise.
16290         * lib/sys_wait.in.h: Likewise.
16291         * lib/sysexits.in.h: Likewise.
16292         * lib/termios.in.h: Likewise.
16293         * lib/time.in.h: Likewise.
16294         * lib/unistd.in.h: Likewise.
16295         * lib/wchar.in.h: Likewise.
16296         * lib/wctype.in.h: Likewise.
16297         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
16298         * modules/ctype (Makefile.am): Likewise.
16299         * modules/dirent (Makefile.am): Likewise.
16300         * modules/errno (Makefile.am): Likewise.
16301         * modules/fcntl-h (Makefile.am): Likewise.
16302         * modules/float (Makefile.am): Likewise.
16303         * modules/getopt-posix (Makefile.am): Likewise.
16304         * modules/iconv-h (Makefile.am): Likewise.
16305         * modules/langinfo (Makefile.am): Likewise.
16306         * modules/locale (Makefile.am): Likewise.
16307         * modules/math (Makefile.am): Likewise.
16308         * modules/netdb (Makefile.am): Likewise.
16309         * modules/netinet_in (Makefile.am): Likewise.
16310         * modules/poll-h (Makefile.am): Likewise.
16311         * modules/pthread (Makefile.am): Likewise.
16312         * modules/pty (Makefile.am): Likewise.
16313         * modules/sched (Makefile.am): Likewise.
16314         * modules/search (Makefile.am): Likewise.
16315         * modules/selinux-h (Makefile.am): Likewise.
16316         * modules/signal (Makefile.am): Likewise.
16317         * modules/spawn (Makefile.am): Likewise.
16318         * modules/stdarg (Makefile.am): Likewise.
16319         * modules/stddef (Makefile.am): Likewise.
16320         * modules/stdint (Makefile.am): Likewise.
16321         * modules/stdio (Makefile.am): Likewise.
16322         * modules/stdlib (Makefile.am): Likewise.
16323         * modules/string (Makefile.am): Likewise.
16324         * modules/strings (Makefile.am): Likewise.
16325         * modules/sys_file (Makefile.am): Likewise.
16326         * modules/sys_ioctl (Makefile.am): Likewise.
16327         * modules/sys_select (Makefile.am): Likewise.
16328         * modules/sys_socket (Makefile.am): Likewise.
16329         * modules/sys_stat (Makefile.am): Likewise.
16330         * modules/sys_time (Makefile.am): Likewise.
16331         * modules/sys_times (Makefile.am): Likewise.
16332         * modules/sys_uio (Makefile.am): Likewise.
16333         * modules/sys_utsname (Makefile.am): Likewise.
16334         * modules/sys_wait (Makefile.am): Likewise.
16335         * modules/sysexits (Makefile.am): Likewise.
16336         * modules/termios (Makefile.am): Likewise.
16337         * modules/time (Makefile.am): Likewise.
16338         * modules/unistd (Makefile.am): Likewise.
16339         * modules/wchar (Makefile.am): Likewise.
16340         * modules/wctype-h (Makefile.am): Likewise.
16341         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
16342
16343 2011-05-29  Bruno Haible  <bruno@clisp.org>
16344
16345         assert-h: Allow multiple gnulib generated replacements to coexist.
16346         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
16347
16348 2011-05-29  Bruno Haible  <bruno@clisp.org>
16349
16350         argp: Allow coexistence with strerror_r-posix module.
16351         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
16352         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
16353         by gnulib's <string.h> replacement), assume it has the POSIX signature,
16354         not the glibc signature.
16355
16356 2011-05-28  Bruno Haible  <bruno@clisp.org>
16357
16358         gnulib-tool: Alternative structure of testdirs, similar to --import.
16359         * gnulib-tool: New option --single-configure.
16360         (func_usage): Document it.
16361         (single_configure): New variable.
16362         (func_modules_transitive_closure_separately,
16363         func_modules_transitive_closure_separately,
16364         func_determine_use_libtests, func_modules_add_dummy_separately,
16365         func_modules_to_filelist_separately): New functions, extracted from
16366         func_import.
16367         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
16368         (func_import): Use the new functions.
16369         (func_create_testdir): Set final_modules. Handle $single_configure =
16370         true case.
16371
16372 2011-05-28  Bruno Haible  <bruno@clisp.org>
16373
16374         getloadavg: Remove an unreliable safety check.
16375         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
16376         getloadavg.c is in place.
16377         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
16378         Reported by Sam Steingold <sds@gnu.org>.
16379
16380 2011-05-28  Bruno Haible  <bruno@clisp.org>
16381
16382         doc: Cleanup yet another file produced by texinfo.tex.
16383         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
16384
16385 2011-05-28  Bruno Haible  <bruno@clisp.org>
16386
16387         Finish the conditional dependencies mechanism.
16388         * gnulib-tool: New option --no-conditional-dependencies.
16389         (func_usage): Document it. Don't mark --conditional-dependencies as
16390         experimental.
16391         (cond_dependencies): The possible values can now be true, false, empty.
16392         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
16393         (func_import): Store setting in gnulib-cache.m4 and read it from there.
16394         * doc/gnulib-tool.texi (Conditional dependencies): New section.
16395
16396 2011-05-28  Bruno Haible  <bruno@clisp.org>
16397
16398         doc: Use a recent texinfo.tex.
16399         * doc/Makefile (tex_opts): New variable.
16400         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
16401
16402 2011-05-28  Jim Meyering  <meyering@redhat.com>
16403
16404         intprops.h: adjust comment to match code change
16405         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
16406         only once, it *may* have side effects.  Also fix an unrelated typo.
16407         (_GL_INT_SIGNED): Likewise.
16408
16409 2011-05-26  Simon Josefsson  <simon@josefsson.org>
16410
16411         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
16412
16413 2011-05-26  Bruno Haible  <bruno@clisp.org>
16414
16415         mbsrchr: Avoid collision with system function on Interix.
16416         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
16417         Reported by Markus Duft <mduft@gentoo.org>.
16418
16419 2011-05-15  James Youngman  <jay@gnu.org>
16420
16421         getopt: for ambiguous options, enumerate the possibilities.
16422         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
16423         the ambiguous options when an ambiguous prefix is given. This was
16424         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
16425         glibc change was
16426         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
16427
16428 2011-05-25  Eric Blake  <eblake@redhat.com>
16429
16430         getcwd: work around mingw bug
16431         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
16432         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16433         Reported by Matthias Bolte.
16434
16435 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
16436
16437         test-intprops: disable -Wtype-limits diagnostics
16438         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
16439         diagnostics.  Otherwise, the integer overflow macros generate many
16440         diagnostics.  Reported by Jim Meyering in
16441         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16442
16443         intprops: shorten, to pacify gcc -Woverlength-strings
16444         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
16445         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
16446         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
16447         likely to run afoul of C compiler limits for string constant lengths.
16448         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16449
16450 2011-05-24  Eric Blake  <eblake@redhat.com>
16451
16452         docs: document recently fixed glibc printf bug
16453         * doc/posix-functions/fprintf.texi (fprintf): Document it.
16454         * doc/posix-functions/printf.texi (printf): Likewise.
16455         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16456         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16457
16458         closein-tests: convert to init.sh
16459         * modules/closein-tests (Files): Add init.sh
16460         * tests/test-closein.sh Use it.
16461
16462         yesno-tests: convert to init.sh
16463         * modules/yesno-tests (Files): Add init.sh.
16464         * tests/test-yesno.sh: Use it.
16465
16466         atexit-tests: ensure reliable exit status
16467         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
16468         Reported by Bruno Haible.
16469
16470 2011-05-24  Bruno Haible  <bruno@clisp.org>
16471
16472         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
16473         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
16474         gl_PREREQ_STRERROR_R invocations from here...
16475         * modules/strerror_r-posix (configure.ac): ... to here.
16476
16477 2011-05-24  Eric Blake  <eblake@redhat.com>
16478
16479         strerror_r: fix missing header
16480         * lib/strerror_r.c: Avoid compiler warning about snprintf.
16481
16482         strerror_r: fix AIX test failures
16483         * lib/strerror_r.c (strerror_r): Convert silent truncation to
16484         ERANGE failure.
16485
16486         strerror_r: fix Solaris test failures
16487         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
16488         failures.
16489         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16490
16491         strerror_r: enforce POSIX recommendations
16492         * lib/strerror_r.c (safe_copy): New helper method.
16493         (strerror_r): Guarantee a non-empty string.
16494         * tests/test-strerror_r.c (main): Enhance tests to incorporate
16495         recent POSIX rulings and to match our strerror guarantees.
16496         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16497
16498 2011-05-24  Jim Meyering  <meyering@redhat.com>
16499
16500         test-perror2.c: avoid warning about unused variable
16501         * tests/test-perror2.c (main): Remove declaration of unused "fp".
16502
16503 2011-05-24  Eric Blake  <eblake@redhat.com>
16504
16505         perror: avoid spurious test failure on HP-UX
16506         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
16507
16508         tests: fix logic bug in init.sh
16509         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
16510         shell.
16511
16512 2011-05-24  Jim Meyering  <meyering@redhat.com>
16513
16514         utimensat: do not reference an out-of-scope buffer
16515         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
16516         declared in an inner scope, yet "times" would be dereferenced outside
16517         the scope in which "ts" was valid.
16518         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
16519         of ts[2] "out/up", so that the use of aliased "times" (via
16520         "times = ts;") does not end up referencing an out-of-scope "ts"
16521
16522         opendir-safer.c: don't clobber errno; don't close negative FD
16523         * lib/opendir-safer.c (opendir_safer):
16524         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
16525         file descriptor, and more importantly, don't clobber the
16526         offending errno value with EINVAL.  Before, upon failure
16527         of dup_safer, we would pass the negative file descriptor to
16528         fdopendir, which would clobber errno.
16529
16530 2011-05-23  Bruno Haible  <bruno@clisp.org>
16531
16532         idcache: Fix module description.
16533         * modules/idcache (Include): Set to "idcache.h".
16534
16535 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16536
16537         gnulib-tool: fix portability problem with MacOS sed
16538         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
16539         before the "}".  Problem reported by Leo in
16540         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
16541         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
16542         sed_extract_condition1, sed_extract_condition2.
16543
16544 2011-05-23  Bruno Haible  <bruno@clisp.org>
16545
16546         hash: Simplify autoconf macro.
16547         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
16548
16549 2011-05-23  Bruno Haible  <bruno@clisp.org>
16550
16551         getugroups: Fix module description.
16552         * modules/getugroups (Include): Set to "getugroups.h".
16553
16554 2011-05-23  Bruno Haible  <bruno@clisp.org>
16555
16556         linkat: Simplify autoconf macro.
16557         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16558
16559 2011-05-23  Bruno Haible  <bruno@clisp.org>
16560             Eric Blake  <eblake@redhat.com>
16561
16562         linkat, renameat: Update dependencies.
16563         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16564         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16565         symlinkat.
16566
16567 2011-05-23  Jim Meyering  <meyering@redhat.com>
16568
16569         maint.mk: more tight_scope improvements
16570         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16571         (_gl_TS_headers): Define only in if-0'd block.
16572         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16573         sometimes we must *not* use it.  Adjust uses accordingly.
16574         (sc_tight_scope): Use much simpler grep-based test to determine
16575         whether we skip this rule.
16576
16577         maint.mk: generalize/improve the tight-scope rule
16578         * top/maint.mk: Emit a warning when the test is skipped.
16579         (_gl_TS_dir): Add $(srcdir)/ prefix.
16580         (_gl_TS_function_match): Simplify, rather than trying
16581         to enumerate common types.  Otherwise, it would fail to match an
16582         "extern unsigned char const *" declaration in idutils.
16583         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16584         a way to support use of that type of macro.
16585         (_gl_TS_var_match): Simplify regexp.
16586         (_gl_TS_obj_files): New configurable variable.
16587         (_gl_TS_headers): Likewise.
16588
16589 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16590
16591         verify: fix bug when gnulib <assert.h> is also included
16592         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16593         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16594         Perhaps there's a better way, but this fixes the immediate problem.
16595         Problem reported by Bruno Haible in
16596         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16597
16598 2011-05-22  Bruno Haible  <bruno@clisp.org>
16599
16600         xgetcwd: Simplify autoconf macro.
16601         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16602
16603 2011-05-22  Bruno Haible  <bruno@clisp.org>
16604
16605         New module 'mktime-internal'.
16606         * modules/mktime-internal: New file.
16607         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16608         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16609         mktime_internal as a C macro if libc has __mktime_internal.
16610         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16611         conditions.
16612         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16613
16614 2011-05-22  Bruno Haible  <bruno@clisp.org>
16615
16616         timegm: Correct mktime replacement statements.
16617         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16618         defining mktime as a C macro. This completes a 2009-07-28 commit.
16619
16620 2011-05-22  Bruno Haible  <bruno@clisp.org>
16621
16622         timegm: Simplify autoconf macro.
16623         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16624
16625 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16626
16627         clock-time: change to LGPLv2+.
16628         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16629         BSD-like but we have no mark for that; this is good enough for now.
16630
16631 2011-05-21  Bruno Haible  <bruno@clisp.org>
16632
16633         strerror_r: Fix comments.
16634         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16635
16636 2011-05-21  Bruno Haible  <bruno@clisp.org>
16637
16638         relocatable-prog-wrapper: Fix possible link error.
16639         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16640         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16641         (gl_FUNC_SETENV): ... to here.
16642         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16643         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16644
16645 2011-05-21  Bruno Haible  <bruno@clisp.org>
16646
16647         relocatable-prog-wrapper: Assume strerror() exists.
16648         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16649         m4/strerror.m4.
16650         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16651         * lib/relocwrapper.c: Remove mention of strerror module.
16652         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16653         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16654         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16655         C macro.
16656
16657 2011-05-21  Bruno Haible  <bruno@clisp.org>
16658
16659         select: Simplify replacement idiom.
16660         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16661         Win32 platforms.
16662         * lib/sys_select.in.h (select): Simplify accordingly.
16663         * modules/select (Depends-on): Likewise.
16664
16665 2011-05-21  Bruno Haible  <bruno@clisp.org>
16666
16667         mkdir-p: Simplify autoconf macro.
16668         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16669         gl_FUNC_LCHOWN.
16670
16671 2011-05-21  Eric Blake  <eblake@redhat.com>
16672
16673         strerror_r: avoid clobbering strerror on cygwin
16674         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16675         fall back instead to sys_errlist.
16676         * modules/strerror (configure.ac): Add witness.
16677         * tests/test-strerror_r.c (main): Enhance test.
16678         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16679         * tests/test-perror2.c (main): Free memory before exit.
16680
16681 2011-05-21  Bruno Haible  <bruno@clisp.org>
16682
16683         mkdtemp: Use gnulib naming conventions.
16684         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16685         * modules/mkdtemp (configure.ac): Update.
16686
16687 2011-05-20  Eric Blake  <eblake@redhat.com>
16688
16689         strerror_r: avoid corrupting errno on Solaris
16690         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16691         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16692
16693         strerror_r: avoid compiler warning
16694         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16695
16696         strerror_r: simplify AIX code
16697         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16698
16699         test-perror: avoid spurious failure on FreeBSD
16700         * modules/perror-tests (Depends-on): Add strerror, now that
16701         strerror_r no longer pulls it in.
16702
16703 2011-05-20  Bruno Haible  <bruno@clisp.org>
16704
16705         strerror_r-posix: Remove unused dependencies.
16706         * modules/strerror_r-posix (Depends-on): Remove strerror.
16707         Reported by Eric Blake.
16708
16709 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16710
16711         intprops: remove assumption about A|B representation
16712         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16713         is a valid integer if both A and B are.  Although this is true for
16714         all known practical hosts, the C standard doesn't guarantee it,
16715         and the code need not assume it.  Also, this change may work around
16716         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16718
16719 2011-05-20  Eric Blake  <eblake@redhat.com>
16720
16721         perror: work around FreeBSD bug
16722         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16723         is broken.  Move AC_LIBOBJ...
16724         * modules/perror (configure.ac): Here.
16725         * doc/posix-functions/perror.texi (perror): Document this.
16726         * tests/test-perror2.c (main): Enhance test.
16727
16728         test-perror: check for strerror interactions
16729         * tests/macros.h (STREQ): Add macro.
16730         * modules/perror-tests (Files): Add second test.
16731         * tests/test-perror2.c (main): New file.
16732         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16733
16734         test-perror: rewrite to use init script
16735         * modules/perror-tests (Files): Add init.sh.
16736         * tests/test-perror.sh: Use temporary directory.
16737
16738 2011-05-20  Jim Meyering  <meyering@redhat.com>
16739
16740         maint: replace misused "a" with "an"
16741         * doc/intprops.texi: "a integer"
16742         * doc/regex.texi: "a explanation"
16743         * lib/alignof.h: "a object"
16744         * lib/argmatch.h: "a explanation"
16745         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16746         * lib/stdint.in.h: "a integer"
16747         * lib/userspec.c: "a owner"
16748         * doc/gnulib.texi: Fix "a idea", and reword.
16749
16750 2011-05-19  Jim Meyering  <meyering@redhat.com>
16751
16752         maint: correct misuse of "a" and "an"
16753         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16754         * lib/argp-help.c: "an docum...": s/an/a/
16755         * lib/argp-parse.c: "An vector": s/An/A/
16756         * lib/execute.c: "an native": s/an/a/
16757         * lib/spawn-pipe.c: Likewise.
16758         * lib/gc.h: "an Gc_rc": s/an/a/
16759         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16760         * lib/fts.c: "an stat.st_dev": s/an/a/
16761
16762 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16763
16764         intprops-tests: work around HP-UX 11.23 cc bug with constants
16765         * tests/test-intprops.c (VERIFY): New macro.
16766         (main): Use it, instead of verify, to work around the compiler bug; see
16767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16768
16769         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16770         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16771         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16772         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16773         (_GL_REMAINDER_OVERFLOW): Use it.
16774
16775         intprops-tests: revert unsigned part of previous change
16776         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16777         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16778         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16779         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16780
16781 2011-05-19  Bruno Haible  <bruno@clisp.org>
16782
16783         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16784         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16785         strerror_r() returned without filling the buffer.
16786         Reported by Eric Blake.
16787
16788 2011-05-19  Eric Blake  <eblake@redhat.com>
16789
16790         strerror_r: guarantee unchanged errno
16791         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16792         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16793         failure.
16794         * tests/test-strerror_r.c (main): Enhance test.
16795
16796 2011-05-19  Bruno Haible  <bruno@clisp.org>
16797
16798         strerror_r: Reorder #if blocks.
16799         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16800         for consistency with the previous commit.
16801
16802 2011-05-19  Bruno Haible  <bruno@clisp.org>
16803
16804         perror: Avoid clobbering the strerror buffer when possible.
16805         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16806         * lib/strerror.c: Include it.
16807         * modules/strerror (Files): Add lib/strerror-impl.h.
16808         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16809         (my_strerror): New function, defined through lib/strerror-impl.h.
16810         (perror): Use it instead of strerror.
16811         * modules/perror (Files): Add lib/strerror-impl.h.
16812         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16813
16814 2011-05-19  Eric Blake  <eblake@redhat.com>
16815
16816         strerror_r: fix on newer cygwin
16817         * lib/strerror_r.c (strerror_r): Cygwin now has
16818         __xpg_strerror_r, use it.
16819
16820 2011-05-19  Bruno Haible  <bruno@clisp.org>
16821
16822         strerror_r: Avoid clobbering the strerror buffer when possible.
16823         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16824         (sys_nerr, sys_errlist): New declarations.
16825         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16826         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16827         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16828
16829 2011-05-19  Bruno Haible  <bruno@clisp.org>
16830
16831         strerror_r: Fix test failure on mingw.
16832         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16833         EXTEND_STRERROR_R.
16834         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16835         macros from errno.in.h instead.
16836
16837 2011-05-19  Eric Blake  <eblake@redhat.com>
16838
16839         strerror: relax test for Solaris
16840         * tests/test-strerror.c (main): Permit Solaris behavior.
16841         * tests/test-strerror_r.c (main): Likewise.
16842
16843         strerror: enforce POSIX ruling on strerror(0)
16844         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16845         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16846         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16847         * doc/posix-functions/strerror.texi (strerror): Document it.
16848         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16849         * tests/test-strerror.c (main): Strengthen test.
16850         * tests/test-strerror_r.c (main): Likewise.
16851
16852 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16853
16854         intprop-tests: port to older and more-pedantic compilers
16855         * modules/intprops-tests (Files): Add tests/macros.h.
16856         * tests/test-intprops.c: Include macros.h.
16857         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16858         it's no longer documented to expand to an integer constant expression.
16859         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16860         argument is floating point, as it's no longer documented to expand
16861         to an integer constant expression in that case.
16862         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16863         compiler bugs reported by Bruno Haible.  See
16864         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16865         (U0, U1): New constants, to work around the same bugs.  Also,
16866         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16867
16868         intprops: work around C compiler bugs
16869         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16870         bug in Sun C 5.11 2010/08/13 and other compilers; see
16871         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16872
16873         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16874         * doc/intprops.texi (Integer Type Determination): Fix
16875         documentation for TYPE_IS_INTEGER: it returns an constant
16876         expression, not an integer constant expression.  Fix doc for
16877         TYPE_SIGNED: it returns an integer constant expression only if its
16878         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16879         hardly worth documented that way....)
16880
16881 2011-05-18  Bruno Haible  <bruno@clisp.org>
16882
16883         strerror_r: Avoid clobbering the strerror buffer when possible.
16884         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16885         Handle gnulib defined errno values here. When strerror() returns NULL
16886         or an empty string, return EINVAL.
16887         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16888         gnulib defined errno values here.
16889         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16890
16891 2011-05-18  Eric Blake  <eblake@redhat.com>
16892
16893         fnmatch: avoid compiler warning
16894         * lib/fnmatch_loop.c (FCT): Use correct type.
16895         Reported by Matthias Bolte.
16896
16897 2011-05-13  Jim Meyering  <meyering@redhat.com>
16898
16899         maint.mk: three new prohibit_<HDR>_without_use rules
16900         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16901         (sc_prohibit_stdio-safer_without_use): Likewise.
16902         (sc_prohibit_xfreopen_without_use): Likewise.
16903
16904 2011-05-17  Jim Meyering  <meyering@redhat.com>
16905
16906         announce-gen: fail if the NEWS delta is empty
16907         If there's nothing noteworthy in NEWS, then either you forgot
16908         or you shouldn't be releasing.
16909         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16910
16911 2011-05-17  Pádraig Brady <P@draigBrady.com>
16912
16913         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16914         reserved symbols starting with double underscore from the check.
16915
16916 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16917
16918         intprops: add doc
16919         * doc/intprops.texi: New file, documenting intprops.
16920         * doc/gnulib.texi (Particular Modules): Include it.
16921
16922         verify: add doc to gnulib manual and fix example
16923         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16924         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16925         (Compile-time Assertions): Fix example so it can't overflow.
16926
16927 2011-05-17  Jim Meyering  <meyering@redhat.com>
16928
16929         warnings.m4: don't usurp save_CPPFLAGS variable name
16930         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16931
16932         doc: fix typo
16933         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16934
16935 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16936             Bruno Haible  <bruno@clisp.org>
16937
16938         doc: Tweak recent change.
16939         * README (Portability guidelines): Tweak new text.
16940         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16941         Interix 6.1.
16942
16943 2011-05-16  Eric Blake  <eblake@redhat.com>
16944
16945         inttypes: avoid autoconf warning
16946         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16947         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16948
16949 2011-05-16  Sam Steingold <sds@gnu.org>
16950         and Eric Blake  <eblake@redhat.com>
16951
16952         vc-list-files: accept multiple directory operands
16953         * build-aux/vc-list-files: Iterate over all remaining operands.
16954
16955 2011-05-16  Bruno Haible  <bruno@clisp.org>
16956
16957         Fix confusion regarding deprecated modules.
16958         * modules/calloc (Status, Notice): Mark module as deprecated, not
16959         obsolete.
16960         * modules/fnmatch-posix (Status, Notice): Likewise.
16961         * modules/getdate (Status, Notice): Likewise.
16962         * modules/getopt (Status, Notice): Likewise.
16963         * modules/malloc (Status, Notice): Likewise.
16964         * modules/pipe (Status, Notice): Likewise.
16965         * modules/realloc (Status, Notice): Likewise.
16966         * modules/rename-dest-slash (Status, Notice): Likewise.
16967         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16968         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16969         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16970         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16971         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16972
16973 2011-05-16  Bruno Haible  <bruno@clisp.org>
16974
16975         doc: List the target platforms.
16976         * doc/gnulib-intro.texi (Target Platforms): New section.
16977         * doc/gnulib.texi (Introduction): Update menu.
16978         * README (Portability guidelines): Refer to the new section. Update
16979         statement about oldest supported environment. Remove rationale why
16980         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16981         unportable C89 function.
16982         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16983         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16984
16985 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16986
16987         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16988
16989 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16990
16991         intprops-tests: new module
16992         * modules/intprops-tests, tests/test-intprops.c: New files.
16993
16994         intprops: add safe, portable integer overflow checking
16995         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16996         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16997         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16998         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16999         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
17000         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
17001         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
17002         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
17003         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
17004         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
17005         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
17006
17007 2011-05-12  James Youngman  <jay@gnu.org>
17008
17009         Add a test for glibc's Bugzilla bug #12378.
17010         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
17011         doesn't allow the literal matching of a lone "[" (which is
17012         required by POSIX).
17013         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
17014
17015 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17016
17017         Sync glibc change fixing Bugzilla bug #12378.
17018         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
17019         beginning and fall back to matching as normal character if the
17020         string ends before the matching ']' is found.  This is what POSIX
17021         requires.
17022
17023 2011-05-13  Eric Blake  <eblake@redhat.com>
17024
17025         getcwd-lgpl: relax test for FreeBSD
17026         * doc/posix-functions/getcwd.texi (getcwd): Document portability
17027         issue.
17028         * tests/test-getcwd-lgpl.c (main): Relax test.
17029         Reported by Matthias Bolte.
17030
17031 2011-05-11  Eric Blake  <eblake@redhat.com>
17032
17033         test-fflush: silence compiler warning
17034         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
17035
17036 2011-05-11  Bruno Haible  <bruno@clisp.org>
17037
17038         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
17039         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
17040         * modules/canonicalize (Depends-on): Add 'nocrash'.
17041         * modules/canonicalize-lgpl (Depends-on): Likewise.
17042         * doc/posix-functions/realpath.texi: Update platforms list.
17043         Reported by Ryan Schmidt <ryandesign@macports.org>.
17044
17045 2011-05-11  Bruno Haible  <bruno@clisp.org>
17046
17047         group-member: Declare function in <unistd.h>.
17048         * lib/unistd.in.h (group_member): New declaration.
17049         * lib/group-member.h: Remove file.
17050         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
17051         * tests/test-unistd-c++.cc: Check signature of group_member.
17052         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
17053         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
17054         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
17055         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
17056         HAVE_GROUP_MEMBER.
17057         * modules/group-member (Files): Remove lib/group-member.h.
17058         (Depends-on): Add unistd. Specify conditions.
17059         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17060         (Include): Change to <unistd.h>.
17061         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
17062         HAVE_GROUP_MEMBER.
17063         * NEWS: Mention the change.
17064         * lib/euidaccess.c: Don't include group-member.h.
17065
17066 2011-05-11  Bruno Haible  <bruno@clisp.org>
17067
17068         group-member: Document module.
17069         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
17070         module.
17071
17072 2011-05-11  Bruno Haible  <bruno@clisp.org>
17073
17074         fclose: Fix mistake earlier today.
17075         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
17076
17077 2011-05-11  Eric Blake  <eblake@redhat.com>
17078
17079         fclose: preserve fflush errors
17080         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
17081         Reported by Jim Meyering.
17082
17083         bootstrap: support a prereq of 'rpcgen -' on RHEL5
17084         * build-aux/bootstrap (check_versions): When no specific version
17085         is required, merely check that the app produces an exit status
17086         that indicates its existence.
17087
17088         maint.mk: drop redundant check
17089         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
17090         the same but better.
17091
17092 2011-05-11  Bruno Haible  <bruno@clisp.org>
17093
17094         fclose: Fix possible link error.
17095         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
17096         unregister_shadow_fd. Improve comments.
17097         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
17098         Eric Blake.
17099
17100 2011-05-11  Jim Meyering  <meyering@redhat.com>
17101
17102         maint.mk: improve "can not" detection and generalize rule name
17103         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
17104         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
17105         Use the same technique as in sc_prohibit_doubled_word, so that
17106         we recognize "can not" also when the words are separated by a newline.
17107         Suggested by Eric Blake.
17108         (perl_filename_lineno_text_): Define.  Factored out of...
17109         (prohibit_doubled_word_): ...here.  Use the new definition.
17110         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
17111         (prohibit_undesirable_word_seq_RE_): New overridable variable.
17112         (ignore_undesirable_word_sequence_RE_): New overridable variable.
17113
17114 2011-05-10  Eric Blake  <eblake@redhat.com>
17115
17116         fclose: avoid double close race when possible
17117         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
17118         all but WINDOWS_SOCKETS.
17119
17120 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
17121
17122         openat: correct new comment
17123         * lib/openat-proc.c (openat_proc_name): Correct the comment.
17124
17125 2011-05-10  Jim Meyering  <meyering@redhat.com>
17126
17127         openat: add comments
17128         * lib/openat-proc.c (openat_proc_name): Add comments,
17129         mostly from Eric Blake.
17130
17131 2011-05-09  Eric Blake  <eblake@redhat.com>
17132
17133         openat: reduce syscalls in first probe of /proc
17134         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
17135         be a directory.  Simplify the probe for .. bugs.
17136         * modules/openat (Depends-on): Drop same-inode.
17137         Reported by Bastien ROUCARIES.
17138
17139 2011-05-09  Jim Meyering  <meyering@redhat.com>
17140
17141         maint.mk: change semantics/name of tight_scope variables
17142         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
17143         Rename variables to align with semantics that make them more useful.
17144
17145         maint.mk: tweak new rule's name not to impinge
17146         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
17147         (sc_tight_scope): Use new rule name rather than $@-0.
17148
17149         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
17150         * top/maint.mk (sc_tight_scope): New rule.
17151         (sc_tight_scope-0): New rule, ifdef'd out.
17152         (_gl_TS_dir): Default.
17153         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
17154         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
17155
17156 2011-05-09  Simon Josefsson  <simon@josefsson.org>
17157
17158         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
17159         Haible <bruno@clisp.org>.
17160
17161 2011-05-08  Bruno Haible  <bruno@clisp.org>
17162
17163         Comments.
17164         * m4/isnanf.m4: Add comment.
17165         * m4/isnanl.m4: Likewise.
17166
17167 2011-05-08  Bruno Haible  <bruno@clisp.org>
17168
17169         glob: Remove obsolete macro.
17170         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
17171
17172 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
17173
17174         intprops: Sun C 5.11 supports __typeof__
17175         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
17176         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
17177         which is new.
17178         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
17179
17180         intprops: switch to usual gnulib indenting and naming
17181         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
17182         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
17183
17184         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
17185
17186 2011-05-08  Jim Meyering  <meyering@redhat.com>
17187
17188         maint.mk: suppress "Entering/Leaving directory" diag in announcement
17189         * top/maint.mk (release-prep): Use make's --no-print-directory
17190         option when generating the announcement.  This eliminates the
17191         pesky "make[2]: Entering/Leaving directory" diagnostics in the
17192         generated announcement template.
17193
17194 2011-05-08  Bruno Haible  <bruno@clisp.org>
17195
17196         tzset: Fix gettimeofday wrapper on Solaris 2.6.
17197         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
17198         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
17199
17200 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17201
17202         ignore-value, verify: Omit include files from lib_SOURCES.
17203         * modules/ignore-value, modules/verify (Makefile.am):
17204         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
17205         that leads Automake to duplicate use of am__objects_... variables
17206         in Makefile.in.  See
17207         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
17208
17209 2011-05-07  Bruno Haible  <bruno@clisp.org>
17210
17211         fclose: Simplify autoconf macro.
17212         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
17213         defined.
17214
17215 2011-05-07  Bruno Haible  <bruno@clisp.org>
17216
17217         canonicalize-lgpl: Fix autoconf macro ordering bug.
17218         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
17219         gl_STDLIB_H_DEFAULTS.
17220
17221 2011-05-06  Eric Blake  <eblake@redhat.com>
17222
17223         maintainer-makefile: make sc_po_check easier to tune
17224         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
17225         to probe for strings, such as an alternate location for gnulib.
17226
17227         fclose: guarantee behavior on seekable stdin
17228         * modules/fclose (Depends-on): Add fflush.
17229         * doc/posix-functions/fclose.texi (fclose): Document this.
17230         * tests/test-fclose.c (main): Make test for this unconditional.
17231
17232 2011-05-06  Bruno Haible  <bruno@clisp.org>
17233
17234         fflush, fpurge: Relicense under LGPLv2+.
17235         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
17236         * modules/fpurge (License): Likewise.
17237         With permission from Eric Blake and Jim Meyering.
17238         Suggested by Eric Blake.
17239
17240 2011-05-06  Karl Berry  <karl@gnu.org>
17241
17242         * MODULES.html.sh (func_all_modules): remove exit.
17243
17244 2011-05-06  Jim Meyering  <meyering@redhat.com>
17245
17246         maint.mk: use info-gnu@ as the default only for a stable release
17247         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
17248         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
17249         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
17250         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
17251
17252 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17253
17254         assert-h: new module, which supports C1X-style static_assert
17255         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
17256         * lib/verify.h: Revamp so that this can be copied into assert.h,
17257         while retaining the ability to use it standalone as before.
17258         Rename private identifiers so as not to encroach on the
17259         standard C namespace, since this is now used by assert.h.
17260         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
17261         the old verify_true.
17262         (_GL_VERIFY_TRUE): New macro, with much of the contents of
17263         the old verify_true.  Use _GL_VERIFY_TYPE.
17264         (_GL_VERIFY): New macro, with much of the contents of the old verify.
17265         (static_assert): New macro, if _GL_STATIC_ASSERT_H
17266         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
17267         defined when this file is copied into the replacement assert.h.
17268         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
17269         and _Static_assert is not built in.
17270         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
17271         defined, and use the new macros mentioned above.
17272         * doc/posix-headers/assert.texi: Document this.
17273
17274 2011-05-05  Bruno Haible  <bruno@clisp.org>
17275
17276         fclose, fflush: Respect rules for use of AC_LIBOBJ.
17277         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
17278         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
17279         gl_REPLACE_FCLOSE here.
17280         * modules/fflush (Depends-on): Remove fclose.
17281         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
17282         combination with module 'fclose'.
17283
17284 2011-05-05  Bruno Haible  <bruno@clisp.org>
17285
17286         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
17287         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
17288         gl_FUNC_FFLUSH.
17289         (gl_FUNC_FFLUSH): Use it.
17290         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
17291         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
17292         gl_REPLACE_FSEEKO here.
17293
17294 2011-05-05  Bruno Haible  <bruno@clisp.org>
17295
17296         tzset: Relicense under LGPL.
17297         * modules/tzset (License): Change to LGPL.
17298         No agreement needed; it's a no-op.
17299
17300         strtoimax, strtoumax: Relicense under LGPL.
17301         * modules/strtoimax (License): Change to LGPL.
17302         * modules/strtoumax (License): Likewise.
17303         With permission from Jim Meyering, Paul Eggert:
17304         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
17305         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
17306
17307         getgroups: Relicense under LGPL.
17308         * modules/getgroups (License): Change to LGPL.
17309         With permission from Jim Meyering, Paul Eggert, Eric Blake:
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
17314         nanosleep: Relicense under LGPL.
17315         * modules/nanosleep (License): Change to LGPL.
17316         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
17317         Haible:
17318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17320         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17322
17323         futimens: Relicense under LGPL.
17324         * modules/futimens (License): Change to LGPL.
17325         With permission from Eric Blake:
17326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17327
17328         fflush: Relicense under LGPL.
17329         * modules/fflush (License): Change to LGPL.
17330         With permission from Eric Blake, Bruno Haible, Jim Meyering:
17331         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17333         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
17334
17335         tmpfile: Relicense under LGPL.
17336         * modules/tmpfile (License): Change to LGPL.
17337         With permission from Ben Pfaff:
17338         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17339
17340         isfinite: Relicense under LGPL.
17341         * modules/isfinite (License): Change to LGPL.
17342         With permission from Ben Pfaff, Bruno Haible:
17343         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17344         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
17345
17346         acosl..tanl: Relicense under LGPL.
17347         * modules/acosl (License): Change to LGPL.
17348         * modules/asinl (License): Likewise.
17349         * modules/atanl (License): Likewise.
17350         * modules/cosl (License): Likewise.
17351         * modules/expl (License): Likewise.
17352         * modules/logl (License): Likewise.
17353         * modules/sinl (License): Likewise.
17354         * modules/sqrtl (License): Likewise.
17355         * modules/tanl (License): Likewise.
17356         Source code originally from glibc and Paolo Bonzini. Agreements:
17357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
17358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
17359
17360 2011-05-05  Bruno Haible  <bruno@clisp.org>
17361
17362         signal: Define sighandler_t.
17363         * lib/signal.in.h (sighandler_t): New type.
17364         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
17365         whether sighandler_t is defined.
17366         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
17367         * modules/signal (Depends-on): Add extensions.
17368         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
17369         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
17370         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
17371
17372 2011-05-05  Eric Blake  <eblake@redhat.com>
17373
17374         maint: remove useless REPLACE_*_H macros
17375         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
17376         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17377         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17378         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
17379         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17380         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17381         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
17382         * m4/btowc.m4: Update callers.
17383         * m4/dirfd.m4: Likewise.
17384         * m4/duplocale.m4: Likewise.
17385         * m4/fchdir.m4: Likewise.
17386         * m4/fdopendir.m4: Likewise.
17387         * m4/inet_ntop.m4: Likewise.
17388         * m4/inet_pton.m4: Likewise.
17389         * m4/ioctl.m4: Likewise.
17390         * m4/mbrlen.m4: Likewise.
17391         * m4/mbrtowc.m4: Likewise.
17392         * m4/mbsinit.m4: Likewise.
17393         * m4/mbsnrtowcs.m4: Likewise.
17394         * m4/mbsrtowcs.m4: Likewise.
17395         * m4/poll.m4: Likewise.
17396         * m4/setlocale.m4: Likewise.
17397         * m4/wcrtomb.m4: Likewise.
17398         * m4/wcsnrtombs.m4: Likewise.
17399         * m4/wcsrtombs.m4: Likewise.
17400         * m4/wctob.m4: Likewise.
17401         * m4/wcwidth.m4: Likewise.
17402         * modules/posix_spawn: Likewise.
17403         * modules/posix_spawn_file_actions_addclose: Likewise.
17404         * modules/posix_spawn_file_actions_adddup2: Likewise.
17405         * modules/posix_spawn_file_actions_addopen: Likewise.
17406         * modules/posix_spawn_file_actions_destroy: Likewise.
17407         * modules/posix_spawn_file_actions_init: Likewise.
17408         * modules/posix_spawnattr_destroy: Likewise.
17409         * modules/posix_spawnattr_getflags: Likewise.
17410         * modules/posix_spawnattr_getpgroup: Likewise.
17411         * modules/posix_spawnattr_getschedparam: Likewise.
17412         * modules/posix_spawnattr_getschedpolicy: Likewise.
17413         * modules/posix_spawnattr_getsigdefault: Likewise.
17414         * modules/posix_spawnattr_getsigmask: Likewise.
17415         * modules/posix_spawnattr_init: Likewise.
17416         * modules/posix_spawnattr_setflags: Likewise.
17417         * modules/posix_spawnattr_setpgroup: Likewise.
17418         * modules/posix_spawnattr_setschedparam: Likewise.
17419         * modules/posix_spawnattr_setschedpolicy: Likewise.
17420         * modules/posix_spawnattr_setsigdefault: Likewise.
17421         * modules/posix_spawnattr_setsigmask: Likewise.
17422         * modules/posix_spawnp: Likewise.
17423
17424 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
17425
17426         Add option to do-release-commit-and-tag to specify branch.
17427         * build-aux/do-release-commit-and-tag: Add --branch.
17428
17429 2011-05-03  Bruno Haible  <bruno@clisp.org>
17430
17431         Avoid unnecessary compilation units, through conditional dependencies.
17432         * modules/accept (Depends-on): Add conditions to the dependencies.
17433         * modules/acosl (Depends-on): Likewise.
17434         * modules/argz (Depends-on): Likewise.
17435         * modules/asinl (Depends-on): Likewise.
17436         * modules/atanl (Depends-on): Likewise.
17437         * modules/atoll (Depends-on): Likewise.
17438         * modules/bind (Depends-on): Likewise.
17439         * modules/btowc (Depends-on): Likewise.
17440         * modules/canonicalize-lgpl (Depends-on): Likewise.
17441         * modules/ceil (Depends-on): Likewise.
17442         * modules/ceilf (Depends-on): Likewise.
17443         * modules/ceill (Depends-on): Likewise.
17444         * modules/chdir-long (Depends-on): Likewise.
17445         * modules/chown (Depends-on): Likewise.
17446         * modules/close (Depends-on): Likewise.
17447         * modules/connect (Depends-on): Likewise.
17448         * modules/cosl (Depends-on): Likewise.
17449         * modules/dirfd (Depends-on): Likewise.
17450         * modules/dprintf (Depends-on): Likewise.
17451         * modules/dprintf-posix (Depends-on): Likewise.
17452         * modules/error (Depends-on): Likewise.
17453         * modules/euidaccess (Depends-on): Likewise.
17454         * modules/expl (Depends-on): Likewise.
17455         * modules/faccessat (Depends-on): Likewise.
17456         * modules/fchdir (Depends-on): Likewise.
17457         * modules/fclose (Depends-on): Likewise.
17458         * modules/fcntl (Depends-on): Likewise.
17459         * modules/fdopendir (Depends-on): Likewise.
17460         * modules/fflush (Depends-on): Likewise.
17461         * modules/floor (Depends-on): Likewise.
17462         * modules/floorf (Depends-on): Likewise.
17463         * modules/floorl (Depends-on): Likewise.
17464         * modules/fnmatch (Depends-on): Likewise.
17465         * modules/fopen (Depends-on): Likewise.
17466         * modules/fprintf-posix (Depends-on): Likewise.
17467         * modules/frexp (Depends-on): Likewise.
17468         * modules/frexp-nolibm (Depends-on): Likewise.
17469         * modules/frexpl (Depends-on): Likewise.
17470         * modules/frexpl-nolibm (Depends-on): Likewise.
17471         * modules/fseek (Depends-on): Likewise.
17472         * modules/fsusage (Depends-on): Likewise.
17473         * modules/ftell (Depends-on): Likewise.
17474         * modules/ftello (Depends-on): Likewise.
17475         * modules/futimens (Depends-on): Likewise.
17476         * modules/getcwd (Depends-on): Likewise.
17477         * modules/getcwd-lgpl (Depends-on): Likewise.
17478         * modules/getdelim (Depends-on): Likewise.
17479         * modules/getdomainname (Depends-on): Likewise.
17480         * modules/getgroups (Depends-on): Likewise.
17481         * modules/gethostname (Depends-on): Likewise.
17482         * modules/getline (Depends-on): Likewise.
17483         * modules/getlogin_r (Depends-on): Likewise.
17484         * modules/getopt-posix (Depends-on): Likewise.
17485         * modules/getpeername (Depends-on): Likewise.
17486         * modules/getsockname (Depends-on): Likewise.
17487         * modules/getsockopt (Depends-on): Likewise.
17488         * modules/getsubopt (Depends-on): Likewise.
17489         * modules/getusershell (Depends-on): Likewise.
17490         * modules/glob (Depends-on): Likewise.
17491         * modules/grantpt (Depends-on): Likewise.
17492         * modules/iconv_open (Depends-on): Likewise.
17493         * modules/iconv_open-utf (Depends-on): Likewise.
17494         * modules/inet_ntop (Depends-on): Likewise.
17495         * modules/inet_pton (Depends-on): Likewise.
17496         * modules/ioctl (Depends-on): Likewise.
17497         * modules/isapipe (Depends-on): Likewise.
17498         * modules/isfinite (Depends-on): Likewise.
17499         * modules/isinf (Depends-on): Likewise.
17500         * modules/lchown (Depends-on): Likewise.
17501         * modules/ldexpl (Depends-on): Likewise.
17502         * modules/link (Depends-on): Likewise.
17503         * modules/linkat (Depends-on): Likewise.
17504         * modules/listen (Depends-on): Likewise.
17505         * modules/logl (Depends-on): Likewise.
17506         * modules/lstat (Depends-on): Likewise.
17507         * modules/mbrlen (Depends-on): Likewise.
17508         * modules/mbrtowc (Depends-on): Likewise.
17509         * modules/mbsinit (Depends-on): Likewise.
17510         * modules/mbsnrtowcs (Depends-on): Likewise.
17511         * modules/mbsrtowcs (Depends-on): Likewise.
17512         * modules/mbtowc (Depends-on): Likewise.
17513         * modules/memcmp (Depends-on): Likewise.
17514         * modules/mkdir (Depends-on): Likewise.
17515         * modules/mkdtemp (Depends-on): Likewise.
17516         * modules/mkfifo (Depends-on): Likewise.
17517         * modules/mkfifoat (Depends-on): Likewise.
17518         * modules/mknod (Depends-on): Likewise.
17519         * modules/mkostemp (Depends-on): Likewise.
17520         * modules/mkostemps (Depends-on): Likewise.
17521         * modules/mkstemp (Depends-on): Likewise.
17522         * modules/mkstemps (Depends-on): Likewise.
17523         * modules/mktime (Depends-on): Likewise.
17524         * modules/nanosleep (Depends-on): Likewise.
17525         * modules/open (Depends-on): Likewise.
17526         * modules/openat (Depends-on): Likewise.
17527         * modules/perror (Depends-on): Likewise.
17528         * modules/poll (Depends-on): Likewise.
17529         * modules/popen (Depends-on): Likewise.
17530         * modules/posix_spawn (Depends-on): Likewise.
17531         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
17532         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17533         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17534         * modules/posix_spawnp (Depends-on): Likewise.
17535         * modules/pread (Depends-on): Likewise.
17536         * modules/printf-posix (Depends-on): Likewise.
17537         * modules/ptsname (Depends-on): Likewise.
17538         * modules/putenv (Depends-on): Likewise.
17539         * modules/pwrite (Depends-on): Likewise.
17540         * modules/readline (Depends-on): Likewise.
17541         * modules/readlink (Depends-on): Likewise.
17542         * modules/readlinkat (Depends-on): Likewise.
17543         * modules/recv (Depends-on): Likewise.
17544         * modules/recvfrom (Depends-on): Likewise.
17545         * modules/regex (Depends-on): Likewise.
17546         * modules/remove (Depends-on): Likewise.
17547         * modules/rename (Depends-on): Likewise.
17548         * modules/renameat (Depends-on): Likewise.
17549         * modules/rmdir (Depends-on): Likewise.
17550         * modules/round (Depends-on): Likewise.
17551         * modules/roundf (Depends-on): Likewise.
17552         * modules/roundl (Depends-on): Likewise.
17553         * modules/rpmatch (Depends-on): Likewise.
17554         * modules/select (Depends-on): Likewise.
17555         * modules/send (Depends-on): Likewise.
17556         * modules/sendto (Depends-on): Likewise.
17557         * modules/setenv (Depends-on): Likewise.
17558         * modules/setlocale (Depends-on): Likewise.
17559         * modules/setsockopt (Depends-on): Likewise.
17560         * modules/shutdown (Depends-on): Likewise.
17561         * modules/sigaction (Depends-on): Likewise.
17562         * modules/signbit (Depends-on): Likewise.
17563         * modules/sigprocmask (Depends-on): Likewise.
17564         * modules/sinl (Depends-on): Likewise.
17565         * modules/sleep (Depends-on): Likewise.
17566         * modules/snprintf (Depends-on): Likewise.
17567         * modules/snprintf-posix (Depends-on): Likewise.
17568         * modules/socket (Depends-on): Likewise.
17569         * modules/sprintf-posix (Depends-on): Likewise.
17570         * modules/sqrtl (Depends-on): Likewise.
17571         * modules/stat (Depends-on): Likewise.
17572         * modules/strchrnul (Depends-on): Likewise.
17573         * modules/strdup-posix (Depends-on): Likewise.
17574         * modules/strerror (Depends-on): Likewise.
17575         * modules/strerror_r-posix (Depends-on): Likewise.
17576         * modules/strndup (Depends-on): Likewise.
17577         * modules/strnlen (Depends-on): Likewise.
17578         * modules/strptime (Depends-on): Likewise.
17579         * modules/strsep (Depends-on): Likewise.
17580         * modules/strsignal (Depends-on): Likewise.
17581         * modules/strstr-simple (Depends-on): Likewise.
17582         * modules/strtod (Depends-on): Likewise.
17583         * modules/strtoimax (Depends-on): Likewise.
17584         * modules/strtok_r (Depends-on): Likewise.
17585         * modules/strtoumax (Depends-on): Likewise.
17586         * modules/symlink (Depends-on): Likewise.
17587         * modules/symlinkat (Depends-on): Likewise.
17588         * modules/tanl (Depends-on): Likewise.
17589         * modules/tcgetsid (Depends-on): Likewise.
17590         * modules/tmpfile (Depends-on): Likewise.
17591         * modules/trunc (Depends-on): Likewise.
17592         * modules/truncf (Depends-on): Likewise.
17593         * modules/truncl (Depends-on): Likewise.
17594         * modules/uname (Depends-on): Likewise.
17595         * modules/unlink (Depends-on): Likewise.
17596         * modules/unlockpt (Depends-on): Likewise.
17597         * modules/unsetenv (Depends-on): Likewise.
17598         * modules/usleep (Depends-on): Likewise.
17599         * modules/utimensat (Depends-on): Likewise.
17600         * modules/vasprintf (Depends-on): Likewise.
17601         * modules/vdprintf (Depends-on): Likewise.
17602         * modules/vdprintf-posix (Depends-on): Likewise.
17603         * modules/vfprintf-posix (Depends-on): Likewise.
17604         * modules/vprintf-posix (Depends-on): Likewise.
17605         * modules/vsnprintf (Depends-on): Likewise.
17606         * modules/vsnprintf-posix (Depends-on): Likewise.
17607         * modules/vsprintf-posix (Depends-on): Likewise.
17608         * modules/wcrtomb (Depends-on): Likewise.
17609         * modules/wcscasecmp (Depends-on): Likewise.
17610         * modules/wcscspn (Depends-on): Likewise.
17611         * modules/wcsdup (Depends-on): Likewise.
17612         * modules/wcsncasecmp (Depends-on): Likewise.
17613         * modules/wcsnrtombs (Depends-on): Likewise.
17614         * modules/wcspbrk (Depends-on): Likewise.
17615         * modules/wcsrtombs (Depends-on): Likewise.
17616         * modules/wcsspn (Depends-on): Likewise.
17617         * modules/wcsstr (Depends-on): Likewise.
17618         * modules/wcstok (Depends-on): Likewise.
17619         * modules/wcswidth (Depends-on): Likewise.
17620         * modules/wctob (Depends-on): Likewise.
17621         * modules/wctomb (Depends-on): Likewise.
17622         * modules/wctype (Depends-on): Likewise.
17623         * modules/wcwidth (Depends-on): Likewise.
17624         * modules/write (Depends-on): Likewise.
17625
17626 2011-05-03  Bruno Haible  <bruno@clisp.org>
17627
17628         Support for conditional dependencies.
17629         * doc/gnulib.texi (Module description): Document the syntax of
17630         conditional dependencies.
17631         * gnulib-tool: New option --conditional-dependencies.
17632         (func_usage): Document it.
17633         (cond_dependencies): New variable.
17634         (func_get_automake_snippet_conditional,
17635         func_get_automake_snippet_unconditional): New functions, extracted from
17636         func_get_automake_snippet.
17637         (func_get_automake_snippet): Use them.
17638         (sed_first_32_chars): New variable.
17639         (func_module_shellfunc_name): New function.
17640         (func_module_shellvar_name): New function.
17641         (func_module_conditional_name): New function.
17642         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17643         func_cond_module_condition): New functions.
17644         (func_modules_transitive_closure): Add support for conditional
17645         dependencies.
17646         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17647         conditional automake snippet in an automake conditional.
17648         (func_emit_autoconf_snippets): Emit shell functions that contain the
17649         code for conditional modules.
17650         (func_import, func_create_testdir): Update specification.
17651
17652 2011-05-03  Eric Blake  <eblake@redhat.com>
17653
17654         test-getaddrinfo: report error information
17655         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17656
17657 2011-05-03  Jim Meyering  <meyering@redhat.com>
17658
17659         bootstrap: avoid build failure when $GZIP is set
17660         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17661         program name.  If defined at all, it is supposed to list gzip options.
17662         Reported by Alan Curry in http://debbugs.gnu.org/8609
17663
17664 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17665
17666         readme-release: new module with release instructions
17667         * modules/readme-release: New module.
17668         * top/README-release: New file, from coreutils, grep, diffutils.
17669         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17670
17671 2011-05-02  Eric Blake  <eblake@redhat.com>
17672
17673         fflush: also replace fclose when fixing fflush
17674         * modules/fflush (Depends-on): Add fclose.
17675         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17676         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17677         memstreams with no backing fd.
17678         * doc/posix-functions/fclose.texi (fclose): Document the use of
17679         fflush module to fix the bug.
17680         * tests/test-fclose.c (main): Relax test when fclose is used in
17681         isolation.
17682
17683         fclose: add some tests
17684         * modules/fclose-tests: New test module.
17685         * tests/test-fclose.c: New file.
17686         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17687
17688         fclose: reduced dependencies
17689         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17690         simpler lseek.
17691         * lib/fclose.c (rpl_fclose): Likewise.
17692         Reported by Simon Josefsson.
17693
17694         exit: drop remaining clients
17695         * modules/argmatch (Depends-on): Replace exit with stdlib.
17696         * modules/copy-file (Depends-on): Likewise.
17697         * modules/execute (Depends-on): Likewise.
17698         * modules/exitfail (Depends-on): Likewise.
17699         * modules/obstack (Depends-on): Likewise.
17700         * modules/pagealign_alloc (Depends-on): Likewise.
17701         * modules/pipe-filter-gi (Depends-on): Likewise.
17702         * modules/pipe-filter-ii (Depends-on): Likewise.
17703         * modules/savewd (Depends-on): Likewise.
17704         * modules/spawn-pipe (Depends-on): Likewise.
17705         * modules/wait-process (Depends-on): Likewise.
17706         * modules/xsetenv (Depends-on): Likewise.
17707         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17708         * modules/git-merge-changelog (Depends-on): Likewise.
17709         * modules/long-options (Depends-on): Likewise.
17710         * modules/pt_chown (Depends-on): Likewise.
17711         * modules/sysexits (Depends-on): Likewise.
17712
17713         freading: relax license from LGPLv3+ to LGPLv2+
17714         * modules/freading (License): Relax LGPL version.
17715
17716 2011-05-02  Bruno Haible  <bruno@clisp.org>
17717
17718         fchdir: Remove unused dependencies.
17719         * modules/fchdir (Depends-on): Remove include_next.
17720
17721 2011-05-02  Bruno Haible  <bruno@clisp.org>
17722
17723         gnulib-tool: Refactor.
17724         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17725         from func_emit_autoconf_snippets.
17726         (func_emit_autoconf_snippets): Use it.
17727
17728 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17729
17730         * NEWS: Document removal of 'exit'.
17731         * modules/exit: Remove file.
17732
17733 2011-05-01  Bruno Haible  <bruno@clisp.org>
17734
17735         Update DEPENDENCIES.
17736         * DEPENDENCIES (gettext): Recommend the newest release.
17737         Reported by Simon Josefsson.
17738
17739 2011-05-01  Bruno Haible  <bruno@clisp.org>
17740
17741         gnulib-tool: Reduce code duplication.
17742         * gnulib-tool (func_emit_autoconf_snippets): New function.
17743         (func_import, func_create_testdir): Use it.
17744
17745 2011-04-30  Eric Blake  <eblake@redhat.com>
17746
17747         fclose: don't fail on non-seekable input stream
17748         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17749         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17750         since fflush is allowed to fail in that case.
17751
17752 2011-04-30  Bruno Haible  <bruno@clisp.org>
17753
17754         dup3: cleanup
17755         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17756
17757 2011-04-30  Bruno Haible  <bruno@clisp.org>
17758
17759         netdb: Make it work in C++ mode.
17760         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17761         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17762         module.
17763         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17764         gl_MODULE_INDICATOR_FOR_TESTS.
17765         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17766         * modules/netdb-c++-tests: New file.
17767         * tests/test-netdb-c++.cc: New file.
17768
17769 2011-04-30  Bruno Haible  <bruno@clisp.org>
17770
17771         New modules 'vfscanf', 'vscanf'.
17772         * modules/vfscanf: New file.
17773         * modules/vscanf: New file.
17774         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17775         here.
17776         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17777         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17778
17779 2011-04-30  Bruno Haible  <bruno@clisp.org>
17780
17781         passfd: Add comments.
17782         * lib/passfd.c: Add comments about platforms.
17783
17784 2011-04-30  Bruno Haible  <bruno@clisp.org>
17785
17786         sys_uio: Make <sys/uio.h> self-contained.
17787         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17788         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17789
17790 2011-04-30  Bruno Haible  <bruno@clisp.org>
17791
17792         sys_socket: Ensure 'struct iovec' definition.
17793         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17794         <sys/socket.h>.
17795         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17796
17797 2011-04-30  Bruno Haible  <bruno@clisp.org>
17798
17799         sys_uio: Protect definition of 'struct iovec'.
17800         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17801         it as a C struct.
17802
17803 2011-04-30  Bruno Haible  <bruno@clisp.org>
17804
17805         manywarnings: fix indentation
17806         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17807
17808 2011-04-30  Pádraig Brady <P@draigBrady.com>
17809
17810         manywarnings: add -Wno-missing-field-initializers if needed.
17811         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17812         option if it's needed to allow initialization with { 0, }
17813
17814 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17815
17816         announce-gen: cosmetic improvement
17817         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17818
17819 2011-04-29  Jim Meyering  <meyering@redhat.com>
17820
17821         vc-list-files: indent with spaces, not TABs
17822         * build-aux/vc-list-files: Convert leading TABs to spaces,
17823         to match the style of most other files in gnulib.
17824
17825         announce-gen: indent with spaces, not TABs
17826         * build-aux/announce-gen: Convert all TABs to spaces, to match
17827         the style of most other files in gnulib.
17828
17829 2011-04-29  Eric Blake  <eblake@redhat.com>
17830
17831         quotearg: avoid uninitialized variable use
17832         * lib/quotearg.c (quoting_options_from_style): Initialize
17833         remaining fields, and ensure that custom styles are only used via
17834         quoting_options rather than quoting_style.
17835
17836 2011-04-29  Jim Meyering  <meyering@redhat.com>
17837
17838         maint.mk: remove unused VC-tag variable
17839         * top/maint.mk (VC-tag): Remove unused variable.
17840
17841 2011-04-29  Bruno Haible  <bruno@clisp.org>
17842
17843         netdb: fix gai_strerror replacements
17844         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17845         * modules/netdb: Substitute it.
17846
17847 2011-04-29  Jim Meyering  <meyering@redhat.com>
17848
17849         test-getcwd.c: avoid new set-but-not-used warning
17850         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17851         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17852         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17853         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17854
17855         test-hash.c: avoid a new shadowing warning
17856         * tests/test-hash.c (main): Don't shadow "dup".
17857
17858 2011-04-28  Eric Blake  <eblake@redhat.com>
17859
17860         getaddrinfo: fix gai_strerror signature
17861         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17862         and work around mingw with UNICODE defined.
17863         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17864         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17865         * modules/netdb (Makefile.am): Substitute it.
17866         * lib/netdb.in.h (gai_strerror): Declare replacement.
17867         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17868         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17869         the fix.
17870
17871         getsockopt: avoid compiler warning
17872         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17873         Reported by Matthias Bolte.
17874
17875         tests: drop unused link dependency
17876         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17877         * modules/dirent-safer-tests (Makefile.am): Likewise.
17878         * modules/fdopendir-tests (Makefile.am): Likewise.
17879         * modules/mkfifoat-tests (Makefile.am): Likewise.
17880         * modules/openat-safer-tests (Makefile.am): Likewise.
17881         * modules/openat-tests (Makefile.am): Likewise.
17882         * modules/readlinkat-tests (Makefile.am): Likewise.
17883         * modules/symlinkat-tests (Makefile.am): Likewise.
17884         * modules/linkat-tests (Makefile.am): Likewise.
17885         (Depends-on): Switch to filenamecat-lgpl.
17886         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17887         LIBINTL.
17888         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17889         * tests/test-linkat.c (main): Don't require xalloc.
17890
17891         hash, mgetgroups: drop xalloc dependency
17892         * lib/hash.c (includes): Adjust includes.
17893         * lib/mgetgroups.c (includes): Likewise.
17894         (xgetgroups): Move...
17895         * lib/xgetgroups.c: ...to new file.
17896         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17897         * modules/xgetgroups: New file, split from...
17898         * modules/mgetgroups: ...here.
17899         (Depends-on): Add xalloc-oversized.
17900         * modules/hash (Depends-on): Likewise.
17901         * modules/hash-tests (Depends-on): Drop xalloc.
17902         (test_hash_LDADD): Drop unused library.
17903         * tests/test-hash.c (main): Break xalloc dependency.
17904         (includes): Drop unused include.
17905
17906         xalloc-oversized: new module
17907         * modules/xalloc-oversized: New module.
17908         * modules/xalloc (Depends-on): Add it.
17909         * lib/xalloc.h (xalloc_oversized): Move...
17910         * lib/xalloc-oversized.h: ...into new file.
17911
17912         utimecmp: drop dependency on xmalloc
17913         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17914         due to memory pressure.
17915         * modules/utimecmp (Depends-on): Drop xalloc.
17916
17917 2011-04-27  Eric Blake  <eblake@redhat.com>
17918
17919         getcwd: fix mingw bugs
17920         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17921         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17922         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17923
17924 2011-04-27  Bruno Haible  <bruno@clisp.org>
17925
17926         mkstemps: Ensure declaration on MacOS X 10.5.
17927         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17928         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17929         MacOS X.
17930
17931 2011-04-27  Bruno Haible  <bruno@clisp.org>
17932
17933         mkstemp: More documentation.
17934         * doc/posix-functions/mkstemp.texi: Document header file problem on
17935         MacOS X.
17936
17937 2011-04-27  Bruno Haible  <bruno@clisp.org>
17938
17939         mkstemp: Tweak configure message when cross-compiling.
17940         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17941         result as a guess.
17942
17943 2011-04-27  Bruno Haible  <bruno@clisp.org>
17944
17945         clean-temp: Clarify what it does.
17946         * lib/clean-temp.h: Add more comments.
17947         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17948         module.
17949         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17950         * doc/glibc-functions/mkstemps.texi: Likewise.
17951         * doc/glibc-functions/mkostemps.texi: Likewise.
17952
17953 2011-04-27  Eric Blake  <eblake@redhat.com>
17954
17955         fchdir: avoid extra chdir and fix test
17956         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17957         getcwd-lgpl.
17958         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17959         have to be canonical.
17960         (canonicalize_file_name): Drop unused macro.
17961         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17962
17963         filenamecat-lgpl: fix licence
17964         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17965         when it was first created.
17966
17967         linkat, renameat: add missing dependency
17968         * modules/linkat (Depends-on): Require getcwd-lgpl.
17969         * modules/renameat (Depends-on): Likewise.
17970
17971         tests: reduce dependencies
17972         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17973         * tests/test-renameat.c (main): Likewise.
17974         * modules/linkat-tests (Depends-on): Relax dependency.
17975         * modules/renameat-tests (Depends-on): Likewise.
17976         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17977         dependency explicit.
17978
17979         save-cwd: reduce default dependency
17980         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17981         * lib/save-cwd.c: Update comments.
17982         * NEWS: Document the semantic change.
17983
17984         getcwd: enhance tests
17985         * tests/test-getcwd-lgpl.c: New file, taken from...
17986         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17987         repeat long path stress tests from m4 probe.
17988         * modules/getcwd-lgpl-tests: New module.
17989         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17990         * m4/getcwd-abort-bug.m4: Update comment.
17991         * m4/getcwd-path-max.m4: Likewise.
17992
17993         getcwd-lgpl: new module
17994         * modules/getcwd-lgpl: New module.
17995         * lib/getcwd-lgpl.c: New file.
17996         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17997         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17998         * modules/getcwd (configure.ac): Set C witness.
17999         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
18000
18001         getcwd: tweak comments
18002         * m4/getcwd-abort-bug.m4: Fix comments.
18003         * m4/getcwd-path-max.m4: Likewise.
18004         * m4/getcwd.m4: Likewise.
18005
18006 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18007         and Eric Blake  <eblake@redhat.com>
18008
18009         mkstemp: replace if system version uses wrong permissions
18010         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
18011         read/write mode bits set in file created by mkstemp.
18012         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
18013
18014 2011-04-27  Eric Blake  <eblake@redhat.com>
18015
18016         passfd: avoid compiler warning
18017         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
18018         Reported by Laine Stump.
18019
18020 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
18021
18022         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
18023         required by the NetBSD (and perhaps other 4.4BSD derived) join.
18024
18025 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18026         and Eric Blake  <eblake@redhat.com>
18027
18028         mkstemp: mention clean-temp module
18029         * lib/mkstemp.c: Add comment.
18030         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
18031
18032 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
18033
18034         inttypes: also provide default values for 32-bit tests
18035         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
18036         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
18037
18038 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
18039
18040         strtoumax: remove dependency on strtoimax
18041         This is like the strtoull change of yesterday.
18042         * modules/strtoumax (Files): Add lib/strtoimax.c.
18043         (Depends-on): Remove strtoimax and add verify.
18044
18045         inttypes-incomplete: new module
18046         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
18047         all but the PRI* and SCN* parts of gl_INTTYPES_H.
18048         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
18049         of gl_INTTYPES_H.
18050         (gl_INTTYPES_H): Rewrite in terms of these new macros.
18051         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
18052         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
18053         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
18054         * modules/strtoumax, modules/xstrtol (Depends-on):
18055         Depend on inttypes-incomplete, not inttypes.
18056         * modules/inttypes-incomplete: New module, containing the contents
18057         of the old modules/inttypes module, except that the Files: section
18058         omits m4/inttypes-pri.m4, and the configure.ac section invokes
18059         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
18060         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
18061         (Depends-on): Depend only on inttypes-incomplete.
18062         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
18063
18064         inttypes: omit now-redundant strtoimax and strtoumax work
18065         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
18066         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
18067
18068         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
18069         This supports apps that need pointers to strtoimax and strtoumax,
18070         and ports to HP-UX 11.00 64.bit, which has macros that expand to
18071         nonexistent functions.  See
18072         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
18073         et seq.
18074         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
18075         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
18076         a macro.
18077         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18078
18079 2011-04-25  Simon Josefsson  <simon@josefsson.org>
18080
18081         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
18082
18083 2011-04-25  Bruno Haible  <bruno@clisp.org>
18084
18085         strtol, strtoul: Mark modules as obsolete.
18086         * modules/strtol (Status, Notice): New sections.
18087         * modules/strtoul (Status, Notice): New sections.
18088
18089 2011-04-25  Bruno Haible  <bruno@clisp.org>
18090
18091         strtod: Remove check for strtod, unless supporting old platforms.
18092         * modules/strtod-obsolete: New file.
18093         * m4/strtod-obsolete.m4: New file.
18094         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
18095         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
18096         * modules/strtod (Depends-on): Add strtod-obsolete.
18097         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
18098
18099 2011-04-25  Bruno Haible  <bruno@clisp.org>
18100
18101         strcase: Make module obsolete.
18102         * modules/strcase (Status, Notice): New sections.
18103
18104 2011-04-25  Bruno Haible  <bruno@clisp.org>
18105
18106         dup2: Remove check for dup2, unless supporting old obsolete platforms.
18107         * modules/dup2-obsolete: New file.
18108         * m4/dup2-obsolete.m4: New file.
18109         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
18110         gl_FUNC_DUP2_OBSOLETE is not also defined.
18111         * modules/dup2 (Depends-on): Add dup2-obsolete.
18112         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
18113
18114 2011-04-25  Bruno Haible  <bruno@clisp.org>
18115
18116         strnlen: Avoid memchr related link error on old obsolete platforms.
18117         * modules/memchr-obsolete: New file.
18118         * m4/memchr-obsolete.m4: New file.
18119         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
18120         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
18121         * modules/memchr (Depends-on): Add memchr-obsolete.
18122         * modules/strnlen (Depends-on): Likewise.
18123         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
18124
18125 2011-04-25  Jim Meyering  <meyering@redhat.com>
18126
18127         maint.mk: makefile_at_at_check extend and clean up
18128         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
18129         in addition to */Makefile.am.
18130         Exempt legitimate uses of @VAR@ notation, e.g.,
18131         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
18132         Remove obsolete coreutils-specific comment.
18133         Prompted by discussion here:
18134         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
18135
18136 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
18137
18138         strtoul: remove dependency on strtol
18139         This is so that 'configure' need not check for strtol merely because
18140         the application needs strtoul.
18141         * modules/strtoul (Files): Add lib/strtol.c.
18142         (Depends-on): Remove strtol.
18143
18144         strtoull: remove dependency on strtoul
18145         This is like the strtoll change.
18146         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
18147         (Depends-on): Remove strtoul.
18148
18149         strtoll: remove dependency on strtol
18150         This is so that 'configure' need not check for strtol merely because
18151         the application needs strtoll.
18152         * modules/strtoll (Files): Add lib/strtol.c.
18153         (Depends-on): Remove strtol.
18154
18155 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18156
18157         inttypes: Move some configure check to module 'imaxdiv'.
18158         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
18159         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
18160         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
18161
18162 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18163
18164         inttypes: Move some configure check to module 'imaxabs'.
18165         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
18166         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
18167         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
18168
18169 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18170
18171         inttypes: Remove configure tests that are not needed since 2009-12-31.
18172         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
18173         gl_cv_header_working_inttypes_h.
18174
18175 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18176
18177         * modules/strnlen (Depends-on): Remove memchr.
18178         The strnlen implementation doesn't need the memchr module's fixes; see
18179         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
18180
18181         strtol: remove dependency on wchar
18182         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
18183         * modules/strtol (Depends-on): Remove wchar.
18184
18185 2011-04-21  Eric Blake  <eblake@redhat.com>
18186
18187         passfd: fix test regression on Linux
18188         * modules/passfd-tests (configure.ac): Correct socketpair check.
18189
18190         passfd: speed up configure and drop unused code
18191         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
18192         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
18193         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
18194         Instead of probing at configure for unix_scm_rights_bsd44_way,
18195         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
18196         check to a struct member probe.
18197         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
18198         (sendfd, recvfd): Update preprocessor checks.
18199         * modules/passfd (Files): Reflect rename, and drop unused file.
18200         (Depends-on): Drop unused dependency.
18201
18202         passfd: allow compilation on mingw
18203         * modules/sys_socket (Depends-on): Add sys_uio.
18204         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
18205         iovec and a minimal struct msghdr.
18206         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
18207         * tests/test-sys_socket.c (main): Enhance test.
18208         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
18209         guaranteed to provide what we need.
18210         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
18211         * modules/passfd-tests (Depends-on): Add sys_wait.
18212         * tests/test-passfd.c (main): Skip test on mingw, for now.
18213         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
18214         partial 'struct msghdr' implementation.
18215
18216         sys_uio: new module
18217         * modules/sys_uio: New module.
18218         * modules/sys_uio-tests: Likewise.
18219         * lib/sys_uio.in.h: New file.
18220         * m4/sys_uio_h.m4: Likewise.
18221         * tests/test-sys_uio.c: Likewise.
18222         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
18223         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
18224
18225 2011-04-20  Jim Meyering  <meyering@redhat.com>
18226
18227         useless-if-before-free: avoid false-positive
18228         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
18229         disjunct so that it too requires a terminating ";".  Without that,
18230         this script would identify as useless one statement from gcc that
18231         was not:
18232           if (aligned_ptr)
18233             free (((void **) aligned_ptr) [-1]);
18234
18235 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
18236
18237         doc: update users.txt.
18238         * users.txt: Add barcode.
18239
18240 2011-04-19  Bruno Haible  <bruno@clisp.org>
18241
18242         ioctl: Remove link dependency on native Windows.
18243         * lib/fd-hook.h: Renamed from lib/close-hook.h.
18244         (gl_close_fn, gl_ioctl_fn): New types.
18245         (struct fd_hook): Renamed from struct close_hook. Change type of
18246         private_close_fn field. Add private_ioctl_fn field.
18247         (close_hook_fn): Add parameter for primary close method.
18248         (execute_close_hooks, execute_all_close_hooks): Likewise.
18249         (ioctl_hook_fn): New type.
18250         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
18251         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18252         argument.
18253         (unregister_fd_hook): Renamed from unregister_close_hook.
18254         * lib/fd-hook.c: Renamed from lib/close-hook.c.
18255         Don't include <unistd.h>.
18256         (close): Remove undef.
18257         (anchor): Update.
18258         (execute_close_hooks): Add argument for primary close method.
18259         (execute_all_close_hooks): Likewise.
18260         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
18261         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18262         argument. Allow each argument to be NULL.
18263         (unregister_fd_hook): Renamed from unregister_close_hook.
18264         * lib/close.c (rpl_close): Pass 'close' function pointer to
18265         execute_all_close_hooks.
18266         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
18267         (primary_ioctl): New function.
18268         (ioctl): Don't call ioctlsocket here. Instead, call
18269         execute_all_ioctl_hooks.
18270         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
18271         close method.
18272         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
18273         (fd_sockets_hook): Renamed from close_sockets_hook.
18274         (gl_sockets_startup, gl_sockets_cleanup): Update.
18275         * modules/fd-hook: Renamed from modules/close-hook. Update.
18276         * modules/close (Depends-on): Add fd-hook, remove close-hook.
18277         * modules/sockets (Depends-on): Likewise.
18278         * modules/ioctl (Depends-on): Add fd-hook.
18279         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
18280         GNULIB_SOCKET.
18281
18282 2011-04-19  Bruno Haible  <bruno@clisp.org>
18283
18284         Move the support of O_NONBLOCK in open() to the 'open' module.
18285         * modules/nonblocking (Depends-on): Remove 'open'.
18286         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
18287         gl_cv_have_open_O_NONBLOCK.
18288         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
18289         O_NONBLOCK support.
18290         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
18291
18292 2011-04-17  Bruno Haible  <bruno@clisp.org>
18293
18294         pipe2: Simplify code.
18295         * lib/pipe2.c (pipe2): Reduce code duplication.
18296
18297 2011-04-17  Bruno Haible  <bruno@clisp.org>
18298
18299         nonblocking: Add comment.
18300         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
18301
18302 2011-04-17  Bruno Haible  <bruno@clisp.org>
18303
18304         nonblocking: Add tests for sockets.
18305         * tests/test-nonblocking-socket.sh: New file.
18306         * tests/test-nonblocking-socket-main.c: New file.
18307         * tests/test-nonblocking-socket-child.c: New file.
18308         * tests/test-nonblocking-socket.h: New file.
18309         * tests/socket-server.h: New file.
18310         * tests/socket-client.h: New file.
18311         * modules/nonblocking-socket-tests: New file.
18312         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
18313
18314 2011-04-17  Bruno Haible  <bruno@clisp.org>
18315
18316         nonblocking: Add tests for pipes.
18317         * tests/test-nonblocking-pipe.sh: New file.
18318         * tests/test-nonblocking-pipe-main.c: New file.
18319         * tests/test-nonblocking-pipe-child.c: New file.
18320         * tests/test-nonblocking-pipe.h: New file.
18321         * tests/test-nonblocking-writer.h: New file.
18322         * tests/test-nonblocking-reader.h: New file.
18323         * tests/test-nonblocking-misc.h: New file.
18324         * modules/nonblocking-pipe-tests: New file.
18325         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
18326
18327 2011-04-16  Bruno Haible  <bruno@clisp.org>
18328
18329         gettext: Clarify the needed programmer actions.
18330         * modules/gettext (Notice): New field.
18331         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18332
18333 2011-04-16  Bruno Haible  <bruno@clisp.org>
18334
18335         strchrnul: Tweak last commit.
18336         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
18337         bug.
18338         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
18339         as in _GL_FUNCDECL_SYS.
18340         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
18341         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
18342
18343 2011-04-15  Eric Blake  <eblake@redhat.com>
18344
18345         strchrnul: work around cygwin bug
18346         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
18347         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
18348         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
18349         * modules/string (Makefile.am): Substitute it.
18350         * lib/string.in.h (strchrnul): Use it.
18351
18352 2011-04-15  Bruno Haible  <bruno@clisp.org>
18353
18354         Don't require lib/stdio-write.c when only module 'stdio' is used.
18355         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
18356         invocation.
18357         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
18358
18359 2011-04-14  Bruno Haible  <bruno@clisp.org>
18360
18361         Support non-blocking pipe I/O in read() on native Windows.
18362         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
18363         (read): New declaration.
18364         * lib/read.c: New file.
18365         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
18366         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
18367         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
18368         vscanf): New declarations.
18369         * lib/stdio-read.c: New file.
18370         * m4/read.m4: New file.
18371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
18372         REPLACE_READ.
18373         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
18374         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18375         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
18376         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
18377         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
18378         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18379         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18380         * modules/read: New file.
18381         * modules/nonblocking (Files): Add lib/stdio-read.c.
18382         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
18383         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
18384         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18385         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18386         * modules/pread (Depends-on): Add read.
18387         * modules/safe-read (Depends-on): Likewise.
18388         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
18389         gets, scanf, vfscanf, vscanf): Verify signatures.
18390         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
18391         problem with non-blocking pipes.
18392         * doc/posix-functions/fgetc.texi: Likewise.
18393         * doc/posix-functions/fgets.texi: Likewise.
18394         * doc/posix-functions/fread.texi: Likewise.
18395         * doc/posix-functions/fscanf.texi: Likewise.
18396         * doc/posix-functions/getc.texi: Likewise.
18397         * doc/posix-functions/getchar.texi: Likewise.
18398         * doc/posix-functions/gets.texi: Likewise.
18399         * doc/posix-functions/scanf.texi: Likewise.
18400         * doc/posix-functions/vfscanf.texi: Likewise.
18401         * doc/posix-functions/vscanf.texi: Likewise.
18402
18403 2011-04-14  Bruno Haible  <bruno@clisp.org>
18404
18405         Support non-blocking pipe I/O in write() on native Windows.
18406         * lib/write.c (rpl_write): Split a write request that failed merely
18407         because the byte count was larger than the pipe buffer's size.
18408         * doc/posix-functions/write.texi: Mention the problem with large byte
18409         counts.
18410
18411 2011-04-14  Bruno Haible  <bruno@clisp.org>
18412
18413         wchar: Ensure that wchar_t gets defined on uClibc.
18414         * lib/wchar.in.h: On uClibc, include <stddef.h>.
18415         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
18416
18417 2011-04-13  Bruno Haible  <bruno@clisp.org>
18418
18419         safe-write, full-read: Avoid unnecessary compilation units.
18420         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
18421         (Depends-on): Remove safe-read. Add ssize_t.
18422         * modules/full-read (Files): Add lib/full-write.c.
18423         (Depends-on): Add full-write.
18424
18425 2011-04-13  Bruno Haible  <bruno@clisp.org>
18426
18427         Support non-blocking pipe I/O and SIGPIPE in pwrite().
18428         * modules/pwrite (Depends-on): Add 'write'.
18429
18430 2011-04-13  Bruno Haible  <bruno@clisp.org>
18431
18432         Support non-blocking pipe I/O in write() on native Windows.
18433         * lib/unistd.in.h (write): Enable replacement also if
18434         GNULIB_UNISTD_H_NONBLOCKING is 1.
18435         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
18436         (rpl_write): When failing to write on a non-blocking pipe, change
18437         errno from ENOSPC to EAGAIN.
18438         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
18439         putchar, puts, vfprintf, vprintf): Enable replacement also if
18440         GNULIB_STDIO_H_NONBLOCKING is 1.
18441         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
18442         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
18443         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
18444         CALL_WITH_SIGPIPE_EMULATION.
18445         (CALL_WITH_SIGPIPE_EMULATION): Use them.
18446         * m4/nonblocking.m4: New file.
18447         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
18448         for non-blocking I/O support.
18449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18450         GNULIB_UNISTD_H_NONBLOCKING.
18451         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
18452         required for non-blocking I/O support.
18453         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
18454         * modules/nonblocking (Files): Add m4/nonblocking.m4,
18455         lib/stdio-write.c, m4/asm-underscore.m4.
18456         (Depends-on): Add stdio, unistd.
18457         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
18458         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
18459         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
18460         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
18461         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
18462         problem with non-blocking pipes.
18463         * doc/posix-functions/fputc.texi: Likewise.
18464         * doc/posix-functions/fputs.texi: Likewise.
18465         * doc/posix-functions/fwrite.texi: Likewise.
18466         * doc/posix-functions/printf.texi: Likewise.
18467         * doc/posix-functions/putc.texi: Likewise.
18468         * doc/posix-functions/putchar.texi: Likewise.
18469         * doc/posix-functions/puts.texi: Likewise.
18470         * doc/posix-functions/vfprintf.texi: Likewise.
18471         * doc/posix-functions/vprintf.texi: Likewise.
18472         * doc/posix-functions/write.texi: Likewise.
18473
18474 2011-04-10  Jim Meyering  <meyering@redhat.com>
18475
18476         maint.mk: prohibit doubled words
18477         Detect them also when they're separated by a newline.
18478         There are 3 ways to customize it:
18479           - disable the test on a per file basis, as usual with rules using
18480             $(VC_LIST_EXCEPT)
18481           - replace the default doubled-word-selecting regexp (affects all files)
18482           - ignore a particular file-vs-doubled-word match
18483         I nearly used that last one to ignore the "is is" match in
18484         coreutils' NEWS file, since the text was "ls -is is ..."
18485         To do that, I would have added this line to cfg.mk:
18486           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
18487         but it would have ignored any "is is" match in NEWS.
18488         Low probability, but still...
18489         Instead, I changed the text, slightly:
18490           -  ls -is is now consistent with ls -lis in ignoring values returned
18491           +  "ls -is" is now consistent with ls -lis in ignoring values returned
18492         * top/maint.mk (prohibit_double_word_RE_): Provide default.
18493         (prohibit_doubled_word_): Define.
18494         (sc_prohibit_doubled_word): New rule.
18495         (sc_prohibit_the_the): Remove.  Subsumed by the above.
18496
18497 2011-04-10  Jim Meyering  <meyering@redhat.com>
18498
18499         maint: fix doubled-word typo in comment
18500         * m4/gethostname.m4: s/is is/it is/
18501         * m4/getdomainname.m4: Likewise.
18502
18503 2011-04-10  Jim Meyering  <meyering@redhat.com>
18504
18505         maint: remove doubled word: s/it it/it/
18506         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
18507
18508 2011-04-10  Jim Meyering  <meyering@redhat.com>
18509
18510         maint.mk: remove useless semicolon and backslash
18511         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
18512         semicolon and backslash.
18513
18514 2011-04-10  Bruno Haible  <bruno@clisp.org>
18515
18516         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
18517         * modules/stdint-tests (Depends-on): Add wchar.
18518
18519 2011-04-10  Jim Meyering  <meyering@redhat.com>
18520
18521         maint: remove doubled words in comments, e.g., s/a a/a/
18522         * lib/strptime.c (day_of_the_week): s/the the/the/
18523         * tests/test-chown.h (test_chown): s/a a/a/
18524
18525         test-chown.h: correct a cast
18526         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
18527         when the destination is a stat.st_gid.
18528
18529 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
18530
18531         getaddrinfo: Fix test for sa_len member.
18532         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
18533         include <sys/types.h> before <sys/socket.h>.
18534
18535 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18536
18537         maint: change "can not" to "cannot"
18538         * doc/posix-functions/iconv.texi (iconv): This one crossed line
18539         boundaries.
18540
18541 2011-04-09  Jim Meyering  <meyering@redhat.com>
18542
18543         maint: change "a a" to "a"
18544         * tests/test-lchown.h (test_lchown): s/a a/a/
18545
18546         maint.mk: prohibit \<the the\>
18547         * top/maint.mk (sc_prohibit_the_the): New rule.
18548
18549         maint: fix "the the" in comment
18550         * lib/count-one-bits.h: s/the the/the/
18551
18552         maint: change "can not" to "cannot"
18553         But do not change the occurrences in maintain.texi or in
18554         build-aux/po/Makefile.in.in, which I presume comes from gettext.
18555         * doc/gnulib-tool.texi: s/can not/cannot/
18556         * doc/posix-functions/accept.texi (accept): Likewise.
18557         * doc/posix-functions/socket.texi (socket): Likewise.
18558         * lib/mbrtowc.c: Likewise.
18559
18560         maint.mk: prohibit use of "can not"
18561         * top/maint.mk (sc_prohibit_can_not): New rule.
18562         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18563
18564 2011-04-09  Bruno Haible  <bruno@clisp.org>
18565
18566         careadlinkat: Guard against misuse of careadlinkatcwd.
18567         * lib/careadlinkat.c: Include <stdlib.h>.
18568         (careadlinkatcwd): Check that the fd argument is as expected.
18569
18570 2011-04-09  Bruno Haible  <bruno@clisp.org>
18571
18572         careadlinkat: Use common coding style.
18573         * lib/careadlinkat.c: Move gnulib includes after system includes.
18574
18575 2011-04-09  Bruno Haible  <bruno@clisp.org>
18576
18577         careadlinkat: Clarify specification.
18578         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18579         (careadlinkatcwd): Add comment.
18580         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18581
18582 2011-04-09  Bruno Haible  <bruno@clisp.org>
18583
18584         areadlinkat: Avoid link error on many platforms.
18585         * modules/areadlinkat (Depends-on): Add areadlink.
18586
18587 2011-04-09  Bruno Haible  <bruno@clisp.org>
18588
18589         allocator, careadlinkat: Fix double-inclusion guard.
18590         * lib/allocator.h: Fix double-inclusion guard.
18591         * lib/careadlinkat.h: Likewise.
18592
18593 2011-04-09  Bruno Haible  <bruno@clisp.org>
18594
18595         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18596         * lib/relocwrapper.c: Update dependencies hierarchy.
18597         * build-aux/install-reloc: Update list of files to be compiled.
18598         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18599         lib/allocator.[hc].
18600
18601 2011-04-08  Eric Blake  <eblake@redhat.com>
18602
18603         strftime: silence gnulib-tool warning
18604         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18605
18606 2011-04-08  Bruno Haible  <bruno@clisp.org>
18607
18608         verify: Fix syntax error with GCC 4.6 in C++ mode.
18609         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18610         (HAVE_STATIC_ASSERT): New macro.
18611         (verify_true, verify): Use 'static_assert' if it is supported and
18612         '_Static_assert' is not supported.
18613
18614 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18615
18616         allocator: New module.
18617         * modules/allocator, lib/allocator.c: New files.
18618         * lib/allocator.h (stdlib_allocator): New decl.
18619         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18620         Remove.  Do not include <stdlib.h>.
18621         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18622         * modules/careadlinkat (Files): Remove lib/allocator.h.
18623         (Depends-on): Add allocator.
18624
18625         stdlib: let modules use system malloc, realloc
18626         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18627         if !_GL_USE_STDLIB_ALLOC.
18628         (malloc, realloc): Limit this change to a smaller scope.
18629
18630         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18631         (malloc, realloc): Don't #undef; no longer needed.
18632         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18633         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18634         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18635         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18636         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18637         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18638         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18639         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18640
18641         careadlinkat: rename members to avoid problem
18642         * lib/allocator.h (struct allocator): Rename members from
18643         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18644         and realloc are #define'd.  Reported by Eric Blake in
18645         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18646         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18647
18648 2011-04-08  Eric Blake  <eblake@redhat.com>
18649
18650         nonblocking: reduce dependency
18651         * tests/test-nonblocking.c: Only test sockets when in use.
18652         * modules/nonblocking-tests (Depends-on): Drop socket.
18653         (Makefile.am): Link even if sockets are not present.
18654         * modules/pipe2-tests (Makefile.am): Likewise.
18655         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18656
18657         pipe2: fix O_NONBLOCK support on mingw
18658         * modules/pipe2 (Depends-on): Add nonblocking.
18659         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18660         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18661         * tests/test-nonblocking.c (main): Likewise.
18662         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18663
18664         fcntl-h: fix O_ACCMODE on cygwin
18665         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18666         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18667
18668         pipe-filter: drop O_NONBLOCK workarounds
18669         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18670         * modules/pipe-filter-ii (Depends-on): Likewise.
18671         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18672
18673         nonblocking: provide O_NONBLOCK for mingw
18674         * modules/nonblocking (Depends-on): Add open.
18675         (configure.ac): Set new witness macro.
18676         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18677         * modules/fcntl-h (Makefile.am): Substitute it.
18678         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18679         nonblocking module is in use.
18680         * lib/nonblocking.c: Adjust portability test.
18681         * lib/open.c (open): Don't let native open see gnulib flag.
18682         * tests/test-fcntl-h.c (main): Enhance test.
18683         * tests/test-open.h (test_open): Likewise.
18684         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18685
18686         careadlinkat: fix compilation error on mingw
18687         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18688         within struct allocator.
18689
18690 2011-04-06  Eric Blake  <eblake@redhat.com>
18691
18692         binary-io: relicense under LGPLv2+
18693         * modules/binary-io (License): Relax to LGPLv2+.
18694         Requested for libvirt, and required by pipe2.
18695
18696 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18697
18698         verify: use _Static_assert if available
18699         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18700         (verify_true, verify): Use it if available.  This generates better
18701         diagnostics with GCC 4.6.0 and later.
18702
18703 2011-04-05  Bruno Haible  <bruno@clisp.org>
18704
18705         Remove leftover generated .h files after config.status changed.
18706
18707         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18708         GL_GENERATE_ALLOCA_H.
18709         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18710         GL_GENERATE_ALLOCA_H evaluates to false.
18711
18712         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18713         GL_GENERATE_ARGZ_H.
18714         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18715         evaluates to false.
18716
18717         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18718         GL_GENERATE_BYTESWAP_H.
18719         * modules/byteswap (Makefile.am): Remove byteswap.h if
18720         GL_GENERATE_BYTESWAP_H evaluates to false.
18721
18722         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18723         GL_GENERATE_ERRNO_H.
18724         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18725         evaluates to false.
18726
18727         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18728         GL_GENERATE_FLOAT_H.
18729         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18730         evaluates to false.
18731
18732         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18733         GL_GENERATE_FNMATCH_H.
18734         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18735         GL_GENERATE_FNMATCH_H evaluates to false.
18736
18737         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18738         GL_GENERATE_GLOB_H.
18739         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18740         evaluates to false.
18741
18742         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18743         automake conditional GL_GENERATE_ICONV_H.
18744         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18745         evaluates to false.
18746
18747         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18748         GL_GENERATE_NETINET_IN_H.
18749         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18750         GL_GENERATE_NETINET_IN_H evaluates to false.
18751
18752         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18753         conditional GL_GENERATE_PTHREAD_H.
18754         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18755         * modules/pthread (Makefile.am): Remove pthread.h if
18756         GL_GENERATE_PTHREAD_H evaluates to false.
18757
18758         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18759         GL_GENERATE_SCHED_H.
18760         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18761         evaluates to false.
18762
18763         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18764         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18765         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18766         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18767
18768         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18769         GL_GENERATE_STDARG_H.
18770         * modules/stdarg (Makefile.am): Remove stdarg.h if
18771         GL_GENERATE_STDARG_H evaluates to false.
18772
18773         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18774         GL_GENERATE_STDBOOL_H.
18775         * modules/stdbool (Makefile.am): Remove stdbool.h if
18776         GL_GENERATE_STDBOOL_H evaluates to false.
18777
18778         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18779         conditional GL_GENERATE_STDDEF_H.
18780         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18781         * modules/stddef (Makefile.am): Remove stddef.h if
18782         GL_GENERATE_STDDEF_H evaluates to false.
18783
18784         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18785         GL_GENERATE_STDINT_H.
18786         * modules/stdint (Makefile.am): Remove stdint.h if
18787         GL_GENERATE_STDINT_H evaluates to false.
18788
18789         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18790         GL_GENERATE_SYSEXITS_H.
18791         * modules/sysexits (Makefile.am): Remove sysexits.h if
18792         GL_GENERATE_SYSEXITS_H evaluates to false.
18793
18794         Reported by Karl Berry and Ralf Wildenhues.
18795
18796 2011-04-05  Bruno Haible  <bruno@clisp.org>
18797
18798         Ensure to rebuild generated .h files when config.status has changed.
18799         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18800         config.status.
18801         * modules/ctype (Makefile.am): Likewise.
18802         * modules/dirent (Makefile.am): Likewise.
18803         * modules/errno (Makefile.am): Likewise.
18804         * modules/fcntl-h (Makefile.am): Likewise.
18805         * modules/float (Makefile.am): Likewise.
18806         * modules/getopt-posix (Makefile.am): Likewise.
18807         * modules/glob (Makefile.am): Likewise.
18808         * modules/iconv-h (Makefile.am): Likewise.
18809         * modules/inttypes (Makefile.am): Likewise.
18810         * modules/langinfo (Makefile.am): Likewise.
18811         * modules/locale (Makefile.am): Likewise.
18812         * modules/math (Makefile.am): Likewise.
18813         * modules/netdb (Makefile.am): Likewise.
18814         * modules/netinet_in (Makefile.am): Likewise.
18815         * modules/poll-h (Makefile.am): Likewise.
18816         * modules/pthread (Makefile.am): Likewise.
18817         * modules/pty (Makefile.am): Likewise.
18818         * modules/sched (Makefile.am): Likewise.
18819         * modules/search (Makefile.am): Likewise.
18820         * modules/selinux-h (Makefile.am): Likewise.
18821         * modules/signal (Makefile.am): Likewise.
18822         * modules/spawn (Makefile.am): Likewise.
18823         * modules/stdarg (Makefile.am): Likewise.
18824         * modules/stdbool (Makefile.am): Likewise.
18825         * modules/stddef (Makefile.am): Likewise.
18826         * modules/stdint (Makefile.am): Likewise.
18827         * modules/stdio (Makefile.am): Likewise.
18828         * modules/stdlib (Makefile.am): Likewise.
18829         * modules/string (Makefile.am): Likewise.
18830         * modules/strings (Makefile.am): Likewise.
18831         * modules/sys_file (Makefile.am): Likewise.
18832         * modules/sys_ioctl (Makefile.am): Likewise.
18833         * modules/sys_select (Makefile.am): Likewise.
18834         * modules/sys_socket (Makefile.am): Likewise.
18835         * modules/sys_stat (Makefile.am): Likewise.
18836         * modules/sys_time (Makefile.am): Likewise.
18837         * modules/sys_times (Makefile.am): Likewise.
18838         * modules/sys_utsname (Makefile.am): Likewise.
18839         * modules/sys_wait (Makefile.am): Likewise.
18840         * modules/sysexits (Makefile.am): Likewise.
18841         * modules/termios (Makefile.am): Likewise.
18842         * modules/time (Makefile.am): Likewise.
18843         * modules/unistd (Makefile.am): Likewise.
18844         * modules/wchar (Makefile.am): Likewise.
18845         * modules/wctype-h (Makefile.am): Likewise.
18846         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18847
18848 2011-04-05  Bruno Haible  <bruno@clisp.org>
18849
18850         pipe2: Relicense under LGPLv2+.
18851         * modules/pipe2 (License): Change to LGPLv2+.
18852         Requested by Eric Blake, for libvirt.
18853
18854 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18855
18856         bootstrap: compute gnulib_extra_files after updating build_aux
18857         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18858         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18859
18860 2011-04-05  Eric Blake  <eblake@redhat.com>
18861
18862         bootstrap: preserve git whitelist item sorting
18863         * build-aux/bootstrap (sort_patterns): New function.
18864         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18865
18866 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18867
18868         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18869         sc_space_tab check.
18870
18871 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18872
18873         areadlink, areadlinkat: rewrite in terms of careadlinkat
18874         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18875         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18876         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18877         (malloc, realloc): Remove #undefs.
18878         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18879         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18880         readlink, ssize_t, stdint, unistd.
18881         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18882         areadlink, stdint.
18883
18884         careadlinkat: new module
18885         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18886         * modules/careadlinkat: New files, written by me with
18887         a review and feedback from Ben Pfaff in
18888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18889
18890 2011-04-01  Bruno Haible  <bruno@clisp.org>
18891
18892         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18893         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18894         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18895         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18896         Reported by Bruce Korb <bruce.korb@gmail.com>.
18897
18898 2011-04-01  Bruno Haible  <bruno@clisp.org>
18899
18900         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18901         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18902         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18903         * modules/wcpcpy (Depends-on): Add extensions.
18904         * modules/wcpncpy (Depends-on): Likewise.
18905         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18906         systems.
18907         * doc/posix-functions/wcpncpy.texi: Likewise.
18908         * doc/posix-functions/wcwidth.texi: Likewise.
18909
18910 2011-03-31  Eric Blake  <eblake@redhat.com>
18911
18912         nonblocking: fix mingw test failures
18913         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18914         non-blocking flag on regular file.
18915         (get_nonblocking_flag): Set errno on invalid fd.
18916         * tests/test-nonblocking.c (main): Avoid test failure on
18917         directories if fchdir is not active.
18918         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18919
18920 2011-03-31  Bruno Haible  <bruno@clisp.org>
18921
18922         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18923         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18924         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18925         Reported by Simon Josefsson <simon@josefsson.org>.
18926
18927 2011-03-31  Bruno Haible  <bruno@clisp.org>
18928         and Eric Blake  <eblake@redhat.com>
18929
18930         nonblocking: new module
18931         * modules/nonblocking: New module.
18932         * modules/nonblocking-tests: Likewise.
18933         * lib/nonblocking.h: New file.
18934         * lib/nonblocking.c: Likewise.
18935         * tests/test-nonblocking.c: New test.
18936         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18937
18938 2011-03-30  Bruno Haible  <bruno@clisp.org>
18939
18940         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18941         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18942         instead of 'printf' format for GCC >= 4.4.
18943         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18944         (fprintf, printf, vfprintf, vprintf): Declare with
18945         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18946         the system's vfprintf() function.
18947         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18948
18949 2011-03-30  Eric Blake  <eblake@redhat.com>
18950
18951         passfd: fix scoping bug
18952         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18953         before sendmsg/recvmsg.
18954
18955         passfd: standardize coding conventions
18956         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18957         can be learned at compile time.
18958         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18959         ifdefs.
18960         (sendfd, recvfd): Follow gnulib code conventions.
18961
18962         passfd: fix incorrect sendmsg arguments
18963         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18964         incorrect msg_controllen value.
18965         * modules/passfd-tests (Depends-on): Check for alarm.
18966         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18967         Reported by Bastien ROUCARIES.
18968
18969 2011-03-30  Bruno Haible  <bruno@clisp.org>
18970
18971         c-strcasestr: Relicense under LGPLv2+.
18972         * modules/c-strcasestr (License): Change to LGPLv2+.
18973         Requested by Eric Blake, for libvirt.
18974
18975 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18976
18977         * users.txt: Add libidn2.  Fix libtasn1 link.
18978
18979 2011-03-30  Jim Meyering  <meyering@redhat.com>
18980
18981         tests: readlink* ("",... fails with EINVAL on newer kernels
18982         readlink and readlinkat have typically failed with ENOENT for
18983         the invalid, empty file name,  "".  However, with the advent
18984         of linux-2.6.39, they fail with EINVAL.
18985         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18986         when operating on the empty file name.
18987         * tests/test-readlink.h (test_readlink): Likewise.
18988
18989 2011-03-29  Bruno Haible  <bruno@clisp.org>
18990
18991         Relicense some modules under LGPLv2+, for libidn2.
18992         * modules/array-mergesort (License): Change to LGPLv2+.
18993         * modules/c-strcaseeq (License): Likewise.
18994         * modules/striconveh (License): Likewise.
18995         * modules/striconveha (License): Likewise.
18996         * modules/uniconv/base (License): Likewise.
18997         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18998         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18999         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
19000         * modules/unictype/base (License): Likewise.
19001         * modules/unictype/bidiclass-of (License): Likewise.
19002         * modules/unictype/category-M (License): Likewise.
19003         * modules/unictype/category-none (License): Likewise.
19004         * modules/unictype/category-of (License): Likewise.
19005         * modules/unictype/category-test (License): Likewise.
19006         * modules/unictype/category-test-withtable (License): Likewise.
19007         * modules/unictype/combining-class (License): Likewise.
19008         * modules/unictype/joiningtype-of (License): Likewise.
19009         * modules/unictype/scripts (License): Likewise.
19010         * modules/uninorm/base (License): Likewise.
19011         * modules/uninorm/canonical-decomposition (License): Likewise.
19012         * modules/uninorm/composition (License): Likewise.
19013         * modules/uninorm/decompose-internal (License): Likewise.
19014         * modules/uninorm/decomposition-table (License): Likewise.
19015         * modules/uninorm/nfc (License): Likewise.
19016         * modules/uninorm/nfd (License): Likewise.
19017         * modules/uninorm/u32-normalize (License): Likewise.
19018         * modules/unistr/base (License): Likewise.
19019         * modules/unistr/u32-cpy (License): Likewise.
19020         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
19021         * modules/unistr/u32-to-u8 (License): Likewise.
19022         * modules/unistr/u32-uctomb (License): Likewise.
19023         * modules/unistr/u8-check (License): Likewise.
19024         * modules/unistr/u8-mblen (License): Likewise.
19025         * modules/unistr/u8-mbtouc (License): Likewise.
19026         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
19027         * modules/unistr/u8-mbtoucr (License): Likewise.
19028         * modules/unistr/u8-prev (License): Likewise.
19029         * modules/unistr/u8-strlen (License): Likewise.
19030         * modules/unistr/u8-to-u32 (License): Likewise.
19031         * modules/unistr/u8-uctomb (License): Likewise.
19032         * modules/unitypes (License): Likewise.
19033         Requested by Simon Josefsson.
19034
19035 2011-03-29  Simon Josefsson  <simon@josefsson.org>
19036
19037         lib-symbol-visibility: Add a notice.
19038         * modules/lib-symbol-visibility (Notice): New field.
19039
19040 2011-03-29  Bruno Haible  <bruno@clisp.org>
19041
19042         getaddrinfo: Doc fix.
19043         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
19044         section "fixed in Gnulib".
19045
19046 2011-03-28  Simon Josefsson  <simon@josefsson.org>
19047
19048         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
19049         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
19050
19051 2011-03-26  Bruno Haible  <bruno@clisp.org>
19052
19053         unictype/property-byname: Reduce the number of load-time relocations.
19054         * lib/unictype/pr_byname.c: Include <stdlib.h>.
19055         (UC_PROPERTY_INDEX_*): New enumeration values.
19056         (uc_property_byname): Convert an index from the lookup table to an
19057         uc_property_t.
19058         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
19059         values.
19060
19061 2011-03-26  Bruno Haible  <bruno@clisp.org>
19062
19063         unictype/property-byname: Allow omitted word separators and aliases.
19064         * lib/unictype/pr_byname.gperf: Add property names without word
19065         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
19066         for 'space'.
19067
19068 2011-03-26  Bruno Haible  <bruno@clisp.org>
19069
19070         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
19071         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
19072         also hyphens to space.
19073         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
19074         without spaces.
19075         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
19076
19077 2011-03-26  Bruno Haible  <bruno@clisp.org>
19078
19079         unictype/joiningtype-byname: Recognize long names as well.
19080         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
19081         a long name.
19082         * lib/unictype/joiningtype_byname.c: Include <string.h>,
19083         unictype/joiningtype_byname.h.
19084         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
19085         * lib/unictype/joiningtype_byname.gperf: New file.
19086         * modules/unictype/joiningtype-byname (Files): Add
19087         lib/unictype/joiningtype_byname.gperf.
19088         (Depends-on): Add gperf.
19089         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
19090         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
19091         long names.
19092
19093         Tests for module 'unictype/joiningtype-longname'.
19094         * modules/unictype/joiningtype-longname-tests: New file.
19095         * tests/unictype/test-joiningtype_longname.c: New file.
19096
19097         New module 'unictype/joiningtype-longname'.
19098         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
19099         * lib/unictype/joiningtype_longname.c: New file.
19100         * modules/unictype/joiningtype-longname: New file.
19101         * modules/unictype/joiningtype-all (Depends-on): Add
19102         unictype/joiningtype-longname.
19103
19104 2011-03-26  Bruno Haible  <bruno@clisp.org>
19105
19106         unictype/bidiclass-byname: Recognize long names as well.
19107         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
19108         name.
19109         * lib/unictype/bidi_byname.c: Include <string.h>,
19110         unictype/bidi_byname.h.
19111         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
19112         * lib/unictype/bidi_byname.gperf: New file.
19113         * modules/unictype/bidiclass-byname (Files): Add
19114         lib/unictype/bidi_byname.gperf.
19115         (Depends-on): Add gperf.
19116         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
19117         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
19118         long names.
19119
19120         Tests for module 'unictype/bidiclass-longname'.
19121         * modules/unictype/bidiclass-longname-tests: New file.
19122         * tests/unictype/test-bidi_longname.c: New file.
19123
19124         New module 'unictype/bidiclass-longname'.
19125         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
19126         * lib/unictype/bidi_longname.c: New file.
19127         * modules/unictype/bidiclass-longname: New file.
19128         * modules/unictype/bidiclass-all (Depends-on): Add
19129         unictype/bidiclass-longname.
19130
19131 2011-03-26  Bruno Haible  <bruno@clisp.org>
19132
19133         unictype/bidi*: Rename modules.
19134         * modules/unictype/bidiclass-all: Renamed from
19135         modules/unictype/bidicategory-all.
19136         * modules/unictype/bidiclass-name: Renamed from
19137         modules/unictype/bidiclass-name.
19138         (Description): Update.
19139         * modules/unictype/bidiclass-name-tests: Renamed from
19140         modules/unictype/bidicategory-name-tests.
19141         * modules/unictype/bidiclass-byname: Renamed from
19142         modules/unictype/bidicategory-byname.
19143         (Description): Update.
19144         * modules/unictype/bidiclass-byname-tests: Renamed from
19145         modules/unictype/bidicategory-byname-tests.
19146         * modules/unictype/bidiclass-of: Renamed from
19147         modules/unictype/bidicategory-of.
19148         (Description): Update.
19149         * modules/unictype/bidiclass-of-tests: Renamed from
19150         modules/unictype/bidicategory-of-tests.
19151         * modules/unictype/bidiclass-test: Renamed from
19152         modules/unictype/bidicategory-test.
19153         (Description): Update.
19154         * modules/unictype/bidiclass-test-tests: Renamed from
19155         modules/unictype/bidicategory-test-tests.
19156         * modules/unictype/bidicategory-all: New file, a simple redirection.
19157         * modules/unictype/bidicategory-name: Likewise.
19158         * modules/unictype/bidicategory-byname: Likewise.
19159         * modules/unictype/bidicategory-of: Likewise.
19160         * modules/unictype/bidicategory-test: Likewise.
19161         * modules/unictype/property-bidi-* (Dependencies): Update.
19162         * lib/unictype/bidi_*.c: Update comment.
19163
19164 2011-03-26  Bruno Haible  <bruno@clisp.org>
19165
19166         unictype/bidi*: Rename functions, part 2.
19167         * modules/unictype/bidicategory-name (configure.ac): Update required
19168         libunistring version.
19169         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
19170
19171 2011-03-25  Bruno Haible  <bruno@clisp.org>
19172
19173         New module 'unictype/combining-class-all'.
19174         * modules/unictype/combining-class-all: New file.
19175
19176         Tests for module 'unictype/combining-class-byname'.
19177         * modules/unictype/combining-class-byname-tests: New file.
19178         * tests/unictype/test-combiningclass_byname.c: New file.
19179
19180         New module 'unictype/combining-class-byname'.
19181         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
19182         * lib/unictype/combiningclass_byname.c: New file.
19183         * lib/unictype/combiningclass_byname.gperf: New file.
19184         * modules/unictype/combining-class-byname: New file.
19185
19186         Tests for module 'unictype/combining-class-longname'.
19187         * modules/unictype/combining-class-longname-tests: New file.
19188         * tests/unictype/test-combiningclass_longname.c: New file.
19189
19190         New module 'unictype/combining-class-longname'.
19191         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
19192         * lib/unictype/combiningclass_longname.c: New file.
19193         * modules/unictype/combining-class-longname: New file.
19194
19195         Tests for module 'unictype/combining-class-name'.
19196         * modules/unictype/combining-class-name-tests: New file.
19197         * tests/unictype/test-combiningclass_name.c: New file.
19198
19199         New module 'unictype/combining-class-name'.
19200         * lib/unictype.in.h (uc_combining_class_name): New declaration.
19201         * lib/unictype/combiningclass_name.c: New file.
19202         * modules/unictype/combining-class-name: New file.
19203
19204 2011-03-25  Bruno Haible  <bruno@clisp.org>
19205
19206         unictype/combining-class: Rename source files.
19207         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
19208         of unictype/combining.h.
19209         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
19210         Update.
19211         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
19212         * modules/unictype/combining-class (Description): Fix.
19213         (Files, Makefile.am): Update.
19214         * tests/unictype/test-combiningclass.c: Renamed from
19215         tests/unictype/test-combining.c.
19216         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
19217
19218 2011-03-25  Bruno Haible  <bruno@clisp.org>
19219
19220         unictype: Update list of canonical combining classes.
19221         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
19222
19223 2011-03-25  Bruno Haible  <bruno@clisp.org>
19224
19225         unictype/category-byname: Recognize long names as well.
19226         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
19227         a long name.
19228         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
19229         unictype/categ_byname.h.
19230         (UC_CATEGORY_INDEX_*): New enumeration values.
19231         (uc_general_category_byname): Use uc_general_category_lookup and
19232         convert from index to value.
19233         * lib/unictype/categ_byname.gperf: New file.
19234         * modules/unictype/category-byname (Files): Add
19235         lib/unictype/categ_byname.gperf.
19236         (Depends-on): Add gperf.
19237         (Makefile.am): Add rule for generating unictype/categ_byname.h.
19238         * tests/unictype/test-categ_byname.c (main): Test the recognition of
19239         long names.
19240
19241         Tests for module 'unictype/category-longname'.
19242         * modules/unictype/category-longname-tests: New file.
19243         * tests/unictype/test-categ_longname.c: New file.
19244
19245         New module 'unictype/category-longname'.
19246         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
19247         * lib/unictype/categ_longname.c: New file.
19248         * modules/unictype/category-longname: New file.
19249         * modules/unictype/category-all (Depends-on): Add it.
19250
19251 2011-03-25  Bruno Haible  <bruno@clisp.org>
19252
19253         Tests for module 'unictype/category-LC'.
19254         * modules/unictype/category-LC-tests: New file.
19255         * tests/unictype/test-categ_LC.c: New file, automatically generated.
19256
19257         New module 'unictype/category-LC'.
19258         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
19259         (UC_CATEGORY_LC): New declaration.
19260         (UC_CASED_LETTER): New macro.
19261         * lib/gen-uni-tables.c (is_category_LC): New function.
19262         (output_categories): Also handle category LC.
19263         (UC_CATEGORY_MASK_LC): New enumeration value.
19264         (general_category_byname): Also handle category LC.
19265         * lib/unictype/categ_LC.c: New file.
19266         * lib/unictype/categ_LC.h: New file, automatically generated.
19267         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
19268         category LC.
19269         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
19270         * modules/unictype/category-LC: New file.
19271         * modules/unictype/category-byname (Depends-on): Add
19272         unictype/category-LC.
19273         * modules/unictype/category-all (Depends-on): Likewise.
19274
19275 2011-03-25  Eric Blake  <eblake@redhat.com>
19276
19277         xmalloc: revert yesterday's regression
19278         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
19279         realloc's underlying behavior (allowing allocation of zero-size
19280         objects, especially if malloc-gnu is also in use).
19281
19282 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
19283
19284         maint.mk: add missing version to VC-tag
19285         * top/maint.mk: git tag was missing actual tag name; add it.
19286
19287         valgrind: do leak checking, and exit with code 1 on error (not 0)
19288         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
19289         to VALGRIND.
19290
19291 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
19292
19293         posix-modules: say what it does.
19294         * posix-modules: Add a line to the --help output saying what it does.
19295
19296 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
19297
19298         xmalloc: Do not leak if underlying realloc is C99 compatible.
19299         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
19300         This avoids a leak on C99-based systems.  See
19301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
19302
19303 2011-03-24  Eric Blake  <eblake@redhat.com>
19304
19305         realloc: document portability problem
19306         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
19307         passing 0 size to realloc.
19308
19309 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
19310
19311         doc: update users.txt
19312         * users.txt: Add cvsps, tmpwatch
19313
19314 2011-03-23  Matt Rice  <ratmice@gmail.com>
19315
19316         doc: update users.txt
19317         * users.txt: Add gdb.
19318
19319 2011-03-23  Jim Meyering  <meyering@redhat.com>
19320
19321         doc: update users.txt
19322         Looking through matches up to the following URL (there are still
19323         several more pages), I found several projects that use gnulib:
19324         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
19325         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
19326         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
19327
19328 2011-03-22  Bruno Haible  <bruno@clisp.org>
19329
19330         unictype/bidi*: Rename functions.
19331         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
19332         uc_bidi_class, uc_is_bidi_class): New declarations.
19333         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
19334         uc_bidi_category_byname.
19335         (uc_bidi_category_byname): New function.
19336         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
19337         u_bidi_category_name.
19338         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
19339         (uc_bidi_category_name): New function.
19340         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
19341         uc_bidi_category.
19342         (uc_bidi_category): New function.
19343         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
19344         uc_is_bidi_category. Invoke uc_bidi_class.
19345         (uc_is_bidi_category): New function.
19346         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
19347         instead of uc_bidi_category_byname.
19348         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
19349         instead of uc_bidi_category_name.
19350         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
19351         uc_bidi_category.
19352         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
19353         instead of uc_is_bidi_category.
19354
19355 2011-03-21  Bruno Haible  <bruno@clisp.org>
19356
19357         New module 'unictype/joininggroup-all'.
19358         * modules/unictype/joininggroup-all: New file.
19359
19360         Tests for module 'unictype/joininggroup-of'.
19361         * modules/unictype/joininggroup-of-tests: New file.
19362         * tests/unictype/test-joininggroup_of.c: New file.
19363         * tests/unictype/test-joininggroup_of.h: New file, automatically
19364         generated by gen-uni-tables.
19365
19366         New module 'unictype/joininggroup-of'.
19367         * modules/unictype/joininggroup-of: New file.
19368         * lib/unictype/joininggroup_of.c: New file.
19369         * lib/unictype/joininggroup_of.h: New file, automatically generated by
19370         gen-uni-tables.
19371
19372         Tests for module 'unictype/joininggroup-byname'.
19373         * modules/unictype/joininggroup-byname-tests: New file.
19374         * tests/unictype/test-joininggroup_byname.c: New file.
19375
19376         New module 'unictype/joininggroup-byname'.
19377         * modules/unictype/joininggroup-byname: New file.
19378         * lib/unictype/joininggroup_byname.c: New file.
19379         * lib/unictype/joininggroup_byname.gperf: New file.
19380
19381         Tests for module 'unictype/joininggroup-name'.
19382         * modules/unictype/joininggroup-name-tests: New file.
19383         * tests/unictype/test-joininggroup_name.c: New file.
19384
19385         New module 'unictype/joininggroup-name'.
19386         * modules/unictype/joininggroup-name: New file.
19387         * lib/unictype/joininggroup_name.c: New file.
19388         * lib/unictype/joininggroup_name.h: New file.
19389
19390         New module 'unictype/joiningtype-all'.
19391         * modules/unictype/joiningtype-all: New file.
19392
19393         Tests for module 'unictype/joiningtype-of'.
19394         * modules/unictype/joiningtype-of-tests: New file.
19395         * tests/unictype/test-joiningtype_of.c: New file.
19396         * tests/unictype/test-joiningtype_of.h: New file, automatically
19397         generated by gen-uni-tables.
19398
19399         New module 'unictype/joiningtype-of'.
19400         * modules/unictype/joiningtype-of: New file.
19401         * lib/unictype/joiningtype_of.c: New file.
19402         * lib/unictype/joiningtype_of.h: New file, automatically generated by
19403         gen-uni-tables.
19404
19405         Tests for module 'unictype/joiningtype-byname'.
19406         * modules/unictype/joiningtype-byname-tests: New file.
19407         * tests/unictype/test-joiningtype_byname.c: New file.
19408
19409         New module 'unictype/joiningtype-byname'.
19410         * modules/unictype/joiningtype-byname: New file.
19411         * lib/unictype/joiningtype_byname.c: New file.
19412
19413         Tests for module 'unictype/joiningtype-name'.
19414         * modules/unictype/joiningtype-name-tests: New file.
19415         * tests/unictype/test-joiningtype_name.c: New file.
19416
19417         New module 'unictype/joiningtype-name'.
19418         * modules/unictype/joiningtype-name: New file.
19419         * lib/unictype/joiningtype_name.c: New file.
19420
19421         unictype: Add support for Arabic shaping properties.
19422         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
19423         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
19424         declarations.
19425         (UC_JOINING_GROUP_*): New enumeration values.
19426         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
19427         declarations.
19428         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
19429         (unicode_joining_type): New variable.
19430         (UC_JOINING_GROUP_*): New enumeration values.
19431         (unicode_joining_group): New variable.
19432         (fill_arabicshaping, joining_type_as_c_identifier,
19433         output_joining_type_test, output_joining_type,
19434         joining_group_as_c_identifier, output_joining_group_test,
19435         output_joining_group): New functions.
19436         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
19437         fill_arabicshaping and output_joining_type_test, output_joining_type,
19438         output_joining_group_test, output_joining_group.
19439         Reported by Simon Josefsson.
19440
19441 2011-03-21  Jim Meyering  <meyering@redhat.com>
19442
19443         strftime: fix a bug in yesterday's change
19444         * lib/strftime.c (add): Accommodate width's initial value of -1.
19445         Otherwise, nstrftime would copy uninitialized data into
19446         the result buffer.
19447
19448 2011-03-21  Jim Meyering  <meyering@redhat.com>
19449
19450         tests: add strftime-tests module
19451         * tests/test-strftime.c: New file.
19452         * modules/strftime-tests: New module.
19453
19454 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19455
19456         strftime: don't assume a byte count fits in 'int'
19457         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
19458         found this problem by static analysis, using gcc -Wstrict-overflow
19459         (GCC 4.5.2, x86-64).  This reported an optimization that depended
19460         on an integer overflow having undefined behavior, but it turns out
19461         that the argument is a size, which might not fit in 'int' anyway,
19462
19463 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19464
19465         stdio: don't require ignore_value around fwrite
19466
19467         This patch works around libc bug 11959
19468         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
19469         Without this patch, applications must often write
19470         ignore_value (fwrite (...)) even though the ignore_value is
19471         not helpful here.  It's common to write many objects, using
19472         fwrite/printf/etc., and then use ferror to detect output error.
19473
19474         I considered making this patch optional, but decided against it,
19475         because libc is obviously being inconsistent here: there is no
19476         reason libc should insist that user code must inspect fwrite
19477         return's value without also insisting that it inspect printf's,
19478         putchar's, etc.  If user code wants to have a strict style where
19479         all these functions' values are checked (so that ferror need not
19480         be checked), we could add support for that style in a new gnulib
19481         module, but in the meantime it's better to be consistent and to
19482         support common usage.
19483
19484         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
19485         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
19486         that we are compiling in checking mode, and if not C++, and
19487         if not already wrapping fwrite for some other reason.
19488         (fwrite): #define to rpl_fwrite if the latter is defined.
19489
19490 2011-03-20  Bruno Haible  <bruno@clisp.org>
19491
19492         verror: Fix compilation error introduced on 2011-02-13.
19493         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
19494         instead of __attribute__.
19495         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19496
19497 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19498             Bruno Haible  <bruno@clisp.org>
19499
19500         socklen: do not depend on sys_socket
19501         While trying to modify Emacs to use gnulib's socklen module,
19502         I discovered a circular dependency: socklen depends on sys_socket
19503         and vice versa.  Emacs can use socklen, but it does not need
19504         sys_socket because it has its own substitute for sys/socket.h.
19505         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
19506         gl_TYPE_SOCKLEN_T.
19507         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
19508         gl_PREREQ_SYS_H_SOCKET.
19509         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
19510         gl_PREREQ_SYS_H_SOCKET.
19511         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
19512         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
19513         * modules/socklen (Depends-on): Do not depend on sys_socket.
19514         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
19515
19516 2011-03-20  Jim Meyering  <meyering@redhat.com>
19517
19518         maint.mk: sort file names *after* new transformation
19519         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
19520         prefix would have led to an unwarranted failure in GNU parted.
19521         Sort after that transformation.
19522
19523 2011-03-19  Jim Meyering  <meyering@redhat.com>
19524
19525         maint.mk: fix po-file syntax-check rule
19526         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
19527         Patch by Bruno Haible.
19528
19529 2011-03-19  Bruno Haible  <bruno@clisp.org>
19530
19531         socklen: Update comment.
19532         * m4/socklen.m4: Update comment about platforms.
19533
19534 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19535             Bruno Haible  <bruno@clisp.org>
19536
19537         inet_ntop, inet_pton: Simplify.
19538         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
19539         documented to provide socklen_t and we already depend on sys_socket.
19540         * modules/inet_pton (Depends-on): Likewise.
19541         * lib/arpa_inet.in.h: Adjust comment.
19542
19543 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19544             Bruno Haible  <bruno@clisp.org>
19545
19546         netdb: Simplify.
19547         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
19548         documented to provide socklen_t and we already depend on sys_socket.
19549         * lib/netdb.in.h: Adjust comment.
19550
19551 2011-03-19  Bruno Haible  <bruno@clisp.org>
19552
19553         sys_socket, netdb: Document problem with socklen_t.
19554         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
19555         platforms.
19556         * doc/posix-headers/netdb.texi: Likewise.
19557
19558 2011-03-18  Eric Blake  <eblake@redhat.com>
19559
19560         maint.mk: let po check work in VPATH build
19561         * top/maint.mk (po_file): Allow cfg.mk override.
19562         (sc_po_check): Allow VPATH use.
19563         Reported by Jiri Denemark.
19564
19565 2011-03-16  Jim Meyering  <meyering@redhat.com>
19566
19567         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19568         Before, you would have had to create one .x-sc_ file per rule in order
19569         to exempt offending files.  Now, you may instead use a Make variable --
19570         usually defined in cfg.mk -- whose name identifies the affected rule.
19571         * top/maint.mk (_sc_excl): Define.
19572         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19573         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19574
19575 2011-03-13  Bruno Haible  <bruno@clisp.org>
19576
19577         ignore-value tests: Avoid warnings.
19578         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19579         empty for gcc < 3.4.
19580
19581 2011-03-13  Bruno Haible  <bruno@clisp.org>
19582
19583         passfd: Fix link error on Solaris.
19584         * modules/passfd (Description): Correct.
19585         (Depends-on): Add socketlib.
19586         (Link): New section.
19587         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19588
19589 2011-03-13  Bruno Haible  <bruno@clisp.org>
19590
19591         passfd: Fix link error on AIX 5.2.
19592         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19593
19594 2011-03-13  Bruno Haible  <bruno@clisp.org>
19595
19596         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19597         * lib/sys_socket.in.h: Include <stddef.h>.
19598         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19599         CMSG_FIRSTHDR. Remove unused variable.
19600
19601 2011-03-13  Bruno Haible  <bruno@clisp.org>
19602
19603         passfd: Fix compilation error on OpenBSD.
19604         * lib/passfd.c: Include <sys/uio.h>.
19605
19606 2011-03-13  Bruno Haible  <bruno@clisp.org>
19607
19608         passfd test: Fix warnings.
19609         * tests/test-passfd.c: Include <sys/wait.h>.
19610         (main): Fix typo.
19611
19612 2011-03-13  Bruno Haible  <bruno@clisp.org>
19613
19614         passfd module, part 4, tweaks.
19615         * tests/test-passfd.c: Reorder includes.
19616         (main): Fix perror and printf calls.
19617
19618 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19619
19620         passfd module, part 4.
19621         * modules/passfd-tests: New file.
19622         * tests/test-passfd.c: New file.
19623
19624 2011-03-13  Jim Meyering  <meyering@redhat.com>
19625
19626         Makefile: rely on GNU make; derive syntax-check rule names
19627         Rather than requiring that each sc_ rule be listed as a dependent
19628         of "check", use features of GNU make to derive the list.
19629         * Makefile (syntax-check-rules): Define.
19630         (check): Depend on the new variable, not the hard-coded list.
19631
19632 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19633             Bruno Haible  <bruno@clisp.org>
19634
19635         passfd module, part 3.
19636         * lib/passfd.h (recvfd): Add a flags argument.
19637         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19638         (recvfd): Add a flags argument.
19639         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19640         exists.
19641         * modules/passfd (Depends-on): Add cloexec.
19642         Suggested by Eric Blake.
19643
19644 2011-03-13  Bruno Haible  <bruno@clisp.org>
19645
19646         passfd module, part 2, tweaks.
19647         * modules/passfd (Files): Reorder.
19648         (Depends-on): Remove errno.
19649         (Include): Remove <sys/socket.h>, <sys/un.h>.
19650         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19651         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19652         specification header. Include <sys/socket.h> always. Don't include
19653         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19654         (sendfd): Clarify that it sets errno when it fails.
19655         (recvfd): Fix specification.
19656
19657 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19658
19659         passfd module, part 2.
19660         * modules/passfd: New file.
19661         * lib/passfd.h: New file.
19662         * lib/passfd.c: New file.
19663
19664 2011-03-12  Bruno Haible  <bruno@clisp.org>
19665
19666         wcswidth, mbswidth: Avoid integer overflow.
19667         * lib/wcswidth.c: Include <limits.h>.
19668         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19669         * lib/mbswidth.c: Include <limits.h>.
19670         (mbsnwidth): Avoid 'int' overflow.
19671         Reported by Jim Meyering.
19672
19673 2011-03-12  Bruno Haible  <bruno@clisp.org>
19674
19675         futimens, utimensat: Avoid endless recursion on Solaris 10.
19676         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19677         Solaris.
19678         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19679         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19680
19681 2011-03-11  Jim Meyering  <meyering@redhat.com>
19682
19683         maint.mk: relax a regexp to accommodate other formatting styles
19684         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19685         between "ngettext" and the following "(".
19686
19687 2011-03-11  Pádraig Brady <P@draigBrady.com>
19688
19689         maint.mk: suppress a false positive warning
19690         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19691         diagnostics are marked with ngettext.
19692
19693 2011-03-10  Eric Blake  <eblake@redhat.com>
19694
19695         wchar: add explicit dependencies, for Tru64
19696         * modules/mbmemcasecoll (Depends-on): Add wchar.
19697         * modules/mbtowc (Depends-on): Likewise.
19698         * modules/vasnprintf (Depends-on): Likewise.
19699         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19700         * modules/wctomb (Depends-on): Likewise.
19701         Reported by Peter O'Gorman.
19702
19703 2011-03-08  Bruno Haible  <bruno@clisp.org>
19704
19705         passfd module, part 1, tweaks.
19706         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19707         Improve indentation. Improve AC_MSG_CHECKING messages.
19708         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19709         gl_SOCKET_FAMILIES.
19710
19711 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19712
19713         passfd module, part 1.
19714         * m4/afunix.m4: New file.
19715         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19716         sockets.
19717
19718 2011-03-08  Bruno Haible  <bruno@clisp.org>
19719
19720         regex-quote: New API.
19721         * lib/regex-quote.h: Include <stdbool.h>.
19722         (struct regex_quote_spec): New type.
19723         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19724         New declarations.
19725         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19726         'const struct regex_quote_spec *' argument.
19727         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19728         (pcre_special): New constant.
19729         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19730         New functions.
19731         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19732         'const struct regex_quote_spec *' argument.
19733         * modules/regex-quote (Depends-on): Add stdbool.
19734         * tests/test-regex-quote.c (check): Update for new API. Add test for
19735         anchored results.
19736         * NEWS: Mention the API change.
19737         Reported by Reuben Thomas and Eric Blake.
19738
19739 2011-03-06  Bruno Haible  <bruno@clisp.org>
19740
19741         regex-quote: Fix creation of POSIX extended regular expressions.
19742         * lib/regex-quote.c (ere_special): Add grouping and alternation
19743         operators.
19744
19745 2011-03-05  Bruno Haible  <bruno@clisp.org>
19746
19747         doc: Improve doc regarding autopoint vs. gnulib.
19748         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19749         disable autopoint while running autoreconf.
19750         Suggested by Ralf Wildenhues.
19751
19752 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19753
19754         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19755         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19756
19757 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19758
19759         parse-duration: remove xalloc.h dependency
19760         * lib/parse-duration.c (parse_period): handle NULL return from
19761         strdup instead of calling xstrdup().
19762         * modules/parse-duration: remove "xalloc" dependency
19763
19764 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19765
19766         bootstrap: honor m4_base when running aclocal
19767         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19768
19769 2011-03-02  Jim Meyering  <meyering@redhat.com>
19770
19771         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19772         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19773         on request from Matt Booth.
19774
19775 2011-03-01  Eric Blake  <eblake@redhat.com>
19776
19777         test-link: work on Hurd
19778         * tests/test-link.h (test_link): Hurd rejects linking directories
19779         with EISDIR instead of the POSIX-mandated EPERM.
19780
19781 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19782
19783         stdio: simplify by moving files to printf-posix, sigpipe
19784         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19785         since this symbol is needed only if printf is replaced.
19786         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19787         Require gl_ASM_SYMBOL_PREFIX.
19788         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19789         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19790         (Depends-on): Add 'raise'.
19791         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19792         * modules/stdio (Files): Remove lib/stdio-write.c,
19793         m4/asm-underscore.m4.
19794         (Depends-on): Remove 'raise'.
19795
19796         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19797         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19798         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19799         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19800
19801 2011-02-28  Bruno Haible  <bruno@clisp.org>
19802
19803         localcharset: Assume ANSI C behaviour of free().
19804         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19805         calling free().
19806         Suggested by Simon Josefsson <simon@josefsson.org>.
19807
19808 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19809             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19810             Bruno Haible  <bruno@clisp.org>  (tiny change)
19811
19812         On Cygwin, use /proc file system instead of win32 API.
19813         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19814         Win32 file names.
19815         (DllMain): Simplify by removing Cygwin specific code.
19816         (find_shared_library_fullname): Use Linux specific implementation also
19817         for Cygwin.
19818         (get_shared_library_fullname): Update accordingly.
19819         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19820         Win32 file names.
19821         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19822         Cygwin specific code.
19823
19824 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19825             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19826
19827         Fix OpenMP flag detection for various Fortran compilers.
19828         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19829         OpenMP-conditional compilation construct, to force compile
19830         failure with missing OpenMP flag.
19831         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19832
19833 2011-02-25  Eric Blake  <eblake@redhat.com>
19834
19835         strstr: expand test coverage
19836         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19837         compilation.
19838         * tests/test-memmem.c (main): Duplicate tests.
19839         * tests/test-strcasestr.c (main): Likewise.
19840         * tests/test-c-strcasestr.c (main): Likewise.
19841
19842 2011-02-25  Jim Meyering  <meyering@redhat.com>
19843
19844         maint.mk: detect missing-NL-at-EOF, too
19845         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19846         it also detects when a file lacks a newline at EOF.
19847         (require_exactly_one_NL_at_EOF_): Renamed from
19848         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19849         since people may well have .x-sc_... file names tied to the
19850         existing name.  Suggested by Eric Blake.
19851
19852 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19853
19854         dirname: move m4/dos.m4 functionality into lib/dosname.h
19855
19856         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19857         extracts symbols from it, puts them into config.h; but it's much
19858         easier to use the symbols directly.  filename.h already does this,
19859         but it disagrees with dos.m4 in some respects.  This patch
19860         introduces a different include file dosname.h that packages up
19861         dos.m4, and then later we can work on merging filename.h and
19862         dosname.h.  Applications that need only the easy-to-configure
19863         symbols should consider including dosname.h rather than dirname.h.
19864         * NEWS: Mention incompatible changes.
19865         * m4/dos.m4: Remove.
19866         * lib/dosname.h, modules/dosname: New files.
19867         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19868         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19869         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19870         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19871         Include dosname.h, not dirname.h.
19872         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19873         Include dosname.h, for definitions of symbols like ISSLASH
19874         that used to be in config.h.
19875         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19876         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19877         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19878         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19879         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19880         * modules/rmdir (Files): Likewise.
19881         * modules/stat (Files): Likewise.
19882         * modules/unlink (Files): Likewise.
19883         * modules/dirname-lgpl (Depends-on): Add dosname.
19884         * modules/lstat (Depends-on): Likewise.
19885         * modules/openat (Depends-on): Likewise.
19886         * modules/rmdir (Depends-on): Likewise.
19887         * modules/savewd (Depends-on): Likewise.
19888         * modules/stat (Depends-on): Likewise.
19889         * modules/unlink (Depends-on): Likewise.
19890         * modules/openat (Depends-on): Remove dirname-lgpl.
19891         * modules/savewd (Depends-on): Likewise.
19892         * tests/test-dirname.c: Do not use removed symbols like
19893         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19894         the remaining symbols, e.g., ISSLASH ('\\').
19895
19896 2011-02-25  Eric Blake  <eblake@redhat.com>
19897
19898         strstr: revert patches that introduced bug and pessimization
19899         * lib/str-two-way.h: Add another reference.
19900         (two_way_short_needle, two_way_long_needle): Revert changes from
19901         2011-02-24; they pessimize search speed.
19902         (critical_factorization): Partially revert changes from
19903         2010-06-22; they violate the requirement that the left half of the
19904         needle be smaller than the period of the needle.
19905
19906 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19907
19908         filenamecat: remove unnecessary dependency on dirname-lgpl
19909         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19910         is no direct dependency, just an indirect one via filenamecat-lgpl.
19911
19912         remove: remove unnecessary use of m4/dos.m4
19913         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19914         * modules/remove (FILES): Remove m4/dos.m4.
19915
19916         * lib/openat-proc.c: Don't include dirname.h; not needed.
19917
19918         backupfile: remove unnecessary use of m4/dos.m4
19919         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19920         of its symbols are used by the backupfile code.  backupfile.c does
19921         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19922         for the rare case of programs that want all their backup file
19923         names to live within 8+3 limits, and dos.m4 doesn't address that.
19924         * modules/backupfile (Files): Remove m4/dos.m4.
19925
19926 2011-02-24  Jim Meyering  <meyering@redhat.com>
19927
19928         strstr: fix a bug whereby strstr would mistakenly return NULL
19929         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19930         in period calculation.
19931         (two_way_long_needle): Likewise.
19932         The original problem was reported by Mike Stump in
19933         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19934         Ralf Wildenhues provided the short needle and haystack.
19935         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19936         Add a more involved test to trigger the bug in two_way_long_needle.
19937
19938 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19939
19940         gnulib-tool: remove use of bold display in help screen
19941         * gnulib-tool (func_usage): Do not use bold display anymore in the
19942         help screen.  That was just meant to be a temporary emphasis for a
19943         backward-incompatible change.
19944
19945 2011-02-23  Bruno Haible  <bruno@clisp.org>
19946
19947         Fix misindentation of preprocessor directives.
19948         * lib/argp-namefrob.h: Reindent preprocessor directives.
19949         * lib/getopt_int.h (struct _getopt_data): Likewise.
19950         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19951         * lib/vasnprintf.c (decode_long_double): Likewise.
19952         * tests/test-argmatch.c: Insert blank lines, for clarity.
19953         * tests/test-exclude.c: Likewise.
19954
19955 2011-02-22  Bruno Haible  <bruno@clisp.org>
19956
19957         ioctl: Fix for MacOS X in 64-bit mode.
19958         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19959         value.
19960         Suggested by Eric Blake.
19961         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19962
19963 2011-02-22  Jim Meyering  <meyering@redhat.com>
19964
19965         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19966         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19967         in lib/.
19968
19969 2011-02-22  Eric Blake  <eblake@redhat.com>
19970
19971         maint: avoid any CDPATH issue
19972         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19973
19974         maint: adjust cpp indentation for my modules, as well
19975         * Makefile (sc_cpp_indent_check): Add my name.
19976         * lib/fbufmode.c: Filter through cppi.
19977         * lib/fpurge.c: Likewise.
19978         * lib/freadable.c: Likewise.
19979         * lib/freading.c: Likewise.
19980         * lib/fwritable.c: Likewise.
19981         * lib/fwriting.c: Likewise.
19982         * lib/sigaction.c: Likewise.
19983
19984 2011-02-22  Jim Meyering  <meyering@redhat.com>
19985
19986         maint: adjust cpp indentation to reflect nesting depth
19987         I.e., in a block of code that begins with an unnested "#if",
19988         put one space between the "#" in column 1 and following token.
19989         For example,
19990         -#include <sys/vfs.h>
19991         +# include <sys/vfs.h>
19992         Do this only in .c files that are part of a module I maintain.
19993         * lib/linkat.c: Filter through cppi.
19994         * lib/nanosleep.c: Likewise.
19995         * lib/openat.c: Likewise.
19996         * lib/openat-die.c: Likewise.
19997         * lib/dup3.c: Likewise.
19998         * lib/fchownat.c: Likewise.
19999         * lib/flock.c: Likewise.
20000         * lib/fsync.c: Likewise.
20001         * lib/fts.c: Likewise.
20002         * lib/getpass.c: Likewise.
20003         * lib/gettimeofday.c: Likewise.
20004         * lib/userspec.c: Likewise.
20005         * Makefile (sc_cpp_indent_check): New rule, to check this.
20006
20007 2011-02-22  Bruno Haible  <bruno@clisp.org>
20008
20009         New module 'wctomb'.
20010         * lib/stdlib.in.h (wctomb): New declaration.
20011         * lib/wctomb.c: New file.
20012         * lib/wctomb-impl.h: New file.
20013         * m4/wctomb.m4: New file.
20014         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
20015         REPLACE_WCTOMB.
20016         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
20017         REPLACE_WCTOMB.
20018         * modules/wctomb: New file.
20019         * tests/test-stdlib-c++.cc: Test signature of wctomb.
20020         * doc/posix-functions/wctomb.texi: Mention the new module.
20021         * modules/wctob (Depends-on): Add wctomb.
20022
20023 2011-02-22  Bruno Haible  <bruno@clisp.org>
20024
20025         New module 'mbtowc'.
20026         * lib/stdlib.in.h (mbtowc): New declaration.
20027         * lib/mbtowc.c: New file.
20028         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
20029         * m4/mbtowc.m4: New file.
20030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
20031         REPLACE_MBTOWC.
20032         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
20033         REPLACE_MBTOWC.
20034         * modules/mbtowc: New file.
20035         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
20036         * doc/posix-functions/mbtowc.texi: Mention the new module.
20037         * modules/btowc (Depends-on): Add mbtowc.
20038
20039 2011-02-22  Bruno Haible  <bruno@clisp.org>
20040
20041         wcrtomb: Add more tests for native Windows platforms.
20042         * tests/test-wcrtomb-w32-1.sh: New file.
20043         * tests/test-wcrtomb-w32-2.sh: New file.
20044         * tests/test-wcrtomb-w32-3.sh: New file.
20045         * tests/test-wcrtomb-w32-4.sh: New file.
20046         * tests/test-wcrtomb-w32-5.sh: New file.
20047         * tests/test-wcrtomb-w32.c: New file.
20048         * modules/wcrtomb-tests (Files): Add them.
20049         (Makefile.am): Arrange to run these tests.
20050         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
20051         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
20052
20053 2011-02-20  Bruno Haible  <bruno@clisp.org>
20054
20055         wcrtomb: Enhance test.
20056         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
20057
20058 2011-02-20  Bruno Haible  <bruno@clisp.org>
20059
20060         mbrtowc: Tiny optimization.
20061         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
20062
20063 2011-02-20  Jim Meyering  <meyering@redhat.com>
20064
20065         test-exclude.c: remove unmatched #endif
20066         * tests/test-exclude.c: Remove stray #endif, left over from
20067         the change of a week ago.
20068
20069 2011-02-19  Jim Meyering  <meyering@redhat.com>
20070
20071         git-version-gen: skip "-dirty" check when appropriate
20072         * build-aux/git-version-gen: Don't run any git commands when the
20073         version string comes from .tarball-version.  Prior to this, we
20074         would run git update-index --refresh even from a just-unpacked
20075         tarball directory, and that could affect a .git/ directory in a
20076         parent of the build directory.  Reported by Mike Frysinger.
20077
20078 2011-02-19  Bruno Haible  <bruno@clisp.org>
20079
20080         unictype/property-byname: Reduce the size of the 'data' segment.
20081         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
20082
20083 2011-02-19  Bruno Haible  <bruno@clisp.org>
20084
20085         unictype/scripts: Reduce the size of the 'data' segment.
20086         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
20087         '%pic'.
20088         * lib/unictype/scripts_byname.gperf: Regenerated.
20089
20090 2011-02-19  Bruno Haible  <bruno@clisp.org>
20091
20092         stdint: Update documentation.
20093         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
20094
20095 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
20096
20097         stdint: omit redundant check for wchar.h
20098         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
20099         always tests whether wchar.h exists, so remove the now-redundant test.
20100
20101 2011-02-18  Bruno Haible  <bruno@clisp.org>
20102
20103         stdint: Cut dependency to module 'wchar'.
20104         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
20105         include the necessary prerequisites.
20106         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
20107         * modules/stdint (Depends-on): Remove wchar.
20108         (Makefile.am): Substitute HAVE_WCHAR_H.
20109         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
20110
20111 2011-02-18  Eric Blake  <eblake@redhat.com>
20112
20113         longlong: skip, rather than fail, on cross-compilation
20114         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
20115         when cross-compiling; regression from 2011-02-16.
20116
20117 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20118
20119         * NEWS: Mention 2011-02-08 change to stdlib.
20120
20121 2011-02-17  Bruno Haible  <bruno@clisp.org>
20122
20123         getloadavg: Add comments about platforms.
20124         * m4/getloadavg.m4: Add comment.
20125         * lib/getloadavg.c: Likewise.
20126
20127 2011-02-17  Bruno Haible  <bruno@clisp.org>
20128
20129         getloadavg: Fix link error on Solaris 2.6.
20130         * modules/getloadavg (Link): New section.
20131         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
20132         linking test-getloadavg.
20133         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
20134         getloadavg.
20135
20136 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20137
20138         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
20139         It was 'int', but this doesn't match the IRIX 6.5 manual.
20140         Suggested by Bruno Haible in
20141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
20142
20143 2011-02-17  Bruno Haible  <bruno@clisp.org>
20144
20145         havelib: Fix comments.
20146         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
20147         change.
20148
20149 2011-02-17  Bruno Haible  <bruno@clisp.org>
20150
20151         havelib: Update config.rpath.
20152         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
20153
20154 2011-02-17  Bruno Haible  <bruno@clisp.org>
20155
20156         getloadavg test: Add some plausibility checks.
20157         * tests/test-getloadavg.c (check_avg): Print a warning when the value
20158         is improbable.
20159
20160 2011-02-16  Eric Blake  <eblake@redhat.com>
20161
20162         maintainer-makefile: make syntax-check a no-op from tarballs
20163         * top/maint.mk (no-vc-detected): New rule.
20164         (local-checks-available): Use it to avoid hanging if someone tries
20165         'make syntax-check' from a tarball.  Also append to any non-syntax
20166         checks already defined in cfg.mk.
20167
20168 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20169
20170         longlong: tune, particularly for common case of c99
20171
20172         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
20173         or running anything if c99, or if unsigned long long int does not
20174         work.  In either case, we know the answer without further tests.
20175         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
20176         it at most once, and use its results for both long long int and
20177         unsigned long long int.  This is more likely to be efficient in
20178         the common case where the program wants to check for both long
20179         long int and unsigned long long int.
20180         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
20181         since the answer is already known.
20182
20183 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
20184
20185         getloadavg: set errno
20186         * lib/getloadavg.c: Set errno when returning -1.  If no other
20187         error number looks appropriate, set it to ENOSYS if the getloadavg
20188         looks like it can't possibly ever work, ENOTSUP otherwise.
20189         Suggested by Bruno Haible in
20190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
20191
20192         getloadavg: trim unused parts and speed up 'configure'
20193         * NEWS: Document this.
20194         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
20195         always compiled if getloadavg is absent.
20196         Move test code to ...
20197         * tests/test-getloadavg.c: New file, containing previous
20198         contents of test from lib/getloadavg.c.  It also contains
20199         suggestions by Bruno Haible in
20200         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
20201         * modules/getloadavg-tests: New file.
20202         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
20203         Do tests in the same order as they're needed for getloadavg.c.
20204         Omit setgid-related tests that generate symbols KMEM_GROUP,
20205         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
20206         Do only the tests that are needed to see whether the system has
20207         getloadavg, moving the other tests into ...
20208         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
20209         NLIST_NAME_UNION; nobody should be using it.  Do not define
20210         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
20211         relevant, as the user of this module shouldn't care how getloadavg
20212         is implemented.
20213
20214         getloadavg: omit unused var
20215         * lib/getloadavg.c (getloadavg): Omit unused local variable.
20216
20217 2011-02-15  Jim Meyering  <meyering@redhat.com>
20218
20219         doc: update users.txt
20220         * users.txt: Update iwhd's URL.
20221
20222 2011-02-13  Bruno Haible  <bruno@clisp.org>
20223
20224         Consistent macro naming for macros that use GCC __attribute__.
20225         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
20226         _ATTRIBUTE_NONNULL_.
20227         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
20228         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
20229         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
20230         ATTRIBUTE_DEPRECATED.
20231         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
20232         ATTRIBUTE_NORETURN.
20233         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20234         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20235         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20236         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20237         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
20238         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
20239         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
20240         ATTRIBUTE_SENTINEL.
20241         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
20242         ATTRIBUTE_RETURN_CHECK.
20243         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
20244         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
20245         ATTRIBUTE_NORETURN.
20246         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
20247         Reported by Paul Eggert.
20248
20249 2011-02-13  Bruno Haible  <bruno@clisp.org>
20250
20251         Don't interfere with a program's definition of __attribute__.
20252         * lib/argp.h (__attribute__): Remove definition.
20253         (_GL_ATTRIBUTE_FORMAT): New macro.
20254         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
20255         * lib/argp-fmtstream.h (__attribute__): Remove definition.
20256         (_GL_ATTRIBUTE_FORMAT): New macro.
20257         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
20258         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
20259         GCC 3 or newer.
20260         * lib/error.h (__attribute__): Remove definition.
20261         (_GL_ATTRIBUTE_FORMAT): New macro.
20262         (error, error_at_line): Use it.
20263         * lib/hash.h (__attribute__): Remove definition.
20264         (ATTRIBUTE_WUR): Update definition. Define always.
20265         * lib/openat.h (__attribute__): Remove definition.
20266         (ATTRIBUTE_NORETURN): Update definition. Define always.
20267         * lib/sigpipe-die.h (__attribute__): Remove definition.
20268         (ATTRIBUTE_NORETURN): Update definition. Define always.
20269         * lib/vasnprintf.h (__attribute__): Remove definition.
20270         (_GL_ATTRIBUTE_FORMAT): New macro.
20271         (asnprintf, vasnprintf): Use it.
20272         * lib/xalloc.h (__attribute__): Remove definition.
20273         (ATTRIBUTE_NORETURN): Update definition. Define always.
20274         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
20275         * lib/xmemdup0.h (__attribute__): Remove definition.
20276         (ATTRIBUTE_NORETURN): Update definition. Define always.
20277         * lib/xprintf.h (__attribute__): Remove definition.
20278         (_GL_ATTRIBUTE_FORMAT): New macro.
20279         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
20280         * lib/xstrtol.h (__attribute__): Remove definition.
20281         (ATTRIBUTE_NORETURN): Update definition. Define always.
20282         * lib/xvasprintf.h (__attribute__): Remove definition.
20283         (_GL_ATTRIBUTE_FORMAT): New macro.
20284         (xasprintf, xvasprintf): Use it.
20285         * tests/test-argmatch.c (__attribute__): Remove definition.
20286         (ATTRIBUTE_NORETURN): Update definition. Define always.
20287         * tests/test-exclude.c (__attribute__): Remove definition.
20288         (ATTRIBUTE_NORETURN): Update definition. Define always.
20289         Reported by Paul Eggert.
20290
20291 2011-02-13  Bruno Haible  <bruno@clisp.org>
20292
20293         mbrtowc: Add more tests for native Windows platforms.
20294         * tests/test-mbrtowc-w32-1.sh: New file.
20295         * tests/test-mbrtowc-w32-2.sh: New file.
20296         * tests/test-mbrtowc-w32-3.sh: New file.
20297         * tests/test-mbrtowc-w32-4.sh: New file.
20298         * tests/test-mbrtowc-w32-5.sh: New file.
20299         * tests/test-mbrtowc-w32.c: New file.
20300         * modules/mbrtowc-tests (Files): Add them.
20301         (Makefile.am): Arrange to run these tests.
20302         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
20303         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
20304
20305 2011-02-13  Bruno Haible  <bruno@clisp.org>
20306
20307         mbrtowc: Work around native Windows bug.
20308         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
20309         guess when no suitable locale for testing was found.
20310         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
20311
20312 2011-02-13  Bruno Haible  <bruno@clisp.org>
20313
20314         mbsinit: Work around mingw bug.
20315         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
20316         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
20317         Windows.
20318         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
20319
20320 2011-02-13  Bruno Haible  <bruno@clisp.org>
20321
20322         mbsinit: Don't crash for a NULL argument.
20323         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
20324         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
20325
20326 2011-02-13  Bruno Haible  <bruno@clisp.org>
20327
20328         Don't interfere with a program's definition of __attribute__.
20329         * lib/stdio.in.h (__attribute__): Remove definition.
20330         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
20331         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
20332         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
20333         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
20334         * lib/string.in.h (__attribute__): Remove definition.
20335         Reported by Paul Eggert.
20336
20337 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20338
20339         stdlib: don't get in the way of non-GCC __attribute__
20340         See thread starting at
20341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
20342         Revert previous stdlib change, installing the following instead:
20343         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
20344         to get in the way of a non-GCC compiler that supports __attribute__.
20345         (_GL_ATTRIBUTE_RETURN): New macro.
20346         (_Exit): Use it instead of __attribute__.
20347
20348 2011-02-12  Bruno Haible  <bruno@clisp.org>
20349
20350         quotearg test: Avoid test failure on mingw.
20351         * tests/test-quotearg.sh: Convert the locale identifier from native
20352         Windows syntax to Unix syntax.
20353
20354 2011-02-12  Bruno Haible  <bruno@clisp.org>
20355
20356         setlocale: Prefer gnulib's override over libintl's override.
20357         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
20358         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
20359         GNULIB_defined_setlocale is set.
20360
20361 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20362
20363         stdlib: support non-GCC __attribute__
20364
20365         Fix a serious and tricky problem encountered when attempting to
20366         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
20367         5.5, but it crashed due to memory corruption on Solaris 10 with
20368         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
20369         bits that are otherwise zero.  This tagging is optional inside
20370         Emacs but is preferred and is used when __attribute__ ((__aligned
20371         (8))) works, as it does with both recent-enough GCC and with Sun C
20372         5.11.  However, Sun C 5.11 is not GCC and does not #define
20373         __GNUC__ and __GNUC_MINOR__.
20374
20375         When I added the getloadavg module to Emacs, it brought in
20376         stdlib.in.h, which contained this fragment:
20377
20378            #ifndef __attribute__
20379            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
20380            #  define __attribute__(Spec)   /* empty */
20381            # endif
20382            #endif
20383
20384         When files that include <stdlib.h> were compiled with Sun C 5.11,
20385         the above code disabled __attribute__ ((__aligned (8))), which
20386         caused variables to not be properly aligned, which eventually led
20387         to the pointer corruption mentioned above.  (This was a bit hard
20388         to diagnose, unfortunately.)
20389
20390         Several "#define __attribute__(X) /* empty */" code snippets need
20391         to be eradicated from Gnulib to work with non-GCC compilers that
20392         support __attribute__.  The Autoconf way to do this is to test for
20393         each kind of attribute that we want support for, and selectively
20394         enable that in source code.
20395
20396         Fix this problem just for stdlib.h, by adding a test for the
20397         __noreturn__ attribute, and change stdlib.in.h to use that test
20398         when needed.  This technique can be easily generalized to the
20399         other *.in.h files and attributes, and a similar technique can be
20400         used for *.h and *.c files.  This patch is enough to solve the
20401         problem for Emacs + getloadavg, and I thought I'd publish it for
20402         feedback before undertaking further, similar fixes in other
20403         modules.
20404
20405         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
20406         because it's not needed for stdlib.h.  It merely substitutes the
20407         value directly into stdlib.h.  We may well need to #define it, or
20408         similar symbols, for other modules, but it's nice to also have an
20409         option to not #define it for applications like Emacs that do not
20410         need it.
20411
20412         * lib/stdlib.in.h (__attribute__): Do not #define.
20413         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
20414         be defined only if the _Exit module is also used.
20415         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
20416         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
20417         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
20418         platforms.
20419         * modules/_Exit (Files): Add m4/attribute.m4.
20420         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
20421         * m4/attribute.m4: New file.
20422
20423 2011-02-12  Bruno Haible  <bruno@clisp.org>
20424
20425         wcsrtombs: Work around bug on native Windows.
20426         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
20427         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
20428         instead of len.
20429         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
20430
20431 2011-02-12  Bruno Haible  <bruno@clisp.org>
20432
20433         mbsrtowcs: Work around bug on native Windows.
20434         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
20435         against mingw bug.
20436         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
20437
20438 2011-02-12  Bruno Haible  <bruno@clisp.org>
20439
20440         Avoid setlocale bugs in tests.
20441         * modules/btowc (Dependencies): Add setlocale.
20442         * modules/c-strcase (Dependencies): Likewise.
20443         * modules/mbmemcasecmp (Dependencies): Likewise.
20444         * modules/mbmemcasecoll (Dependencies): Likewise.
20445         * modules/mbrtowc (Dependencies): Likewise.
20446         * modules/mbscasecmp (Dependencies): Likewise.
20447         * modules/mbscasestr (Dependencies): Likewise.
20448         * modules/mbschr (Dependencies): Likewise.
20449         * modules/mbscspn (Dependencies): Likewise.
20450         * modules/mbsinit (Dependencies): Likewise.
20451         * modules/mbsncasecmp (Dependencies): Likewise.
20452         * modules/mbsnrtowcs (Dependencies): Likewise.
20453         * modules/mbspbrk (Dependencies): Likewise.
20454         * modules/mbspcasecmp (Dependencies): Likewise.
20455         * modules/mbsrchr (Dependencies): Likewise.
20456         * modules/mbsrtowcs (Dependencies): Likewise.
20457         * modules/mbsspn (Dependencies): Likewise.
20458         * modules/mbsstr (Dependencies): Likewise.
20459         * modules/nl_langinfo (Dependencies): Likewise.
20460         * modules/quotearg (Dependencies): Likewise.
20461         * modules/unicase/locale-language (Dependencies): Likewise.
20462         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
20463         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
20464         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
20465         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
20466         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
20467         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
20468         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
20469         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
20470         * modules/vasnprintf-posix (Dependencies): Likewise.
20471         * modules/wcrtomb (Dependencies): Likewise.
20472         * modules/wcsnrtombs (Dependencies): Likewise.
20473         * modules/wcsrtombs (Dependencies): Likewise.
20474
20475 2011-02-12  Bruno Haible  <bruno@clisp.org>
20476
20477         setlocale: Workaround native Windows bug.
20478         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
20479         succeeds but sets LC_CTYPE to "C", report a failure.
20480         * tests/test-setlocale2.sh: New file.
20481         * tests/test-setlocale2.c: New file.
20482         * modules/setlocale-tests (Files): Add the new files.
20483         (Makefile.am): Enable test-setlocale2.sh test.
20484         * doc/posix-functions/setlocale.texi: Mention workaround.
20485
20486 2011-02-11  Bruno Haible  <bruno@clisp.org>
20487
20488         Tests for module 'setlocale'.
20489         * modules/setlocale-tests: New file.
20490         * tests/test-setlocale1.sh: New file.
20491         * tests/test-setlocale1.c: New file.
20492
20493         New module 'setlocale'.
20494         * lib/locale.in.h (setlocale): New declaration.
20495         * lib/setlocale.c: New file, based on
20496         gettext/gettext-runtime/intl/setlocale.c.
20497         * m4/setlocale.m4: New file.
20498         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
20499         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
20500         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
20501         REPLACE_SETLOCALE.
20502         * modules/setlocale: New file.
20503         * tests/test-locale-c++.cc: Test the declaration of setlocale.
20504         * doc/posix-functions/setlocale.texi: Mention the new module.
20505
20506 2011-02-11  Bruno Haible  <bruno@clisp.org>
20507
20508         Prepare for locale dependent tests on mingw.
20509         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
20510         because it has the wrong locale encoding.
20511         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
20512         French_France.1252 instead of "fr".
20513         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
20514         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
20515         because it has the wrong locale encoding.
20516         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
20517         native Windows, try Turkish_Turkey.65001.
20518         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
20519         Chinese_China.54936.
20520
20521         Prepare for locale dependent tests on mingw.
20522         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
20523         differently.
20524         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20525         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20526         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20527         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20528
20529 2011-02-11  Eric Blake  <eblake@redhat.com>
20530
20531         strptime: avoid compiler warnings
20532         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
20533         compiler warnings about dead code.
20534         Reported by Daniel P. Berrange.
20535
20536 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
20537
20538         doc: update users.txt
20539         * users.txt: Add rcs.
20540
20541 2011-02-10  John W. Eaton  <jwe@gnu.org>
20542
20543         doc: update users.txt
20544         * users.txt: Add octave.
20545
20546 2011-02-10  Jim Meyering  <meyering@redhat.com>
20547
20548         doc: update users.txt
20549         * users.txt: Add iwhd.
20550
20551 2011-02-09  Bruno Haible  <bruno@clisp.org>
20552
20553         gnulib-tool: Make copyright notice adjustment more robust.
20554         * gnulib-tool (func_import): In sed_transform_main_lib_file,
20555         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
20556         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20557         License".
20558         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20559
20560 2011-02-06  Bruno Haible  <bruno@clisp.org>
20561
20562         New module 'towctrans'.
20563         * modules/towctrans: New file.
20564         * lib/wctype.in.h (towctrans): New declaration.
20565         * lib/towctrans.c: New file.
20566         * lib/towctrans-impl.h: New file.
20567         * m4/towctrans.m4: New file.
20568         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20569         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20570         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20571         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20572         * doc/posix-functions/towctrans.texi: Mention the new module.
20573
20574 2011-02-06  Bruno Haible  <bruno@clisp.org>
20575
20576         New module 'wctrans'.
20577         * modules/wctrans: New file.
20578         * lib/wctype.in.h (wctrans): New declaration.
20579         * lib/wctrans.c: New file.
20580         * lib/wctrans-impl.h: New file.
20581         * m4/wctrans.m4: New file.
20582         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20583         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20584         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20585         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20586         * doc/posix-functions/wctrans.texi: Mention the new module.
20587
20588 2011-02-06  Bruno Haible  <bruno@clisp.org>
20589
20590         New module 'iswctype'.
20591         * modules/iswctype: New file.
20592         * lib/wctype.in.h (iswctype): New declaration.
20593         * lib/iswctype.c: New file.
20594         * lib/iswctype-impl.h: New file.
20595         * m4/iswctype.m4: New file.
20596         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20597         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20598         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20599         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20600         * doc/posix-functions/iswctype.texi: Mention the new module and the
20601         HP-UX 11.00 problem.
20602
20603 2011-02-06  Bruno Haible  <bruno@clisp.org>
20604
20605         New module 'wctype'.
20606         * modules/wctype: Change to represent the wctype() substitute.
20607         * lib/wctype.in.h (wctype): New declaration.
20608         * lib/wctype.c: New file.
20609         * lib/wctype-impl.h: New file.
20610         * m4/wctype.m4: New file.
20611         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20612         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20613         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20614         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20615         * doc/posix-functions/wctype.texi: Mention the new module and the
20616         HP-UX 11.00 problem.
20617
20618 2011-02-06  Bruno Haible  <bruno@clisp.org>
20619
20620         wctype-h: Ensure wctype_t and wctrans_t are defined.
20621         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20622         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20623         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20624         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20625         HAVE_WCTRANS_T.
20626         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20627
20628 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20629
20630         flock: fix license typo
20631
20632         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20633         omitted.
20634
20635 2011-02-08  Bruno Haible  <bruno@clisp.org>
20636
20637         Split large sed scripts, for HP-UX sed.
20638         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20639         to avoid HP-UX limit of 99 commands, in the near future.
20640         * modules/stdlib (Makefile.am): Likewise.
20641         * modules/unistd (Makefile.am): Likewise.
20642         * modules/wchar (Makefile.am): Likewise.
20643         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20644         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20645         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20646
20647 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20648             Bruno Haible  <bruno@clisp.org>
20649
20650         stdlib: improve random_r modularization
20651         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20652         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20653         you also need the random_r module to get this material right.
20654         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20655         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20656         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20657
20658 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20659
20660         stdlib: don't depend on stdint
20661         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20662         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20663         be independent of whether stdint.h is needed.
20664         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20665         here, instead of ...
20666         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20667         struct random_data should be using the random_r module, not just
20668         the stdlib module (which wouldn't make sense: what package needs
20669         just struct random_data without also needing random_r?).
20670         * modules/stdlib (Depends-on): Remove stdint.
20671
20672         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20673         See the thread rooted at
20674         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20675         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20676         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20677         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20678         __VMS)); previously it was always included (via fcntl--.h).
20679         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20680         hand; this is good enough for load averages.  Also, do not use
20681         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20682         flags directly if available and don't bother otherwise.  (Packages
20683         that need the extra reliability should use the modules that define
20684         these flags on older platforms that lack them.)
20685         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20686         fcntl-safer.
20687
20688 2011-02-08  Jim Meyering  <meyering@redhat.com>
20689
20690         di-set.h, ino-map.h: add multiple-inclusion guard
20691         Technically, the guard is required only for ino-map.h, due to its
20692         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20693         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20694         * lib/ino-map.h: Likewise.
20695
20696 2011-02-06  Bruno Haible  <bruno@clisp.org>
20697
20698         iswblank: Ensure declaration on glibc systems.
20699         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20700         * modules/iswblank (Dependencies): Add 'extensions'.
20701         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20702
20703 2011-02-06  Bruno Haible  <bruno@clisp.org>
20704
20705         New module 'iswblank'.
20706         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20707         * modules/iswblank: New file.
20708         * modules/wctype-h (Files): Remove lib/iswblank.c.
20709         (Makefile.am): Substitute GNULIB_ISWBLANK.
20710         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20711         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20712         (gl_WCTYPE_H_DEFAULTS): New macro.
20713         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20714         * modules/iswblank-tests: New file.
20715         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20716         * tests/test-wctype-h.c (main): Remove iswblank tests.
20717         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20718         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20719         of 'wctype-h'.
20720         * NEWS: Mention the change.
20721         * modules/mbchar (Depends-on): Add iswblank.
20722
20723 2011-02-08  Bruno Haible  <bruno@clisp.org>
20724
20725         di-set tests: Refactor.
20726         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20727         unnecessary includes.
20728         (ASSERT): Remove macro.
20729         (main): Make C90 compliant by avoiding variable declaration after
20730         statement.
20731         * modules/di-set-tests (Files): Add tests/macros.h.
20732
20733 2011-02-08  Bruno Haible  <bruno@clisp.org>
20734
20735         ino-map tests: Refactor.
20736         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20737         unnecessary includes.
20738         (ASSERT): Remove macro.
20739         (main): Make C90 compliant by avoiding variable declaration after
20740         statement.
20741         * modules/ino-map-tests (Files): Add tests/macros.h.
20742
20743 2011-02-08  Jim Meyering  <meyering@redhat.com>
20744
20745         di-set: add "const" to a cast
20746         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20747         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20748
20749 2011-02-06  Bruno Haible  <bruno@clisp.org>
20750
20751         Rename module 'wctype' to 'wctype-h'.
20752         * modules/wctype-h: Renamed from modules/wctype.
20753         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20754         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20755         (Files, Depends-on, Makefile.am): Update.
20756         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20757         (Files, Makefile.am): Update.
20758         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20759         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20760         * doc/posix-headers/wctype.texi: Update.
20761         * doc/posix-functions/iswalnum.texi: Update.
20762         * doc/posix-functions/iswalpha.texi: Update.
20763         * doc/posix-functions/iswblank.texi: Update.
20764         * doc/posix-functions/iswcntrl.texi: Update.
20765         * doc/posix-functions/iswdigit.texi: Update.
20766         * doc/posix-functions/iswgraph.texi: Update.
20767         * doc/posix-functions/iswlower.texi: Update.
20768         * doc/posix-functions/iswprint.texi: Update.
20769         * doc/posix-functions/iswpunct.texi: Update.
20770         * doc/posix-functions/iswspace.texi: Update.
20771         * doc/posix-functions/iswupper.texi: Update.
20772         * doc/posix-functions/iswxdigit.texi: Update.
20773         * doc/posix-functions/towlower.texi: Update.
20774         * doc/posix-functions/towupper.texi: Update.
20775         * NEWS: Mention the change.
20776         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20777         * modules/mbchar (Dependencies): Likewise.
20778         * modules/mbswidth (Dependencies): Likewise.
20779         * modules/quotearg (Dependencies): Likewise.
20780         * modules/regex (Dependencies): Likewise.
20781         * modules/wcscasecmp (Dependencies): Likewise.
20782         * modules/wcsncasecmp (Dependencies): Likewise.
20783         * modules/wcwidth (Dependencies): Likewise.
20784
20785 2011-02-06  Bruno Haible  <bruno@clisp.org>
20786
20787         New module 'wcswidth'.
20788         * modules/wcswidth: New file.
20789         * lib/wchar.in.h (wcswidth): New declaration.
20790         * lib/wcswidth.c: New file.
20791         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20792         * m4/wcswidth.m4: New file.
20793         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20794         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20795         REPLACE_WCSWIDTH.
20796         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20797         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20798         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20799         * doc/posix-functions/wcswidth.texi: Mention the new module.
20800
20801 2011-02-06  Bruno Haible  <bruno@clisp.org>
20802
20803         New module 'wcstok'.
20804         * modules/wcstok: New file.
20805         * lib/wchar.in.h (wcstok): New declaration.
20806         * lib/wcstok.c: New file.
20807         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20808         * m4/wcstok.m4: New file.
20809         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20810         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20811         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20812         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20813         * doc/posix-functions/wcstok.texi: Mention the new module.
20814
20815 2011-02-06  Bruno Haible  <bruno@clisp.org>
20816
20817         New module 'wcsstr'.
20818         * modules/wcsstr: New file.
20819         * lib/wchar.in.h (wcsstr): New declaration.
20820         * lib/wcsstr.c: New file.
20821         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20822         * m4/wcsstr.m4: New file.
20823         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20824         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20825         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20826         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20827         * doc/posix-functions/wcsstr.texi: Mention the new module.
20828
20829 2011-02-06  Bruno Haible  <bruno@clisp.org>
20830
20831         New module 'wcspbrk'.
20832         * modules/wcspbrk: New file.
20833         * lib/wchar.in.h (wcspbrk): New declaration.
20834         * lib/wcspbrk.c: New file.
20835         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20836         * m4/wcspbrk.m4: New file.
20837         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20838         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20839         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20840         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20841         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20842
20843 2011-02-06  Bruno Haible  <bruno@clisp.org>
20844
20845         New module 'wcsspn'.
20846         * modules/wcsspn: New file.
20847         * lib/wchar.in.h (wcsspn): New declaration.
20848         * lib/wcsspn.c: New file.
20849         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20850         * m4/wcsspn.m4: New file.
20851         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20852         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20853         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20854         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20855         * doc/posix-functions/wcsspn.texi: Mention the new module.
20856
20857 2011-02-06  Bruno Haible  <bruno@clisp.org>
20858
20859         New module 'wcscspn'.
20860         * modules/wcscspn: New file.
20861         * lib/wchar.in.h (wcscspn): New declaration.
20862         * lib/wcscspn.c: New file.
20863         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20864         * m4/wcscspn.m4: New file.
20865         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20866         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20867         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20868         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20869         * doc/posix-functions/wcscspn.texi: Mention the new module.
20870
20871 2011-02-06  Bruno Haible  <bruno@clisp.org>
20872
20873         New module 'wcsrchr'.
20874         * modules/wcsrchr: New file.
20875         * lib/wchar.in.h (wcsrchr): New declaration.
20876         * lib/wcsrchr.c: New file.
20877         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20878         * m4/wcsrchr.m4: New file.
20879         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20880         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20881         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20882         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20883         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20884
20885 2011-02-06  Bruno Haible  <bruno@clisp.org>
20886
20887         New module 'wcschr'.
20888         * modules/wcschr: New file.
20889         * lib/wchar.in.h (wcschr): New declaration.
20890         * lib/wcschr.c: New file.
20891         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20892         * m4/wcschr.m4: New file.
20893         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20894         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20895         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20896         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20897         * doc/posix-functions/wcschr.texi: Mention the new module.
20898
20899 2011-02-06  Bruno Haible  <bruno@clisp.org>
20900
20901         New module 'wcsdup'.
20902         * modules/wcsdup: New file.
20903         * lib/wchar.in.h (wcsdup): New declaration.
20904         * lib/wcsdup.c: New file.
20905         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20906         * m4/wcsdup.m4: New file.
20907         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20908         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20909         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20910         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20911         * doc/posix-functions/wcsdup.texi: Mention the new module.
20912
20913 2011-02-06  Bruno Haible  <bruno@clisp.org>
20914
20915         New module 'wcsxfrm'.
20916         * modules/wcsxfrm: New file.
20917         * lib/wchar.in.h (wcsxfrm): New declaration.
20918         * lib/wcsxfrm.c: New file.
20919         * lib/wcsxfrm-impl.h: New file.
20920         * m4/wcsxfrm.m4: New file.
20921         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20922         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20923         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20924         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20925         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20926
20927 2011-02-06  Bruno Haible  <bruno@clisp.org>
20928
20929         New module 'wcscoll'.
20930         * modules/wcscoll: New file.
20931         * lib/wchar.in.h (wcscoll): New declaration.
20932         * lib/wcscoll.c: New file.
20933         * lib/wcscoll-impl.h: New file.
20934         * m4/wcscoll.m4: New file.
20935         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20936         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20937         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20938         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20939         * doc/posix-functions/wcscoll.texi: Mention the new module.
20940
20941 2011-02-06  Bruno Haible  <bruno@clisp.org>
20942
20943         New module 'wcsncasecmp'.
20944         * modules/wcsncasecmp: New file.
20945         * lib/wchar.in.h (wcsncasecmp): New declaration.
20946         * lib/wcsncasecmp.c: New file.
20947         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20948         * m4/wcsncasecmp.m4: New file.
20949         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20950         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20951         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20952         HAVE_WCSNCASECMP.
20953         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20954         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20955
20956 2011-02-06  Bruno Haible  <bruno@clisp.org>
20957
20958         New module 'wcscasecmp'.
20959         * modules/wcscasecmp: New file.
20960         * lib/wchar.in.h (wcscasecmp): New declaration.
20961         * lib/wcscasecmp.c: New file.
20962         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20963         * m4/wcscasecmp.m4: New file.
20964         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20965         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20966         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20967         HAVE_WCSCASECMP.
20968         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20969         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20970
20971 2011-02-05  Bruno Haible  <bruno@clisp.org>
20972
20973         New module 'wcsncmp'.
20974         * modules/wcsncmp: New file.
20975         * lib/wchar.in.h (wcsncmp): New declaration.
20976         * lib/wcsncmp.c: New file.
20977         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20978         * m4/wcsncmp.m4: New file.
20979         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20980         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20981         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20982         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20983         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20984
20985 2011-02-05  Bruno Haible  <bruno@clisp.org>
20986
20987         New module 'wcscmp'.
20988         * modules/wcscmp: New file.
20989         * lib/wchar.in.h (wcscmp): New declaration.
20990         * lib/wcscmp.c: New file.
20991         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20992         * m4/wcscmp.m4: New file.
20993         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20994         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20995         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20996         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20997         * doc/posix-functions/wcscmp.texi: Mention the new module.
20998
20999 2011-02-05  Bruno Haible  <bruno@clisp.org>
21000
21001         New module 'wcsncat'.
21002         * modules/wcsncat: New file.
21003         * lib/wchar.in.h (wcsncat): New declaration.
21004         * lib/wcsncat.c: New file.
21005         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
21006         * m4/wcsncat.m4: New file.
21007         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
21008         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
21009         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
21010         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
21011         * doc/posix-functions/wcsncat.texi: Mention the new module.
21012
21013 2011-02-05  Bruno Haible  <bruno@clisp.org>
21014
21015         New module 'wcscat'.
21016         * modules/wcscat: New file.
21017         * lib/wchar.in.h (wcscat): New declaration.
21018         * lib/wcscat.c: New file.
21019         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
21020         * m4/wcscat.m4: New file.
21021         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
21022         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
21023         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
21024         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
21025         * doc/posix-functions/wcscat.texi: Mention the new module.
21026
21027 2011-02-05  Bruno Haible  <bruno@clisp.org>
21028
21029         New module 'wcpncpy'.
21030         * modules/wcpncpy: New file.
21031         * lib/wchar.in.h (wcpncpy): New declaration.
21032         * lib/wcpncpy.c: New file.
21033         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
21034         * m4/wcpncpy.m4: New file.
21035         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
21036         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
21037         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
21038         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
21039         * doc/posix-functions/wcpncpy.texi: Mention the new module.
21040
21041 2011-02-05  Bruno Haible  <bruno@clisp.org>
21042
21043         New module 'wcsncpy'.
21044         * modules/wcsncpy: New file.
21045         * lib/wchar.in.h (wcsncpy): New declaration.
21046         * lib/wcsncpy.c: New file.
21047         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
21048         * m4/wcsncpy.m4: New file.
21049         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
21050         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
21051         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
21052         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
21053         * doc/posix-functions/wcsncpy.texi: Mention the new module.
21054
21055 2011-02-05  Bruno Haible  <bruno@clisp.org>
21056
21057         New module 'wcpcpy'.
21058         * modules/wcpcpy: New file.
21059         * lib/wchar.in.h (wcpcpy): New declaration.
21060         * lib/wcpcpy.c: New file.
21061         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
21062         * m4/wcpcpy.m4: New file.
21063         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
21064         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
21065         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
21066         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
21067         * doc/posix-functions/wcpcpy.texi: Mention the new module.
21068
21069 2011-02-05  Bruno Haible  <bruno@clisp.org>
21070
21071         New module 'wcscpy'.
21072         * modules/wcscpy: New file.
21073         * lib/wchar.in.h (wcscpy): New declaration.
21074         * lib/wcscpy.c: New file.
21075         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
21076         * m4/wcscpy.m4: New file.
21077         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
21078         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
21079         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
21080         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
21081         * doc/posix-functions/wcscpy.texi: Mention the new module.
21082
21083 2011-02-05  Bruno Haible  <bruno@clisp.org>
21084
21085         New module 'wcsnlen'.
21086         * modules/wcsnlen: New file.
21087         * lib/wchar.in.h (wcsnlen): New declaration.
21088         * lib/wcsnlen.c: New file.
21089         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
21090         * m4/wcsnlen.m4: New file.
21091         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
21092         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
21093         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
21094         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
21095         * doc/posix-functions/wcsnlen.texi: Mention the new module.
21096
21097 2011-02-05  Bruno Haible  <bruno@clisp.org>
21098
21099         New module 'wcslen'.
21100         * modules/wcslen: New file.
21101         * lib/wchar.in.h (wcslen): New declaration.
21102         * lib/wcslen.c: New file.
21103         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
21104         * m4/wcslen.m4: New file.
21105         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
21106         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
21107         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
21108         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
21109         * doc/posix-functions/wcslen.texi: Mention the new module.
21110
21111 2011-02-05  Bruno Haible  <bruno@clisp.org>
21112
21113         New module 'wmemset'.
21114         * modules/wmemset: New file.
21115         * lib/wchar.in.h (wmemset): New declaration.
21116         * lib/wmemset.c: New file.
21117         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
21118         * m4/wmemset.m4: New file.
21119         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
21120         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
21121         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
21122         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
21123         * doc/posix-functions/wmemset.texi: Mention the new module.
21124
21125 2011-02-05  Bruno Haible  <bruno@clisp.org>
21126
21127         New module 'wmemmove'.
21128         * modules/wmemmove: New file.
21129         * lib/wchar.in.h (wmemmove): New declaration.
21130         * lib/wmemmove.c: New file.
21131         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
21132         * m4/wmemmove.m4: New file.
21133         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
21134         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
21135         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
21136         HAVE_WMEMMOVE.
21137         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
21138         * doc/posix-functions/wmemmove.texi: Mention the new module.
21139
21140 2011-02-05  Bruno Haible  <bruno@clisp.org>
21141
21142         New module 'wmemcpy'.
21143         * modules/wmemcpy: New file.
21144         * lib/wchar.in.h (wmemcpy): New declaration.
21145         * lib/wmemcpy.c: New file.
21146         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
21147         * m4/wmemcpy.m4: New file.
21148         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
21149         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
21150         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
21151         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
21152         * doc/posix-functions/wmemcpy.texi: Mention the new module.
21153
21154 2011-02-05  Bruno Haible  <bruno@clisp.org>
21155
21156         New module 'wmemcmp'.
21157         * modules/wmemcmp: New file.
21158         * lib/wchar.in.h (wmemcmp): New declaration.
21159         * lib/wmemcmp.c: New file.
21160         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
21161         * m4/wmemcmp.m4: New file.
21162         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
21163         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
21164         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
21165         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
21166         * doc/posix-functions/wmemcmp.texi: Mention the new module.
21167
21168 2011-02-07  Jim Meyering  <meyering@redhat.com>
21169
21170         di-set, ino-map: new modules, from coreutils
21171         * lib/di-set.c: New file.
21172         * lib/di-set.h: Likewise.
21173         * lib/ino-map.c: Likewise.
21174         * lib/ino-map.h: Likewise.
21175         * modules/di-set: Likewise.
21176         * modules/di-set-tests: Likewise.
21177         * modules/ino-map: Likewise.
21178         * modules/ino-map-tests: Likewise.
21179         * tests/test-di-set.c: Likewise.
21180         * tests/test-ino-map.c: Likewise.
21181
21182 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
21183
21184         getloadavg: merge minor changes from Emacs
21185
21186         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
21187         (getloadavg): Use memset, not bzero.
21188
21189         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
21190         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
21191         clash (bug#86).
21192
21193 2010-11-14  Bruno Haible  <bruno@clisp.org>
21194
21195         Allow multiple gnulib generated replacements to coexist.
21196         * lib/getopt.in.h (struct option): Avoid identical redefinition.
21197         * lib/inttypes.in.h (imaxdiv_t): Likewise.
21198         * lib/langinfo.in.h (nl_item): Likewise.
21199         * lib/math.in.h (_NaN, NAN): Likewise.
21200         * lib/netdb.in.h (struct addrinfo): Likewise.
21201         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
21202         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
21203         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
21204         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
21205         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
21206         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
21207         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
21208         pthread_mutexattr_init, pthread_mutexattr_settype,
21209         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
21210         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
21211         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
21212         pthread_spin_trylock, pthread_spin_unlock): Likewise.
21213         * lib/sched.in.h (struct sched_param): Likewise.
21214         * lib/se-selinux.in.h (security_class_t, security_context_t,
21215         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
21216         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
21217         lsetfilecon, fsetfilecon, security_check_context,
21218         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
21219         Likewise.
21220         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
21221         Likewise.
21222         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
21223         _gl_function_taking_int_returning_void_t, union sigval,
21224         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
21225         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
21226         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21227         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
21228         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
21229         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
21230         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
21231         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
21232         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
21233         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
21234         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
21235         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
21236         socklen_t, rpl_fd_isset): Likewise.
21237         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
21238         * lib/sys_time.in.h (struct timeval): Likewise.
21239         * lib/sys_times.in.h (struct tms): Likewise.
21240         * lib/sys_utsname.in.h (struct utsname):
21241         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
21242         * lib/unistd.in.h (getpagesize): Likewise.
21243         * lib/wchar.in.h (mbstate_t): Likewise.
21244         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21245         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
21246         towlower, towupper): Likewise.
21247         Reported by Sam Steingold <sds@gnu.org>.
21248
21249 2011-02-05  Eric Blake  <eblake@redhat.com>
21250
21251         unsetenv: work around Haiku issues
21252         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
21253         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
21254
21255 2010-12-30  Bruce Korb  <bkorb@gnu.org>
21256
21257         libposix: avoid calling error() within libposix
21258         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
21259         is defined.
21260
21261 2011-02-05  Eric Blake  <eblake@redhat.com>
21262
21263         strerror_r-posix: port to cygwin
21264         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
21265         implementation.
21266         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
21267         * tests/test-strerror_r.c (main): Fix test.
21268         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
21269         issue.
21270
21271 2011-02-05  Bruno Haible  <bruno@clisp.org>
21272
21273         New module 'wmemchr'.
21274         * modules/wmemchr: New file.
21275         * lib/wchar.in.h (wmemchr): New declaration.
21276         * lib/wmemchr.c: New file.
21277         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
21278         * m4/wmemchr.m4: New file.
21279         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
21280         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
21281         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
21282         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
21283         * doc/posix-functions/wmemchr.texi: Mention the new module.
21284
21285 2011-02-04  Eric Blake  <eblake@redhat.com>
21286
21287         fdopendir: detect FreeBSD bug
21288         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
21289         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
21290
21291 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21292
21293         stdbool: do not define HAVE_STDBOOL_H
21294         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
21295         AC_HEADER_STDBOOL.  All uses changed.  Do not define
21296         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
21297         imported from the latest Autoconf git.  It was motivated by Emacs,
21298         which uses gnulib but does not need HAVE_STDBOOL_H.
21299
21300 2011-02-04  Bruno Haible  <bruno@clisp.org>
21301
21302         wcsnrtombs: Prepare for new module wwcsnrtombs.
21303         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
21304         * lib/wcsnrtombs.c: Include it.
21305         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
21306
21307         wcsrtombs: Prepare for new module wwcsrtombs.
21308         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
21309         * lib/wcsrtombs.c: Include it.
21310         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
21311
21312         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
21313         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
21314         * lib/mbsnrtowcs.c: Include it.
21315         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
21316
21317         mbsrtowcs: Prepare for new module mbsrtowwcs.
21318         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
21319         * lib/mbsrtowcs.c: Include it.
21320         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
21321
21322 2011-02-04  Bruno Haible  <bruno@clisp.org>
21323
21324         vasnprintf: Reduce use of malloc for small format strings.
21325         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
21326         (arguments): Add room for the first 7 arguments.
21327         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
21328         (char_directives, u8_directives, u16_directives, u32_directives): Add
21329         room for the first 7 directives.
21330         * lib/printf-parse.c: Include <string.h>.
21331         (PRINTF_PARSE): Change memory handling code so that it uses the first
21332         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
21333         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
21334         Reported by Pádraig Brady <P@draigbrady.com>.
21335
21336 2011-01-31  Eric Blake  <eblake@redhat.com>
21337
21338         dup2: work around Haiku bug
21339         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
21340         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
21341         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21342         * tests/test-dup2.c (main): Enhance test.
21343
21344 2011-01-31  Simon Josefsson  <simon@josefsson.org>
21345
21346         doc: off_t is not available in eglibc 2.11.2 stdio.h.
21347         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
21348         declared by eglibc 2.11.2.
21349         * lib/stdio.in.h: Likewise.
21350
21351 2011-01-31  Eric Blake  <eblake@redhat.com>
21352
21353         ignore-value: add missing test dependency
21354         * tests/test-ignore-value.c: Revert previous change; stdio.h
21355         provides off_t.
21356         * modules/ignore-value-tests (Depends-on): Add missing dependency.
21357
21358 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21359
21360         mktime: clarify long_int width checking
21361         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
21362         the top level, to make it clearer that the assumption about
21363         long_int width is being checked.  See
21364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
21365
21366 2011-01-30  Simon Josefsson  <simon@josefsson.org>
21367
21368         ignore-value: Fix self-test.
21369         * tests/test-ignore-value.c: Include sys/types.h for off_t.
21370
21371 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
21372
21373         TYPE_MAXIMUM: avoid theoretically undefined behavior
21374         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
21375         negative number, which the C Standard says has undefined behavior.
21376         In practice this is not a problem, but might as well do it by the book.
21377         Reported by Rich Felker and Eric Blake; see
21378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
21379         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
21380         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21381         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21382         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
21383         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21384         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
21385
21386         mktime: #undef mktime before #defining it
21387         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
21388
21389         mktime: systematically normalize tm_isdst comparisons
21390         * lib/mktime.c (isdst_differ): New function.
21391         (__mktime_internal): Use it systematically for all isdst comparisons.
21392         This completes the fix for libc BZ #6723, and removes the need for
21393         normalizing tm_isdst.  See
21394         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
21395         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
21396
21397         mktime: fix some integer overflow issues and sidestep the rest
21398
21399         This was prompted by a bug report by Benjamin Lindner for MinGW
21400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
21401         His bug is due to signed integer overflow (0 - INT_MIN), and I
21402         I scanned through mktime.c looking for other integer overflow
21403         problems, fixing all the bugs I found.
21404
21405         Although the C Standard says the resulting code is still not safe
21406         in the presence of integer overflow, in practice it should be good
21407         enough for all real-world two's-complement implementations, except
21408         for debugging environments that deliberately trap on integer
21409         overflow (e.g., gcc -ftrapv).
21410
21411         * lib/mktime.c (WRAPV): New macro.
21412         (SHR): Also check that long_int and time_t shift right in the
21413         usual way, before using the fast-but-unportable method.
21414         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
21415         used.  The code already assumed two's complement, so there's
21416         no need to test for alternatives.  All uses removed.
21417         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
21418         the C standard.  Problem reported by Rich Felker in
21419         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
21420         (twos_complement_arithmetic): Also check long_int and time_t.
21421         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
21422         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
21423         (__mktime_internal): Avoid integer overflow with unary subtraction
21424         in two instances where -1 - X is an adequate replacement for -X,
21425         since the calculations are approximate.
21426
21427 2011-01-29  Eric Blake  <eblake@redhat.com>
21428
21429         mktime: avoid infinite loop
21430         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
21431         type; behavior is still undefined but portable to all known targets.
21432         Reported by Rich Felker.
21433
21434 2011-01-29  Simon Josefsson  <simon@josefsson.org>
21435
21436         rename, unlink, same-inode: Relicense.
21437         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
21438         * modules/unlink (License): Likewise.
21439         * modules/same-inode (License): Likewise.
21440
21441 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21442
21443         mktime: avoid problems on NetBSD 5 / i386
21444         * lib/mktime.c (long_int): New type.  This works around a problem
21445         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
21446         but time_t is 64 bits, and where I expect the existing code is
21447         wrong in some cases.
21448         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
21449         (ydhms_diff): Bring back the compile-time check for wide-enough
21450         year and yday.
21451
21452         mktime: fix misspelling in comment
21453         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
21454         This merges all recent glibc changes of importance.
21455
21456 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21457
21458         move-if-change: cope with concurrent mv of identical file.
21459         * build-aux/move-if-change (CMPPROG): Accept environment
21460         variable as an override for `cmp'.
21461         (usage): Document CMPPROG.
21462         Adjust comparison to drop stdout.  Cope with failure of mv if
21463         the target file exists and is identical to the source, for
21464         parallel builds.
21465         Report from H.J. Lu against binutils in PR binutils/12283.
21466
21467 2011-01-28  Bruce Korb  <bkorb@gnu.org>
21468
21469         * users.txt: Mention sharutils.
21470
21471 2011-01-28  Simon Josefsson  <simon@josefsson.org>
21472
21473         * users.txt: Mention OATH Toolkit.
21474
21475 2011-01-27  Bruno Haible  <bruno@clisp.org>
21476
21477         Prepare for supporting FreeBSD 10.
21478         * build-aux/config.libpath: Remove handling of freebsd1*.
21479
21480 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
21481
21482         Prepare for supporting FreeBSD 10.
21483         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
21484         match FreeBSD 10.0.
21485
21486 2011-01-27  Bruno Haible  <bruno@clisp.org>
21487
21488         vma-iter, get-rusage-as: Add OpenBSD support.
21489         * modules/vma-iter (configure.ac): Test for mquery.
21490         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
21491         * lib/vma-iter.c: Include <sys/mman.h>.
21492         (vma_iterate): Add an implementation based on mquery().
21493         * lib/resource-ext.h (get_rusage_as): Update comments.
21494         * lib/get-rusage-as.c: Likewise.
21495         * lib/get-rusage-data.c: Likewise.
21496
21497 2011-01-26  Karl Berry  <karl@gnu.org>
21498
21499         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
21500         variables to make it easier to override the makeinfo program used.
21501
21502 2011-01-26  Eric Blake  <eblake@redhat.com>
21503
21504         fcntl: work around Haiku F_DUPFD bugs
21505         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
21506         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
21507         cloexec bit on duplication.
21508         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
21509
21510 2011-01-26  Bruno Haible  <bruno@clisp.org>
21511
21512         Enable memory leak tests on AIX.
21513         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
21514         * tests/test-fprintf-posix3.c (main): Likewise.
21515
21516 2011-01-26  Bruno Haible  <bruno@clisp.org>
21517
21518         Tests for module 'get-rusage-data'.
21519         * modules/get-rusage-data-tests: New file.
21520         * tests/test-get-rusage-data.c: New file.
21521
21522         New module 'get-rusage-data'.
21523         * lib/resource-ext.h (get_rusage_data): New declaration.
21524         * lib/get-rusage-data.c: New file.
21525         * modules/get-rusage-data: New file.
21526
21527 2011-01-25  Bruno Haible  <bruno@clisp.org>
21528
21529         get-rusage-as: Allow for easier testing.
21530         * lib/resource-ext.h (get_rusage_as): Add comment.
21531         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
21532         (main): New function for interactive testing.
21533
21534 2011-01-25  Bruno Haible  <bruno@clisp.org>
21535
21536         vma-iter: Treat Haiku like BeOS.
21537         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
21538         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
21539
21540 2011-01-25  Eric Blake  <eblake@redhat.com>
21541
21542         c-stack: fix regression on cygwin when libsigsegv is present
21543         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
21544
21545 2011-01-24  Bruno Haible  <bruno@clisp.org>
21546
21547         vma-iter: Avoid empty intervals.
21548         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
21549         on an empty interval.
21550
21551 2011-01-24  Jim Meyering  <meyering@redhat.com>
21552
21553         u64: remove unnecessary #include
21554         * lib/u64.h: Don't include <stddef.h>.  It was not used.
21555
21556 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21557
21558         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21559         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21560
21561 2011-01-23  Bruno Haible  <bruno@clisp.org>
21562
21563         New module 'vma-iter'.
21564         * lib/vma-iter.h: New file.
21565         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21566         * modules/vma-iter: New file.
21567         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21568         for get_rusage_as_via_iterator.
21569         (vma_iterate_callback): New function.
21570         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21571         * modules/get-rusage-as (Depends-on): Add vma-iter.
21572
21573 2011-01-23  Bruno Haible  <bruno@clisp.org>
21574
21575         uninorm: Tweak includes.
21576         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21577         Reported by Jim Meyering.
21578
21579 2011-01-23  Bruno Haible  <bruno@clisp.org>
21580
21581         get-rusage-as: Improve on NetBSD.
21582         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21583         /proc, like on FreeBSD.
21584
21585 2011-01-23  Jim Meyering  <meyering@redhat.com>
21586
21587         xreadlink.h: remove unnecessary #include
21588         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21589
21590         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21591         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21592
21593 2011-01-23  Bruno Haible  <bruno@clisp.org>
21594
21595         get-rusage-as: Fix bug.
21596         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21597         original limit when aborting the first loop.
21598
21599 2011-01-23  Bruno Haible  <bruno@clisp.org>
21600
21601         wctype: Ensure valid C syntax.
21602         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21603         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21604
21605 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21606
21607         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21608         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21609         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21610         as they are needed only for configure's test case.
21611         This removes two unnecessary symbols from config.h.
21612
21613         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21614         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21615         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21616         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21617         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21618         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21619         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21620         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21621         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21622         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21623         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21624         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21625         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21626         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21627         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21628         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21629         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21630         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21631
21632 2011-01-21  Eric Blake  <eblake@redhat.com>
21633
21634         maintainer-makefile: work with older git for submodule check
21635         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21636         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21637         Reported by Matthias Bolte.
21638
21639         bootstrap: minor portability fixes
21640         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21641         (usage): Omit leading capital and trailing . on help phrases, per
21642         GNU Coding Standards.
21643         (check_versions, top level): Prefix messages with script name.
21644
21645 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21646
21647         bootstrap: support --no-git option
21648         * build-aux/bootstrap: Add --no-git option, to be used when
21649         --gnulib-srcdir points to the exact desired checkout.
21650
21651 2011-01-21  Eric Blake  <eblake@redhat.com>
21652
21653         strerror_r-posix: work with glibc 2.13
21654         * lib/strerror_r.c (strerror_r): Fix return type.
21655
21656 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21657             Bruno Haible  <bruno@clisp.org>
21658
21659         uN_strstr: New unit tests.
21660         * modules/unistr/u8-strstr-tests: New file.
21661         * modules/unistr/u16-strstr-tests: New file.
21662         * modules/unistr/u32-strstr-tests: New file.
21663         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21664         * tests/unistr/test-u8-strstr.c: New file.
21665         * tests/unistr/test-u16-strstr.c: New file.
21666         * tests/unistr/test-u32-strstr.c: New file.
21667
21668 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21669             Bruno Haible  <bruno@clisp.org>
21670
21671         Make uN_strstr functions O(n) worst-case.
21672         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21673         16-bit and 32-bit unit cases, use the unibyte algorithm from
21674         lib/mbsstr.c.
21675         * lib/unistr/u8-strstr.c: Include <string.h>.
21676         (UNIT_IS_UINT8_T): New macro.
21677         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21678         (U_STRLEN, U_STRNLEN): New macros.
21679         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21680         (U_STRLEN, U_STRNLEN): New macros.
21681         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21682         (configure.ac): Update required libunistring version.
21683         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21684         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21685         malloca.
21686         (configure.ac): Update required libunistring version.
21687         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21688         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21689         malloca.
21690         (configure.ac): Update required libunistring version.
21691
21692 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21693             Bruno Haible  <bruno@clisp.org>
21694
21695         Prepare for faster uN_strstr functions.
21696         * lib/str-kmp.h: Support definable UNITs.
21697         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21698         needle_len argument.
21699         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21700         * lib/mbscasestr.c (mbscasestr): Likewise.
21701
21702 2011-01-21  Pádraig Brady <P@draigBrady.com>
21703
21704         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21705         * tests/test-malloca.c (main): Unset the environment variable
21706         to greatly speed up the test.
21707         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21708         * modules/malloca-tests: Depend on unsetenv.
21709
21710 2011-01-21  Pádraig Brady <P@draigBrady.com>
21711
21712         ignore-value: remove stdint dependency
21713         * lib/ignore-value.h: Remove <stdint.h>
21714         * modules/ignore-value: Remove stdint dependency.
21715
21716 2011-01-21  Jim Meyering  <meyering@redhat.com>
21717
21718         maint.mk: adjust variable name to be consistent with other gl_ vars
21719         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21720         to be lower case.
21721
21722 2011-01-20  Jim Meyering  <meyering@redhat.com>
21723
21724         maint.mk: make "check" depend on public-submodule-commit by default
21725         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21726
21727 2011-01-20  Bruno Haible  <bruno@clisp.org>
21728
21729         mbfile, mbiter: Complete change from 2008-12-21.
21730         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21731         * m4/mbiter.m4 (gl_MBITER): Likewise.
21732
21733 2011-01-20  Jim Meyering  <meyering@redhat.com>
21734
21735         init.sh: insert space between each function name and "()"
21736         * tests/init.sh: Make it a little easier to see that a function's
21737         name is "warn_", and not "warn" when looking at the first part of
21738         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21739
21740 2011-01-20  Jim Meyering  <meyering@redhat.com>
21741
21742         mountlist: clean up code formatting
21743         * lib/mountlist.c (read_file_system_list): Split a long line,
21744         correct bracing style, use NULL in place of "(struct statfs *)0",
21745         don't parenthesize return value, add spaces around "=" and after
21746         ";-in-for-stmt".
21747
21748 2011-01-14  Markus Duft <mduft@gentoo.org>
21749
21750         mountlist: add support for Interix
21751         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21752         Apply statvfs to all entries of /dev/fs.
21753         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21754         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21755
21756 2011-01-20  Jim Meyering  <meyering@redhat.com>
21757
21758         maint.mk: improve the public-submodule-commit rule
21759         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21760         to suppress printing of its commands... unless V=1.
21761         Add git submodule's --quiet option to suppress printing of e.g.,
21762         "Entering gnulib" output.
21763         "cd" into $(srcdir) before running git submodule.
21764
21765 2011-01-20  Bruno Haible  <bruno@clisp.org>
21766
21767         include_next: Fix bug introduced on 2011-01-18.
21768         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21769         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21770         ac_cv_header_... variable if the second argument is not 'check'.
21771         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21772         gl_NEXT_HEADERS_INTERNAL.
21773
21774 2011-01-20  Bruno Haible  <bruno@clisp.org>
21775
21776         Allow the user to avoid the GNULIB_TEST_* macros.
21777         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21778         Suggested by Paul Eggert.
21779
21780 2011-01-14  Jim Meyering  <meyering@redhat.com>
21781
21782         bootstrap: avoid failure when there is no .gitmodules file
21783         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21784         has been assigned to, even when its value is the empty string.
21785         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21786         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21787         Reported by John W. Eaton <jwe@gnu.org>.
21788
21789 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21790
21791         assume <ctype.h>, ..., <time.h> exist
21792         For years gnulib has been assuming the existence of the headers
21793         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21794         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21795         them, since they don't appear to be needed.
21796         * README (Portability guidelines): Document this.
21797         * lib/flock.c: Assume <fcntl.h> exists.
21798         * lib/regex_internal.h: Assume <locale.h> exists.
21799         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21800         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21801         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21802         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21803         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21804         * m4/regex.m4 (gl_REGEX): Likewise.
21805         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21806         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21807         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21808         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21809         * tests/test-argp.c: Likewise.
21810         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21811
21812         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21813         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21814         AA_APPLE_UNIVERSAL_BUILD.  See
21815         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21816         * NEWS: Document this.
21817
21818 2011-01-19  Eric Blake  <eblake@redhat.com>
21819
21820         c-stack: assume stack overflow if SA_SIGINFO unsupported
21821         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21822         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21823         sigaction will work.
21824         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21825         behavior match Linux.
21826         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21827
21828         stdbool-tests: accommodate Haiku
21829         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21830
21831         binary-io: fix O_TEXT on Haiku
21832         * modules/binary-io (Depends-on): Add fcntl-h.
21833         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21834         than blindly undefining O_TEXT.
21835         Reported by Scott McCreary.
21836
21837 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21838
21839         include_next: do not check for standard headers like stddef.h
21840
21841         I found this problem when modifying Emacs to use gnulib.
21842         I noticed that it added HAVE_STDDEF_H to config.h, even though
21843         gnulib always assumes <stddef.h> exists as per README and this
21844         symbol is unnecessary.
21845         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21846         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21847         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21848         faster for headers like stddef.h that are known to exist.
21849         (gl_CHECK_NEXT_HEADERS): Use it.
21850         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21851         rather than gl_CHECK_NEXT_HEADERS.
21852         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21853         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21854
21855 2011-01-18  Eric Blake  <eblake@redhat.com>
21856
21857         ansi-c++-opt: skip C++ dependency style if C++ is unused
21858         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21859         tests when we know C++ compilation is not desired.
21860         Reported by Scott McCreary.
21861
21862 2011-01-18  Bruno Haible  <bruno@clisp.org>
21863
21864         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21865         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21866         (main): Perform test also when getrlimit and setrlimit don't exist or
21867         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21868         limiting the address space size using setrlimit, compare the address
21869         space size before and after the the test.
21870         * tests/test-dprintf-posix2.c: Likewise.
21871         * tests/test-fprintf-posix3.sh: Update skip messages.
21872         * tests/test-dprintf-posix2.sh: Likewise.
21873         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21874         * modules/dprintf-posix-tests (Depends-on): Likewise.
21875         Reported by Bruce Korb <bkorb@gnu.org> and
21876         Gary V. Vaughan <gary@gnu.org>.
21877
21878 2011-01-18  Bruno Haible  <bruno@clisp.org>
21879
21880         get-rusage-as: Improvement for Cygwin.
21881         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21882         areas that are merely reserved.
21883
21884 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21885
21886         strftime: remove dependencies on multibyte modules
21887
21888         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21889         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21890         only if __osf__ is defined, and I suspect OSF doesn't need these
21891         other modules.  If my guess is wrong, we'll need to come up with a
21892         variant of strftime that doesn't need the multibyte modules.
21893
21894         I discovered this problem when attempting modify Emacs to use the
21895         strftime module.  With the previous gnulib, this caused Emacs to
21896         need 31 new files, ranging from lib/config.charset to
21897         m4/wint_t.m4.  This was overkill and I expect would be offputting
21898         to the Emacs maintainers.  After this change, only 6 new files are
21899         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21900         stdbool.m4, and tm_gmtoff.m4.
21901
21902         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21903         Suggested by Bruno Haible in
21904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21905         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21906         and do not check for wchar.h.
21907         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21908         (Depends-on): Remove mbrlen, mbsinit, wchar.
21909
21910 2011-01-18  Bruno Haible  <bruno@clisp.org>
21911
21912         Tests for module 'get-rusage-as'.
21913         * modules/get-rusage-as-tests: New file.
21914         * tests/test-get-rusage-as.c: New file.
21915
21916         New module 'get-rusage-as'.
21917         * modules/get-rusage-as: New file.
21918         * lib/resource-ext.h: New file.
21919         * lib/get-rusage-as.c: New file.
21920
21921 2011-01-17  Eric Blake  <eblake@redhat.com>
21922
21923         sigaction: relax license from LGPLv3+ to LGPLv2+
21924         * modules/sigaction (License): Relax to LGPLv2+.
21925
21926 2011-01-14  Bruno Haible  <bruno@clisp.org>
21927
21928         filemode: Make function declarations usable in C++ mode.
21929         * lib/filemode.h: Enclose function declarations in extern "C" block.
21930         Reported by John W. Eaton <jwe@gnu.org>.
21931
21932 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21933
21934         save-cwd: no longer include "xgetcwd.h"
21935         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21936         This avoids a compilation failure in projects that use save-cwd
21937         without also using the xgetcwd module.
21938
21939 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21940
21941         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21942         This is so that a program like Emacs, which needs only dtoastr,
21943         does not have to bother with distributing and compiling ftoastr
21944         and ldtoastr.
21945         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21946         * modules/dtoastr, modules/ldtoastr: New files.
21947         * modules/ftoastr: Now works just for 'float'.
21948         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21949         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21950         dtoastr.c, ldtoastr.c.
21951
21952 2011-01-11  Jim Meyering  <meyering@redhat.com>
21953
21954         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21955         There is no need to work around the lack of the fchdir function,
21956         since gnulib can now provide a replacement when required.
21957         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21958         * modules/save-cwd (Depends-on): Add fchdir.
21959
21960 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21961
21962         openat, save-cwd: avoid xmalloc
21963
21964         This removes a direct (but undocumented) dependency of openat on
21965         xalloc, along with an indirect dependency via save-cwd.  It also
21966         removes a dependency of save-cwd on xgetcwd, and thereby
21967         indirectly on xalloc.  This change causes the openat substitute
21968         to fall back on save_cwd when memory is tight, and for save_cwd to
21969         fail instead of dying when memory is tight, but that's good enough.
21970         Problem and initial idea for fix reported by Bastien Roucaries in
21971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21972
21973         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21974         xalloc.h (for xmalloc).
21975         (openat_proc_name): Use malloc, not xmalloc.
21976         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21977         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21978
21979         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21980         This avoids heap allocation for file names whose lengths are in
21981         the range 512..1023, with the upper bound increasing to at most
21982         4031 depending on the platform's PATH_MAX.  (We do not want
21983         pathmax.h here as it might supply a non-constant PATH_MAX.)
21984         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21985         Perhaps they should be moved to malloca.h?
21986         (OPENAT_BUFFER_SIZE): Use them.
21987
21988 2011-01-10  Bruno Haible  <bruno@clisp.org>
21989
21990         doc: Update users.txt.
21991         * users.txt: Add recutils.
21992
21993 2011-01-09  Karl Berry  <karl@gnu.org>
21994
21995         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21996
21997         * doc/configmake.texi: New file.
21998         * doc/gnulib.texi: Include it.
21999         * modules/configmake: Move documentation from here.
22000
22001 2011-01-09  Bruno Haible  <bruno@clisp.org>
22002
22003         Update to Unicode 6.0.0.
22004         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
22005         (get_lbp): Update for Unicode 6.0.0.
22006         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
22007         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
22008         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
22009         U+11001, U+11038..U+11046. Remove U+06DE.
22010         (uc_width): Fix bounds of planes.
22011         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22012         lib/uniwidth/width.c.
22013         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
22014         trailing whitespace removed.
22015         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
22016         without comments, but with the original copyright notice.
22017         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
22018         * lib/unicase/ignorable.h: Likewise.
22019         * lib/unicase/tocasefold.h: Likewise.
22020         * lib/unicase/tolower.h: Likewise.
22021         * lib/unicase/totitle.h: Likewise.
22022         * lib/unicase/toupper.h: Likewise.
22023         * lib/unictype/bidi_of.h: Likewise.
22024         * lib/unictype/blocks.h: Likewise.
22025         * lib/unictype/categ_C.h: Likewise.
22026         * lib/unictype/categ_Cn.h: Likewise.
22027         * lib/unictype/categ_L.h: Likewise.
22028         * lib/unictype/categ_Ll.h: Likewise.
22029         * lib/unictype/categ_Lm.h: Likewise.
22030         * lib/unictype/categ_Lo.h: Likewise.
22031         * lib/unictype/categ_Lu.h: Likewise.
22032         * lib/unictype/categ_M.h: Likewise.
22033         * lib/unictype/categ_Mc.h: Likewise.
22034         * lib/unictype/categ_Me.h: Likewise.
22035         * lib/unictype/categ_Mn.h: Likewise.
22036         * lib/unictype/categ_N.h: Likewise.
22037         * lib/unictype/categ_Nd.h: Likewise.
22038         * lib/unictype/categ_No.h: Likewise.
22039         * lib/unictype/categ_P.h: Likewise.
22040         * lib/unictype/categ_Po.h: Likewise.
22041         * lib/unictype/categ_S.h: Likewise.
22042         * lib/unictype/categ_Sc.h: Likewise.
22043         * lib/unictype/categ_Sk.h: Likewise.
22044         * lib/unictype/categ_Sm.h: Likewise.
22045         * lib/unictype/categ_So.h: Likewise.
22046         * lib/unictype/categ_of.h: Likewise.
22047         * lib/unictype/combining.h: Likewise.
22048         * lib/unictype/ctype_alnum.h: Likewise.
22049         * lib/unictype/ctype_alpha.h: Likewise.
22050         * lib/unictype/ctype_graph.h: Likewise.
22051         * lib/unictype/ctype_lower.h: Likewise.
22052         * lib/unictype/ctype_print.h: Likewise.
22053         * lib/unictype/ctype_punct.h: Likewise.
22054         * lib/unictype/ctype_upper.h: Likewise.
22055         * lib/unictype/decdigit.h: Likewise.
22056         * lib/unictype/digit.h: Likewise.
22057         * lib/unictype/numeric.h: Likewise.
22058         * lib/unictype/pr_alphabetic.h: Likewise.
22059         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22060         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22061         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22062         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22063         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22064         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22065         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22066         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22067         * lib/unictype/pr_case_ignorable.h: Likewise.
22068         * lib/unictype/pr_cased.h: Likewise.
22069         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
22070         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
22071         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
22072         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
22073         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
22074         * lib/unictype/pr_combining.h: Likewise.
22075         * lib/unictype/pr_composite.h: Likewise.
22076         * lib/unictype/pr_currency_symbol.h: Likewise.
22077         * lib/unictype/pr_decimal_digit.h: Likewise.
22078         * lib/unictype/pr_deprecated.h: Likewise.
22079         * lib/unictype/pr_format_control.h: Likewise.
22080         * lib/unictype/pr_grapheme_base.h: Likewise.
22081         * lib/unictype/pr_grapheme_extend.h: Likewise.
22082         * lib/unictype/pr_grapheme_link.h: Likewise.
22083         * lib/unictype/pr_id_continue.h: Likewise.
22084         * lib/unictype/pr_id_start.h: Likewise.
22085         * lib/unictype/pr_ideographic.h: Likewise.
22086         * lib/unictype/pr_lowercase.h: Likewise.
22087         * lib/unictype/pr_math.h: Likewise.
22088         * lib/unictype/pr_numeric.h: Likewise.
22089         * lib/unictype/pr_other_alphabetic.h: Likewise.
22090         * lib/unictype/pr_other_id_continue.h: Likewise.
22091         * lib/unictype/pr_other_math.h: Likewise.
22092         * lib/unictype/pr_punctuation.h: Likewise.
22093         * lib/unictype/pr_sentence_terminal.h: Likewise.
22094         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22095         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22096         * lib/unictype/pr_unified_ideograph.h: Likewise.
22097         * lib/unictype/pr_uppercase.h: Likewise.
22098         * lib/unictype/pr_xid_continue.h: Likewise.
22099         * lib/unictype/pr_xid_start.h: Likewise.
22100         * lib/unictype/scripts.h: Likewise.
22101         * lib/unictype/scripts_byname.gperf: Likewise.
22102         * lib/unictype/sy_java_ident.h: Likewise.
22103         * lib/unigbrk/gbrkprop.h: Likewise.
22104         * lib/unilbrk/lbrkprop1.h: Likewise.
22105         * lib/unilbrk/lbrkprop2.h: Likewise.
22106         * lib/uninorm/decomposition-table2.h: Likewise.
22107         * lib/uniwbrk/wbrkprop.h: Likewise.
22108         * tests/unicase/test-cased.c: Likewise.
22109         * tests/unicase/test-ignorable.c: Likewise.
22110         * tests/unicase/test-uc_tolower.c: Likewise.
22111         * tests/unicase/test-uc_totitle.c: Likewise.
22112         * tests/unicase/test-uc_toupper.c: Likewise.
22113         * tests/unictype/test-categ_C.c: Likewise.
22114         * tests/unictype/test-categ_Cn.c: Likewise.
22115         * tests/unictype/test-categ_L.c: Likewise.
22116         * tests/unictype/test-categ_Ll.c: Likewise.
22117         * tests/unictype/test-categ_Lm.c: Likewise.
22118         * tests/unictype/test-categ_Lo.c: Likewise.
22119         * tests/unictype/test-categ_Lu.c: Likewise.
22120         * tests/unictype/test-categ_M.c: Likewise.
22121         * tests/unictype/test-categ_Mc.c: Likewise.
22122         * tests/unictype/test-categ_Me.c: Likewise.
22123         * tests/unictype/test-categ_Mn.c: Likewise.
22124         * tests/unictype/test-categ_N.c: Likewise.
22125         * tests/unictype/test-categ_Nd.c: Likewise.
22126         * tests/unictype/test-categ_No.c: Likewise.
22127         * tests/unictype/test-categ_P.c: Likewise.
22128         * tests/unictype/test-categ_Po.c: Likewise.
22129         * tests/unictype/test-categ_S.c: Likewise.
22130         * tests/unictype/test-categ_Sc.c: Likewise.
22131         * tests/unictype/test-categ_Sk.c: Likewise.
22132         * tests/unictype/test-categ_Sm.c: Likewise.
22133         * tests/unictype/test-categ_So.c: Likewise.
22134         * tests/unictype/test-ctype_alnum.c: Likewise.
22135         * tests/unictype/test-ctype_alpha.c: Likewise.
22136         * tests/unictype/test-ctype_graph.c: Likewise.
22137         * tests/unictype/test-ctype_lower.c: Likewise.
22138         * tests/unictype/test-ctype_print.c: Likewise.
22139         * tests/unictype/test-ctype_punct.c: Likewise.
22140         * tests/unictype/test-ctype_upper.c: Likewise.
22141         * tests/unictype/test-decdigit.h: Likewise.
22142         * tests/unictype/test-digit.h: Likewise.
22143         * tests/unictype/test-numeric.h: Likewise.
22144         * tests/unictype/test-pr_alphabetic.c: Likewise.
22145         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22146         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
22147         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
22148         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22149         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22150         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22151         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22152         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22153         * tests/unictype/test-pr_case_ignorable.c: Likewise.
22154         * tests/unictype/test-pr_cased.c: Likewise.
22155         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
22156         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
22157         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
22158         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
22159         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
22160         * tests/unictype/test-pr_combining.c: Likewise.
22161         * tests/unictype/test-pr_composite.c: Likewise.
22162         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22163         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22164         * tests/unictype/test-pr_deprecated.c: Likewise.
22165         * tests/unictype/test-pr_format_control.c: Likewise.
22166         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22167         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22168         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22169         * tests/unictype/test-pr_id_continue.c: Likewise.
22170         * tests/unictype/test-pr_id_start.c: Likewise.
22171         * tests/unictype/test-pr_ideographic.c: Likewise.
22172         * tests/unictype/test-pr_lowercase.c: Likewise.
22173         * tests/unictype/test-pr_math.c: Likewise.
22174         * tests/unictype/test-pr_numeric.c: Likewise.
22175         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22176         * tests/unictype/test-pr_other_id_continue.c: Likewise.
22177         * tests/unictype/test-pr_other_math.c: Likewise.
22178         * tests/unictype/test-pr_punctuation.c: Likewise.
22179         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22180         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22181         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22182         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22183         * tests/unictype/test-pr_uppercase.c: Likewise.
22184         * tests/unictype/test-pr_xid_continue.c: Likewise.
22185         * tests/unictype/test-pr_xid_start.c: Likewise.
22186         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22187         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22188         changes.
22189         * lib/unictype/categ_Cc.h: Likewise.
22190         * lib/unictype/categ_Cf.h: Likewise.
22191         * lib/unictype/categ_Co.h: Likewise.
22192         * lib/unictype/categ_Cs.h: Likewise.
22193         * lib/unictype/categ_Lt.h: Likewise.
22194         * lib/unictype/categ_Nl.h: Likewise.
22195         * lib/unictype/categ_Pc.h: Likewise.
22196         * lib/unictype/categ_Pd.h: Likewise.
22197         * lib/unictype/categ_Pe.h: Likewise.
22198         * lib/unictype/categ_Pf.h: Likewise.
22199         * lib/unictype/categ_Pi.h: Likewise.
22200         * lib/unictype/categ_Ps.h: Likewise.
22201         * lib/unictype/categ_Z.h: Likewise.
22202         * lib/unictype/categ_Zl.h: Likewise.
22203         * lib/unictype/categ_Zp.h: Likewise.
22204         * lib/unictype/categ_Zs.h: Likewise.
22205         * lib/unictype/ctype_blank.h: Likewise.
22206         * lib/unictype/ctype_cntrl.h: Likewise.
22207         * lib/unictype/ctype_digit.h: Likewise.
22208         * lib/unictype/ctype_space.h: Likewise.
22209         * lib/unictype/ctype_xdigit.h: Likewise.
22210         * lib/unictype/mirror.h: Likewise.
22211         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22212         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22213         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22214         * lib/unictype/pr_bidi_control.h: Likewise.
22215         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22216         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22217         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22218         * lib/unictype/pr_bidi_pdf.h: Likewise.
22219         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22220         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22221         * lib/unictype/pr_dash.h: Likewise.
22222         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22223         * lib/unictype/pr_diacritic.h: Likewise.
22224         * lib/unictype/pr_extender.h: Likewise.
22225         * lib/unictype/pr_hex_digit.h: Likewise.
22226         * lib/unictype/pr_hyphen.h: Likewise.
22227         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22228         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22229         * lib/unictype/pr_ignorable_control.h: Likewise.
22230         * lib/unictype/pr_iso_control.h: Likewise.
22231         * lib/unictype/pr_join_control.h: Likewise.
22232         * lib/unictype/pr_left_of_pair.h: Likewise.
22233         * lib/unictype/pr_line_separator.h: Likewise.
22234         * lib/unictype/pr_logical_order_exception.h: Likewise.
22235         * lib/unictype/pr_non_break.h: Likewise.
22236         * lib/unictype/pr_not_a_character.h: Likewise.
22237         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22238         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22239         * lib/unictype/pr_other_id_start.h: Likewise.
22240         * lib/unictype/pr_other_lowercase.h: Likewise.
22241         * lib/unictype/pr_other_uppercase.h: Likewise.
22242         * lib/unictype/pr_paired_punctuation.h: Likewise.
22243         * lib/unictype/pr_paragraph_separator.h: Likewise.
22244         * lib/unictype/pr_pattern_syntax.h: Likewise.
22245         * lib/unictype/pr_pattern_white_space.h: Likewise.
22246         * lib/unictype/pr_private_use.h: Likewise.
22247         * lib/unictype/pr_quotation_mark.h: Likewise.
22248         * lib/unictype/pr_radical.h: Likewise.
22249         * lib/unictype/pr_soft_dotted.h: Likewise.
22250         * lib/unictype/pr_space.h: Likewise.
22251         * lib/unictype/pr_titlecase.h: Likewise.
22252         * lib/unictype/pr_variation_selector.h: Likewise.
22253         * lib/unictype/pr_white_space.h: Likewise.
22254         * lib/unictype/pr_zero_width.h: Likewise.
22255         * lib/unictype/sy_c_ident.h: Likewise.
22256         * lib/unictype/sy_c_whitespace.h: Likewise.
22257         * lib/unictype/sy_java_whitespace.h: Likewise.
22258         * lib/uninorm/composition-table.gperf: Likewise.
22259         * lib/uninorm/decomposition-table1.h: Likewise.
22260         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
22261         LB8.
22262         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22263         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22264         * modules/unictype/*: Bump version number of expected libunistring
22265         version.
22266
22267 2011-01-09  Bruno Haible  <bruno@clisp.org>
22268
22269         Update to Unicode 5.2.0.
22270         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
22271         trailing whitespace removed.
22272
22273 2011-01-09  Bruno Haible  <bruno@clisp.org>
22274
22275         New Unicode character properties, from Unicode 5.2.0.
22276         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
22277         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
22278         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
22279         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
22280         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
22281         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
22282         uc_is_property_cased, uc_is_property_case_ignorable,
22283         uc_is_property_changes_when_lowercased,
22284         uc_is_property_changes_when_uppercased,
22285         uc_is_property_changes_when_titlecased,
22286         uc_is_property_changes_when_casefolded,
22287         uc_is_property_changes_when_casemapped): New declarations.
22288         * lib/unictype/pr_byname.gperf: Add the new properties.
22289         * modules/unictype/property-byname (Depends-on): Depend on the new
22290         properties modules.
22291         * modules/unictype/property-all (Depends-on): Likewise.
22292         * MODULES.html.sh (Unicode string functions): Add
22293         unictype/property-case-ignorable, unictype/property-cased,
22294         unictype/property-changes-when-casefolded,
22295         unictype/property-changes-when-casemapped,
22296         unictype/property-changes-when-lowercased,
22297         unictype/property-changes-when-titlecased,
22298         unictype/property-changes-when-uppercased.
22299
22300         New module 'unictype/property-changes-when-casemapped'.
22301         * modules/unictype/property-changes-when-casemapped: New file.
22302         * lib/unictype/pr_changes_when_casemapped.c: New file.
22303         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
22304         generated by gen-uni-tables.
22305         * modules/unictype/property-changes-when-casemapped-tests: New file.
22306         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
22307         automatically generated by gen-uni-tables.
22308
22309         New module 'unictype/property-changes-when-casefolded'.
22310         * modules/unictype/property-changes-when-casefolded: New file.
22311         * lib/unictype/pr_changes_when_casefolded.c: New file.
22312         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
22313         generated by gen-uni-tables.
22314         * modules/unictype/property-changes-when-casefolded-tests: New file.
22315         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
22316         automatically generated by gen-uni-tables.
22317
22318         New module 'unictype/property-changes-when-titlecased'.
22319         * modules/unictype/property-changes-when-titlecased: New file.
22320         * lib/unictype/pr_changes_when_titlecased.c: New file.
22321         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
22322         generated by gen-uni-tables.
22323         * modules/unictype/property-changes-when-titlecased-tests: New file.
22324         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
22325         automatically generated by gen-uni-tables.
22326
22327         New module 'unictype/property-changes-when-uppercased'.
22328         * modules/unictype/property-changes-when-uppercased: New file.
22329         * lib/unictype/pr_changes_when_uppercased.c: New file.
22330         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
22331         generated by gen-uni-tables.
22332         * modules/unictype/property-changes-when-uppercased-tests: New file.
22333         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
22334         automatically generated by gen-uni-tables.
22335
22336         New module 'unictype/property-changes-when-lowercased'.
22337         * modules/unictype/property-changes-when-lowercased: New file.
22338         * lib/unictype/pr_changes_when_lowercased.c: New file.
22339         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
22340         generated by gen-uni-tables.
22341         * modules/unictype/property-changes-when-lowercased-tests: New file.
22342         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
22343         automatically generated by gen-uni-tables.
22344
22345         New module 'unictype/property-case-ignorable'.
22346         * modules/unictype/property-case-ignorable: New file.
22347         * lib/unictype/pr_case_ignorable.c: New file.
22348         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
22349         by gen-uni-tables.
22350         * modules/unictype/property-case-ignorable-tests: New file.
22351         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
22352         generated by gen-uni-tables.
22353
22354         New module 'unictype/property-cased'.
22355         * modules/unictype/property-cased: New file.
22356         * lib/unictype/pr_cased.c: New file.
22357         * lib/unictype/pr_cased.h: New file, automatically generated by
22358         gen-uni-tables.
22359         * modules/unictype/property-cased-tests: New file.
22360         * tests/unictype/test-pr_cased.c: New file, automatically generated by
22361         gen-uni-tables.
22362
22363 2011-01-09  Bruno Haible  <bruno@clisp.org>
22364
22365         Update to Unicode 5.2.0.
22366         * lib/gen-uni-tables.c (output_predicate, output_category,
22367         output_combclass, output_bidi_category, output_decimal_digit_test,
22368         output_decimal_digit, output_digit_test, output_digit,
22369         output_numeric_test, output_numeric, output_mirror, output_scripts,
22370         output_scripts_byname, output_blocks, output_ident_category): Fix
22371         comment header.
22372         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
22373         get_wbp.
22374         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
22375         items.
22376         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
22377         Changes_When_Lowercased, Changes_When_Uppercased,
22378         Changes_When_Titlecased, Changes_When_Casefolded,
22379         Changes_When_Casemapped.
22380         (is_property_alphabetic, is_property_default_ignorable_code_point):
22381         Update for Unicode 5.2.0.
22382         (is_property_cased, is_property_case_ignorable,
22383         is_property_changes_when_lowercased,
22384         is_property_changes_when_uppercased,
22385         is_property_changes_when_titlecased,
22386         is_property_changes_when_casefolded,
22387         is_property_changes_when_casemapped): New functions.
22388         (output_properties): Output also the properties cased, case_ignorable,
22389         changes_when_lowercased, changes_when_uppercased,
22390         changes_when_titlecased, changes_when_casefolded,
22391         changes_when_casemapped.
22392         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
22393         Unicode TR#11 revision 17 -> 19.
22394         (LBP_CP): New enumeration value.
22395         (LBP_*): Adjust values accordingly.
22396         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22397         TR#14 revision 22 -> 24.
22398         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
22399         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
22400         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22401         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
22402         is_WBP_MIDLETTER.
22403         (output_composition_tables): Allow for 24 bits instead of 16 bits in
22404         the code1 and code2 of each composition rule.
22405         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
22406         * lib/unicase/ignorable.h: Likewise.
22407         * lib/unicase/tocasefold.h: Likewise.
22408         * lib/unicase/tolower.h: Likewise.
22409         * lib/unicase/totitle.h: Likewise.
22410         * lib/unicase/toupper.h: Likewise.
22411         * lib/unictype/bidi_of.h: Likewise.
22412         * lib/unictype/blocks.h: Likewise.
22413         * lib/unictype/categ_C.h: Likewise.
22414         * lib/unictype/categ_Cf.h: Likewise.
22415         * lib/unictype/categ_Cn.h: Likewise.
22416         * lib/unictype/categ_L.h: Likewise.
22417         * lib/unictype/categ_Ll.h: Likewise.
22418         * lib/unictype/categ_Lm.h: Likewise.
22419         * lib/unictype/categ_Lo.h: Likewise.
22420         * lib/unictype/categ_Lu.h: Likewise.
22421         * lib/unictype/categ_M.h: Likewise.
22422         * lib/unictype/categ_Mc.h: Likewise.
22423         * lib/unictype/categ_Mn.h: Likewise.
22424         * lib/unictype/categ_N.h: Likewise.
22425         * lib/unictype/categ_Nd.h: Likewise.
22426         * lib/unictype/categ_Nl.h: Likewise.
22427         * lib/unictype/categ_No.h: Likewise.
22428         * lib/unictype/categ_P.h: Likewise.
22429         * lib/unictype/categ_Pd.h: Likewise.
22430         * lib/unictype/categ_Po.h: Likewise.
22431         * lib/unictype/categ_S.h: Likewise.
22432         * lib/unictype/categ_Sc.h: Likewise.
22433         * lib/unictype/categ_So.h: Likewise.
22434         * lib/unictype/categ_of.h: Likewise.
22435         * lib/unictype/combining.h: Likewise.
22436         * lib/unictype/ctype_alnum.h: Likewise.
22437         * lib/unictype/ctype_alpha.h: Likewise.
22438         * lib/unictype/ctype_graph.h: Likewise.
22439         * lib/unictype/ctype_lower.h: Likewise.
22440         * lib/unictype/ctype_print.h: Likewise.
22441         * lib/unictype/ctype_punct.h: Likewise.
22442         * lib/unictype/ctype_upper.h: Likewise.
22443         * lib/unictype/decdigit.h: Likewise.
22444         * lib/unictype/digit.h: Likewise.
22445         * lib/unictype/numeric.h: Likewise.
22446         * lib/unictype/pr_alphabetic.h: Likewise.
22447         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22448         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22449         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22450         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22451         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22452         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22453         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22454         * lib/unictype/pr_combining.h: Likewise.
22455         * lib/unictype/pr_composite.h: Likewise.
22456         * lib/unictype/pr_currency_symbol.h: Likewise.
22457         * lib/unictype/pr_dash.h: Likewise.
22458         * lib/unictype/pr_decimal_digit.h: Likewise.
22459         * lib/unictype/pr_deprecated.h: Likewise.
22460         * lib/unictype/pr_diacritic.h: Likewise.
22461         * lib/unictype/pr_extender.h: Likewise.
22462         * lib/unictype/pr_grapheme_base.h: Likewise.
22463         * lib/unictype/pr_grapheme_extend.h: Likewise.
22464         * lib/unictype/pr_grapheme_link.h: Likewise.
22465         * lib/unictype/pr_id_continue.h: Likewise.
22466         * lib/unictype/pr_id_start.h: Likewise.
22467         * lib/unictype/pr_ideographic.h: Likewise.
22468         * lib/unictype/pr_ignorable_control.h: Likewise.
22469         * lib/unictype/pr_logical_order_exception.h: Likewise.
22470         * lib/unictype/pr_lowercase.h: Likewise.
22471         * lib/unictype/pr_numeric.h: Likewise.
22472         * lib/unictype/pr_other_alphabetic.h: Likewise.
22473         * lib/unictype/pr_punctuation.h: Likewise.
22474         * lib/unictype/pr_sentence_terminal.h: Likewise.
22475         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22476         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22477         * lib/unictype/pr_unified_ideograph.h: Likewise.
22478         * lib/unictype/pr_uppercase.h: Likewise.
22479         * lib/unictype/pr_xid_continue.h: Likewise.
22480         * lib/unictype/pr_xid_start.h: Likewise.
22481         * lib/unictype/pr_zero_width.h: Likewise.
22482         * lib/unictype/scripts.h: Likewise.
22483         * lib/unictype/scripts_byname.gperf: Likewise.
22484         * lib/unictype/sy_java_ident.h: Likewise.
22485         * lib/unigbrk/gbrkprop.h: Likewise.
22486         * lib/unilbrk/lbrkprop1.h: Likewise.
22487         * lib/unilbrk/lbrkprop2.h: Likewise.
22488         * lib/unilbrk/lbrktables.h: Likewise.
22489         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
22490         LBP_CP. Implement rule LB30.
22491         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
22492         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
22493         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
22494         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
22495         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
22496         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
22497         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
22498         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
22499         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
22500         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
22501         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
22502         bits instead of 16 bits in the code1 and code2 of each composition
22503         rule.
22504         (uc_composition): Update for Unicode 5.2.0.
22505         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
22506         * lib/uninorm/decomposition-table2.h: Likewise.
22507         * lib/uniwbrk/wbrkprop.h: Likewise.
22508         * tests/unicase/test-cased.c: Likewise.
22509         * tests/unicase/test-ignorable.c: Likewise.
22510         * tests/unicase/test-uc_tolower.c: Likewise.
22511         * tests/unicase/test-uc_totitle.c: Likewise.
22512         * tests/unicase/test-uc_toupper.c: Likewise.
22513         * tests/unictype/test-categ_C.c: Likewise.
22514         * tests/unictype/test-categ_Cf.c: Likewise.
22515         * tests/unictype/test-categ_Cn.c: Likewise.
22516         * tests/unictype/test-categ_L.c: Likewise.
22517         * tests/unictype/test-categ_Ll.c: Likewise.
22518         * tests/unictype/test-categ_Lm.c: Likewise.
22519         * tests/unictype/test-categ_Lo.c: Likewise.
22520         * tests/unictype/test-categ_Lu.c: Likewise.
22521         * tests/unictype/test-categ_M.c: Likewise.
22522         * tests/unictype/test-categ_Mc.c: Likewise.
22523         * tests/unictype/test-categ_Mn.c: Likewise.
22524         * tests/unictype/test-categ_N.c: Likewise.
22525         * tests/unictype/test-categ_Nd.c: Likewise.
22526         * tests/unictype/test-categ_Nl.c: Likewise.
22527         * tests/unictype/test-categ_No.c: Likewise.
22528         * tests/unictype/test-categ_P.c: Likewise.
22529         * tests/unictype/test-categ_Pd.c: Likewise.
22530         * tests/unictype/test-categ_Po.c: Likewise.
22531         * tests/unictype/test-categ_S.c: Likewise.
22532         * tests/unictype/test-categ_Sc.c: Likewise.
22533         * tests/unictype/test-categ_So.c: Likewise.
22534         * tests/unictype/test-ctype_alnum.c: Likewise.
22535         * tests/unictype/test-ctype_alpha.c: Likewise.
22536         * tests/unictype/test-ctype_graph.c: Likewise.
22537         * tests/unictype/test-ctype_lower.c: Likewise.
22538         * tests/unictype/test-ctype_print.c: Likewise.
22539         * tests/unictype/test-ctype_punct.c: Likewise.
22540         * tests/unictype/test-ctype_upper.c: Likewise.
22541         * tests/unictype/test-decdigit.h: Likewise.
22542         * tests/unictype/test-digit.h: Likewise.
22543         * tests/unictype/test-numeric.h: Likewise.
22544         * tests/unictype/test-pr_alphabetic.c: Likewise.
22545         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22546         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22547         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22548         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22549         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22550         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22551         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22552         * tests/unictype/test-pr_combining.c: Likewise.
22553         * tests/unictype/test-pr_composite.c: Likewise.
22554         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22555         * tests/unictype/test-pr_dash.c: Likewise.
22556         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22557         * tests/unictype/test-pr_deprecated.c: Likewise.
22558         * tests/unictype/test-pr_diacritic.c: Likewise.
22559         * tests/unictype/test-pr_extender.c: Likewise.
22560         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22561         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22562         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22563         * tests/unictype/test-pr_id_continue.c: Likewise.
22564         * tests/unictype/test-pr_id_start.c: Likewise.
22565         * tests/unictype/test-pr_ideographic.c: Likewise.
22566         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22567         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22568         * tests/unictype/test-pr_lowercase.c: Likewise.
22569         * tests/unictype/test-pr_numeric.c: Likewise.
22570         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22571         * tests/unictype/test-pr_punctuation.c: Likewise.
22572         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22573         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22574         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22575         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22576         * tests/unictype/test-pr_uppercase.c: Likewise.
22577         * tests/unictype/test-pr_xid_continue.c: Likewise.
22578         * tests/unictype/test-pr_xid_start.c: Likewise.
22579         * tests/unictype/test-pr_zero_width.c: Likewise.
22580         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22581         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22582         changed behaviour: line breaking is now disallowed between a letter
22583         or '=' and '('.
22584         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22585         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22586         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22587         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22588         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22589         lib/uniwidth/width.c.
22590         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22591         without comments, but with the original copyright notice.
22592         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22593         changes.
22594         * lib/unictype/categ_Cc.h: Likewise.
22595         * lib/unictype/categ_Co.h: Likewise.
22596         * lib/unictype/categ_Cs.h: Likewise.
22597         * lib/unictype/categ_Lt.h: Likewise.
22598         * lib/unictype/categ_Me.h: Likewise.
22599         * lib/unictype/categ_Pc.h: Likewise.
22600         * lib/unictype/categ_Pe.h: Likewise.
22601         * lib/unictype/categ_Pf.h: Likewise.
22602         * lib/unictype/categ_Pi.h: Likewise.
22603         * lib/unictype/categ_Ps.h: Likewise.
22604         * lib/unictype/categ_Sk.h: Likewise.
22605         * lib/unictype/categ_Sm.h: Likewise.
22606         * lib/unictype/categ_Z.h: Likewise.
22607         * lib/unictype/categ_Zl.h: Likewise.
22608         * lib/unictype/categ_Zp.h: Likewise.
22609         * lib/unictype/categ_Zs.h: Likewise.
22610         * lib/unictype/ctype_blank.h: Likewise.
22611         * lib/unictype/ctype_cntrl.h: Likewise.
22612         * lib/unictype/ctype_digit.h: Likewise.
22613         * lib/unictype/ctype_space.h: Likewise.
22614         * lib/unictype/ctype_xdigit.h: Likewise.
22615         * lib/unictype/mirror.h: Likewise.
22616         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22617         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22618         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22619         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22620         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22621         * lib/unictype/pr_bidi_control.h: Likewise.
22622         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22623         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22624         * lib/unictype/pr_bidi_pdf.h: Likewise.
22625         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22626         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22627         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22628         * lib/unictype/pr_format_control.h: Likewise.
22629         * lib/unictype/pr_hex_digit.h: Likewise.
22630         * lib/unictype/pr_hyphen.h: Likewise.
22631         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22632         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22633         * lib/unictype/pr_iso_control.h: Likewise.
22634         * lib/unictype/pr_join_control.h: Likewise.
22635         * lib/unictype/pr_left_of_pair.h: Likewise.
22636         * lib/unictype/pr_line_separator.h: Likewise.
22637         * lib/unictype/pr_math.h: Likewise.
22638         * lib/unictype/pr_non_break.h: Likewise.
22639         * lib/unictype/pr_not_a_character.h: Likewise.
22640         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22641         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22642         * lib/unictype/pr_other_id_continue.h: Likewise.
22643         * lib/unictype/pr_other_id_start.h: Likewise.
22644         * lib/unictype/pr_other_lowercase.h: Likewise.
22645         * lib/unictype/pr_other_math.h: Likewise.
22646         * lib/unictype/pr_other_uppercase.h: Likewise.
22647         * lib/unictype/pr_paired_punctuation.h: Likewise.
22648         * lib/unictype/pr_paragraph_separator.h: Likewise.
22649         * lib/unictype/pr_pattern_syntax.h: Likewise.
22650         * lib/unictype/pr_pattern_white_space.h: Likewise.
22651         * lib/unictype/pr_private_use.h: Likewise.
22652         * lib/unictype/pr_quotation_mark.h: Likewise.
22653         * lib/unictype/pr_radical.h: Likewise.
22654         * lib/unictype/pr_soft_dotted.h: Likewise.
22655         * lib/unictype/pr_space.h: Likewise.
22656         * lib/unictype/pr_titlecase.h: Likewise.
22657         * lib/unictype/pr_variation_selector.h: Likewise.
22658         * lib/unictype/pr_white_space.h: Likewise.
22659         * lib/unictype/sy_c_ident.h: Likewise.
22660         * lib/unictype/sy_c_whitespace.h: Likewise.
22661         * lib/unictype/sy_java_whitespace.h: Likewise.
22662         * modules/uni*/*: Bump version number of expected libunistring version.
22663         Reported by Simon Josefsson.
22664
22665 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22666
22667         useless-if-before-free: fix typo in --help and make the internal,
22668         automatic version date update process work once again.
22669         --help output contained a NUL character instead of the
22670         backslash-zero that was intended.  Also, the "must lie within
22671         the first 8 lines" line is on line 9, and hence not getting
22672         automatically updated.
22673         * build-aux/useless-if-before-free: Fix the former by adding a
22674         backslash, and the latter by condensing the three lines of what-it-does
22675         to a single line, leaving one line of slack for the future.
22676
22677 2011-01-09  Bruno Haible  <bruno@clisp.org>
22678
22679         uniwidth/width: Fix width of U+1D173..U+1D17A.
22680         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22681         symbolic_width, output_width_property_test): New functions.
22682         (main): Invoke output_nonspacing_property, output_width_property_test.
22683         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22684         U+1D173..U+1D17A.
22685         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22686         1.
22687         * modules/uniwidth/*: Bump version number of expected libunistring
22688         version.
22689         * modules/unilbrk/*: Likewise.
22690
22691 2011-01-08  Bruno Haible  <bruno@clisp.org>
22692
22693         uninorm tests: Preserve copyright of Unicode data file.
22694         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22695         Mention modifications.
22696
22697 2011-01-08  Bruno Haible  <bruno@clisp.org>
22698
22699         gen-uni-tables: Prepare for Unicode 5.2.0.
22700         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22701         (debug_output_lbp, output_lbp): Update.
22702
22703 2011-01-08  Bruno Haible  <bruno@clisp.org>
22704
22705         unilbrk: Clarify gen-uni-tables.c code.
22706         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22707         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22708         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22709
22710 2011-01-07  Bruno Haible  <bruno@clisp.org>
22711
22712         strtod: Restore errno when successfully parsing Infinity or NaN.
22713         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22714         restore the original errno.
22715
22716 2011-01-07  Bruno Haible  <bruno@clisp.org>
22717
22718         remove test: Avoid failure on HP-UX 11.
22719         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22720
22721 2011-01-07  Bruno Haible  <bruno@clisp.org>
22722
22723         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22724         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22725         error code.
22726
22727 2011-01-07  Pádraig Brady <P@draigBrady.com>
22728
22729         ignore-value: fixup comments, and add Eric Blake
22730         as an author since he rewrote the macros.
22731         * lib/ignore-value.h (ignore_value):  State that
22732         we now support aggregates.  Also specify exactly
22733         when the GCC warn_unused_result feature was added.
22734
22735 2011-01-06  Eric Blake  <eblake@redhat.com>
22736
22737         ignore-value: support aggregate types
22738         * lib/ignore-value.h (ignore_value): Provide separate gcc
22739         definition.
22740         * modules/ignore-value-tests: New test module.
22741         * tests/test-ignore-value.c: New test.
22742
22743         maint.mk: improve sc_prohibit_strcmp regex
22744         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22745         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22746         definition of STRNEQ.
22747
22748         signal: work around Haiku issue with SIGBUS
22749         * lib/siglist.h: Add comment.
22750         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22751         strsignal's favoring of SIGSEGV.
22752         * tests/test-signal.c (main): Avoid test failure.
22753         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22754         Reported by Scott McCreary.
22755
22756         maint.mk: add pre-release check to ensure submodule commits are public
22757         * top/maint.mk (public-submodule-commit): New rule.
22758         (submodule-checks): New variable.
22759         (alpha beta stable): Depend on the variable.
22760
22761 2011-01-05  Pádraig Brady <P@draigBrady.com>
22762         and Jim Meyering  <meyering@redhat.com>
22763
22764         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22765         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22766         (ATTRIBUTE_DEPRECATED): Define.
22767         (_ignore_case): New function.
22768         (ignore_value): New macro, to replace the old function.
22769         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22770         * modules/ignore-value (Depends-on): Add stdint.
22771
22772 2011-01-04  Eric Blake  <eblake@redhat.com>
22773
22774         doc: regenerate INSTALL
22775         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22776         @firstparagraphindent support, now that autoconf dropped it.
22777         (INSTALL_PRELUDE): Reinstate old macro.
22778         * doc/install.texi: Resync from autoconf.
22779         * doc/INSTALL: Reflect recent autoconf update.
22780         * doc/INSTALL.ISO: Likewise.
22781         * doc/INSTALL.UTF-8: Likewise.
22782         Reported by Karl Berry.
22783
22784 2011-01-04  Bruce Korb  <address@hidden>
22785
22786         git-version-gen: avoid a sub-shell
22787         * build-aux/git-version-gen: Redirect stderr in `...` via
22788         "exec 2>...", rather than via an added sub-shell.
22789
22790 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22791
22792         git-version-gen: use (...) rather than sh -c '...'
22793         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22794         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22795
22796 2011-01-03  Jim Meyering  <meyering@redhat.com>
22797
22798         git-version-gen: convert leading TABs to spaces
22799         * build-aux/git-version-gen: Expand leading TABs.
22800
22801         git-version-gen: handle failed "git rev-list"
22802         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22803         from git and proceeding as if it had succeeded but printed no SHA1
22804         checksums, suppress the diagnostic and handle the failure.
22805         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22806
22807         git-version-gen: include command name in one more diagnostic
22808         * build-aux/git-version-gen: When the required .tarball-version file
22809         was missing or unreadable, you might see the diagnostic from "cat",
22810         but no trace of the name of the invoking script.  Now, you still see
22811         the diagnostic from cat, but also get one from "git-version-gen: ".
22812         Inspired by a patch from Bruce Korb.
22813
22814         update-copyright: adjust test to match changed code
22815         * tests/test-update-copyright.sh: Change test's expected output
22816         to match new actual output.
22817
22818 2011-01-02  Bruno Haible  <bruno@clisp.org>
22819
22820         getlogin_r: Avoid test failure on HP-UX 11.
22821         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22822         ERANGE when the second argument is zero.
22823         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22824         portability problem.
22825
22826 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22827
22828         * build-aux/update-copyright: doc Simon's changes
22829
22830 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22831
22832         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22833         environment variable.
22834
22835 2011-01-02  Bruno Haible  <bruno@clisp.org>
22836
22837         unigbrk: Avoid gcc warnings.
22838         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22839         unused variable.
22840         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22841         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22842         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22843         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22844         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22845         Change type of first argument to 'const char *'.
22846         (main): Remove unused variable.
22847         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22848         type of first argument to 'const char *'.
22849         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22850         Likewise.
22851         (main): Change type of variable 's'.
22852         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22853         to 'int'.
22854
22855 2011-01-02  Bruno Haible  <bruno@clisp.org>
22856
22857         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22858         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22859         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22860         bug.
22861         * lib/pwrite.c: Undo 2010-12-31 patch.
22862         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22863
22864 2011-01-02  Bruno Haible  <bruno@clisp.org>
22865
22866         pread: Fix test whether it works.
22867         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22868
22869 2011-01-02  Bruno Haible  <bruno@clisp.org>
22870
22871         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22872         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22873         ends in "6". Don't require a specific month name. Try also the locale
22874         names found on HP-UX 11 and Solaris 7.
22875
22876 2011-01-02  Bruno Haible  <bruno@clisp.org>
22877
22878         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22879         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22880         C linkage.
22881         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22882
22883 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22884
22885         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22886         for consistency, since the "cluster" term is not used elsewhere.
22887         * lib/unigbrk.in.h: Update name.
22888         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22889         * lib/unigbrk/u16-grapheme-next.c: Update name.
22890         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22891         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22892         * lib/unigbrk/u32-grapheme-next.c: Update name.
22893         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22894         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22895         * lib/unigbrk/u8-grapheme-next.c: Update name.
22896         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22897         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22898         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22899         Suggested by Bruno Haible.
22900
22901 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22902
22903         Remove module 'u8-grapheme-len' as too redundant with
22904         'u8-grapheme-next'.
22905         * modules/unigbrk/u8-grapheme-len: Delete file.
22906         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22907         * lib/unigbrk.in.h: Remove prototype for deleted function.
22908         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22909         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22910
22911         Remove module 'u16-grapheme-len' as too redundant with
22912         'u16-grapheme-next'.
22913         * modules/unigbrk/u16-grapheme-len: Delete file.
22914         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22915         * lib/unigbrk.in.h: Remove prototype for deleted function.
22916         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22917         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22918
22919         Remove module 'u32-grapheme-len' as too redundant with
22920         'u32-grapheme-next'.
22921         * modules/unigbrk/u32-grapheme-len: Delete file.
22922         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22923         * lib/unigbrk.in.h: Remove prototype for deleted function.
22924         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22925         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22926
22927         Suggested by Bruno Haible.
22928
22929 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22930
22931         * unigbrk.in.h: Fix typo: "ben" => "been".
22932         Reported by Bruno Haible.
22933
22934 2011-01-01  Jim Meyering  <meyering@redhat.com>
22935
22936         maint: update almost all copyright ranges to include 2011
22937         Run the new "make update-copyright" rule.
22938
22939 2011-01-01  Jim Meyering  <meyering@redhat.com>
22940
22941         maint: update-copyright: exempt doc/INSTALL*
22942         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22943         since they are generated.  Suggested by Bruno Haible.
22944
22945 2011-01-01  Jim Meyering  <meyering@redhat.com>
22946
22947         maint: refine the update-copyright rule
22948         * Makefile (update-copyright): Also exclude any file that includes
22949         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22950         code that merely generates the comment.
22951
22952 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22953
22954         New module 'u8-grapheme-len'.
22955         * modules/unigbrk/u8-grapheme-len: New file.
22956         * modules/unigbrk/u8-grapheme-len-tests: New file.
22957         * lib/unigbrk.in.h: Add prototype for new function.
22958         * lib/unigbrk/u8-grapheme-len.c: New file.
22959         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22960
22961         New module 'u16-grapheme-len'.
22962         * modules/unigbrk/u16-grapheme-len: New file.
22963         * modules/unigbrk/u16-grapheme-len-tests: New file.
22964         * lib/unigbrk.in.h: Add prototype for new function.
22965         * lib/unigbrk/u16-grapheme-len.c: New file.
22966         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22967
22968         New module 'u32-grapheme-len'.
22969         * modules/unigbrk/u32-grapheme-len: New file.
22970         * modules/unigbrk/u32-grapheme-len-tests: New file.
22971         * lib/unigbrk.in.h: Add prototype for new function.
22972         * lib/unigbrk/u32-grapheme-len.c: New file.
22973         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22974
22975         New module 'u8-grapheme-next'.
22976         * modules/unigbrk/u8-grapheme-next: New file.
22977         * modules/unigbrk/u8-grapheme-next-tests: New file.
22978         * lib/unigbrk.in.h: Add prototype for new function.
22979         * lib/unigbrk/u8-grapheme-next.c: New file.
22980         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22981
22982         New module 'u16-grapheme-next'.
22983         * modules/unigbrk/u16-grapheme-next: New file.
22984         * modules/unigbrk/u16-grapheme-next-tests: New file.
22985         * lib/unigbrk.in.h: Add prototype for new function.
22986         * lib/unigbrk/u16-grapheme-next.c: New file.
22987         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22988
22989         New module 'u32-grapheme-next'.
22990         * modules/unigbrk/u32-grapheme-next: New file.
22991         * modules/unigbrk/u32-grapheme-next-tests: New file.
22992         * lib/unigbrk.in.h: Add prototype for new function.
22993         * lib/unigbrk/u32-grapheme-next.c: New file.
22994         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22995
22996         New module 'u8-grapheme-prev'.
22997         * modules/unigbrk/u8-grapheme-prev: New file.
22998         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22999         * lib/unigbrk.in.h: Add prototype for new function.
23000         * lib/unigbrk/u8-grapheme-prev.c: New file.
23001         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
23002
23003         New module 'u16-grapheme-prev'.
23004         * modules/unigbrk/u16-grapheme-prev: New file.
23005         * modules/unigbrk/u16-grapheme-prev-tests: New file.
23006         * lib/unigbrk.in.h: Add prototype for new function.
23007         * lib/unigbrk/u16-grapheme-prev.c: New file.
23008         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
23009
23010         New module 'u32-grapheme-prev'.
23011         * modules/unigbrk/u32-grapheme-prev: New file.
23012         * modules/unigbrk/u32-grapheme-prev-tests: New file.
23013         * lib/unigbrk.in.h: Add prototype for new function.
23014         * lib/unigbrk/u32-grapheme-prev.c: New file.
23015         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
23016
23017         New module 'u8-grapheme-breaks'.
23018         * modules/unigbrk/u8-grapheme-breaks: New file.
23019         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
23020         * lib/unigbrk.in.h: Add prototype for new function.
23021         * lib/unigbrk/u8-grapheme-breaks.c: New file.
23022         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
23023
23024         New module 'u16-grapheme-breaks'.
23025         * modules/unigbrk/u16-grapheme-breaks: New file.
23026         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
23027         * lib/unigbrk.in.h: Add prototype for new function.
23028         * lib/unigbrk/u16-grapheme-breaks.c: New file.
23029         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
23030
23031         New module 'u32-grapheme-breaks'.
23032         * modules/unigbrk/u32-grapheme-breaks: New file.
23033         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
23034         * lib/unigbrk.in.h: Add prototype for new function.
23035         * lib/unigbrk/u32-grapheme-breaks.c: New file.
23036         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
23037
23038         New module 'ulc-grapheme-breaks'.
23039         * modules/unigbrk/ulc-grapheme-breaks: New file.
23040         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
23041         * m4/locale-ar.m4: New file.
23042         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
23043         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
23044         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
23045
23046 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23047
23048         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
23049         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
23050         modified how this file was generated before I initially submitted
23051         the module, but failed to regenerate it.  This meant that several
23052         of the level2 entries were wrong.
23053         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
23054         Remove the division-by-2 that is folded into the table now that
23055         gbrkprop.h has been regenerated properly.  Now -1 entries are
23056         handled correctly.
23057
23058         New module 'unigbrk/uc-gbrk-prop-tests'.
23059         * modules/unigbrk/uc-gbrk-prop-tests: New file.
23060         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
23061         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
23062         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
23063
23064 2011-01-01  Bruno Haible  <bruno@clisp.org>
23065
23066         Avoid use of hexadecimal escapes.
23067         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
23068         instead of hexadecimal escapes.
23069
23070 2011-01-01  Jim Meyering  <meyering@redhat.com>
23071
23072         maint: new rule to update copyright year ranges
23073         * Makefile (update-copyright): New rule.
23074
23075         maint: indent with TABs in Makefile
23076         * Makefile: Expand leading sequences of spaces to TABs
23077
23078         version-etc: update the copyright year it reports
23079         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
23080
23081 2010-12-31  Bruno Haible  <bruno@clisp.org>
23082
23083         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
23084         * lib/isfinite.c (zerof, zerod, zerol): New variables.
23085         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
23086         zero.
23087
23088 2010-12-31  Bruno Haible  <bruno@clisp.org>
23089
23090         pwrite: Work around HP-UX 11.11 bug.
23091         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
23092         works and set REPLACE_PWRITE if not.
23093         * lib/pwrite.c (pwrite): Add an implementation that uses the system
23094         function.
23095         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
23096
23097 2010-12-31  Bruno Haible  <bruno@clisp.org>
23098
23099         pread: Work around HP-UX 11 bugs.
23100         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
23101         and set REPLACE_PREAD if not.
23102         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
23103
23104 2010-12-31  Eric Blake  <eblake@redhat.com>
23105
23106         nl_langinfo: fix YESEXPR on Irix 6.5
23107         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
23108         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
23109         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
23110         it.
23111
23112 2010-12-31  Bruno Haible  <bruno@clisp.org>
23113
23114         iconv: Document HP-UX 11 bug.
23115         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
23116
23117 2010-12-31  Bruno Haible  <bruno@clisp.org>
23118
23119         ldexpl: Fix link error on HP-UX 11.
23120         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
23121         LDEXPL_LIBM, using $ISNANL_LIBM.
23122
23123 2010-12-31  Eric Blake  <eblake@redhat.com>
23124
23125         ftello: avoid compilation failure with SunStudio c89
23126         * lib/ftello.c (ftello): Use lseek, not llseek.
23127
23128         tests: avoid failing coreutils tests on cygwin
23129         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
23130         (create_exe_shims_): Return 0 when skipping.
23131
23132 2010-12-31  Bruno Haible  <bruno@clisp.org>
23133
23134         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
23135         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
23136
23137 2010-12-31  Bruno Haible  <bruno@clisp.org>
23138
23139         waitpid: Fix link error in C++ mode.
23140         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
23141
23142 2010-12-31  Bruno Haible  <bruno@clisp.org>
23143
23144         isnan: Use GCC built-ins when possible.
23145         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
23146         __builtin_isnan.
23147         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
23148         (isnan): Define using GCC built-ins for GCC >= 4.0.
23149
23150 2010-12-31  Bruno Haible  <bruno@clisp.org>
23151
23152         isnand: Fix mistake.
23153         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
23154         __builtin_isnand.
23155
23156 2010-12-31  Bruno Haible  <bruno@clisp.org>
23157
23158         open: Avoid C++ error on HP-UX 11.
23159         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
23160
23161 2010-12-31  Bruno Haible  <bruno@clisp.org>
23162
23163         time_r: Add missing declarations on HP-UX 11.
23164         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
23165         instead of HAVE_LOCALTIME_R.
23166         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
23167         HAVE_LOCALTIME_R always.
23168         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
23169         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
23170         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
23171         HAVE_LOCALTIME_R.
23172         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
23173         * doc/posix-functions/localtime_r.texi: Likewise.
23174
23175 2010-12-29  Eric Blake  <eblake@redhat.com>
23176
23177         mountlist: tweak previous commit
23178         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
23179         Reported by Paul Eggert.
23180
23181         mountlist: fix local drive detection on cygwin
23182         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
23183         that works for cygwin.
23184
23185 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
23186
23187         ftoastr, snprintf: ftoastr + snprintf module
23188         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
23189         since the snprintf module now should be good enough here.
23190         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
23191         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
23192         and gl_MODULE_INDICATOR([snprintf]), but the former enables
23193         GNULIB_SNPRINTF only for the test directory, and the latter
23194         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
23195         seems to suffice by itself.
23196
23197 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23198
23199         alloca: one step towards thread-safety
23200         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
23201         need for a static variable.  All callers changed.  This does not
23202         make the alloca replacement thread-safe, but it's one step.
23203
23204         tests: minor indenting change
23205         * tests/init.sh: Sync from coreutils housekeeping patch
23206         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
23207         to keep lines within 80 columns.
23208
23209 2010-12-28  Jim Meyering  <meyering@redhat.com>
23210
23211         regex: don't infloop on persistent failing calloc
23212         * lib/regexec.c (build_trtable): Return failure indication upon
23213         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
23214         In glibc, this was fixed for version 2.13:
23215         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
23216
23217 2010-12-28  Bruno Haible  <bruno@clisp.org>
23218             Paul Eggert <eggert@cs.ucla.edu>
23219
23220         linkat: Make implementation robust against system behaviour variations.
23221         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
23222         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
23223         way, and to -2 if it needs a generic runtime test.
23224         * lib/linkat.c (solaris_optimized_link_immediate,
23225         solaris_optimized_link_follow): New functions.
23226         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
23227         (check_same_link): Use it.
23228
23229 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
23230
23231         New module 'unigbrk/base'.
23232         * modules/unigbrk/base: New file.
23233         * lib/unigbrk.in.h: New file.
23234
23235         New module 'unigbrk/uc-gbrk-prop'.
23236         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
23237         * modules/unigbrk/uc-gbrk-prop: New file.
23238         * lib/unigbrk/gbrkprop.h: New file.
23239         * lib/unigbrk/uc-gbrk-prop.c: New file.
23240
23241         New module 'unigbrk/uc-is-grapheme-break'.
23242         * modules/unigbrk/uc-is-grapheme-break: New file.
23243         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
23244         * lib/unigbrk/uc-is-grapheme-break.c: New file.
23245         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
23246         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
23247         * tests/unigbrk/GraphemeBreakTest.txt: New file.
23248
23249         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
23250
23251 2010-12-27  Bruno Haible  <bruno@clisp.org>
23252
23253         linkat test: Avoid failure on Solaris 11 2010-11.
23254         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
23255
23256 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23257
23258         utimens: work around glibc rounding bug on more platforms
23259         * lib/utimens.c (fdutimens): Work around rounding bug even if
23260         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
23261         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
23262
23263 2010-12-27  Bruno Haible  <bruno@clisp.org>
23264
23265         select tests: Improve comments.
23266         * tests/test-select.c (do_select): Add comments.
23267
23268 2010-12-27  Bruno Haible  <bruno@clisp.org>
23269
23270         select tests: Safer way of handling timeout.
23271         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
23272         at every invocation.
23273
23274 2010-12-27  Bruno Haible  <bruno@clisp.org>
23275
23276         select tests: Use 'bool' where appropriate.
23277         * tests/test-select.c (connect_to_socket): Change argument type to
23278         'bool'.
23279
23280 2010-12-27  Bruno Haible  <bruno@clisp.org>
23281
23282         select tests: Use existing modules.
23283         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
23284         (configure.ac): Don't test for unistd.h.
23285         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
23286         declared in <unistd.h>.
23287
23288 2010-12-27  Bruno Haible  <bruno@clisp.org>
23289
23290         mbrtowc: Work around a Solaris 7 bug.
23291         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
23292         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
23293         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
23294         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
23295         MBRTOWC_NULL_ARG1_BUG.
23296         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
23297         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
23298         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
23299         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
23300
23301 2010-12-27  Jim Meyering  <meyering@redhat.com>
23302
23303         read-file.c: tweak syntax
23304         * lib/read-file.c (fread_file): Remove space after "*" in function
23305         definitions.
23306
23307 2010-12-27  Bruno Haible  <bruno@clisp.org>
23308
23309         times test: Avoid gcc warnings on OSF/1.
23310         * tests/test-times.c (main): Cast printf arguments from clock_t to
23311         'long int'.
23312
23313 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23314
23315         utimens: work around glibc rounding bug on older Linux kernels
23316         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
23317         on Linux with a glibc whose utimes might not work, then work
23318         around a longstanding glibc bug involving rounding rather than
23319         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
23320         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23321
23322 2010-12-26  Bruno Haible  <bruno@clisp.org>
23323
23324         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
23325         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
23326         _GL_CXXALIAS_SYS.
23327         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23328
23329 2010-12-26  Bruno Haible  <bruno@clisp.org>
23330
23331         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
23332         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
23333         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23334         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
23335         looking for the declaration.
23336         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23337         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
23338         problem.
23339         * doc/posix-functions/inet_pton.texi: Likewise.
23340
23341 2010-12-26  Bruno Haible  <bruno@clisp.org>
23342
23343         arpa_inet: Use the common idioms with C++ support.
23344         * lib/arpa_inet.in.h: Include c++defs.h.
23345         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
23346         support.
23347         * modules/arpa_inet (Depends-on): Add c++defs.
23348         (Makefile.am): Substitute the contents of c++defs.h.
23349         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
23350         * modules/arpa_inet-c++-tests: New file.
23351         * tests/test-arpa_inet-c++.cc: New file.
23352
23353 2010-12-25  Bruno Haible  <bruno@clisp.org>
23354
23355         Fix more C++ link errors on Solaris 8.
23356         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
23357         $(LIB_EACCESS).
23358         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
23359         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
23360         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
23361         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
23362         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
23363
23364 2010-12-25  Bruno Haible  <bruno@clisp.org>
23365
23366         printf-posix: Fix link error when a non-GCC compiler is used.
23367         * lib/stdio.in.h (printf): When not using GCC, override printf
23368         correctly.
23369         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23370
23371 2010-12-25  Bruno Haible  <bruno@clisp.org>
23372
23373         strerror_r-posix: Update doc.
23374         * doc/posix-functions/strerror_r.texi: Update doc about the return
23375         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
23376
23377 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
23378
23379         utimens: simplify the logic of the previous change
23380         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
23381         This should not affect whether the test succeeds or fails.
23382
23383         utimens: configure better on hosts with NFS clock skew
23384         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
23385         uses the clock of the local host.  It might use the clock of the
23386         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
23387         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23388
23389 2010-12-25  Bruno Haible  <bruno@clisp.org>
23390
23391         ptsname test: Avoid failure on Solaris.
23392         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
23393         open a pseudo-terminal; don't use BSD-style ptys.
23394         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
23395
23396 2010-12-25  Bruno Haible  <bruno@clisp.org>
23397
23398         ptsname: Avoid ERANGE failure on some systems.
23399         * lib/ptsname.c (buffer): Increase size.
23400
23401 2010-12-25  Bruno Haible  <bruno@clisp.org>
23402
23403         rename, renameat: Avoid test failures at NFS mounted locations.
23404         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
23405         so that subsequent mkdir calls succeed.
23406
23407 2010-12-25  Bruno Haible  <bruno@clisp.org>
23408
23409         iswblank: Fix C++ link error on Solaris 8.
23410         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
23411         _GL_FUNCDECL_SYS.
23412
23413 2010-12-25  Bruno Haible  <bruno@clisp.org>
23414
23415         unistd: Fix C++ link error on Solaris 8.
23416         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
23417
23418 2010-12-25  Bruno Haible  <bruno@clisp.org>
23419
23420         readlink doc: Mention an old glibc bug.
23421         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
23422
23423 2010-12-25  Bruno Haible  <bruno@clisp.org>
23424
23425         fcntl-h: Fix for use of C++ on glibc systems.
23426         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23427         also on glibc systems in C++ mode.
23428         Reported by Gary V. Vaughan <gary@gnu.org>.
23429
23430 2010-12-25  Bruno Haible  <bruno@clisp.org>
23431
23432         roundl-ieee: Make it work on OSF/1 5.1 with cc.
23433         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
23434
23435 2010-12-25  Bruno Haible  <bruno@clisp.org>
23436
23437         truncl-ieee: Make it work on OSF/1 5.1 with cc.
23438         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
23439         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
23440         test whether truncl works according to ISO C 99 with IEC 60559.
23441         * m4/truncl-ieee.m4: New file.
23442         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
23443         m4/signbit.m4.
23444         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
23445
23446 2010-12-25  Bruno Haible  <bruno@clisp.org>
23447
23448         ceill-ieee: Make it work on OSF/1 5.1 with cc.
23449         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
23450         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
23451         test whether ceill works according to ISO C 99 with IEC 60559.
23452         * m4/ceill-ieee.m4: New file.
23453         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
23454         m4/signbit.m4.
23455         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
23456
23457 2010-12-25  Bruno Haible  <bruno@clisp.org>
23458
23459         Ensure all prerequisites of <wchar.h> are included.
23460         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
23461         before <wchar.h>.
23462         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23463         gl_MBRLEN_NUL_RETVAL): Likewise.
23464         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23465         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
23466         AC_FUNC_MBRTOWC): Likewise.
23467         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23468         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23469         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23470         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23471         Likewise.
23472         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23473         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
23474         (gl_WCHAR_H): Improve comments.
23475         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23476
23477 2010-12-25  Bruno Haible  <bruno@clisp.org>
23478
23479         strtok_r: Fix C syntax error in autoconf macro.
23480         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
23481         characters in test program.
23482
23483 2010-12-24  Bruno Haible  <bruno@clisp.org>
23484
23485         ceil, trunc, round: Fix gcc warnings.
23486         * lib/ceil.c (MIN): Undefine before redefining.
23487         * lib/trunc.c (MIN): Likewise.
23488         * lib/round.c (MIN): Likewise.
23489         Include <math.h> first.
23490
23491 2010-12-24  Bruno Haible  <bruno@clisp.org>
23492
23493         select tests: Avoid failures on OSF/1 5.1.
23494         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
23495         failure of closing the last socket; it may fail with ECONNRESET.
23496
23497 2010-12-24  Eric Blake  <eblake@redhat.com>
23498
23499         stdint: avoid HP-UX 10.20 preprocessor bug
23500         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
23501         than #if.
23502         * tests/test-floor2.c (main): Likewise.
23503         Reported by Peter O'Gorman.
23504
23505         pipe: make obsoletion transition easier
23506         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
23507         * modules/pipe (Files): Include revived file.
23508         (Include): Drop reference, to mirror getdate's behavior.
23509
23510 2010-12-24  Bruno Haible  <bruno@clisp.org>
23511
23512         sys_socket: Hide mismatch of declarations on NonStop Kernel.
23513         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
23514         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
23515         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23516
23517 2010-12-24  Bruno Haible  <bruno@clisp.org>
23518
23519         gethostname: Ensure declaration on NonStop Kernel.
23520         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
23521         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23522
23523 2010-12-24  Bruno Haible  <bruno@clisp.org>
23524
23525         sys_select: Ensure all necessary types on NonStop Kernel.
23526         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
23527         include <sys/time.h>.
23528         * doc/posix-headers/sys_select.texi: Mention that it's missing on
23529         NonStop Kernel.
23530         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23531
23532 2010-12-24  Bruno Haible  <bruno@clisp.org>
23533
23534         sys_select: Remove unneeded include.
23535         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
23536         have <sys/select.h>.
23537
23538 2010-12-24  Bruno Haible  <bruno@clisp.org>
23539
23540         gethostname: Provide a fallback for HOST_NAME_MAX.
23541         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
23542         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
23543         instead.
23544         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23545
23546 2010-12-24  Bruno Haible  <bruno@clisp.org>
23547
23548         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
23549         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
23550         (SA_RESTART): Likewise.
23551         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23552
23553 2010-12-24  Bruno Haible  <bruno@clisp.org>
23554
23555         signal: Define NSIG.
23556         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23557         * tests/test-signal.c (nsig): New variable.
23558         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23559
23560 2010-12-24  Bruno Haible  <bruno@clisp.org>
23561
23562         rename, renameat: Avoid test failures on OSF/1 5.1.
23563         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23564         alternative error codes.
23565         * tests/test-renameat.c (main): Likewise.
23566
23567 2010-12-24  Bruno Haible  <bruno@clisp.org>
23568
23569         *printf: Detect large precisions bug on Solaris 10/SPARC.
23570         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23571         by Paul Eggert.
23572         * tests/test-snprintf-posix.h (test_function): Add this test code here
23573         too.
23574         * tests/test-sprintf-posix.h (test_function): Likewise.
23575         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23576         * tests/test-vasprintf-posix.c (test_function): Likewise.
23577         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23578         around by gnulib.
23579         * doc/posix-functions/printf.texi: Likewise.
23580         * doc/posix-functions/snprintf.texi: Likewise.
23581         * doc/posix-functions/sprintf.texi: Likewise.
23582         * doc/posix-functions/vfprintf.texi: Likewise.
23583         * doc/posix-functions/vprintf.texi: Likewise.
23584         * doc/posix-functions/vsnprintf.texi: Likewise.
23585         * doc/posix-functions/vsprintf.texi: Likewise.
23586         * doc/posix-functions/dprintf.texi: Undo last commit.
23587         * doc/posix-functions/vdprintf.texi: Likewise.
23588
23589 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23590
23591         tests: port test-fdutimensat.c to Solaris 8
23592         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23593         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23594         On Solaris 8, it fails with errno == ENOSYS, because there is no
23595         futimens (so it can't use the fd), and there is no lutimens (so it
23596         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23597
23598         vsnprintf: make more consistent with snprintf; doc fixes
23599
23600         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23601         the byte count return problem was promoted from the snprintf-posix
23602         to the snprintf module.
23603         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23604         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23605         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23606         * tests/test-snprintf.c (main): Check the byte count returned.
23607         * tests/test-vsnprintf.c (main): Likewise.
23608
23609 2010-12-23  Eric Blake  <eblake@redhat.com>
23610
23611         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23612         * modules/sigpipe (License): Relax license.
23613
23614 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23615
23616         doc: document Solaris printf bug with large float precisions
23617         * doc/posix-functions/dprintf.texi (dprintf):
23618         * doc/posix-functions/fprintf.texi (fprintf):
23619         * doc/posix-functions/printf.texi (printf):
23620         * doc/posix-functions/snprintf.texi (snprintf):
23621         * doc/posix-functions/sprintf.texi (sprintf):
23622         * doc/posix-functions/vdprintf.texi (vdprintf):
23623         * doc/posix-functions/vfprintf.texi (vfprintf):
23624         * doc/posix-functions/vprintf.texi (vprintf):
23625         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23626         * doc/posix-functions/vsprintf.texi (vsprintf):
23627         Mention that these functions mishandle large floating point
23628         precisions on Solaris 10.  The same bug is also present in Solaris
23629         8, and I assume earlier.  This causes "cd gnulib-tests; make
23630         check" to fail on Solaris 8 (and I assume, later) when building
23631         the latest coreutils, in test-vasprintf-posix's call to
23632         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23633         the wide flavors (e.g., wprintf) so this patch just updates the
23634         documentation for the narrow ones.
23635
23636         test-posixtm.c: add two tests
23637         * tests/test-posixtm.c: Add two tests, to highlight the
23638         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23639         around this bug; this is merely to document it.
23640
23641 2010-12-22  Bruno Haible  <bruno@clisp.org>
23642
23643         getlogin_r: Work around portability problem on OSF/1.
23644         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23645         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23646         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23647         test for a truncated result.
23648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23649         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23650         * modules/getlogin_r (Depends-on): Add memchr.
23651         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23652
23653 2010-12-22  Bruno Haible  <bruno@clisp.org>
23654
23655         ptsname: Avoid test failure on OSF/1 5.1.
23656         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23657         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23658         (same_slave): New function.
23659         (main): Use it to compare ptsname's result with the expected file name.
23660
23661 2010-12-22  Bruno Haible  <bruno@clisp.org>
23662
23663         Port extended stdio modules to HP NonStop Kernel.
23664         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23665         macros.
23666         * lib/fbufmode.c: Update comments.
23667         * lib/fflush.c: Likewise.
23668         * lib/fpurge.c: Likewise.
23669         * lib/freadable.c: Likewise.
23670         * lib/freadahead.c: Likewise.
23671         * lib/freading.c: Likewise.
23672         * lib/freadptr.c: Likewise.
23673         * lib/freadseek.c: Likewise.
23674         * lib/fseeko.c: Likewise.
23675         * lib/fseterr.c: Likewise.
23676         * lib/fwritable.c: Likewise.
23677         * lib/fwriting.c: Likewise.
23678         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23679
23680 2010-12-22  Bruno Haible  <bruno@clisp.org>
23681
23682         ttyname_r: Work around bug on OSF/1 5.1.
23683         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23684         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23685         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23686         present.
23687         * lib/ttyname_r.c (ttyname_r): Update comments.
23688
23689 2010-12-22  Bruno Haible  <bruno@clisp.org>
23690
23691         round: Implement result sign according to IEEE 754.
23692         * lib/round.c (MIN, MINUS_ZERO): New macros.
23693         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23694         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23695         * tests/test-round-ieee.c (main): Likewise.
23696         * tests/test-roundl-ieee.c (main): Likewise.
23697
23698         trunc: Implement result sign according to IEEE 754.
23699         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23700         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23701         * tests/test-trunc2.c: Include minus-zero.h.
23702         (MINUS_ZERO): New macro.
23703         (trunc_reference): Keep in sync with lib/trunc.c.
23704         * tests/test-truncf2.c: Include minus-zero.h.
23705         (MINUS_ZERO): New macro.
23706         (truncf_reference): Keep in sync with lib/trunc.c.
23707         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23708         * tests/test-trunc-ieee.c (main): Likewise.
23709         * tests/test-truncl-ieee.c (main): Likewise.
23710
23711         ceil: Implement result sign according to IEEE 754.
23712         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23713         (FUNC): Return -0.0 for -1 < x < 0.
23714         * tests/test-ceil2.c: Include minus-zero.h.
23715         (MINUS_ZERO): New macro.
23716         (ceil_reference): Keep in sync with lib/ceil.c.
23717         * tests/test-ceilf2.c: Include minus-zero.h.
23718         (MINUS_ZERO): New macro.
23719         (ceilf_reference): Keep in sync with lib/ceil.c.
23720         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23721         * tests/test-ceil-ieee.c (main): Likewise.
23722         * tests/test-ceill-ieee.c (main): Likewise.
23723
23724         floor: Implement result sign according to IEEE 754.
23725         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23726         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23727         * tests/test-floorf2.c (floorf_reference): Likewise.
23728         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23729         * tests/test-floor-ieee.c (main): Likewise.
23730         * tests/test-floorl-ieee.c (main): Likewise.
23731
23732 2010-12-22  Bruno Haible  <bruno@clisp.org>
23733
23734         getaddrinfo: Update doc.
23735         * doc/posix-functions/gai_strerror.texi: Return type is also different
23736         on AIX and HP-UX.
23737
23738 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23739
23740         getaddrinfo, inet_ntop: Update doc for Solaris.
23741         * doc/posix-functions/gai_strerror.texi: Return type is also an
23742         issue on Solaris 9 and earlier.
23743         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23744         on Solaris 10 and earlier.
23745
23746 2010-12-21  Bruno Haible  <bruno@clisp.org>
23747
23748         New module 'roundl-ieee'.
23749         * modules/roundl-ieee: New file.
23750         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23751         test whether roundl works according to ISO C 99 with IEC 60559.
23752         * m4/roundl-ieee.m4: New file.
23753         * modules/roundl-ieee-tests: New file.
23754         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23755         * tests/test-roundl.c (main): Remove signbit tests.
23756         * modules/roundl-tests (Depends-on): Remove signbit.
23757         * doc/posix-functions/roundl.texi: Mention the new module.
23758
23759 2010-12-21  Bruno Haible  <bruno@clisp.org>
23760
23761         New module 'truncl-ieee'.
23762         * modules/truncl-ieee: New file.
23763         * modules/truncl-ieee-tests: New file.
23764         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23765         * tests/test-truncl.c (main): Remove signbit tests.
23766         * modules/truncl-tests (Depends-on): Remove signbit.
23767         * doc/posix-functions/truncl.texi: Mention the new module.
23768
23769 2010-12-21  Bruno Haible  <bruno@clisp.org>
23770
23771         New module 'ceill-ieee'.
23772         * modules/ceill-ieee: New file.
23773         * modules/ceill-ieee-tests: New file.
23774         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23775         * tests/test-ceill.c (main): Remove signbit tests.
23776         * modules/ceill-tests (Depends-on): Remove signbit.
23777         * doc/posix-functions/ceill.texi: Mention the new module.
23778
23779 2010-12-21  Bruno Haible  <bruno@clisp.org>
23780
23781         New module 'floorl-ieee'.
23782         * modules/floorl-ieee: New file.
23783         * modules/floorl-ieee-tests: New file.
23784         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23785         * tests/test-floorl.c (main): Remove signbit tests.
23786         * modules/floorl-tests (Depends-on): Remove signbit.
23787         * doc/posix-functions/floorl.texi: Mention the new module.
23788
23789 2010-12-21  Bruno Haible  <bruno@clisp.org>
23790
23791         New module 'round-ieee'.
23792         * modules/round-ieee: New file.
23793         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23794         whether round works according to ISO C 99 with IEC 60559.
23795         * m4/round-ieee.m4: New file.
23796         * modules/round-ieee-tests: New file.
23797         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23798         * tests/test-round1.c (main): Remove signbit tests.
23799         * modules/round-tests (Depends-on): Remove 'signbit'.
23800         * doc/posix-functions/round.texi: Mention the new module.
23801
23802 2010-12-21  Bruno Haible  <bruno@clisp.org>
23803
23804         New module 'trunc-ieee'.
23805         * modules/trunc-ieee: New file.
23806         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23807         whether trunc works according to ISO C 99 with IEC 60559.
23808         * m4/trunc-ieee.m4: New file.
23809         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23810         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23811         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23812         * modules/trunc-ieee-tests: New file.
23813         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23814         * tests/test-trunc1.c (main): Remove signbit tests.
23815         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23816         * doc/posix-functions/trunc.texi: Mention the new module.
23817
23818 2010-12-21  Bruno Haible  <bruno@clisp.org>
23819
23820         New module 'ceil-ieee'.
23821         * modules/ceil-ieee: New file.
23822         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23823         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23824         ISO C 99 with IEC 60559.
23825         * m4/ceil-ieee.m4: New file.
23826         * modules/ceil (Files): Add lib/ceil.c.
23827         (Depends-on): Add 'float'.
23828         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23829         * lib/math.in.h (ceil): New declaration.
23830         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23831         REPLACE_CEIL.
23832         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23833         * modules/ceil-ieee-tests: New file.
23834         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23835         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23836         * doc/posix-functions/ceil.texi: Mention the new module.
23837
23838 2010-12-21  Bruno Haible  <bruno@clisp.org>
23839
23840         New module 'floor-ieee'.
23841         * modules/floor-ieee: New file.
23842         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23843         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23844         ISO C 99 with IEC 60559.
23845         * m4/floor-ieee.m4: New file.
23846         * modules/floor (Files): Add lib/floor.c.
23847         (Depends-on): Add 'float'.
23848         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23849         * lib/math.in.h (floor): New declaration.
23850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23851         REPLACE_FLOOR.
23852         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23853         * modules/floor-ieee-tests: New file.
23854         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23855         * tests/test-math-c++.cc: Check the signature of 'floor'.
23856         * doc/posix-functions/floor.texi: Mention the new module.
23857
23858 2010-12-21  Bruno Haible  <bruno@clisp.org>
23859
23860         New module 'roundf-ieee'.
23861         * modules/roundf-ieee: New file.
23862         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23863         test whether roundf works according to ISO C 99 with IEC 60559.
23864         * m4/roundf-ieee.m4: New file.
23865         * modules/roundf-ieee-tests: New file.
23866         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23867         * tests/test-roundf1.c (main): Remove signbit tests.
23868         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23869         * doc/posix-functions/roundf.texi: Mention the new module.
23870
23871 2010-12-21  Bruno Haible  <bruno@clisp.org>
23872
23873         New module 'truncf-ieee'.
23874         * modules/truncf-ieee: New file.
23875         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23876         test whether truncf works according to ISO C 99 with IEC 60559.
23877         * m4/truncf-ieee.m4: New file.
23878         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23880         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23881         * modules/truncf-ieee-tests: New file.
23882         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23883         * tests/test-truncf1.c (main): Remove signbit tests.
23884         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23885         * doc/posix-functions/truncf.texi: Mention the new module.
23886
23887 2010-12-21  Bruno Haible  <bruno@clisp.org>
23888
23889         New module 'ceilf-ieee'.
23890         * modules/ceilf-ieee: New file.
23891         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23892         test whether ceilf works according to ISO C 99 with IEC 60559.
23893         * m4/ceilf-ieee.m4: New file.
23894         * modules/ceilf-ieee-tests: New file.
23895         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23896         * tests/test-ceilf1.c (main): Remove signbit tests.
23897         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23898         * doc/posix-functions/ceilf.texi: Mention the new module.
23899
23900 2010-12-21  Bruno Haible  <bruno@clisp.org>
23901
23902         New module 'floorf-ieee'.
23903         * modules/floorf-ieee: New file.
23904         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23905         test whether floorf works according to ISO C 99 with IEC 60559.
23906         * m4/floorf-ieee.m4: New file.
23907         * modules/floorf-ieee-tests: New file.
23908         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23909         * tests/test-floorf1.c (main): Remove signbit tests.
23910         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23911         * doc/posix-functions/floorf.texi: Mention the new module.
23912
23913 2010-12-21  Bruno Haible  <bruno@clisp.org>
23914
23915         Support for minus zero in autoconf macros.
23916         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23917         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23918         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23919         * tests/minus-zero.h: Update comments.
23920
23921 2010-12-21  Bruno Haible  <bruno@clisp.org>
23922
23923         Tests for module 'ceil'.
23924         * modules/ceil-tests: New file.
23925         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23926         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23927
23928 2010-12-21  Bruno Haible  <bruno@clisp.org>
23929
23930         Tests for module 'floor'.
23931         * modules/floor-tests: New file.
23932         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23933         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23934
23935 2010-12-21  Bruno Haible  <bruno@clisp.org>
23936
23937         math: Fix indentation.
23938         * lib/math.in.h (floorf): Fix indentation.
23939
23940 2010-12-21  Bruno Haible  <bruno@clisp.org>
23941
23942         Fix cross-compilation guesses on Solaris.
23943         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23944         not match "solaris2.10".
23945         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23946         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23947         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23948
23949 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23950
23951         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23952         This fixes a problem observed with the latest coreutils snapshot
23953         that caused a test to fail on Solaris 8.  src/csplit.c's call
23954         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23955         earlier, instead of returning the number of bytes that would have
23956         been generated; this causes csplit to incorrectly report memory
23957         exhaustion.
23958         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23959         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23960         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23961         comments to match.
23962         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23963         Fix typo in matching older versions of Solaris: "solaris2.10"
23964         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23965         only for guessing while cross-compiling.
23966         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23967
23968 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23969
23970         ftoastr: fix comment again
23971         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23972         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23973         Also, simplify example a bit by using flags = 0.
23974
23975 2010-12-20  Bruno Haible  <bruno@clisp.org>
23976
23977         round*, trunc*: Update documentation regarding glibc.
23978         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23979         * doc/posix-functions/round.texi: Likewise.
23980         * doc/posix-functions/roundl.texi: Likewise.
23981         * doc/posix-functions/truncf.texi: Likewise.
23982         * doc/posix-functions/trunc.texi: Likewise.
23983         * doc/posix-functions/truncl.texi: Likewise.
23984
23985 2010-12-20  Bruno Haible  <bruno@clisp.org>
23986
23987         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23988         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23989         * doc/posix-functions/round.texi: Likewise.
23990         * doc/posix-functions/roundl.texi: Likewise.
23991
23992 2010-12-20  Bruno Haible  <bruno@clisp.org>
23993
23994         ttyname_r: Add missing declaration on HP-UX 11.
23995         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23996         HAVE_TTYNAME_R.
23997         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23998         declared. Set HAVE_TTYNAME_R always.
23999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24000         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
24001         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
24002         HAVE_TTYNAME_R.
24003         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
24004
24005 2010-12-20  Bruno Haible  <bruno@clisp.org>
24006
24007         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
24008         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
24009         * doc/posix-functions/getlogin_r.texi: Likewise.
24010         * tests/test-getlogin.c: Include <errno.h>.
24011         (main): Avoid test failure on HP-UX 11.11.
24012         * tests/test-getlogin_r.c (main): Likewise.
24013
24014 2010-12-20  Bruno Haible  <bruno@clisp.org>
24015
24016         getlogin_r: Add missing declaration on HP-UX 11.
24017         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
24018         declared also when it exists as a function.
24019         * doc/posix-functions/getlogin_r.texi: Document this workaround.
24020
24021 2010-12-20  Bruno Haible  <bruno@clisp.org>
24022
24023         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
24024         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
24025         through wcrtomb.
24026
24027 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24028
24029         ftoastr: fix comment
24030         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24031         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
24032
24033 2010-12-19  Bruno Haible  <bruno@clisp.org>
24034
24035         isnan: Ensure it is a macro.
24036         * lib/math.in.h (isnan): Define as a macro if not already a macro.
24037         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
24038         Solaris.
24039
24040 2010-12-19  Bruno Haible  <bruno@clisp.org>
24041
24042         ldexpl test: Fix link error on OSF/1 5.1.
24043         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
24044
24045 2010-12-19  Bruno Haible  <bruno@clisp.org>
24046
24047         wctype: Make it work in C++ mode on OSF/1 5.1.
24048         * lib/wctype.in.h (iswblank): Declare but not define here.
24049         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
24050         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
24051         * modules/wctype (Files): Add lib/iswblank.c.
24052
24053 2010-12-19  Bruno Haible  <bruno@clisp.org>
24054
24055         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
24056         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
24057         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
24058
24059 2010-12-19  Bruno Haible  <bruno@clisp.org>
24060
24061         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
24062         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
24063         _POSIX_PII_SOCKET.
24064         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
24065         * doc/posix-functions/recvfrom.texi: Likewise.
24066         * doc/posix-functions/send.texi: Likewise.
24067         * doc/posix-functions/sendto.texi: Likewise.
24068
24069 2010-12-19  Bruno Haible  <bruno@clisp.org>
24070
24071         tcgetsid: Add missing declaration on OSF/1 5.1.
24072         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
24073         HAVE_TCGETSID.
24074         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
24075         Don't set HAVE_TCGETSID.
24076         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
24077         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
24078         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
24079         HAVE_TCGETSID.
24080         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
24081
24082 2010-12-19  Bruno Haible  <bruno@clisp.org>
24083
24084         stdio: Fix problem with popen() declaration on OSF/1 5.1.
24085         * lib/stdio.in.h: During the include_next statement, let recursive
24086         includes of this file include only the system header file.
24087
24088 2010-12-19  Bruno Haible  <bruno@clisp.org>
24089
24090         iconv_open: Fix regression from 2010-12-04.
24091         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
24092         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
24093
24094 2010-12-19  Bruno Haible  <bruno@clisp.org>
24095
24096         stdbool test: Avoid a gcc warning.
24097         * tests/test-stdbool.c (main): Fail if e1 is false.
24098         Reported by Jim Meyering.
24099
24100 2010-12-19  Jim Meyering  <meyering@redhat.com>
24101
24102         setenv: restore to working order
24103         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
24104         mistakenly removed.
24105         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
24106         HAVE_SETENV.
24107         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
24108         HAVE_SETENV.
24109
24110 2010-12-19  Bruno Haible  <bruno@clisp.org>
24111
24112         Document some different function declarations on OSF/1 5.1.
24113         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
24114         * doc/posix-functions/inet_ntop.texi: Likewise.
24115         * doc/posix-functions/gethostname.texi: Likewise.
24116         * lib/unistd.in.h (gethostname): Update comment.
24117
24118 2010-12-19  Bruno Haible  <bruno@clisp.org>
24119
24120         doc: Mention vasprintf-posix module.
24121         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
24122         the 'vasprintf-posix' module.
24123         * doc/glibc-functions/vasprintf.texi: Likewise.
24124
24125 2010-12-19  Bruno Haible  <bruno@clisp.org>
24126
24127         unsetenv: Add missing declaration on OSF/1 5.1.
24128         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
24129         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
24130         Don't set HAVE_UNSETENV. In the test program, set _BSD.
24131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
24132         not HAVE_UNSETENV.
24133         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
24134         HAVE_UNSETENV.
24135         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
24136
24137 2010-12-19  Bruno Haible  <bruno@clisp.org>
24138
24139         setenv: Add missing declaration on OSF/1 5.1.
24140         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
24141         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
24142         declared. Don't set HAVE_SETENV.
24143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
24144         not HAVE_SETENV.
24145         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
24146         HAVE_SETENV.
24147         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
24148
24149 2010-12-19  Bruno Haible  <bruno@clisp.org>
24150
24151         nl_langinfo tests: Avoid gcc warning.
24152         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
24153
24154 2010-12-19  Bruno Haible  <bruno@clisp.org>
24155
24156         mknod: Avoid error in C++ mode on OSF/1 with GCC.
24157         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
24158         _GL_CXXALIAS_SYS.
24159
24160 2010-12-19  Bruno Haible  <bruno@clisp.org>
24161
24162         stdbool: Relax test.
24163         * tests/test-stdbool.c (e): Don't require that casts from a variable's
24164         address to 'bool' work in static initializer, for compilers other than
24165         GCC.
24166
24167 2010-12-19  Bruno Haible  <bruno@clisp.org>
24168
24169         ftello: Add missing declaration on OSF/1 5.1.
24170         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
24171         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
24172         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
24173         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
24174         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
24175
24176 2010-12-19  Bruno Haible  <bruno@clisp.org>
24177
24178         fseeko: Add missing declaration on OSF/1 5.1.
24179         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
24180         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
24181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
24182         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
24183         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
24184
24185 2010-12-19  Bruno Haible  <bruno@clisp.org>
24186
24187         fchdir: Add missing declaration on OSF/1 5.1.
24188         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
24189         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
24190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
24191         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
24192         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
24193
24194 2010-12-19  Bruno Haible  <bruno@clisp.org>
24195
24196         relocatable-prog-wrapper: Separate from relocatable-prog.
24197         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
24198         uninstall-relocwrapper rule here.
24199         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
24200         Reported by Ian Beckwith <ianb@erislabs.net>.
24201
24202 2010-12-19  Bruno Haible  <bruno@clisp.org>
24203
24204         unistr/u8-mbsnlen: Add missing dependency.
24205         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
24206         Reported by Ian Beckwith <ianb@erislabs.net>.
24207
24208 2010-12-19  Bruno Haible  <bruno@clisp.org>
24209
24210         iconv: Make it possible again to use this module without 'iconv-h'.
24211         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
24212         if it is not defined.
24213         Reported by Ian Beckwith <ianb@erislabs.net>.
24214
24215 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24216
24217         acl: port to Solaris 8 when copying from tmpfs to ufs
24218         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
24219         error number.  Problem observed on Solaris 8 with latest
24220         coreutils, with "mv A B", where A is on a tmpfs file system and B
24221         is on a ufs file system.  This caused coreutils' mv/part-symlink
24222         test to fail.
24223
24224         tests: set fail=0 at start
24225         * tests/init.sh (setup_): Move fail=0 initialization here ...
24226         (mktempd_): ... from here, so that tests can rely on fail being
24227         set to 0 initially.  This fixes a problem in coreutils; see:
24228         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
24229
24230 2010-12-18  Bruno Haible  <bruno@clisp.org>
24231
24232         memmem-simple: Stylistic changes.
24233         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
24234         Fix preprocessor directive indentation.
24235
24236 2010-12-15  Pádraig Brady <P@draigBrady.com>
24237
24238         memmem, memmem-simple: reorganize and expand empty needle check
24239         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
24240         functional checks to memmem-simple so that one has a fully functional
24241         memmem by using just this module.
24242         Restrict the performance only check to the memmem module.
24243         Also expand the empty needle check to ensure the correct
24244         pointer is returned, not just a non NULL pointer.
24245         * doc/glibc-functions/memmem.texi: Rearrange the portability
24246         documentation to correlate with the rearranged checks.
24247         Clarify exactly how the memmem and memmem-simple modules
24248         relate to each other.
24249
24250 2010-12-15  Pádraig Brady <P@draigBrady.com>
24251             Bruno Haible  <bruno@clisp.org>
24252
24253         Improve cross-compilation guesses for uClibc.
24254         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
24255         that uClibc does not have the glibc bug.
24256         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
24257         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
24258
24259 2010-12-14  Eric Blake  <eblake@redhat.com>
24260
24261         configmake: provide fallbacks for oldest supported autotools
24262         * m4/configmake.m4: New file.
24263         * modules/configmake (Files): Ship it.
24264         (configure.ac): Use it to guarantee fallbacks.
24265
24266 2010-12-13  Pádraig Brady <P@draigBrady.com>
24267
24268         read-file: Improve handling of large files
24269         * lib/read-file.c (fread_file): Minimize realloc()s
24270         for regular files, and better manage sizes around SIZE_MAX.
24271
24272 2010-12-13  Eric Blake  <eblake@redhat.com>
24273
24274         cloexec, fcntl: relax license
24275         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
24276         consent from all contributors.
24277         * modules/fcntl (License): Likewise.
24278
24279 2010-12-10  Bruno Haible  <bruno@clisp.org>
24280
24281         Tests for module 'pipe-posix'.
24282         * modules/pipe-posix-tests: New file.
24283         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
24284
24285 2010-12-10  Bruno Haible  <bruno@clisp.org>
24286
24287         pipe-posix: Make it work in C++ mode.
24288         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
24289         (pipe): Use common idiom, not a macro definition.
24290         * lib/pipe.c: New file.
24291         * m4/pipe.m4: New file.
24292         * modules/pipe-posix (Description): Enhance.
24293         (Files): Add lib/pipe.c, m4/pipe.m4.
24294         (configure.ac): Invoke gl_FUNC_PIPE.
24295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
24296         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
24297         * tests/test-unistd-c++.cc: Check the signature of pipe.
24298
24299 2010-12-10  Bruno Haible  <bruno@clisp.org>
24300
24301         Rename module 'pipe' to 'spawn-pipe'.
24302         * modules/spawn-pipe: New file, renamed from modules/pipe.
24303         (Files, configure.ac, Makefile.am): Update.
24304         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
24305         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
24306         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
24307         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
24308         "spawn-pipe.h" instead of "pipe.h".
24309         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
24310         to gl_SPAWN_PIPE.
24311         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
24312         (Files, Makefile.am): Update.
24313         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
24314         Update.
24315         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
24316         Include "spawn-pipe.h" instead of "pipe.h".
24317         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
24318         * lib/javacomp.c: Likewise.
24319         * lib/javaversion.c: Likewise.
24320         * lib/pipe-filter-gi.c: Likewise.
24321         * lib/pipe-filter-ii.c: Likewise.
24322         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
24323         * modules/javacomp (Depends-on): Likewise.
24324         * modules/javaversion (Depends-on): Likewise.
24325         * modules/pipe-filter-gi (Depends-on): Likewise.
24326         * modules/pipe-filter-ii (Depends-on): Likewise.
24327         * MODULES.html.sh (Executing programs): Update.
24328         * NEWS: Mention the change.
24329
24330 2010-12-10  Eric Blake  <eblake@redhat.com>
24331
24332         pipe-posix: new module
24333         * modules/pipe-posix: New file.
24334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
24335         (gl_UNISTD_H): Check for declaration.
24336         * modules/unistd (Makefile.am): Substitute it.
24337         * lib/unistd.in.h (pipe): Provide it for mingw.
24338         * doc/posix-functions/pipe.texi (pipe): Update documentation.
24339         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
24340
24341 2010-12-07  Bruno Haible  <bruno@clisp.org>
24342
24343         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
24344         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
24345         u8_strcmp_gnu.
24346         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
24347
24348 2010-12-06  Bruno Haible  <bruno@clisp.org>
24349
24350         Update internal documentation.
24351         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
24352
24353 2010-12-04  Bruno Haible  <bruno@clisp.org>
24354
24355         Put more information about failed tests into the test return codes.
24356         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
24357         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
24358         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24359         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24360         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
24361         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24362         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24363         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24364         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
24365         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24366         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
24367         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24368         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
24369         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24370         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
24371         returns a bit mask.
24372         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
24373         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
24374         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
24375         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
24376         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24377         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
24378         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24379         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24380         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24381         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
24382         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24383         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
24384         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24385         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
24386         * m4/link.m4 (gl_FUNC_LINK): Likewise.
24387         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24388         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
24389         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
24390         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24391         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
24392         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24393         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24394         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
24395         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24396         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24397         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24398         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
24399         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24400         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24401         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
24402         gl_PRINTF_PRECISION): Likewise.
24403         * m4/regex.m4 (gl_REGEX): Likewise.
24404         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24405         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24406         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
24407         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24408         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24409         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24410         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
24411         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
24412         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24413         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24414         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24415         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24416         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24417         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
24418         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24419         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24420         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
24421         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24422         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24423         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
24424         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
24425         enumerated value.
24426         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
24427
24428 2010-12-04  Bruno Haible  <bruno@clisp.org>
24429
24430         Update for Solaris 11 2010-11.
24431         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
24432         Express, released in November 2010.
24433
24434 2010-12-04  Bruno Haible  <bruno@clisp.org>
24435
24436         nproc: Relax license.
24437         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
24438         and Paul Eggert.
24439         Requested by Ludovic Courtès <ludo@gnu.org>.
24440
24441 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24442
24443         utimecmp: fine-grained src to nearby coarse-grained dest
24444
24445         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
24446         and the source is on a file system with higher-resolution time
24447         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
24448         not work, and the time stamps are close together, the algorithm to
24449         determine the exact resolution from the read-back mtime was buggy:
24450         it had a "!=" where it should have had an "==".  This bug has been
24451         in the code ever since it was introduced to gnulib.
24452         Problem reported by Dan Jacobson in
24453         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
24454
24455 2010-11-30  Bruno Haible  <bruno@clisp.org>
24456
24457         strerror_r-posix: Fix autoconf test.
24458         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
24459
24460 2010-11-28  Bruno Haible  <bruno@clisp.org>
24461             Paul Eggert  <eggert@cs.ucla.edu>
24462
24463         Tests for module 'getdomainname'.
24464         * modules/getdomainname-tests: New file.
24465         * tests/test-getdomainname.c: New file, based on
24466         tests/test-gethostname.c.
24467
24468 2010-11-28  Bruno Haible  <bruno@clisp.org>
24469             Paul Eggert  <eggert@cs.ucla.edu>
24470
24471         getdomainname: Use the system function when possible.
24472         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
24473         (getdomainname): Replace if needed. Provide the declaration if it is
24474         missing. Don't use _GL_CXXALIAS_SYS_CAST.
24475         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
24476         (getdomainname): When the system has getdomainname, call the system
24477         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
24478         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24479         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
24480         found in libnsl. Look for the declaration also in <netdb.h>. Replace
24481         the function if its second argument is of type 'int' or if it is found
24482         in libnsl.
24483         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
24484         <sys/systeminfo.h> and sysinfo().
24485         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
24486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24487         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
24488         HAVE_GETDOMAINNAME.
24489         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
24490         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
24491         * doc/glibc-functions/getdomainname.texi: Document the problems with
24492         the getdomainname declaration.
24493
24494 2010-11-28  Bruno Haible  <bruno@clisp.org>
24495
24496         sys_socket: Ensure ss_family field on AIX.
24497         * lib/sys_socket.in.h (ss_family): New macro definition.
24498         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
24499         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
24500         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24501         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24502         * modules/sys_socket (Makefile.am): Substitute
24503         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24504         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
24505
24506 2010-11-27  Bruno Haible  <bruno@clisp.org>
24507
24508         readline: Improve configure output.
24509         * m4/readline.m4 (gl_FUNC_READLINE): Make the
24510         "checking for readline..." result understandable.
24511
24512 2010-11-27  Bruno Haible  <bruno@clisp.org>
24513
24514         *printf-posix: Detect a bug on Solaris 10/x86.
24515         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
24516         for floating-point output.
24517         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
24518         directive.
24519         * tests/test-snprintf-posix.h (test_function): Likewise.
24520         * tests/test-sprintf-posix.h (test_function): Likewise.
24521         * tests/test-vasprintf-posix.c (test_function): Likewise.
24522         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
24523         * doc/posix-functions/printf.texi: Likewise.
24524         * doc/posix-functions/snprintf.texi: Likewise.
24525         * doc/posix-functions/sprintf.texi: Likewise.
24526         * doc/posix-functions/vfprintf.texi: Likewise.
24527         * doc/posix-functions/vprintf.texi: Likewise.
24528         * doc/posix-functions/vsnprintf.texi: Likewise.
24529         * doc/posix-functions/vsprintf.texi: Likewise.
24530         * doc/glibc-functions/obstack_printf.texi: Likewise.
24531         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24532
24533 2010-11-27  Bruno Haible  <bruno@clisp.org>
24534
24535         Fix link error when module libunistring-optional is in use.
24536         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
24537         * modules/striconveha-tests (Makefile.am): Likewise.
24538
24539 2010-11-27  Bruno Haible  <bruno@clisp.org>
24540
24541         regex: Mention link dependencies.
24542         * modules/regex (Link): New section.
24543         * modules/rpmatch (Link): Likewise.
24544         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
24545
24546 2010-11-27  Bruno Haible  <bruno@clisp.org>
24547
24548         ftoastr: Fix compilation error on Solaris.
24549         * lib/ftoastr.c: Include <config.h>.
24550
24551 2010-11-27  Bruno Haible  <bruno@clisp.org>
24552
24553         getloadavg: Update documentation.
24554         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
24555
24556 2010-11-27  Bruno Haible  <bruno@clisp.org>
24557
24558         sys_socket: Fix test whether the functions are declared.
24559         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24560         not <sys/select.h>.
24561
24562 2010-11-27  Bruno Haible  <bruno@clisp.org>
24563
24564         getpass: Make sure to get system declaration on some platforms.
24565         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24566         gl_USE_SYSTEM_EXTENSIONS.
24567         * modules/getpass (Depends-on): Add extensions.
24568
24569 2010-11-26  Bruno Haible  <bruno@clisp.org>
24570
24571         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24572         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24573         'iconv' module is present.
24574         (ICONV_CONST): New macro.
24575         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24576         ICONV_CONST.
24577         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24578         set ICONV_CONST.
24579         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24580         here.
24581         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24582         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24583         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24584         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24585         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24586         present.
24587
24588 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24589
24590         ftoastr: comment fix
24591         * lib/ftoastr.c: "little" -> "little or no" in comment
24592
24593 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24594
24595         stdint: port to GCC 4.3 + OSX + Octave
24596         On this platform, stdint.h is buggy and defines int64_t to long
24597         long int.  The replacement defined it to long int, causing
24598         problems with C++ style name mangling.  Instead, trust the system
24599         definition if INT64_MAX is defined, and likewise for the unsigned
24600         variant.   Problem reported by Jarno Rajahalme in
24601         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24602         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24603         and don't mess with int64_t and INT64_MAX in this case.
24604         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24605
24606 2010-11-24  Bruno Haible  <bruno@clisp.org>
24607
24608         doc: Corrections regarding MacOS X 10.4 and 10.5.
24609         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24610         MacOS X.
24611         Reported by Simon Josefsson.
24612
24613 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24614
24615         Uninstall ".bin" files installed by relocwrapper.
24616         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24617         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24618         unless it is already there.
24619
24620 2010-11-21  Bruno Haible  <bruno@clisp.org>
24621
24622         Update for NetBSD 5.0.
24623         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24624         NetBSD; the test fails on NetBSD 5.0.
24625         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24626         about NetBSD.
24627
24628 2010-11-21  Bruno Haible  <bruno@clisp.org>
24629
24630         Update for HP-UX 11.23 and HP-UX 11.31.
24631         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24632         HP-UX.
24633
24634 2010-11-21  Bruno Haible  <bruno@clisp.org>
24635
24636         Update for MacOS X 10.5.
24637         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24638         MacOS X; the test fails on MacOS X 10.5.8.
24639         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24640         about MacOS X.
24641
24642 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24643
24644         bootstrap: add bootstrap_sync option.
24645         See discussion at
24646         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24647         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24648         * build-aux/bootstrap: Accept --bootstrap-sync to update
24649         bootstrap if it is not identical to the local gnulib's
24650         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24651         enable this by default.  Accept --no-bootstrap-sync to disable
24652         it.
24653
24654 2010-11-20  Bruno Haible  <bruno@clisp.org>
24655
24656         Ensure that <features.h> is included before __GLIBC__ is tested.
24657         * lib/printf-parse.h: Include <features.h>.
24658         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24659         Reported by Mike Frysinger <vapier@gentoo.org>.
24660
24661         Ensure that <features.h> is included before __GLIBC__ is tested.
24662         * lib/wchar.in.h: Include <features.h>.
24663         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24664         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24665         Reported by Mike Frysinger <vapier@gentoo.org>.
24666
24667         Ensure that <features.h> is included before __GLIBC__ is tested.
24668         * lib/arpa_inet.in.h: Include <features.h>.
24669         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24670         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24671         Reported by Mike Frysinger <vapier@gentoo.org>.
24672
24673         Ensure that <features.h> is included before __GLIBC__ is tested.
24674         * build-aux/link-warning.h: Include <features.h>.
24675         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24676         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24677         Reported by Mike Frysinger <vapier@gentoo.org>.
24678
24679         Ensure that <features.h> is included before __GLIBC__ is tested.
24680         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24681         Reported by Mike Frysinger <vapier@gentoo.org>.
24682
24683 2010-11-20  Bruno Haible  <bruno@clisp.org>
24684
24685         memmem: Fix autoconf test.
24686         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24687
24688 2010-11-20  Bruno Haible  <bruno@clisp.org>
24689
24690         Port to uClibc.
24691         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24692         * lib/fcntl.in.h: Likewise.
24693         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24694         * lib/mbrtowc.c (mbrtowc): Likewise.
24695         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24696         * lib/strerror_r.c: Likewise.
24697         * lib/unistr/u8-strnlen.c: Likewise.
24698         * lib/vasnprintf.c (decimal_point_char): Likewise.
24699         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24700         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24701         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24702         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24703         * tests/test-sigaction.c (handler, main): Likewise.
24704         * lib/freading.h: Treat uClibc like a non-glibc platform.
24705         * lib/freading.c: Likewise.
24706         * lib/gettext.h: Likewise.
24707         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24708         Likewise.
24709         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24710         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24711         * lib/propername.c (proper_name_utf8): Likewise.
24712         * lib/spawn.in.h: Likewise.
24713         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24714         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24715         mem_cd_iconveh_internal): Likewise.
24716         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24717         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24718         strstr, strcasestr): Likewise.
24719         * lib/unicodeio.c (unicode_to_mb): Likewise.
24720         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24721         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24722         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24723         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24724         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24725         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24726         * lib/unistr/u8-stpncpy.c: Likewise.
24727         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24728         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24729         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24730         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24731         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24732         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24733         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24734         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24735         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24736         Likewise.
24737         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24738         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24739         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24740         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24741         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24742         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24743         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24744         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24745         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24746         * tests/test-striconveha.c (main): Likewise.
24747         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24748         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24749         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24750         * doc/posix-functions/getline.texi: Likewise.
24751         Reported by Mike Frysinger <vapier@gentoo.org>.
24752
24753 2010-11-20  Bruno Haible  <bruno@clisp.org>
24754
24755         nproc: Fix condition.
24756         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24757         HAVE_PTHREAD_AFFINITY_NP.
24758
24759 2010-11-20  Bruno Haible  <bruno@clisp.org>
24760
24761         Fix a comment.
24762         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24763
24764 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24765
24766         ftoastr: don't assume snprintf
24767         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24768         Implement a subset of snprintf here, by using sprintf safely.
24769         * modules/ftoastr (Depends-on): Remove snprintf.
24770
24771 2010-11-19  Jim Meyering  <meyering@redhat.com>
24772
24773         test-rename.h: fix compilation failure
24774         * tests/test-rename.h (test_rename): Add omitted "}".
24775
24776 2010-11-17  Jim Meyering  <meyering@redhat.com>
24777
24778         maint.mk: add a URL discussing the no-@acronym policy
24779         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24780
24781 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24782
24783         ftoastr: depend on snprintf, improve comments
24784         * lib/ftoastr.c: Also mention Loitsch's draft.
24785         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24786         needed in the current implementation, but it might simplify
24787         speeding up the code later.
24788         * modules/ftoastr: Depend on snprintf; this improves portability.
24789         Suggested by Bruno Haible in the same email.
24790
24791         ftoastr: port to hosts lacking strtof and strtold
24792         Problem reported by Bruno Haible in
24793         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24794         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24795         environment and strtold (and presumably strtof) are not available.
24796         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24797         (configure.ac): Require gl_C99_STRTOLD.
24798
24799 2010-11-18  Bruno Haible  <bruno@clisp.org>
24800
24801         c-strtold: Avoid link error on AIX 7.
24802         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24803         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24804         (gl_C_STRTOLD): Test whether strtold_l exists.
24805         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24806
24807 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24808
24809         intprops: new macro INT_BITS_STRLEN_BOUND
24810         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24811         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24812         not exposed.  Also, it uses a slightly tighter bound than before;
24813         though this makes no practical difference, we might as well be as
24814         tight as we easily can.
24815
24816         ftoastr: new module, for lossless conversion of floats to short strings
24817         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24818         * modules/ftoastr: New files.
24819
24820 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24821
24822         bootstrap: port to Solaris sed
24823         * build-aux/bootstrap (get_version): Port to Solaris sed.
24824         See Ralf Wildenhues's note in
24825         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24826
24827 2010-11-14  Jim Meyering  <meyering@redhat.com>
24828
24829         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24830         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24831         and move definition closer to sole use.
24832
24833 2010-11-13  Jim Meyering  <meyering@redhat.com>
24834
24835         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24836         Now we require at least autoconf-2.59, which means the work-around
24837         is no longer needed.
24838         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24839         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24840         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24841         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24842         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24843
24844 2010-11-13  Bruno Haible  <bruno@clisp.org>
24845
24846         rename, renameat: Avoid test failures at NFS mounted locations.
24847         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24848         functions.
24849         (test_rename): Use assert_nonexistent.
24850         * tests/test-rename.c: Include <dirent.h>.
24851         * tests/test-renameat.c: Likewise.
24852         Reported by Gary V. Vaughan <gary@gnu.org>.
24853
24854         rename, renameat: Document Linux bug with NFS
24855         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24856         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24857         * doc/posix-functions/renameat.texi: Likewise.
24858         Suggested by Eric Blake.
24859
24860 2010-11-13  Bruno Haible  <bruno@clisp.org>
24861
24862         rename test: Add comments.
24863         * tests/test-rename.h (test_rename): Add structure and comments.
24864
24865 2010-11-13  Eric Blake  <eblake@redhat.com>
24866
24867         maintainer-makefile: cover a few more files
24868         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24869         scripts generated within C files, for libvirt.
24870
24871 2010-11-13  Bruno Haible  <bruno@clisp.org>
24872
24873         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24874         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24875         character, return the number of bytes that belong together, not always
24876         1.
24877         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24878         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24879         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24880         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24881         number of bytes of an invalid character.
24882         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24883         (main): Invoke it.
24884         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24885         results.
24886         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24887         malformed byte sequences.
24888         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24889         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24890         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24891         Reported by Ben Pfaff and Paolo Bonzini.
24892
24893 2010-11-13  Bruno Haible  <bruno@clisp.org>
24894
24895         openat: Work around glibc bug with fchownat() and empty file names.
24896         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24897         (gl_FUNC_FCHOWNAT): Invoke it.
24898         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24899         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24900         Reported by Gary V. Vaughan <gary@gnu.org>.
24901
24902 2010-11-13  Bruno Haible  <bruno@clisp.org>
24903
24904         openat: Ensure autoconf macro ordering.
24905         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24906         gl_USE_SYSTEM_EXTENSIONS.
24907         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24908
24909 2010-11-13  Bruno Haible  <bruno@clisp.org>
24910
24911         Update comments.
24912         * lib/unistr/u8-check.c: Update file name in comments.
24913         * lib/unistr/u8-mblen.c: Likewise.
24914         * lib/unistr/u8-prev.c: Likewise.
24915         * lib/unistr/u8-strmblen.c: Likewise.
24916         * lib/unistr/u8-strmbtouc.c: Likewise.
24917
24918 2010-11-13  Jim Meyering  <meyering@redhat.com>
24919
24920         tests: avoid test failure on Solaris 10 due to lack of PATH export
24921         * tests/test-update-copyright.sh: Don't forget to export PATH.
24922
24923         init.sh: ensure that IFS is defined, just in case...
24924         * tests/init.sh (setup_): Ensure that IFS is defined,
24925         so that saving and restoring it works as expected.  This
24926         appears to be useful at least for an old version of dash
24927         from a long time ago (RH 6).  See here for details:
24928         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24929
24930         maint.mk: tighten "test a == b" check
24931         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24932         test to files that contain something like #!/bin/sh.
24933         Without this, coreutils would get two false positives in
24934         the comments of C source files.
24935
24936 2010-11-12  Eric Blake  <eblake@redhat.com>
24937
24938         bootstrap: fix typo in previous attempt
24939         * build-aux/bootstrap (buildreq): Correct the grouping.
24940         Reported by Paul Eggert.
24941
24942         maintainer-makefile: prohibit test x == x
24943         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24944         Based on a report by Matthias Bolte.
24945
24946         bootstrap: allow FreeBSD gzip
24947         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24948         which has no '.' and goes to stderr.
24949         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24950         Reported by Matthias Bolte.
24951
24952         maintainer-makefile: check for i18n setup
24953         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24954         will likely work.
24955
24956 2010-11-12  Bruno Haible  <bruno@clisp.org>
24957
24958         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24959         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24960         * lib/nanosleep.c (nanosleep): Likewise.
24961
24962 2010-11-11  Bruno Haible  <bruno@clisp.org>
24963
24964         fcntl-h: Fix for use of C++ on glibc systems.
24965         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24966         also on glibc systems in C++ mode.
24967         Reported by Gary V. Vaughan <gary@gnu.org>.
24968
24969 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24970
24971         mknod: avoid false failure with dash
24972         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24973
24974 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24975
24976         unlink: Fix "is it should" typo in diagnostic.
24977         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24978         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24979
24980 2010-11-11  Bruno Haible  <bruno@clisp.org>
24981
24982         Tests for module 'strerror_r-posix'.
24983         * modules/strerror_r-posix-tests: New file.
24984         * tests/test-strerror_r.c: New file.
24985         * tests/test-string-c++.cc: Check the signature of strerror_r.
24986
24987         New module 'strerror_r-posix'.
24988         * lib/string.in.h (strerror_r): New declaration.
24989         * lib/strerror_r.c: New file.
24990         * m4/strerror_r.m4: New file.
24991         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24992         of strerror_r.
24993         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24994         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24995         * modules/strerror_r-posix: New file.
24996         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24997         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24998         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24999         portability problems.
25000
25001 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
25002
25003         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
25004         line is also considered for output. Quoted function name in shell
25005         command, so temporary files for functions like MyClass::operator()
25006         are removed correctly without errors.
25007
25008 2010-11-09  Bruno Haible  <bruno@clisp.org>
25009
25010         * doc/posix-functions/strerror.texi: List more failing platforms.
25011
25012         * doc/posix-functions/strerror.texi: Add a comment.
25013
25014 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
25015
25016         fdopendir: fix bug on MacOS X when low on file descriptors
25017
25018         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
25019         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
25020         All callers changed.
25021         (fdopendir): Invoke save_cwd at the top level, not after using
25022         multiple dup() calls to use up file descriptors.  Then retry
25023         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
25024         less than the maximum number of open file descriptors, because
25025         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
25026         on Mac OS X 10.6.4 for tar 1.24
25027         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
25028         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
25029         and for tar 1.25
25030         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
25031
25032 2010-11-07  Bruno Haible  <bruno@clisp.org>
25033
25034         vasnprintf: Support I flag on glibc systems.
25035         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
25036         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
25037         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
25038         snprintf function.
25039         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
25040         glibc systems.
25041         * tests/test-vasnprintf-posix3.c: New file.
25042         * modules/vasnprintf-posix-tests (Files): Add it.
25043         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
25044
25045 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25046
25047         [html] Fix copy/paste bug: Use unique name for compiler warnings.
25048         * MODULES.html.sh: For compiler warnings, use name
25049         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
25050
25051 2010-11-05  Eric Blake  <eblake@redhat.com>
25052
25053         ceil, floor: avoid spurious failure with icc
25054         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
25055         [denormals-as-zero] when optimizing without -mieee-fp option.
25056         * tests/test-floorf2.c (floorf_reference): Likewise.
25057         * tests/test-ceilf1.c (dummy): New function.
25058         (main): Use it to outsmart icc's optimization.
25059         * tests/test-floorf1.c (dummy, main): Likewise.
25060
25061         tests: require working signbit
25062         * modules/ceilf-tests (Depends-on): Add signbit.
25063         * modules/ceill-tests (Depends-on): Likewise.
25064         * modules/floorf-tests (Depends-on): Likewise.
25065         * modules/floorl-tests (Depends-on): Likewise.
25066         * modules/round-tests (Depends-on): Likewise.
25067         * modules/roundf-tests (Depends-on): Likewise.
25068         * modules/roundl-tests (Depends-on): Likewise.
25069         * modules/trunc-tests (Depends-on): Likewise.
25070         * modules/truncf-tests (Depends-on): Likewise.
25071         * modules/truncl-tests (Depends-on): Likewise.
25072
25073         strtod: work around icc bug
25074         * lib/strtod.c (minus_zero): Define to working value.
25075         (strtod): Use it to avoid icc bug.
25076
25077         copysign: enhance tests
25078         * modules/copysign-tests (Files): Add minus-zero.h.
25079         * tests/test-copysign.c (main): Also test zeros.
25080
25081 2010-11-04  Eric Blake  <eblake@redhat.com>
25082
25083         ceil, floor, round, trunc: enhance tests of -0
25084         * tests/test-ceilf1.c (main): Ensure correct sign of result.
25085         * tests/test-ceill.c (main): Likewise.
25086         * tests/test-floorf1.c (main): Likewise.
25087         * tests/test-floorl.c (main): Likewise.
25088         * tests/test-round1.c (main): Likewise.
25089         * tests/test-roundf1.c (main): Likewise.
25090         * tests/test-roundl.c (main): Likewise.
25091         * tests/test-trunc1.c (main): Likewise.
25092         * tests/test-truncf1.c (main): Likewise.
25093         * tests/test-truncl.c (main): Likewise.
25094
25095 2010-11-04  Eric Blake  <eblake@redhat.com>
25096
25097         frexp, tests: work around ICC bug with -zero
25098         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
25099         works with more compilers.
25100         * tests/minus-zero.h: New file.
25101         * modules/ceilf-tests (Files): Include it.
25102         * modules/ceill-tests (Files): Likewise.
25103         * modules/floorf-tests (Files): Likewise.
25104         * modules/floorl-tests (Files): Likewise.
25105         * modules/frexp-nolibm-tests (Files): Likewise.
25106         * modules/frexp-tests (Files): Likewise.
25107         * modules/frexpl-nolibm-tests (Files): Likewise.
25108         * modules/frexpl-tests (Files): Likewise.
25109         * modules/isnan-tests (Files): Likewise.
25110         * modules/isnand-nolibm-tests (Files): Likewise.
25111         * modules/isnand-tests (Files): Likewise.
25112         * modules/isnanf-nolibm-tests (Files): Likewise.
25113         * modules/isnanf-tests (Files): Likewise.
25114         * modules/isnanl-nolibm-tests (Files): Likewise.
25115         * modules/isnanl-tests (Files): Likewise.
25116         * modules/round-tests (Files): Likewise.
25117         * modules/roundf-tests (Files): Likewise.
25118         * modules/roundl-tests (Files): Likewise.
25119         * modules/ldexpl-tests (Files): Likewise.
25120         * modules/signbit-tests (Files): Likewise.
25121         * modules/snprintf-posix-tests (Files): Likewise.
25122         * modules/sprintf-posix-tests (Files): Likewise.
25123         * modules/strtod-tests (Files): Likewise.
25124         * modules/trunc-tests (Files): Likewise.
25125         * modules/truncf-tests (Files): Likewise.
25126         * modules/truncl-tests (Files): Likewise.
25127         * modules/vsnprintf-posix-tests (Files): Likewise.
25128         * modules/vsprintf-posix-tests (Files): Likewise.
25129         * modules/vasnprintf-posix-tests (Files): Likewise.
25130         * modules/vasprintf-posix-tests (Files): Likewise.
25131         * tests/test-ceilf1.c (main): Use it.
25132         * tests/test-ceill.c (main): Likewise.
25133         * tests/test-floorf1.c (main): Likewise.
25134         * tests/test-floorl.c (main): Likewise.
25135         * tests/test-frexp.c (main): Likewise.
25136         * tests/test-frexpl.c (main): Likewise.
25137         * tests/test-isnan.c (main): Likewise.
25138         * tests/test-isnand.h (main): Likewise.
25139         * tests/test-isnanf.h (main): Likewise.
25140         * tests/test-isnanl.h (main): Likewise.
25141         * tests/test-ldexpl.c (main): Likewise.
25142         * tests/test-round.c (main): Likewise.
25143         * tests/test-roundf.c (main): Likewise.
25144         * tests/test-roundl.c (main): Likewise.
25145         * tests/test-signbit.c (test_signbitf, test_signbitd)
25146         (test_signbitl): Likewise.
25147         * tests/test-snprintf-posix.h (test_function): Likewise.
25148         * tests/test-sprintf-posix.h (test_function): Likewise.
25149         * tests/test-strtod.c (main): Likewise.
25150         * tests/test-trunc1.c (main): Likewise.
25151         * tests/test-truncf1.c (main): Likewise.
25152         * tests/test-truncl.c (main): Likewise.
25153
25154         isnanl: work around icc bug
25155         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
25156
25157 2010-11-03  Eric Blake  <eblake@redhat.com>
25158
25159         tests: fix compiler warnings
25160         * tests/test-getopt.h (test_getopt): Fix condition.
25161         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25162         * tests/test-pipe2.c (main): Likewise.
25163         * tests/test-quotearg-simple.c (main): Avoid icc warning.
25164
25165         utimens: fix broken m4 test
25166         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
25167
25168 2010-10-28  Bruno Haible  <bruno@clisp.org>
25169
25170         posix_spawn*, getdtablesize: Relax license.
25171         * modules/posix_spawn (License): Change to LGPLv2+.
25172         * modules/posix_spawnp (License): Likewise.
25173         * modules/posix_spawn-internal (License): Likewise.
25174         * modules/posix_spawnattr_init (License): Likewise.
25175         * modules/posix_spawnattr_getflags (License): Likewise.
25176         * modules/posix_spawnattr_setflags (License): Likewise.
25177         * modules/posix_spawnattr_getpgroup (License): Likewise.
25178         * modules/posix_spawnattr_setpgroup (License): Likewise.
25179         * modules/posix_spawnattr_getschedparam (License): Likewise.
25180         * modules/posix_spawnattr_setschedparam (License): Likewise.
25181         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
25182         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
25183         * modules/posix_spawnattr_getsigdefault (License): Likewise.
25184         * modules/posix_spawnattr_setsigdefault (License): Likewise.
25185         * modules/posix_spawnattr_getsigmask (License): Likewise.
25186         * modules/posix_spawnattr_setsigmask (License): Likewise.
25187         * modules/posix_spawnattr_destroy (License): Likewise.
25188         * modules/posix_spawn_file_actions_init (License): Likewise.
25189         * modules/posix_spawn_file_actions_addclose (License): Likewise.
25190         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
25191         * modules/posix_spawn_file_actions_addopen (License): Likewise.
25192         * modules/posix_spawn_file_actions_destroy (License): Likewise.
25193         * modules/getdtablesize (License): Likewise.
25194         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
25195
25196 2010-10-26  Bruno Haible  <bruno@clisp.org>
25197
25198         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
25199         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
25200         Cygwin and mingw.
25201         Suggested by Eric Blake.
25202
25203 2010-10-26  Bruno Haible  <bruno@clisp.org>
25204
25205         stdio: Work around compilation error due to renameat() on Solaris 10.
25206         * lib/stdio.in.h: Include <unistd.h> on Solaris.
25207         * lib/renameat.c: Don't include <unistd.h> here.
25208         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
25209         Reported by Paul Eggert and Eric Blake.
25210
25211 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
25212
25213         renameat: port to Solaris 10, which declares renameat in unistd.h
25214
25215         * lib/renameat.c: Include unistd.h before stdio.h, because
25216         Solaris 10 declares renameat in unistd.h.  Problem encountered
25217         when building GNU tar 1.24 on Solaris 10.
25218
25219 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25220
25221         fdopendir: fix C89 compilation
25222         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
25223         compilers.
25224
25225 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
25226
25227         inttostr: simplify by removing unnecessary redundancy
25228         * lib/anytostr.c: Don't include verify.h.
25229         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
25230         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
25231         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
25232         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
25233         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
25234         Likewise.
25235         * modules/inttostr (Depends-on): Remove 'verify'.
25236
25237 2010-10-23  Bruno Haible  <bruno@clisp.org>
25238
25239         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
25240         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
25241         Reported by Eric Blake.
25242
25243 2010-10-23  Bruno Haible  <bruno@clisp.org>
25244
25245         Tests: Fix LOCALE_JA on MirBSD 10.
25246         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
25247         to an UTF-8 locale.
25248         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
25249         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25250         Reported by Eric Blake.
25251
25252 2010-10-21  Bruno Haible  <bruno@clisp.org>
25253
25254         nl_langinfo test: Avoid test failure on NetBSD 5.
25255         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
25256         Reported by Eric Blake.
25257
25258 2010-10-21  Eric Blake  <eblake@redhat.com>
25259
25260         c-stack: work around libsigsegv 2.8 bug
25261         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
25262         overflow on at least PowerPC64.
25263
25264 2010-10-17  Bruno Haible  <bruno@clisp.org>
25265
25266         userspec: Drop redundant file.
25267         * modules/userspec (Files): Remove lib/inttostr.h.
25268
25269 2010-10-17  Bruno Haible  <bruno@clisp.org>
25270
25271         nl_langinfo tests: Silence some warnings.
25272         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
25273         Reported by Jim Meyering.
25274
25275 2010-10-17  Bruno Haible  <bruno@clisp.org>
25276
25277         Make use of GCC's attribute __alloc_size__.
25278         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
25279         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
25280         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
25281         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
25282         __alloc_size__.
25283         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25284         Suggested by Jim Meyering.
25285
25286 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
25287
25288         bootstrap: anchor .gitignore entries.
25289         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
25290         with...
25291         (insert_vc_ignore): ... this new function, which prepends `/' to
25292         all .gitignore entries before passing them to
25293         insert_sorted_if_absent.
25294
25295 2010-10-16  Bruno Haible  <bruno@clisp.org>
25296
25297         nextafter: Fix configure check.
25298         * modules/nextafter (configure.ac): Correct expected prototype.
25299
25300 2010-10-16  Bruno Haible  <bruno@clisp.org>
25301
25302         termios: Update documentation.
25303         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
25304
25305 2010-10-16  Bruno Haible  <bruno@clisp.org>
25306
25307         tests: Make them compile with TinyCC.
25308         * tests/test-strstr.c (main): Remove parentheses around array
25309         initializer.
25310
25311 2010-10-15  Eric Blake  <eblake@redhat.com>
25312
25313         ignore-value: make header idempotent
25314         * lib/ignore-value.h: Add double-inclusion guards.
25315         Reported by Stefan Berger.
25316
25317 2010-10-15  Jim Meyering  <meyering@redhat.com>
25318
25319         GNUmakefile: handle "stable" target, not "major"
25320         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
25321         lists in maint.mk and announce-gen.  Without this, "make stable"
25322         would fail to ensure that $(VERSION) is up to date.
25323
25324 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
25325
25326         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
25327         & co.
25328
25329 2010-10-14  Bruno Haible  <bruno@clisp.org>
25330
25331         vasnprintf: Don't set errno to 0.
25332         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
25333         block that sets it to 0.
25334         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
25335
25336 2010-10-14  Bruno Haible  <bruno@clisp.org>
25337
25338         socketlib: Fix.
25339         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
25340         gl_PREREQ_SYS_H_WINSOCK2.
25341         Reported by Ian Beckwith <ianb@erislabs.net>.
25342
25343 2010-10-13  Jim Meyering  <meyering@redhat.com>
25344
25345         test-select-stdin.c: avoid warn_unused_result warnings
25346         * tests/test-select-stdin.c: Include "macros.h".
25347         ASSERT that read and fflush succeed.
25348
25349 2010-10-13  Jim Meyering  <meyering@redhat.com>
25350
25351         git-version-gen: do require git-VC'd files in cwd
25352         * build-aux/git-version-gen: Reject a git version string
25353         if there are no commits associated with the current directory.
25354         This avoids an unlikely false-positive (unrelated dir whose parent
25355         repository also contains a tag matching v*), as pointed out
25356         by Giuseppe Scrivano in
25357         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
25358
25359 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25360
25361         argv-iter: omit nonconforming declaration
25362         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
25363         enum arg_iter_err declaration, which doesn't conform to C99.
25364         Solaris 10 cc warns about this.
25365
25366 2010-10-13  Eric Blake  <eblake@redhat.com>
25367
25368         termios: fix compilation on mingw
25369         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
25370         (gl_TERMIOS_H): Adjust it on mingw.
25371         * modules/termios (Makefile.am): Substitute new key.
25372         * lib/termios.in.h (includes): Make include_next conditional.
25373         * doc/posix-headers/termios.texi (termios.h): Update
25374         documentation.
25375         Reported by Daniel P. Berrange.
25376
25377 2010-10-13  Jim Meyering  <meyering@redhat.com>
25378
25379         git-version-gen: don't require that .git/ be in the current dir
25380         * build-aux/git-version-gen: Adjust this script so that it works
25381         when run from any working directory beneath the top-level .git/-
25382         containing directory.  Inspired by a patch from Giuseppe Scrivano,
25383         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
25384
25385         test-select: avoid warn_unused_result warnings
25386         * tests/test-select.c: Include "macros.h".
25387         ASSERT that each call to read, write, and pipe succeeds.
25388         While not technically required, also check each "close".
25389         * modules/select-tests (Files): Add tests/macros.h.
25390
25391         test-symlinkat: remove declaration of unused local
25392         * tests/test-symlinkat.c (main): Remove unused local, "buf".
25393
25394         test-inttostr: avoid shadowing warnings
25395         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
25396         and use malloc rather than the stack for the same reason as
25397         mentioned in the comment justifying the other allocation.
25398
25399 2010-10-11  Bruno Haible  <bruno@clisp.org>
25400
25401         stdlib: Allow multiple gnulib generated replacements to coexist.
25402         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
25403         Reported by Sam Steingold <sds@gnu.org>.
25404
25405 2010-10-11  Jim Meyering  <meyering@redhat.com>
25406
25407         fix a documentation typo
25408         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
25409
25410 2010-10-11  Eric Blake  <eblake@redhat.com>
25411
25412         futimens: work around Solaris 11 bug
25413         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
25414         * tests/test-futimens.h (test_futimens): Enhance, rather than
25415         weaken test.
25416         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25417
25418 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
25419
25420         Indentation.
25421         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
25422         higher-level operators more to the left.
25423
25424 2010-10-11  Jim Meyering  <meyering@redhat.com>
25425
25426         test-futimens: avoid unwarranted test failure on Solaris 5.11
25427         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
25428         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
25429         because it tries to dereference the NULL name argument.
25430
25431 2010-10-11  Bruno Haible  <bruno@clisp.org>
25432
25433         Indentation.
25434         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
25435         indentation.
25436
25437 2010-10-11  Jim Meyering  <meyering@redhat.com>
25438
25439         spawn.in.h: make indentation consistent with parentheses
25440         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
25441         Make indentation consistent with parentheses.
25442
25443 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
25444
25445         Fix mismatched parens in previous commit
25446         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
25447         parens.
25448
25449 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25450
25451         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
25452
25453         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
25454         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
25455         * lib/malloca.c: Include "verify.h".
25456         (verify1): Remove, replacing with a verify call.
25457         * lib/relocwrapper.c (verify1): Likewise.
25458         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
25459         Likewise.
25460         * modules/malloca (Depends-on): Add 'verify'.
25461         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
25462         * modules/vasnprintf (Depends-on): Add 'verify'.
25463         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25464         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25465         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25466         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25467         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25468         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25469         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25470
25471         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
25472
25473         Formerly the style was sometimes 2*X - 1, because the C standard
25474         was wrongly thought to disallow ?: in integral constant expressions.
25475         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
25476         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
25477         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25478         * lib/stdint.in.h (_verify_intmax_size): Likewise.
25479         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
25480         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
25481         verify that time_t cannot be floating.
25482
25483 2010-10-08  Eric Blake  <eblake@redhat.com>
25484
25485         time: enforce recent POSIX ruling that time_t is integral
25486         * lib/time.in.h (__time_t_must_be_integral): Detect any
25487         problematic systems, allowing the rest of gnulib to assume POSIX.
25488
25489 2010-10-08  Jim Meyering  <meyering@redhat.com>
25490
25491         fdopendir: fix a bug on systems lacking openat and /proc support
25492         OpenBSD 4.7 is one such system.  The most noticeable effect was
25493         failure of any application making nontrivial use of fts: rm, du,
25494         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
25495           ./rm: traversal failed: `a': Bad file descriptor
25496         Debugging that, you see that even though FD 6 was closed just
25497         prior to the opendir call in fd_clone_opendir, its resulting
25498         dir->dd_fd was 8, rather than the expected value of 6:
25499
25500         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
25501         93                close (fd);
25502         (gdb) n
25503         94                dir = fd_clone_opendir (dupfd);
25504         (gdb) n
25505         95                saved_errno = errno;
25506         (gdb) p dir->dd_fd
25507         $11 = 8
25508
25509         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
25510         The problem is that on OpenBSD, fd_clone_opendir has to resort
25511         to using the old-style save/restore CWD mechanism, due to its
25512         lack of openat/proc support, and *that* would steal the FD (6)
25513         that opendir was supposed to use.
25514
25515         The fix is to squirrel away the desired FD so that save_cwd uses a
25516         different one, and then free the dest FD right before calling opendir.
25517         That guarantees opendir will use the required file descriptor.
25518
25519         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
25520
25521 2010-10-08  Bruno Haible  <bruno@clisp.org>
25522
25523         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
25524         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
25525
25526 2010-10-08  Bruno Haible  <bruno@clisp.org>
25527
25528         nanosleep: Make replacement POSIX compliant.
25529         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
25530         is out of range.
25531         Reported by Jim Meyering.
25532
25533 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25534
25535         bootstrap: add hook for altering gnulib.mk, for Bison
25536         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
25537         the Bison bootstrapping process can rewrite file names and variables
25538         in this file before later parts of 'bootstrap' use the file.
25539         Bison wants to include lib/gnulib.mk from the top-level makefile,
25540         so it needs the file names in this file to be relative to the top
25541         level, not relative to lib; plus it needs variable names to be
25542         rewritten.
25543         (slurp): Use the new function.
25544
25545         bootstrap: reformat for readability
25546         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
25547
25548 2010-10-08  Eric Blake  <eblake@redhat.com>
25549
25550         docs: update cygwin progress
25551         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
25552         1.7.7.
25553         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
25554         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
25555         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
25556         * doc/posix-functions/carg.texi (carg): Likewise.
25557         * doc/posix-functions/cargf.texi (cargf): Likewise.
25558         * doc/posix-functions/casin.texi (casin): Likewise.
25559         * doc/posix-functions/casinf.texi (casinf): Likewise.
25560         * doc/posix-functions/casinh.texi (casinh): Likewise.
25561         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25562         * doc/posix-functions/catan.texi (catan): Likewise.
25563         * doc/posix-functions/catanf.texi (catanf): Likewise.
25564         * doc/posix-functions/catanh.texi (catanh): Likewise.
25565         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25566         * doc/posix-functions/ccos.texi (ccos): Likewise.
25567         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25568         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25569         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25570         * doc/posix-functions/cexp.texi (cexp): Likewise.
25571         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25572         * doc/posix-functions/cimag.texi (cimag): Likewise.
25573         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25574         * doc/posix-functions/clog.texi (clog): Likewise.
25575         * doc/posix-functions/clogf.texi (clogf): Likewise.
25576         * doc/posix-functions/conj.texi (conj): Likewise.
25577         * doc/posix-functions/conjf.texi (conjf): Likewise.
25578         * doc/posix-functions/cpow.texi (cpow): Likewise.
25579         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25580         * doc/posix-functions/cproj.texi (cproj): Likewise.
25581         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25582         * doc/posix-functions/creal.texi (creal): Likewise.
25583         * doc/posix-functions/crealf.texi (crealf): Likewise.
25584         * doc/posix-functions/csin.texi (csin): Likewise.
25585         * doc/posix-functions/csinf.texi (csinf): Likewise.
25586         * doc/posix-functions/csinh.texi (csinh): Likewise.
25587         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25588         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25589         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25590         * doc/posix-functions/ctan.texi (ctan): Likewise.
25591         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25592         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25593         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25594         * doc/posix-headers/complex.texi (complex.h): Likewise.
25595
25596 2010-10-07  Jim Meyering  <meyering@redhat.com>
25597
25598         parse-datetime: avoid compilation failure on OpenBSD 4.7
25599         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25600         This works around a compilation failure on OpenBSD 4.7:
25601         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25602
25603 2010-10-07  Eric Blake  <eblake@redhat.com>
25604
25605         docs: update cygwin progress
25606         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25607         1.7.6.
25608         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25609         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25610         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25611         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25612         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25613         Likewise.
25614         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25615         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25616         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25617         Likewise.
25618         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25619         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25620         Likewise.
25621         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25622         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25623         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25624         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25625         Likewise.
25626         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25627         Likewise.
25628         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25629
25630         docs: update parse-datetime history
25631         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25632         documentation of this function's history and alternatives.
25633
25634         cygwin: use more robust version check
25635         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25636         exclude an eventual cygwin 1.9.1.
25637         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25638         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25639         (gl_FUNC_STRCASESTR): Likewise.
25640         Reported by Bruno Haible.
25641
25642 2010-10-06  Bruno Haible  <bruno@clisp.org>
25643
25644         string, sys_select: Avoid #including large headers unless necessary.
25645         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25646         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25647         OSF/1, BeOS, Haiku.
25648         Reported by Jim Meyering.
25649
25650 2010-10-05  Eric Blake  <eblake@redhat.com>
25651
25652         memmem, strstr, strcasestr: fix bug with long periodic needle
25653         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25654         periodic needle having false positive.
25655         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25656         and cygwin 1.7.7.
25657         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25658         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25659         (gl_FUNC_STRCASESTR): Likewise.
25660         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25661         * tests/test-memmem.c (main): Expose the bug.
25662         * tests/test-strcasestr.c (main): Likewise.
25663         * tests/test-strstr.c (main): Likewise.
25664         * tests/test-c-strcasestr.c (main): Likewise.
25665         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25666         * doc/posix-functions/strstr.texi (strstr): Likewise.
25667         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25668         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25669
25670 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25671
25672         parse-datetime: do some more renaming
25673         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25674         parse_datetime, not get_date.  Mention the renaming.
25675         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25676         in comments.
25677         * m4/bison.m4: Likewise.
25678
25679 2010-10-05  Eric Blake  <eblake@redhat.com>
25680
25681         parse-datetime: better name than get_date
25682         * NEWS: Reword the deprecation notice.
25683         * modules/get_date: Rename to modules/parse-datetime.
25684         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25685         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25686         * lib/get_date.y: Rename to lib/parse-datetime.y.
25687         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25688         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25689         * doc/getdate.texi: Provide fallback wrapper.
25690         * lib/getdate.h: Move guts, and wrap...
25691         * lib/parse-datetime.h: ...new file.
25692         * lib/parse-datetime.y (get_date): Rename...
25693         (parse_datetime): ...to this.
25694         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25695         (gl_PARSE_DATETIME): ...to this.
25696         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25697         documentation.
25698         * modules/getdate (Files): Provide fallback docs and header.
25699         (Notice, Depends-on): Update references.
25700         * tests/test-parse-datetime.c: Likewise.
25701         * DEPENDENCIES: Likewise.
25702         * MODULES.html.sh (Date and time <time.h>): Likewise.
25703         * doc/parse-datetime.texi (Date input formats)
25704         (Authors of parse_datetime): Likewise.
25705         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25706         (Include): Likewise.
25707         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25708         * gnulib-tool: Likewise.
25709         * m4/bison.m4 (gl_BISON): Likewise.
25710         Suggested by Bruno Haible.
25711
25712 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25713
25714         more ports to Solaris tr, which needs [] around ranges
25715         * gnulib-tool: Solaris tr needs [] around ranges.
25716         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25717         * tests/test-pipe-filter-gi1.c (main): Likewise.
25718         * tests/test-pipe-filter-ii1.c (main): Likewise.
25719
25720 2010-10-05  Eric Blake  <eblake@redhat.com>
25721
25722         bootstrap: fix Solaris regression
25723         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25724         around ranges.
25725         Reported by Pádraig Brady.
25726
25727         bootstrap: work with pkg-config
25728         * build-aux/bootstrap (check_versions): Also transliterate - in
25729         prerequisite name.
25730         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25731         prerequisites that were already found, to avoid confusion.
25732         Reported by Justin Clift.
25733
25734         faccessat: remove unused wrappers
25735         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25736         presence of these wrappers dragged in -lgen on Solaris.
25737         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25738
25739 2010-10-05  Jim Meyering  <meyering@redhat.com>
25740
25741         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25742         * Makefile (sc_pragma_columns): New syntax-check rule.
25743
25744 2010-10-04  Bruno Haible  <bruno@clisp.org>
25745
25746         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25747         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25748         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25749         Reported by Bruce Korb and Eric Blake.
25750
25751 2010-10-04  Bruno Haible  <bruno@clisp.org>
25752
25753         threadlib: Make option --with-libpth-prefix work.
25754         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25755         use $LIBPTH, not just -lpth.
25756
25757 2010-10-04  Bruno Haible  <bruno@clisp.org>
25758
25759         Avoid line length limitation from HP NonStop system header files.
25760         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25761         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25762         * lib/ctype.in.h: Likewise.
25763         * lib/dirent.in.h: Likewise.
25764         * lib/errno.in.h: Likewise.
25765         * lib/fcntl.in.h: Likewise.
25766         * lib/float.in.h: Likewise.
25767         * lib/getopt.in.h: Likewise.
25768         * lib/iconv.in.h: Likewise.
25769         * lib/inttypes.in.h: Likewise.
25770         * lib/langinfo.in.h: Likewise.
25771         * lib/locale.in.h: Likewise.
25772         * lib/math.in.h: Likewise.
25773         * lib/netdb.in.h: Likewise.
25774         * lib/netinet_in.in.h: Likewise.
25775         * lib/poll.in.h: Likewise.
25776         * lib/pthread.in.h: Likewise.
25777         * lib/pty.in.h: Likewise.
25778         * lib/sched.in.h: Likewise.
25779         * lib/se-selinux.in.h: Likewise.
25780         * lib/search.in.h: Likewise.
25781         * lib/signal.in.h: Likewise.
25782         * lib/spawn.in.h: Likewise.
25783         * lib/stdarg.in.h: Likewise.
25784         * lib/stddef.in.h: Likewise.
25785         * lib/stdint.in.h: Likewise.
25786         * lib/stdio.in.h: Likewise.
25787         * lib/stdlib.in.h: Likewise.
25788         * lib/string.in.h: Likewise.
25789         * lib/strings.in.h: Likewise.
25790         * lib/sys_file.in.h: Likewise.
25791         * lib/sys_ioctl.in.h: Likewise.
25792         * lib/sys_select.in.h: Likewise.
25793         * lib/sys_socket.in.h: Likewise.
25794         * lib/sys_stat.in.h: Likewise.
25795         * lib/sys_time.in.h: Likewise.
25796         * lib/sys_times.in.h: Likewise.
25797         * lib/sys_utsname.in.h: Likewise.
25798         * lib/sys_wait.in.h: Likewise.
25799         * lib/sysexits.in.h: Likewise.
25800         * lib/termios.in.h: Likewise.
25801         * lib/time.in.h: Likewise.
25802         * lib/unistd.in.h: Likewise.
25803         * lib/wchar.in.h: Likewise.
25804         * lib/wctype.in.h: Likewise.
25805         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25806         * modules/ctype (Makefile.am): Likewise.
25807         * modules/dirent (Makefile.am): Likewise.
25808         * modules/errno (Makefile.am): Likewise.
25809         * modules/fcntl-h (Makefile.am): Likewise.
25810         * modules/float (Makefile.am): Likewise.
25811         * modules/getopt-posix (Makefile.am): Likewise.
25812         * modules/iconv-h (Makefile.am): Likewise.
25813         * modules/inttypes (Makefile.am): Likewise.
25814         * modules/langinfo (Makefile.am): Likewise.
25815         * modules/locale (Makefile.am): Likewise.
25816         * modules/math (Makefile.am): Likewise.
25817         * modules/netdb (Makefile.am): Likewise.
25818         * modules/netinet_in (Makefile.am): Likewise.
25819         * modules/poll-h (Makefile.am): Likewise.
25820         * modules/pthread (Makefile.am): Likewise.
25821         * modules/pty (Makefile.am): Likewise.
25822         * modules/sched (Makefile.am): Likewise.
25823         * modules/search (Makefile.am): Likewise.
25824         * modules/selinux-h (Makefile.am): Likewise.
25825         * modules/signal (Makefile.am): Likewise.
25826         * modules/spawn (Makefile.am): Likewise.
25827         * modules/stdarg (Makefile.am): Likewise.
25828         * modules/stddef (Makefile.am): Likewise.
25829         * modules/stdint (Makefile.am): Likewise.
25830         * modules/stdio (Makefile.am): Likewise.
25831         * modules/stdlib (Makefile.am): Likewise.
25832         * modules/string (Makefile.am): Likewise.
25833         * modules/strings (Makefile.am): Likewise.
25834         * modules/sys_file (Makefile.am): Likewise.
25835         * modules/sys_ioctl (Makefile.am): Likewise.
25836         * modules/sys_select (Makefile.am): Likewise.
25837         * modules/sys_socket (Makefile.am): Likewise.
25838         * modules/sys_stat (Makefile.am): Likewise.
25839         * modules/sys_time (Makefile.am): Likewise.
25840         * modules/sys_times (Makefile.am): Likewise.
25841         * modules/sys_utsname (Makefile.am): Likewise.
25842         * modules/sys_wait (Makefile.am): Likewise.
25843         * modules/sysexits (Makefile.am): Likewise.
25844         * modules/termios (Makefile.am): Likewise.
25845         * modules/time (Makefile.am): Likewise.
25846         * modules/unistd (Makefile.am): Likewise.
25847         * modules/wchar (Makefile.am): Likewise.
25848         * modules/wctype (Makefile.am): Likewise.
25849
25850 2010-10-04  Bruno Haible  <bruno@clisp.org>
25851
25852         read-file tests: Avoid a test failure on NonStop Kernel.
25853         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25854         a regular file.
25855         Reported by Joachim Schmitz <schmitz@hp.com>.
25856
25857 2010-10-03  Bruno Haible  <bruno@clisp.org>
25858
25859         gnulib-tool: Fixes for --create-testdir with --libtool.
25860         * gnulib-tool (func_get_automake_snippet): Don't augment
25861         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25862         an executable.
25863         (func_create_testdir): Handle module 'alloca' like func_import.
25864         Reported by Bruce Korb <bruce.korb@gmail.com>.
25865
25866 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25867
25868         Avoid some lines longer than 80 characters.
25869         * lib/stdint.in.h: Break long comment lines.
25870         * lib/math.in.h: Likewise.
25871         (_GL_NUM_UINT_WORDS): New macro, for readability.
25872         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25873         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25874         * lib/stdlib.in.h: Likewise.
25875         * lib/spawn.in.h: Likewise.
25876         * lib/sys_socket.in.h: Update an URL.
25877         * lib/sys_stat.in.h: Break long line.
25878
25879 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25880
25881         Improve pmccabe2html.
25882         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25883         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25884         when the sources change. Remove the line in the HTML about "Used
25885         ranges" (which implied that there might be other unused ranges),
25886         rename "Resume" to "Summary" (easier to understand for more users).
25887         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25888         styles, and some unnecessary blank lines.
25889
25890 2010-10-03  Bruno Haible  <bruno@clisp.org>
25891             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25892
25893         acl: Add support for ACLs on NonStop Kernel.
25894         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25895         Check whether the function aclsort() exists.
25896         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25897         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25898         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25899         (acl_nontrivial [HAVE_ACLSORT]: New function.
25900         (file_has_acl): Implement for NonStop Kernel.
25901         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25902         (qset_acl): Implement for NonStop Kernel.
25903         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25904         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25905         (main): Implement for NonStop Kernel.
25906         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25907         Kernel. Handle this flavor.
25908         * tests/test-set-mode-acl.sh: Likewise.
25909         * tests/test-copy-acl.sh: Likewise.
25910         * tests/test-copy-file.sh: Likewise.
25911
25912 2010-10-03  Bruno Haible  <bruno@clisp.org>
25913
25914         Info about ACLs on NonStop Kernel.
25915         * doc/acl-resources.txt: Add info about NonStop Kernel.
25916         References by Joachim Schmitz <schmitz@hp.com>.
25917
25918 2010-10-02  Bruno Haible  <bruno@clisp.org>
25919
25920         Define missing EDQUOT on NonStop Kernel.
25921         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25922         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25923         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25924         missing.
25925         * doc/posix-headers/errno.texi: Mention the NSK bug.
25926         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25927         Reported by Joachim Schmitz <schmitz@hp.com>.
25928
25929 2010-10-02  Bruno Haible  <bruno@clisp.org>
25930
25931         Update doc for POSIX:2008.
25932         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25933         Update URL of POSIX specification.
25934
25935 2010-10-02  Bruno Haible  <bruno@clisp.org>
25936
25937         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25938         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25939         from gnulib, not from Automake.
25940
25941 2010-10-02  Bruno Haible  <bruno@clisp.org>
25942
25943         New module 'system-posix'.
25944         * modules/system-posix: New file.
25945         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25946         module is present.
25947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25948         GNULIB_SYSTEM_POSIX.
25949         * modules/stdlib (Depends-on): Remove sys_wait.
25950         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25951         * doc/posix-functions/system.texi: Mention the new module.
25952         * doc/posix-headers/stdlib.texi: Likewise.
25953         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25954         define test_sys_wait_macros to a no-op.
25955         Reported by Sam Steingold <sds@gnu.org>.
25956
25957 2010-09-30  Bruno Haible  <bruno@clisp.org>
25958
25959         More renaming from 'getdate' to 'get_date'.
25960         * doc/get_date.texi: Renamed from doc/getdate.texi.
25961         * modules/get_date (Files): Update.
25962         * MODULES.html.sh (Date and time <time.h>): Update.
25963         * DEPENDENCIES: Update.
25964         * gnulib-tool: Update comment.
25965         * m4/bison.m4 (gl_BISON): Likewise.
25966         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25967
25968 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25969
25970         bootstrap: support ACLOCAL_FLAGS during aclocal
25971         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25972         can add additional -I dir for third-party .m4 files.
25973
25974 2010-09-30  Eric Blake  <eblake@redhat.com>
25975
25976         bootstrap: use glibtoolize on MacOS
25977         * build-aux/bootstrap (check_versions): Convert libtool into
25978         libtoolize.
25979         (tool search): Move libtool check earlier, and look for
25980         glibtoolize for MacOS.
25981         (gnulib_tool_options): Auto-add --libtool when appropriate.
25982         Reported by Justin Clift.
25983
25984         poll: fix typo that broke test on MacOS
25985         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25986         Reported by Justin Clift.
25987
25988         getdate: rename to get_date
25989         Note: getdate.h is not renamed, to minimize client impact.
25990         * modules/getdate: Mark obsolete.  Move old contents...
25991         * modules/get_date: ...to new module name.
25992         * modules/getdate-tests: Move...
25993         * modules/get_date-tests: ...here.
25994         * m4/getdate.m4: Move...
25995         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25996         * lib/getdate.y: Move...
25997         * lib/get_date.y: ...here.
25998         * tests/test-getdate.c: Move...
25999         * tests/test-get_date.c: ...here.
26000         * doc/posix-functions/getdate.texi (getdate): Update name.
26001         * NEWS: Mention the change.
26002
26003 2010-09-29  Bruno Haible  <bruno@clisp.org>
26004
26005         Separate the module 'waitpid' from the module 'sys_wait'.
26006         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
26007         present.
26008         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
26009         gl_MODULE_INDICATOR_FOR_TESTS.
26010         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
26011         * modules/sys_wait (Depends-on): Remove waitpid.
26012         (Makefile.am): Substitute GNULIB_WAITPID.
26013         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
26014         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
26015         signature only if the 'waitpid' module is present.
26016         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
26017         * NEWS: Mention the change.
26018         * modules/grantpt (Depends-on): Add waitpid.
26019         * modules/wait-process (Depends-on): Likewise.
26020
26021 2010-09-29  Bruno Haible  <bruno@clisp.org>
26022
26023         More tests for module 'sys_wait'.
26024         * modules/sys_wait-c++-tests: New file.
26025         * tests/test-sys_wait-c++.cc: New file.
26026         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
26027         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26028
26029 2010-09-29  Bruno Haible  <bruno@clisp.org>
26030
26031         New module 'waitpid'.
26032         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
26033         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
26034         Don't include <process.h>.
26035         (waitpid): Declare only, using modern idiom.
26036         * m4/waitpid.m4: New file.
26037         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
26038         * modules/waitpid: New file.
26039         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
26040         (Makefile.am): Update.
26041         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26042
26043 2010-09-28  Bruno Haible  <bruno@clisp.org>
26044
26045         poll: Assume ANSI C.
26046         * lib/poll.c (poll): Use an ANSI C declaration.
26047
26048 2010-09-28  Bruno Haible  <bruno@clisp.org>
26049
26050         poll-h: Create poll.h on all platforms.
26051         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
26052         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
26053         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
26054         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
26055         (gl_REPLACE_POLL_H): Don't set POLL_H.
26056         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
26057         * modules/poll-h (Depends-on): Add include_next.
26058         (Makefile.am): Create poll.h unconditionally. Substitute also
26059         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
26060
26061 2010-09-28  Bruno Haible  <bruno@clisp.org>
26062
26063         Tests for module 'poll-h'.
26064         * modules/poll-h-c++-tests: New file.
26065         * tests/test-poll-h-c++.cc: New file.
26066
26067         Tests for module 'poll-h'.
26068         * modules/poll-h-tests: New file.
26069         * tests/test-poll-h.c: New file.
26070
26071 2010-09-28  Bruno Haible  <bruno@clisp.org>
26072
26073         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
26074         * modules/poll-h (Depends-on): Add 'extensions'.
26075
26076 2010-09-28  Bruno Haible  <bruno@clisp.org>
26077
26078         New module 'poll-h'.
26079         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
26080         (poll): Use modern idiom.
26081         * modules/poll-h: New file.
26082         * modules/poll (Files): Remove lib/poll.in.h.
26083         (Depends-on): Add poll-h.
26084         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
26085         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
26086         * m4/poll_h.m4: New file.
26087         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
26088         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
26089         and invoke gl_REPLACE_POLL_H.
26090         * lib/poll.c: Use common idiom.
26091         * tests/test-poll.c: Likewise.
26092         * doc/posix-headers/poll.texi: Mention the poll-h module.
26093         Suggested by Eric Blake.
26094
26095 2010-09-26  Bruno Haible  <bruno@clisp.org>
26096
26097         sys_wait: Implement WSTOPSIG.
26098         * lib/sys_wait.in.h (WSTOPSIG): New macro.
26099         Reported by Simon Josefsson.
26100
26101 2010-09-26  Simon Josefsson  <simon@josefsson.org>
26102
26103         stdlib, sys_wait: Avoid compilation error on mingw.
26104         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
26105
26106 2010-09-26  Bruno Haible  <bruno@clisp.org>
26107
26108         stdlib tests: Avoid code duplication.
26109         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
26110         * modules/sys_wait-tests (Files): Likewise.
26111         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
26112         * tests/test-stdlib.c: Include test-sys_wait.h.
26113         (main): Invoke test_sys_wait_macros.
26114         * tests/test-sys_wait.c: Include test-sys_wait.h.
26115         (main): Invoke test_sys_wait_macros.
26116
26117 2010-09-25  Simon Josefsson  <simon@josefsson.org>
26118
26119         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
26120         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
26121         sure Windows sockets are working before calling getaddrinfo.
26122         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
26123         * doc/gnulib.texi (Windows sockets): Fix typo.
26124
26125 2010-09-25  Bruno Haible  <bruno@clisp.org>
26126
26127         Tests for module 'regex-quote'.
26128         * modules/regex-quote-tests: New file.
26129         * tests/test-regex-quote.c: New file.
26130
26131         New module 'regex-quote'.
26132         * lib/regex-quote.h: New file.
26133         * lib/regex-quote.c: New file.
26134         * modules/regex-quote: New file.
26135         Suggested by Reuben Thomas <rrt@sc3d.org>.
26136
26137 2010-09-24  Bruno Haible  <bruno@clisp.org>
26138
26139         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
26140         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
26141
26142 2010-09-23  Bruno Haible  <bruno@clisp.org>
26143
26144         setenv: Relax license.
26145         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
26146         Blake.
26147         Requested by Eric Blake.
26148
26149 2010-09-22  Bruno Haible  <bruno@clisp.org>
26150
26151         termios: Relax license.
26152         * modules/termios (License): Change to LGPLv2+.
26153         Requested by Eric Blake.
26154
26155 2010-09-22  Bruno Haible  <bruno@clisp.org>
26156
26157         threadlib: Allow the package to change the default to 'no'.
26158         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
26159         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
26160         Reported by Paul Eggert.
26161
26162 2010-09-22  Pádraig Brady  <P@draigbrady.com>
26163             Bruno Haible  <bruno@clisp.org>
26164
26165         Fix endless loop in mbmemcasecoll.
26166         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
26167         byte.
26168         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
26169
26170 2010-09-22  Bruno Haible  <bruno@clisp.org>
26171
26172         Tests for module 'memcoll'.
26173         * modules/memcoll-tests: New file.
26174         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
26175
26176         memcoll, xmemcoll: Clarify size vs. length.
26177         * modules/memcoll.c (memcoll0): Clarify specification.
26178         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
26179         passed to collate_error.
26180
26181 2010-09-22  Bruno Haible  <bruno@clisp.org>
26182
26183         Tests for module 'memcasecmp'.
26184         * modules/memcasecmp-tests: New file.
26185         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
26186
26187 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26188
26189         * lib/pthread.in.h: Add split double-inclusion guard, and include
26190         system <pthread.h> if there is one.  Use @@-style as in other
26191         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
26192         pthread.h doesn't.
26193         (pthread_mutexattr_destroy, pthread_mutexattr_init):
26194         (pthread_mutexattr_settype, pthread_mutex_trylock):
26195         New static inline functions, if there's no system <pthread.h>.
26196         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
26197         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
26198         Approximate with mutexes if the system lacks spinlocks, as in
26199         MacOS.
26200         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
26201         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
26202         @@-style.  Check for spinlocks separately.
26203         (gl_PTHREAD_DEFAULTS): New macro.
26204         * modules/pthread: Redo to use a more typical style for in.h files.
26205
26206 2010-09-21  Eric Blake  <eblake@redhat.com>
26207
26208         net_if: enhance tests
26209         * tests/test-net_if.c (main): Move signature checks earlier.
26210         Print failures to stderr.
26211         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
26212         Document the bug that we do not yet fix.
26213
26214 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26215
26216         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
26217         about gnulib, not GSS.
26218
26219 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26220
26221         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
26222         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
26223         for Emacs.
26224         * build-aux/pmccabe2html: Make Makefile.am example code more
26225         cut-and-paste friendly.
26226
26227 2010-09-21  Simon Josefsson  <simon@josefsson.org>
26228
26229         * tests/test-net_if.c: New file.
26230         * modules/net_if-tests: New file.
26231
26232 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
26233
26234         pthread: add pthread_spin_destroy
26235         * lib/pthread.in.h (pthread_spin_destroy): New function.
26236
26237 2010-09-19  Bruno Haible  <bruno@clisp.org>
26238
26239         gnulib-tool: Fix --help output.
26240         * gnulib-tool (func_usage): Fix help message.
26241         Reported by Reuben Thomas <rrt@sc3d.org>.
26242
26243 2010-09-18  Jim Meyering  <meyering@redhat.com>
26244
26245         maint.mk: avoid unexpanded \n in two diagnostics
26246         * top/maint.mk (sc_prohibit_always_true_header_tests):
26247         Don't use a literal \n in a halt=... assignment.  It would not be
26248         expanded, and the two \n bytes would appear in the diagnostic output
26249         rather than the desired newline.  Use halt=$$(printf ... instead.
26250         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26251
26252 2010-09-18  Bruno Haible  <bruno@clisp.org>
26253
26254         netinet_in: Doc tweak.
26255         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
26256         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26257
26258 2010-09-18  Jim Meyering  <meyering@redhat.com>
26259
26260         init.sh: correct an outdated comment
26261         * tests/init.sh (create_exe_shims_):  s/function/alias/
26262
26263         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
26264         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
26265         a file named "*.exe" is removed between the glob expansion and the
26266         processing of that oddly named file.
26267
26268 2010-09-17  Eric Blake  <eblake@redhat.com>
26269
26270         mirbsd: add some more support
26271         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
26272         in BSD family.
26273         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
26274         devices as OpenBSD.
26275         * m4/host-os.m4 (mirbsd): Add MirBSD.
26276
26277         tests: fix unportable assumption on sys/wait.h
26278         * tests/test-sys_wait.c (main): Relax test.
26279         * tests/test-stdlib.c (main): Likewise.
26280
26281         init.sh: accommodate directory with no .exes
26282         * tests/init.sh: Accomodate directory containing only scripts.
26283
26284         tests: avoid compiler warning
26285         * tests/test-stdlib.c (main): Use the variable.
26286
26287         fdutimens, fdutimensat: update signature, again
26288         * lib/utimens.h (gl_futimens): Delete, and move signature...
26289         (fdutimens): ...here.
26290         (fdutimensat): Rearrange signature.
26291         (lutimensat): Rename variable for clarity.
26292         * lib/fdutimensat.c (fdutimensat): Update signature.
26293         * lib/utimens.c (fdutimens): Likewise.
26294         (gl_futimens): Delete.
26295         (utimens, lutimens): Update callers.
26296         * lib/futimens.c (futimens): Likewise.
26297         * tests/test-fdutimensat.c: Likewise.
26298         * tests/test-utimens.c: Likewise.
26299         * tests/test-futimens.h: Update comment.
26300         * NEWS: Mention this.
26301         Suggested by Paul Eggert.
26302
26303 2010-09-17  Bruno Haible  <bruno@clisp.org>
26304
26305         Take over the maintenance of some older macros from Autoconf.
26306         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
26307         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
26308         GNU Autoconf.
26309         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
26310         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
26311
26312 2010-09-17  Eric Blake  <eblake@redhat.com>
26313
26314         fdutimensat: drop atflag validation
26315         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
26316         with valid fd, to close a race scenario where futimens is
26317         unsupported and FILE was replaced by a symlink.
26318         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
26319         accordingly.
26320         Suggested by Paul Eggert.
26321
26322 2010-09-16  Bruno Haible  <bruno@clisp.org>
26323
26324         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
26325         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
26326
26327 2010-09-16  Bruno Haible  <bruno@clisp.org>
26328
26329         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
26330         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
26331         login_tty exists.
26332         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26333
26334 2010-09-16  Bruno Haible  <bruno@clisp.org>
26335
26336         login_tty: Make the replacement code work on BSD systems.
26337         * lib/login_tty.c: Include <sys/ioctl.h>.
26338         (login_tty): Use ioctl TIOCSCTTY when available.
26339         * modules/login_tty (Depends-on): Add sys_ioctl.
26340         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26341
26342 2010-09-16  Bruno Haible  <bruno@clisp.org>
26343
26344         login_tty: Stricter unit test.
26345         * modules/login_tty-tests (Depends-on): Add tcgetsid.
26346         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
26347         and tcgetsid() after login_tty.
26348         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26349
26350 2010-09-16  Bruno Haible  <bruno@clisp.org>
26351
26352         New module 'tcgetsid'.
26353         * lib/tcgetsid.c: New file.
26354         * m4/tcgetsid.m4: New file.
26355         * modules/tcgetsid: New file.
26356         * modules/termios (Depends-on): Add c++defs, warn-on-use.
26357         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
26358         GNULIB_TCGETSID, HAVE_TCGETSID.
26359         * lib/termios.in.h: Include <sys/types.h>.
26360         (tcgetsid): New declaration.
26361         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
26362         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
26363         * doc/posix-functions/tcgetsid.texi: Mention the new module.
26364         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
26365
26366 2010-09-16  Bruno Haible  <bruno@clisp.org>
26367
26368         Tests for module 'termios'.
26369         * modules/termios-c++-tests: New file.
26370         * modules/termios-tests: New file.
26371         * tests/test-termios-c++.cc: New file.
26372         * tests/test-termios.c: New file.
26373
26374         New module 'termios'.
26375         * modules/termios: New file.
26376         * lib/termios.in.h: New file.
26377         * m4/termios_h.m4: New file.
26378         * doc/posix-headers/termios.texi: Mention the new module.
26379
26380 2010-09-16  Eric Blake  <eblake@redhat.com>
26381
26382         fdutimensat: add an atflag parameter
26383         * lib/fdutimensat.c (fdutimensat): Add new parameter.
26384         * lib/utimens.h (fdutimensat): Update prototype.
26385         * tests/test-fdutimensat.c: Adjust test to match.
26386         * NEWS: Document the change.
26387         Suggested by Paul Eggert.
26388
26389 2010-09-16  Bruno Haible  <bruno@clisp.org>
26390
26391         Fix typos in comments.
26392         * lib/striconveh.h: Fix typo in comment.
26393         * lib/login_tty.c (login_tty): Likewise.
26394
26395 2010-09-15  Bruno Haible  <bruno@clisp.org>
26396
26397         stdlib: clarify MirBSD WEXITSTATUS bug
26398         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
26399         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26400
26401 2010-09-15  Eric Blake  <eblake@redhat.com>
26402
26403         stdlib: work around MirBSD WEXITSTATUS bug
26404         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
26405         * modules/stdlib (Depends-on): Add sys_wait.
26406         * tests/test-sys_wait.c (main): Enhance test.
26407         * tests/test-stdlib.c (main): Likewise.
26408         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
26409
26410         docs: mention MacOS issue with WEXITSTATUS(constant)
26411         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
26412         issue.
26413         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26414
26415         strnlen: add tests
26416         * modules/strnlen-tests: New file.
26417         * tests/test-strnlen.c: Likewise.
26418
26419 2010-09-14  Bruno Haible  <bruno@clisp.org>
26420
26421         unistr/base: Avoid link errors when module 'libunistring' is also used.
26422         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
26423         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
26424         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
26425         Declare also when HAVE_LIBUNISTRING is set.
26426         Reported by Pádraig Brady <P@draigbrady.com>.
26427
26428 2010-09-14  Eric Blake  <eblake@redhat.com>
26429
26430         test-rawmemchr: make more robust
26431         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
26432         (Depends-on, configure.ac): Add needed prerequisites to use it.
26433         * modules/memchr-tests (Files, Depends-on, configure.ac):
26434         Likewise, to avoid implicit reliance on memchr module prereqs.
26435         * tests/test-memchr.c (main): Ensure proper masking.
26436         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
26437         reads.
26438
26439         memchr: detect glibc Alpha bug
26440         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
26441         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
26442         Alpha.
26443         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
26444         * tests/test-memchr.c (main): Enhance test.
26445         Reported by Nelson H. F. Beebe.
26446
26447 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26448
26449         fts, getcwd, glob: audit for dirfd returning -1
26450         * lib/fts.c (opendir): Remove #define; no longer used.
26451         (opendirat): New arg PDIR_FD.  All callers changed.
26452         (fts_build, _opendir2): Use new opendirat to avoid the need for
26453         dirfd, or for checking whether dirfd returns a negative value.
26454         Don't use opendir; always use openat followed by fdopendir.
26455         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
26456         it.
26457         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
26458         returns -1 here.
26459         * modules/fts (Depends-on): Remove dirfd.
26460         * modules/getcwd (Depends-on): Likewise.
26461
26462 2010-09-13  Eric Blake  <eblake@redhat.com>
26463
26464         float: fix broken MirBSD header
26465         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
26466         * doc/posix-headers/float.texi (float.h): Document it.
26467
26468 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26469
26470         fts: use O_NOFOLLOW to avoid race condition when opening a directory
26471         * lib/fts.c (opendirat): New arg extra_flags.
26472         (__opendir2): Use it to avoid following symlinks when opening
26473         a directory, if symlinks are not supposed to be followed.  See
26474         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
26475
26476         fdopendir: preserve argument fd before returning
26477         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
26478         (fdopendir_with_dup, fd_clone_opendir): New static functions.
26479         (fdopendir): Use them, arranging for FD to be open to the same
26480         directory that it was when it started.  (It might be temporarily
26481         closed while fdopendir is running, so this not thread- or
26482         signal-safe.)  Be careful to do the right thing even when file
26483         descriptors are scarce and dup fails with errno == EMFILE.  See
26484         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
26485
26486 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
26487
26488         regex: Pass the system regex if its only problem is 32-bit regoff_t.
26489         * NEWS: Document change.
26490         * m4/regex.m4: Disable test for regoff_t size.
26491
26492 2010-09-13  Jim Meyering  <meyering@redhat.com>
26493
26494         fts: don't operate on an invalid file descriptor after failed dup
26495         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
26496         negative file descriptor.
26497
26498 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
26499
26500         savedir: add streamsavedir, deprecate fdsavedir
26501         * NEWS: Mention deprecation of fdsavedir.
26502         * lib/savedir.c (streamsavedir): New extern function, whose name
26503         ends in "savedir" to be consistent with the others.  This differs
26504         from savedirstream in that it doesn't close its argument.  The
26505         next version of GNU tar will use this instead of fdsavedir, to
26506         avoid some race conditions and conserve file descriptors.
26507         (savedirstream): Reimplement as a wrapper around streamsavedir.
26508         (fdsavedir): Add a comment deprecating this function.  As far as
26509         I know, only GNU tar used it, and GNU tar doesn't need it any more.
26510         * lib/savedir.h (streamsavedir): New decl.
26511         (fdsavedir): Add a comment deprecating this.
26512
26513 2010-09-10  Bruno Haible  <bruno@clisp.org>
26514
26515         langinfo: Fix last commit.
26516         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
26517         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
26518         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26519
26520 2010-09-10  Bruno Haible  <bruno@clisp.org>
26521
26522         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
26523         * lib/progreloc.c (O_EXEC): Define fallback.
26524
26525 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26526
26527         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
26528         * NEWS: Document recent changes to fcntl-h.
26529         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
26530         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
26531         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
26532         Similarly for O_SEARCH; this last was already true, but not documented.
26533         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
26534         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
26535         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
26536         Likewise.
26537         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
26538         is zero, not whether it is defined.
26539         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
26540         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
26541         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
26542
26543 2010-09-10  Bruno Haible  <bruno@clisp.org>
26544
26545         langinfo, nl_langinfo: Fix for IRIX 5.3.
26546         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
26547         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
26548         HAVE_LANGINFO_YESEXPR.
26549         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
26550         HAVE_LANGINFO_YESEXPR.
26551         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
26552         HAVE_LANGINFO_T_FMT_AMPM is 0.
26553         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
26554         HAVE_LANGINFO_YESEXPR is 0.
26555         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
26556         NOEXPR.
26557         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26558         * doc/posix-functions/nl_langinfo.texi: Likewise.
26559         Reported by Eric Blake.
26560
26561 2010-09-10  Bruno Haible  <bruno@clisp.org>
26562
26563         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26564         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26565         on FreeBSD 8.0 and OpenBSD 4.6.
26566         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26567         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26568         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26569         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26570         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26571         ac_includes_default.
26572         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26573
26574 2010-09-09  Eric Blake  <eblake@redhat.com>
26575
26576         strsignal: work around NetBSD bug
26577         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26578         * lib/string.in.h (includes): Likewise.
26579         * doc/posix-functions/strsignal.texi (strsignal): Document the
26580         bug.
26581         Reported by Nelson H. F. Beebe.
26582
26583         gnulib-tool: work with NetBSD /bin/sh
26584         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26585         (func_get_description, func_get_comment, func_get_status)
26586         (func_get_notice, func_get_applicability, func_get_filelist)
26587         (func_get_dependencies, func_get_autoconf_early_snippet)
26588         (func_get_autoconf_snippet, func_get_automake_snippet)
26589         (func_get_include_directive, func_get_link_directive)
26590         (func_get_license, func_get_maintainer, func_import): Avoid
26591         shell syntax errors from parsing syntax extensions.
26592
26593 2010-09-09  Bruno Haible  <bruno@clisp.org>
26594
26595         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26596         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26597         a reliable way to determine whether the 'alias' command works.
26598
26599 2010-09-08  Jim Meyering  <meyering@redhat.com>
26600
26601         init.sh: penalize a set-x-impaired shell; don't disqualify it
26602         * tests/init.sh: Too many shells corrupt application stderr when
26603         you set -x, so we can't afford to disqualify them, since at least
26604         on Irix-6.5, that would disqualify all bourne shells.
26605         Instead, use a two-pass approach.
26606         On the first pass, try to find a shell that meets the stricter
26607         condition that set -x does not corrupt stderr.
26608         If no shell meets the stricter condition, retest each candidate
26609         shell, but without that extra condition.  Finally, when
26610         VERBOSE=yes is requested and set -x might cause trouble, simply
26611         issue a warning and refrain from enabling debug output.
26612
26613 2010-09-08  Eric Blake  <eblake@redhat.com>
26614
26615         unsetenv: fix OpenBSD bug
26616         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26617         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26618         documentation.
26619         Reported by Jim Meyering.
26620
26621         strtod: work around IRIX 6.5 bug
26622         * lib/strtod.c (strtod): Reparse number on shorter string if
26623         exponent parse was invalid.
26624         * tests/test-strtod.c (main): Add check for "0x1p 2".
26625         Reported by Tom G. Christensen.
26626
26627         getopt: optimize previous patch
26628         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26629         empty variable.  Speed up awk script.
26630         Reported by Paolo Bonzini.
26631
26632 2010-09-08  Jim Meyering  <meyering@redhat.com>
26633
26634         test.sh: disqualify shells for which set -x corrupts stderr
26635         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26636         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26637         appear in stderr output.  For example, this command:
26638             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26639         prints "P=1" on those two systems:
26640
26641 2010-09-08  Bruno Haible  <bruno@clisp.org>
26642
26643         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26644         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26645         commands, because some shells ignore redirections when there is an
26646         error in the command lookup.
26647         Reported by Eric Blake.
26648
26649 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26650
26651         * lib/regex.h: Fix a mention of `regex_compile' (should be
26652         `re_compile_pattern').
26653         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26654         (re_set_registers): Correct name of parameter in comment.
26655
26656         * doc/regex.texi: Add documentation for missing syntax flags.
26657         Remove commented-out documentation of defunct syntax option
26658         RE_NO_EMPTY_ALTS.
26659         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26660         Add documentation of re_set_registers.
26661         Document trick to re-use a pattern buffer by setting fastmap manually.
26662         Update documentation of struct re_pattern_buffer per public members.
26663         Uncomment documentation of equivalence class operators and
26664         collating symbol operators, since they are now implemented,
26665         Explain leftmost-longest matching in relation to alternatives.
26666         Tidy documentation of substring matching.
26667         Remove POSIX documentation, which is done better in
26668         glibc, and refer the reader there. Keep BSD API documentation, as
26669         that is not readily available elsewhere.
26670
26671 2010-09-07  Eric Blake  <eblake@redhat.com>
26672
26673         getopt: handle POSIXLY_CORRECT set but not exported
26674         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26675         export state of POSIXLY_CORRECT, due to bash set -o posix.
26676         Reported by Dustin J. Mitchell.
26677
26678 2010-09-05  Bruno Haible  <bruno@clisp.org>
26679
26680         gnulib-tool: Highlight the changed options.
26681         * gnulib-tool (func_usage): Display the --import, --add-import,
26682         --remove-import explanations in bold font.
26683
26684 2010-09-06  Karl Berry  <karl@gnu.org>
26685
26686         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26687
26688 2010-09-05  Bruno Haible  <bruno@clisp.org>
26689
26690         uniwidth/width: Update comment.
26691         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26692         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26693
26694 2010-09-05  Bruno Haible  <bruno@clisp.org>
26695
26696         isinf, isnan: Relax license.
26697         * modules/isinf (License): Change from GPL to LGPL, with consent from
26698         Ben Pfaff.
26699         * modules/isnan (License): Likewise.
26700         Requested by Ludovic Courtès.
26701
26702 2010-09-04  Bruno Haible  <bruno@clisp.org>
26703
26704         gnulib-tool: Help migration from --import to --add-import or --update.
26705         * gnulib-tool: Emit a verbose error message when --import is used
26706         without any module name.
26707
26708 2010-09-04  Bruno Haible  <bruno@clisp.org>
26709
26710         Update doc about gnulib-tool.
26711         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26712         'gnulib-tool --update' in more detail.
26713         Reported by Eric Blake.
26714
26715 2010-09-04  Bruno Haible  <bruno@clisp.org>
26716
26717         gnulib-tool: Change --import. New options --add/remove-import.
26718         * gnulib-tool: New options --add-import, --remove-import.
26719         (func_usage): Document them.
26720         (have_associative): Define always.
26721         (func_import): In import mode, don't merge the specified settings with
26722         the cached settings. Implement remove-import mode.
26723         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26724         Explain when to use them versus --import.
26725         (Simple update): Use --add-import instead of --import.
26726         * NEWS: Mention the change.
26727
26728 2010-09-04  Bruno Haible  <bruno@clisp.org>
26729
26730         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26731         separate gnulib.mk.
26732
26733 2010-09-04  Bruno Haible  <bruno@clisp.org>
26734
26735         gnulib-tool: Don't talk about CVS any more.
26736         * gnulib-tool (func_usage, func_import): Write "version control"
26737         instead of CVS.
26738
26739 2010-09-04  Jim Meyering  <meyering@redhat.com>
26740
26741         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26742         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26743         false positives (whose names may be ill-chosen) when searching
26744         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26745         would cause a false-positive.
26746
26747         avoid coreutils "make distcheck" failure
26748         Coreutils tests with an absolute build directory name that contains
26749         a space.  Not quoting this directory name caused a failure.
26750         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26751         * tests/test-vc-list-files-cvs.sh: Likewise.
26752
26753 2010-09-04  Bruno Haible  <bruno@clisp.org>
26754
26755         gnulib-tool: Avoid error when run in a package without Makefile.am.
26756         * gnulib-tool: When collecting the m4dirs in a package that does not
26757         have a Makefile.am, eliminate those directories that contain no
26758         gnulib-cache.m4. Fix expression that counts these directories.
26759
26760 2010-09-04  Bruno Haible  <bruno@clisp.org>
26761
26762         update-copyright test: Improve output when perl is missing or too old.
26763         * tests/test-update-copyright.sh: Move test of Perl version down after
26764         the test whether Perl exists. Provide an explanation relating Perl's
26765         error message to Automake's SKIP: message.
26766
26767 2010-09-04  Bruno Haible  <bruno@clisp.org>
26768
26769         Don't augment PATH in TESTS_ENVIRONMENT.
26770         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26771         set abs_aux_dir instead of augmenting PATH.
26772         * modules/vc-list-files-tests (Makefile.am): Likewise.
26773         * tests/test-update-copyright.sh: Augment PATH here.
26774         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26775         path_prepend_.
26776         * tests/test-vc-list-files-git.sh: Likewise.
26777
26778 2010-09-04  Jim Meyering  <meyering@redhat.com>
26779
26780         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26781         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26782
26783 2010-09-04  Bruno Haible  <bruno@clisp.org>
26784
26785         strdup: Fix compilation error in C++ mode.
26786         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26787         the macro.
26788
26789 2010-09-04  Bruno Haible  <bruno@clisp.org>
26790
26791         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26792         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26793         macro into a function.
26794         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26795
26796 2010-09-04  Bruno Haible  <bruno@clisp.org>
26797
26798         Set PATH_SEPARATOR the same way autoconf does.
26799         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26800         the value of PATH_SEPARATOR the same way autoconf-generated configure
26801         scripts do.
26802         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26803         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26804
26805 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26806
26807         Set PATH_SEPARATOR the same way autoconf does.
26808         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26809         the same way autoconf-generated configure scripts do.
26810         * posix-modules: Likewise.
26811
26812 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26813
26814         hash: fix safe_hasher const typo
26815         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26816         const; otherwise, there is a type error later.
26817
26818 2010-09-02  Jim Meyering  <meyering@redhat.com>
26819
26820         test-update-copyright.sh: require perl 5.8.0
26821         * tests/test-update-copyright.sh: Require 5.8.0,
26822         which Tom G. Christensen has confirmed is adequate,
26823         while 5.6.1 is not.
26824
26825 2010-09-02  Eric Blake  <eblake@redhat.com>
26826
26827         tests: init.sh improvements for re-exec'ing with zsh
26828         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26829         -vx through shell re-exec.
26830         Reported by Tom G. Christensen.
26831
26832         wctype: fix typo in previous commit
26833         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26834         Reported by Ludovic Courtès.
26835
26836 2010-09-02  Jim Meyering  <meyering@redhat.com>
26837
26838         test-update-copyright.sh: skip test if Perl is too old
26839         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26840         Reported by Tom G. Christensen.
26841
26842 2010-09-02  Bruno Haible  <bruno@clisp.org>
26843
26844         wctype: Avoid compilation error on IRIX 6.5.30.
26845         * lib/wctype.in.h (iswblank): Declare with a replacement if
26846         REPLACE_ISWBLANK is set.
26847         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26848         declared. Set REPLACE_ISWBLANK.
26849         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26850         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26851         * doc/posix-headers/wctype.texi: Likewise.
26852         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26853
26854 2010-09-01  Bruno Haible  <bruno@clisp.org>
26855
26856         New module 'socketlib'.
26857         * modules/socketlib: New file.
26858         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26859         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26860         * modules/sockets (Depends-on): Add socketlib.
26861         Suggested by Sam Steingold <sds@gnu.org>.
26862
26863 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26864
26865         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26866
26867         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26868         when one needs search access to a directory but not read access.
26869         On systems where it is available, it works in some cases where
26870         O_RDONLY does not, namely on directories that are searchable but
26871         not readable, and which need only to be searchable.  If O_SEARCH
26872         is not available, fall back to the traditional method of using
26873         O_RDONLY.
26874
26875         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26876         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26877         when opening a directory that needs only to be searchable.
26878         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26879         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26880         * lib/openat-proc.c (openat_proc_name): Likewise.
26881         * lib/openat.c (openat_needs_fchdir): Likewise.
26882         * lib/save-cwd.c (save_cwd): Likewise.
26883         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26884
26885 2010-08-28  Bruno Haible  <bruno@clisp.org>
26886
26887         New module 'host-cpu-c-abi'.
26888         * modules/host-cpu-c-abi: New file.
26889         * m4/host-cpu-c-abi.m4: New file, based on part of
26890         clisp/src/m4/general.m4.
26891         Requested by Sam Steingold <sds@gnu.org>.
26892
26893 2010-08-31  Eric Blake  <eblake@redhat.com>
26894         and Jim Meyering  <meyering@redhat.com>
26895
26896         hash: factor, and guard against misbehaving hasher function
26897         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26898         of table->hasher's return value.  Also protect against a hash value
26899         so large that adding it to table->bucket results in a NULL pointer.
26900         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26901         Use it in place of open-coded check-and-abort.
26902
26903 2010-08-30  Bruno Haible  <bruno@clisp.org>
26904
26905         hash: silence spurious clang warning
26906         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26907         Reported by Eric Blake.
26908
26909 2010-08-30  Eric Blake  <eblake@redhat.com>
26910
26911         strstr, memmem, strcasestr: avoid leaked shell message
26912         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26913         FreeBSD.
26914         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26915         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26916
26917         tests: silence clang warning
26918         * tests/test-malloca.c (do_allocation): Avoid dead store.
26919
26920 2010-08-29  Bruno Haible  <bruno@clisp.org>
26921
26922         gettext: Fix recent mistake.
26923         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26924
26925 2010-08-29  Bruno Haible  <bruno@clisp.org>
26926
26927         selinux-h: Offer a --without-selinux option.
26928         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26929         --without-selinux was specified, skip all tests and define
26930         HAVE_SELINUX_SELINUX_H to 0.
26931         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26932         set LIB_SELINUX to empty.
26933         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26934         gl_LIBSELINUX. If --without-selinux was specified, replace
26935         selinux/context.h.
26936         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26937
26938 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26939             Bruno Haible  <bruno@clisp.org>
26940
26941         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26942         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26943         of HAVE_REALLOC.
26944         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26945         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26946         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26947         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26948
26949 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26950             Bruno Haible  <bruno@clisp.org>
26951
26952         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26953         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26954         HAVE_CALLOC.
26955         * lib/xmalloc.c: Update accordingly.
26956         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26957         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26958         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26959
26960 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26961             Bruno Haible  <bruno@clisp.org>
26962
26963         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26964         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26965         HAVE_MALLOC.
26966         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26967         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26968         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26969
26970 2010-08-29  Bruno Haible  <bruno@clisp.org>
26971
26972         Update modules list.
26973         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26974         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26975         (String handling <string.h>): Add astrxfrm.
26976         (File system functions): Add readlinkat.
26977
26978 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26979
26980         Tests for module 'realloc-gnu'.
26981         * modules/realloc-gnu-tests: New file.
26982         * tests/test-realloc-gnu.c: New file.
26983
26984         Tests for module 'calloc-gnu'.
26985         * modules/calloc-gnu-tests: New file.
26986         * tests/test-calloc-gnu.c: New file.
26987
26988         Tests for module 'malloc-gnu'.
26989         * modules/malloc-gnu-tests: New file.
26990         * tests/test-malloc-gnu.c: New file.
26991
26992 2010-08-28  Bruno Haible  <bruno@clisp.org>
26993
26994         Rename module 'realloc' -> 'realloc-gnu'.
26995         * modules/realloc-gnu: New file, copied from modules/realloc.
26996         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26997         obsolete.
26998         * modules/mgetgroups (Depends-on): Update.
26999         * doc/posix-functions/realloc.texi: Update.
27000         * NEWS: Mention the change.
27001
27002         Rename module 'calloc' -> 'calloc-gnu'.
27003         * modules/calloc-gnu: New file, copied from modules/calloc.
27004         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
27005         obsolete.
27006         * doc/posix-functions/calloc.texi: Update.
27007         * NEWS: Mention the change.
27008
27009         Rename module 'malloc' -> 'malloc-gnu'.
27010         * modules/malloc-gnu: New file, copied from modules/malloc.
27011         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
27012         obsolete.
27013         * modules/argp (Depends-on): Update.
27014         * modules/regex (Depends-on): Update.
27015         * doc/posix-functions/malloc.texi: Update.
27016         * NEWS: Mention the change.
27017
27018 2010-08-28  Eric Blake  <eblake@redhat.com>
27019
27020         pread, pwrite: add missing dependency
27021         * modules/pread (Depends-on): Add extensions.
27022         * modules/pwrite (Depends-on): Likewise.
27023
27024 2010-08-28  Bruno Haible  <bruno@clisp.org>
27025
27026         unistr/u*-strchr: Fix tests dependencies.
27027         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
27028         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
27029         Reported by Ian Beckwith <ianb@erislabs.net>.
27030
27031 2010-08-28  Bruno Haible  <bruno@clisp.org>
27032
27033         read-file: Don't occupy too much unused memory.
27034         * lib/read-file.c (fread_file): Shrink the buffer at the end.
27035
27036 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
27037             Eric Blake  <eblake@redhat.com>
27038             Bruno Haible  <bruno@clisp.org>
27039
27040         read-file: Avoid memory reallocations with regular files.
27041         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
27042         (fread_file): With regular files, use the remaining length as the
27043         initial buffer size.  Check against overflow.
27044         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
27045         sys_stat.
27046
27047 2010-08-28  Bruno Haible  <bruno@clisp.org>
27048
27049         ftello: Relax license.
27050         * modules/ftello (License): Relax to LGPLv2+.
27051         Reported by Eric Blake.
27052
27053 2010-08-28  Bruno Haible  <bruno@clisp.org>
27054
27055         Avoid relocwrapper link errors due to gnulib replacement functions.
27056         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
27057         function.
27058         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27059
27060 2010-08-28  Bruno Haible  <bruno@clisp.org>
27061
27062         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
27063         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
27064         defined.
27065         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
27066         Suggested by Eric Blake.
27067
27068 2010-08-28  Bruno Haible  <bruno@clisp.org>
27069
27070         sys_socket, netdb: Ensure socklen_t gets defined.
27071         * modules/sys_socket (Depends-on): Add socklen.
27072         * modules/netdb (Depends-on): Likewise.
27073         * modules/getaddrinfo (Depends-on): Remove socklen.
27074         * modules/getsockopt (Depends-on): Likewise.
27075         * modules/setsockopt (Depends-on): Likewise.
27076         * tests/test-sys_socket.c: Check that socklen_t is defined.
27077         * tests/test-netdb.c: Likewise.
27078         * m4/socklen.m4: Update comments.
27079         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27080
27081 2010-08-27  Eric Blake  <eblake@redhat.com>
27082
27083         login_tty: add missing dependency
27084         * modules/login_tty (Depends-on): Add pty.
27085
27086 2010-08-26  Eric Blake  <eblake@redhat.com>
27087
27088         lib-symbol-versions: fix m4 quoting
27089         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
27090         format for AC_LINK_IFELSE.
27091
27092         glob: fix compile test
27093         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
27094
27095         btowc: fix missing file
27096         * modules/btowc (Files): Also ship locale-fr.m4.
27097
27098         lseek: fix link test
27099         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
27100         AC_LINK_IFELSE.
27101
27102         include_next: silence autoconf 2.68 warning
27103         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
27104         AC_COMPILE_IFELSE as special.
27105         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
27106         autoconf < 2.68.
27107
27108         acl: fix compilation test
27109         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
27110         AC_COMPILE_IFELSE.
27111
27112 2010-08-26  Bruno Haible  <bruno@clisp.org>
27113
27114         Modernize AC_TRY_RUN invocations.
27115         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
27116         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27117         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
27118         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
27119         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
27120         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27121         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27122         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27123         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27124         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27125         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27126         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27127         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27128         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27129         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27130         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27131         gl_MBRLEN_NUL_RETVAL): Likewise.
27132         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27133         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27134         Likewise.
27135         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27136         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27137         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27138         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27139         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
27140         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
27141         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
27142         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
27143         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
27144         Likewise.
27145         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27146         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
27147         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27148         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27149         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27150         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27151         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27152         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
27153         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27154         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27155
27156 2010-08-26  Bruno Haible  <bruno@clisp.org>
27157
27158         Modernize AC_TRY_LINK invocations.
27159         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
27160         AC_TRY_LINK.
27161         * m4/argp.m4 (gl_ARGP): Likewise.
27162         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
27163         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27164         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27165         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27166         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27167         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
27168         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
27169         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
27170         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27171         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
27172         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27173         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
27174         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
27175         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27176         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27177         * m4/hostent.m4 (gl_HOSTENT): Likewise.
27178         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27179         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
27180         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27181         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
27182         Likewise.
27183         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
27184         Likewise.
27185         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
27186         Likewise.
27187         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27188         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
27189         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
27190         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
27191         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
27192         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27193         * m4/servent.m4 (gl_SERVENT): Likewise.
27194         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
27195         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
27196         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
27197         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
27198         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27199         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
27200         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27201         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27202         * modules/tsearch-tests (configure.ac): Likewise.
27203
27204 2010-08-26  Bruno Haible  <bruno@clisp.org>
27205
27206         Modernize AC_TRY_COMPILE invocations.
27207         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
27208         AC_TRY_COMPILE.
27209         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
27210         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
27211         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27212         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
27213         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27214         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27215         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27216         * m4/lock.m4 (gl_LOCK): Likewise.
27217         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
27218         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27219         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
27220         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27221         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27222         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
27223         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27224         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
27225         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27226         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27227         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27228         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27229         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
27230         extraneous semicolon.
27231
27232 2010-08-26  Jim Meyering  <meyering@redhat.com>
27233
27234         stat-time: relax license LGPL
27235         * modules/stat-time (License): Change from GPL to LGPL,
27236         with consent from all contributors, for use in libguile.
27237         Requested by Ludovic Courtès.
27238
27239 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
27240
27241         poll: return immediately on POLLHUP.
27242         * lib/poll.c (poll): Always set timeout before wait_timeout is
27243         computed.
27244
27245 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27246
27247         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
27248         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
27249         rmdir ("dir/.//"), unlinkat.
27250
27251 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27252
27253         stdbool: avoid spurious failure with modern xlc
27254         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27255
27256 2010-08-24  Bruno Haible  <bruno@clisp.org>
27257
27258         getloadavg: simplify code
27259         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
27260         gl_have_func. Update comments.
27261
27262 2010-08-24  Eric Blake  <eblake@redhat.com>
27263
27264         getloadavg: don't define SVR4 on cygwin
27265         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
27266         only define SVR4 when -lkvm is required.
27267         Reported by Yaakov Selkowitz.
27268
27269 2010-08-24  Bruno Haible  <bruno@clisp.org>
27270
27271         priv-set: fix comment
27272         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
27273
27274 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27275
27276         priv-set: fix comments
27277         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
27278         to match code, as suggested by David Bartley in:
27279         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
27280
27281 2010-08-23  Eric Blake  <eblake@redhat.com>
27282
27283         stdbool: avoid rejecting clang
27284         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27285         * tests/test-stdbool.c: Enable more tests if using the system
27286         <stdbool.h> instead of the gnulib replacement.
27287         (main): Move xlc bug test to a runtime test for all compilers.
27288         Reported by Anders Kaseorg.
27289
27290         argz: fix shell quoting issue
27291         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
27292         Reported by Charles Wilson.
27293
27294 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
27295             Erik Faye-Lund <kusmabite@gmail.com>
27296
27297         poll, select: handle ERROR_BROKEN_PIPE.
27298         * lib/poll.c (win32_compute_revents): Return POLLHUP when
27299         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27300         * lib/select.c (win32_compute_revents): Do not mark a pipe
27301         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27302
27303 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
27304
27305         fts: allow compilation with C++
27306         * lib/fts_.h: Specify extern "C" linkage with C++.
27307
27308 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27309
27310         Fix gnulib-tool sed script de-commentation for AIX sed.
27311         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
27312         sed.
27313
27314 2010-08-17  Eric Blake  <eblake@redhat.com>
27315
27316         test-stddef: test for (some) offsetof bugs
27317         * tests/test-stddef.c: Enhance test to ensure correct type of
27318         offsetof.
27319         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
27320         that we are not fixing at this time.
27321
27322 2010-08-15  Bruno Haible  <bruno@clisp.org>
27323
27324         stpncpy: Allow stpncpy to be defined as a macro.
27325         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
27326         if it's already correctly declared.
27327         * lib/string.in.h (stpncpy): Undefine before redefining.
27328         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
27329
27330 2010-08-14  Bruno Haible  <bruno@clisp.org>
27331
27332         Rename module 'memxfrm' to 'amemxfrm'.
27333         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
27334         (amemxfrm): Renamed from memxfrm.
27335         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
27336         (amemxfrm): Renamed from memxfrm.
27337         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
27338         * NEWS: Mention the change.
27339         * MODULES.html.sh (String handling <string.h>): Update.
27340         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
27341         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
27342         * lib/unicase/u16-casexfrm.c: Likewise.
27343         * lib/unicase/u32-casexfrm.c: Likewise.
27344         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
27345         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
27346         * lib/uninorm/u16-normxfrm.c: Likewise.
27347         * lib/uninorm/u32-normxfrm.c: Likewise.
27348         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
27349         memxfrm.
27350         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
27351         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
27352         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
27353         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
27354         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
27355         Suggested by Paul Eggert.
27356
27357 2010-08-14  Bruno Haible  <bruno@clisp.org>
27358
27359         Tests for module 'astrxfrm'.
27360         * modules/astrxfrm-tests: New file.
27361         * tests/test-astrxfrm.c: New file.
27362
27363         New module 'astrxfrm'.
27364         * lib/astrxfrm.h: New file.
27365         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
27366         * modules/astrxfrm: New file.
27367
27368 2010-08-14  Reuben Thomas <rrt@sc3d.org>
27369
27370         regex: Tweak doc.
27371         * doc/regex.texi (Overview): Don't mention regex.c.
27372         (GNU Regular Expression Compiling): Likewise.
27373         (Match-end-of-line Operator): Mention 'not_eol'.
27374
27375 2010-08-14  Brian Gough  <bjg@gnu.org>
27376             Bruno Haible  <bruno@clisp.org>
27377
27378         git-merge-changelog: add doc relating to use with bzr and hg.
27379         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
27380
27381 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
27382
27383         pthread: fix pthread.h creation for srcdir != builddir
27384         * modules/pthread (Makefile.am): Fix the rule to work also in a
27385         non-srcdir build.
27386
27387 2010-08-13  Karl Berry  <karl@gnu.org>
27388
27389         * doc/regex.texi (Predefined Syntaxes): @smallexample.
27390         * doc/posix-*/*: force line break before @url of POSIX
27391         specifications.
27392         Suggested by Werner Lemberg.
27393
27394 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
27395
27396         strtod: fix const diagnostic
27397         * lib/strtod.c (strtod): Don't assign const char * to char *,
27398         as this elicits a warning from GCC when warnings are enabled.
27399
27400 2010-08-10  Pádraig Brady <P@draigbrady.com>
27401         and Eric Blake  <eblake@redhat.com>
27402
27403         copy-acl: ignore ENOTSUP on HP-UX
27404         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
27405         so that it is available for HP-UX.
27406         * lib/copy-acl.c (qcopy_acl): Use it.
27407         Reported by Patrick M. Callahan.
27408
27409 2010-08-10  Eric Blake  <eblake@redhat.com>
27410
27411         open, chown: relax license
27412         * modules/open (License): Change to LGPLv2+, with consent by all
27413         authors, for use in augeas.
27414         * modules/chown (License): Likewise.
27415         * modules/lchown (Likewise): Likewise.
27416         Requested by Adam Stokes.
27417
27418 2010-08-09  Karl Berry  <karl@gnu.org>
27419
27420         * build-aux/ar-lib: new file, import from Automake.
27421         * config/srclist.txt: autocheck for updates.
27422
27423 2010-08-09  Eric Blake  <eblake@redhat.com>
27424
27425         readlinkat: adjust client modules
27426         * modules/areadlinkat (Depends-on): Use readlinkat, not
27427         symlinkat.
27428         * modules/areadlinkat-with-size (Depends-on): Likewise.
27429
27430         mknod: be more vocal about danger of running tests as root
27431         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
27432         root, since that is just asking for problems.
27433         Suggested by Bruno Haible, based on a report by Rainer Tammer.
27434
27435         readlinkat: split into its own module
27436         * modules/symlinkat: Split readlinkat...
27437         * modules/readlinkat: ...into separate module.
27438         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
27439         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
27440         * lib/symlinkat.c (readlinkat): Move...
27441         * lib/readlinkat.c: ...into new file.
27442         * modules/symlinkat-tests: Split readlinkat test...
27443         * modules/readlinkat-tests: ...into separate module.
27444         * tests/test-symlinkat.c: Split...
27445         * tests/test-readlinkat.c: ...into new file.
27446         * NEWS: Document the split.
27447         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27448         * lib/unistd.in.h (readlinkat): Likewise.
27449         Suggested by Bruno Haible.
27450
27451 2010-08-08  Bruno Haible  <bruno@clisp.org>
27452
27453         memxfrm: Speed up.
27454         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
27455         that usually only one call to strxfrm is necessary for each string
27456         part.
27457         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27458
27459 2010-08-07  Karl Berry  <karl@gnu.org>
27460
27461         * doc/posix-headers/limits.texi,
27462         * doc/posix-functions/malloc.texi,
27463         * doc/posix-functions/strsignal.texi: missing @item.
27464         * doc/ld-version-script.texi: spurious leading i.
27465         * doc/regex.texi (Interval Operators): no commas inside @var.
27466
27467 2010-08-01  Bruno Haible  <bruno@clisp.org>
27468
27469         Integrate the regex documentation.
27470         * doc/gnulib.texi: Define 'cn' index.
27471         (Regular expressions): New a chapter that includes regex.texi and
27472         regexprops-generic.texi.
27473         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
27474         syntax.
27475
27476         Whitespace cleanup.
27477         * doc/regex.texi: Remove trailing spaces.
27478
27479         Add regex documentation.
27480         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
27481         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
27482         Written by Kathy A. Hargreaves and Karl Berry.
27483
27484 2010-08-01  Bruno Haible  <bruno@clisp.org>
27485
27486         link: Update documentation.
27487         * doc/posix-functions/link.texi: Update regarding Solaris.
27488
27489 2010-07-31  Bruno Haible  <bruno@clisp.org>
27490
27491         Update modules list.
27492         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
27493         (String handling <string.h>): Add memcmp2, memxfrm.
27494         (Container data structures): Add xlist, xsublist, xoset.
27495         (Core language properties): Add alignof, unused-parameter.
27496         (Process control, Numeric conversion functions <stdlib.h>): Renamed
27497         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
27498         (Unibyte characters <ctype.h>): New section.
27499         (String handling <string.h>): New section.
27500         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
27501         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
27502         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
27503         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
27504         tan, tanh, tanl, y0, y1, yn.
27505         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
27506         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
27507         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
27508         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
27509         unlockpt, vdprintf, vdprintf-posix.
27510         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
27511         (File system functions): Add concat-filename, sys_file, sys_ioctl,
27512         xconcat-filename.
27513         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
27514         getdtablesize, pipe2, pipe2-safer.
27515         (Security): New section.
27516         (Networking functions): Add accept4.
27517         (Signal handling): Add sigpipe.
27518         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
27519         mbmemcasecoll.
27520         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
27521         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
27522         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
27523         pipe-filter-ii.
27524         (Misc): Add argp-version-etc, login_tty, parse-duration.
27525
27526 2010-07-31  Bruno Haible  <bruno@clisp.org>
27527
27528         Improve doc in MODULES.html.
27529         * modules/linkat (Description): Add the word "function".
27530         * modules/mkfifo (Description): Likewise.
27531         * modules/mknod (Description): Likewise.
27532         * modules/remove (Description): Likewise.
27533         * modules/renameat (Description): Likewise.
27534         * modules/stat (Description): Likewise.
27535         * modules/symlink (Description): Likewise.
27536         * modules/unlink (Description): Likewise.
27537
27538 2010-07-31  Bruno Haible  <bruno@clisp.org>
27539
27540         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
27541         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
27542         option --enable/disable-c++ instead of --enable/disable-cxx.
27543         * NEWS: Mention the change.
27544
27545 2010-07-31  Bruno Haible  <bruno@clisp.org>
27546
27547         readlink, areadlink: Relax test a bit.
27548         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
27549         alternative to ENOTDIR.
27550         * tests/test-areadlink.h (test_areadlink): Likewise.
27551         Reported by Rainer Tammer.
27552
27553 2010-07-31  Bruno Haible  <bruno@clisp.org>
27554
27555         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
27556         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27557         character, perform the search using U_STRCHR.
27558         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27559         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27560         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27561         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27562         Suggested by Paolo Bonzini.
27563
27564 2010-07-31  Bruno Haible  <bruno@clisp.org>
27565
27566         unistr/u*-strstr: Fix dependencies.
27567         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27568         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27569         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27570
27571 2010-07-31  Bruno Haible  <bruno@clisp.org>
27572
27573         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27574         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27575         the beginning of the loop.
27576         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27577         cases in 'switch' statement.
27578
27579         unistr/u8-strchr: Fix several bugs.
27580         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27581         the string. When not found, return NULL, not a pointer near the end.
27582
27583         More tests for unistr/u8-strchr.
27584         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27585         that the function does not read past the first occurrence of the byte
27586         being searched.
27587         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27588         * tests/unistr/test-u16-strchr.c (main): New function.
27589         * tests/unistr/test-u32-strchr.c (main): New function.
27590
27591 2010-07-31  Bruno Haible  <bruno@clisp.org>
27592
27593         posix-modules: Ignore backup files of documentation files.
27594         * posix-modules: grep only through files named *.texi.
27595
27596 2010-07-31  Bruno Haible  <bruno@clisp.org>
27597
27598         symlinkat: Fix documentation.
27599         * doc/posix-functions/readlinkat.texi: Fix module name.
27600
27601 2010-07-31  Bruno Haible  <bruno@clisp.org>
27602
27603         fchownat: Replace also when chown has the trailing slash bug.
27604         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27605         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27606         introduced on 2010-04-10.
27607         Reported by Rainer Tammer.
27608
27609 2010-07-31  Bruno Haible  <bruno@clisp.org>
27610
27611         linkat: Work around AIX 7.1 bug.
27612         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27613         whether linkat handles trailing slash correctly. If not, replace linkat
27614         and define LINKAT_TRAILING_SLASH_BUG.
27615         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27616         check whether (fd1,file1) points to a directory if file1 or file2 ends
27617         in a slash. Code taken from lib/link.c.
27618         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27619         Reported by Rainer Tammer.
27620
27621 2010-07-31  Bruno Haible  <bruno@clisp.org>
27622
27623         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27624         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27625         This disables an xlc optimization that was causing wrong test results.
27626         Reported by Rainer Tammer.
27627
27628 2010-07-31  Bruno Haible  <bruno@clisp.org>
27629
27630         iconv: Work around AIX 6.1..7.1 bug.
27631         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27632         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27633         cross-compiling, guess no on all versions of AIX.
27634         Reported by Rainer Tammer.
27635
27636 2010-07-31  Bruno Haible  <bruno@clisp.org>
27637
27638         readlink: Relax test a bit.
27639         * tests/test-readlink.h (test_readlink): Allow different errno value
27640         when readlink is called with a file name that ends in / and refers to
27641         a file.
27642         Suggested by Eric Blake.
27643         Reported by Rainer Tammer.
27644
27645 2010-07-31  Bruno Haible  <bruno@clisp.org>
27646
27647         copysign: Does not require -lm on glibc systems.
27648         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27649         gl_COMMON_DOUBLE_MATHFUNC.
27650         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27651
27652 2010-07-31  Bruno Haible  <bruno@clisp.org>
27653
27654         duplocale: Work around AIX 7.1 bug.
27655         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27656         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27657         * lib/duplocale.c (rpl_duplocale): Update comment.
27658         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27659         Reported by Rainer Tammer.
27660
27661 2010-07-30  Bruno Haible  <bruno@clisp.org>
27662
27663         dirfd: Avoid link error on AIX 7.1.
27664         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27665         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27666         exist, set REPLACE_DIRFD.
27667         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27668         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27669         * doc/posix-functions/dirfd.texi: Update.
27670         Reported by Rainer Tammer.
27671
27672 2010-07-30  Eric Blake  <eblake@redhat.com>
27673
27674         strtod: next round of AIX fixes
27675         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27676         exponent.
27677         * tests/test-strtod.c (main): Enhance tests.
27678         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27679         Reported by Rainer Tammer.
27680
27681         futimens: fix configure check
27682         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27683         Reported by Bruno Haible.
27684
27685 2010-07-30  Bruno Haible  <bruno@clisp.org>
27686
27687         getline: Update regarding AIX.
27688         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27689         Reported by Rainer Tammer.
27690
27691 2010-07-30  Bruno Haible  <bruno@clisp.org>
27692
27693         wcwidth: Drop replacement on AIX 7.
27694         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27695         AIX 7.
27696         Reported by Rainer Tammer.
27697
27698 2010-07-30  Bruno Haible  <bruno@clisp.org>
27699
27700         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27701         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27702         a 'char *'.
27703         Reported by Rainer Tammer.
27704
27705 2010-07-30  Bruno Haible  <bruno@clisp.org>
27706
27707         unlink: Update regarding AIX.
27708         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27709         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27710         Reported by Rainer Tammer.
27711
27712 2010-07-30  Bruno Haible  <bruno@clisp.org>
27713
27714         symlink: Update regarding AIX.
27715         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27716         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27717         Reported by Rainer Tammer.
27718
27719 2010-07-30  Bruno Haible  <bruno@clisp.org>
27720
27721         strndup: Update regarding AIX.
27722         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27723         AIX 7.
27724         Reported by Rainer Tammer.
27725
27726 2010-07-30  Bruno Haible  <bruno@clisp.org>
27727
27728         stat: Update regarding AIX.
27729         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27730         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27731         Reported by Rainer Tammer.
27732
27733 2010-07-30  Bruno Haible  <bruno@clisp.org>
27734
27735         truncl: Fix autoconf test.
27736         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27737         whether truncl works.
27738         Reported by Rainer Tammer.
27739
27740 2010-07-30  Bruno Haible  <bruno@clisp.org>
27741
27742         round: Update regarding AIX.
27743         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27744         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27745         Reported by Rainer Tammer.
27746
27747 2010-07-30  Bruno Haible  <bruno@clisp.org>
27748
27749         rename: Update regarding AIX.
27750         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27751         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27752         Reported by Rainer Tammer.
27753
27754 2010-07-30  Bruno Haible  <bruno@clisp.org>
27755
27756         printf.m4: Update regarding AIX.
27757         * m4/printf.m4: Update comments regarding AIX.
27758         Reported by Rainer Tammer.
27759
27760 2010-07-30  Bruno Haible  <bruno@clisp.org>
27761
27762         iconv: Update regarding AIX.
27763         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27764         AIX 7.
27765         Reported by Rainer Tammer.
27766
27767 2010-07-30  Bruno Haible  <bruno@clisp.org>
27768
27769         getopt: Update regarding AIX.
27770         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27771         no on AIX.
27772         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27773         Reported by Rainer Tammer.
27774
27775 2010-07-30  Bruno Haible  <bruno@clisp.org>
27776
27777         ldexpl; Update regarding AIX.
27778         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27779         on AIX 7.
27780         Reported by Rainer Tammer.
27781
27782 2010-07-30  Bruno Haible  <bruno@clisp.org>
27783
27784         frexpl: Update regarding AIX.
27785         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27786         on AIX 7.
27787         Reported by Rainer Tammer.
27788
27789 2010-07-30  Bruno Haible  <bruno@clisp.org>
27790
27791         open, fopen: Update regarding AIX.
27792         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27793         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27794         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27795         * doc/posix-functions/fopen.texi: Likewise.
27796         Reported by Rainer Tammer.
27797
27798 2010-07-30  Bruno Haible  <bruno@clisp.org>
27799
27800         chown: Update doc regarding AIX.
27801         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27802         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27803         Reported by Rainer Tammer.
27804
27805 2010-07-30  Eric Blake  <eblake@redhat.com>
27806
27807         strtod: fix bug in replacement function on AIX
27808         * lib/strtod.c (strtod): Special case broken "0x" parse in
27809         underlying strtod.
27810         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27811         * doc/posix-functions/strtod.texi (strtod): Likewise.
27812         Reported by Rainer Tammer.
27813
27814 2010-07-30  Bruno Haible  <bruno@clisp.org>
27815
27816         mbrlen: Fix cross-compilation guess for AIX.
27817         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27818         guess. Leftover from 2008-12-22.
27819
27820 2010-07-30  Bruno Haible  <bruno@clisp.org>
27821
27822         mbrtowc: Fix cross-compilation guess for AIX.
27823         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27824         guess. Leftover from 2008-12-21.
27825
27826 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27827
27828         init.sh: work around trap limitation of some shells
27829         * tests/init.sh (setup_): Move exit trap outside of shell function.
27830
27831 2010-07-29  Eric Blake  <eblake@redhat.com>
27832
27833         strtod: aid debugging
27834         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27835         understanding why strtod is rejected.
27836
27837 2010-07-28  Bruno Haible  <bruno@clisp.org>
27838
27839         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27840         * lib/unistr/u8-chr.c: Include <string.h>.
27841         * tests/unistr/test-u8-chr.c: Likewise.
27842         * tests/unistr/test-u16-chr.c: Likewise.
27843         * tests/unistr/test-u32-chr.c: Likewise.
27844         * tests/unistr/test-u8-strchr.c: Likewise.
27845         * tests/unistr/test-u16-strchr.c: Likewise.
27846         * tests/unistr/test-u32-strchr.c: Likewise.
27847         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27848         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27849         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27850         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27851
27852 2010-07-28  Bruno Haible  <bruno@clisp.org>
27853
27854         Use spaces for indentation, not tabs.
27855         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27856
27857 2010-07-27  Bruno Haible  <bruno@clisp.org>
27858
27859         mbspcasecmp: Fix function specification.
27860         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27861         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27862         Reported by Eric Blake <eblake@redhat.com>.
27863
27864 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27865
27866         timespec: use cast and not conditional, as truncation isn't possible
27867         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27868         instead of a conditional.  Comment about the situation in more detail.
27869         This undoes most of the 2009-10-29 patch.
27870
27871 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27872
27873         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27874         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27875         * lib/unistr/u8-strchr.c: Likewise.
27876         * modules/unistr/u8-chr: Depend on memchr.
27877
27878         unistr/u*-strchr: add tests
27879         * modules/unistr/u8-strchr-tests: New file.
27880         * modules/unistr/u16-strchr-tests: New file.
27881         * modules/unistr/u32-strchr-tests: New file.
27882         * tests/unistr/test-strchr.h: New file.
27883         * tests/unistr/test-u8-strchr.c: New file.
27884         * tests/unistr/test-u16-strchr.c: New file.
27885         * tests/unistr/test-u32-strchr.c: New file.
27886
27887         unistr/u*-chr: test multibyte sequences more
27888         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27889         test vector.
27890         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27891         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27892         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27893
27894         unistr/u*-chr: test multibyte sequences
27895         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27896
27897         unistr/u*-chr: prepare for multibyte tests
27898         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27899         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27900         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27901         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27902         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27903         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27904
27905 2010-07-18  Bruno Haible  <bruno@clisp.org>
27906
27907         unistr/u8-strchr: Optimize non-ASCII argument case.
27908         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27909         because the first byte often matches anyway.
27910         Reported by Pádraig Brady <P@draigbrady.com>.
27911
27912 2010-07-15  Karl Berry  <karl@gnu.org>
27913
27914         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27915
27916 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27917
27918         getcwd: on Solaris, work better if ancestors are inaccessible
27919         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27920         buffer and size, try again with a large buffer.  This works better
27921         on Solaris, since its getcwd succeeds even if the path to the root
27922         is inaccessible, and this is helpful in common cases such as .zfs
27923         hidden directories.  Problem reported by J Chapman Flack in
27924         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27925         Use system getcwd if it's declared, not merely if it's partly
27926         working; use the partly-working test only to avoid needless effort
27927         if the system getcwd fails.
27928         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27929         comment that was already obsolete and is now even more obsolete.
27930         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27931         now might call strdup.
27932
27933 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27934
27935         pthread: Add enough so that coreutils/src/sort.c compiles.
27936         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27937         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27938         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27939         Include <sys/types.h>, in case it defines pthread_t.
27940         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27941         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27942         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27943         (pthread_rwlockattr_t, pthread_spinlock_t):
27944         New typedefs, if HAVE_PTHREAD_T is not defined.
27945         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27946         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27947         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27948         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27949         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27950         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27951         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27952         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27953         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27954         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27955         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27956         New macros.
27957         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27958         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27959         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27960         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27961         (pthread_spin_unlock): New dummy functions.
27962         (pthread_create): Return EAGAIN; don't set errno.
27963         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27964         require AC_C_INLINE.
27965         * modules/pthread (Depends-on): Add sched, time.
27966         (pthread.h): Use AM_V_GEN.
27967
27968 2010-07-13  Bruno Haible  <bruno@clisp.org>
27969
27970         striconveh: Don't malloc memory if the result buffer is sufficient.
27971         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27972         buffer if its size is sufficient.
27973         Reported by Ludovic Courtès <ludo@gnu.org>.
27974
27975 2010-07-13  Bruno Haible  <bruno@clisp.org>
27976
27977         strtod: Add safety check.
27978         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27979
27980 2010-07-12  Bruno Haible  <bruno@clisp.org>
27981
27982         Unify tests that set gl_cv_func_ldexpl_no_libm.
27983         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27984         gl_FUNC_LDEXPL.
27985         (gl_FUNC_LDEXPL): Invoke it.
27986         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27987
27988 2010-07-12  Bruno Haible  <bruno@clisp.org>
27989
27990         Unify tests that set gl_cv_func_ldexp_no_libm.
27991         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27992         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27993         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27994         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27995         * modules/strtod (Files): Add m4/ldexp.m4.
27996
27997 2010-07-12  Bruno Haible  <bruno@clisp.org>
27998
27999         Unify tests that set gl_cv_func_frexpl_no_libm.
28000         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
28001         gl_FUNC_FREXPL_NO_LIBM.
28002         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
28003         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28004
28005 2010-07-12  Bruno Haible  <bruno@clisp.org>
28006
28007         Unify tests that set gl_cv_func_frexp_no_libm.
28008         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
28009         gl_FUNC_FREXP_NO_LIBM.
28010         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
28011         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28012
28013 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28014
28015         memcoll: clarify sizes versus lengths, document better, and tweak perf
28016         * lib/memcoll.c (strcoll_loop, memcoll0):
28017         Improve quality of descriptive comments.  Name variables
28018         consistently as to whether they are lengths (which do not include
28019         terminating null) versus sizes (which do).
28020         * lib/xmemcoll.c (xmemcoll0): Likewise.
28021         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
28022         returned when s1size == 0; this is easier to compile and saves
28023         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
28024
28025 2010-07-12  Bruno Haible  <bruno@clisp.org>
28026
28027         Tests for module '_Exit'.
28028         * modules/_Exit-tests: New file.
28029         * tests/test-_Exit.sh: New file.
28030         * tests/test-_Exit.c: New file.
28031
28032         New module '_Exit'.
28033         * lib/stdlib.in.h (__attribute__): New macro.
28034         (_Exit): New declaration.
28035         * lib/_Exit.c: New file.
28036         * m4/_Exit.m4: New file.
28037         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
28038         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
28039         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
28040         * modules/_Exit: New file.
28041         * tests/test-stdlib-c++.cc (_Exit): Check signature.
28042         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
28043
28044 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28045
28046         strtod: make it more-accurate typically, and don't require libm
28047         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
28048         Include limits.h.  Don't include string.h.
28049         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
28050         (locale_isspace): New function, so that no casts are needed to
28051         check whether *s is a space.
28052         (ldexp): Provide an unused dummy if not available.
28053         (scale_radix_exp, parse_number, underlying_strtod): New functions.
28054         (strtod): Use them.  This implementation prefers to use the
28055         underlying strtod if available, falling back on our own code
28056         only to fix known bugs.  This is more likely to produce an
28057         accurate result.  Also, it avoids the use of libm functions.
28058         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
28059         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
28060         was absent, but it caused a test failure with coreutils.
28061         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
28062         with libm.
28063         * modules/strtod (Makefile.am, Link): libm is no longer needed.
28064         * modules/strtod-tests (Makefile.am): Likewise.
28065
28066 2010-07-11  Pádraig Brady  <P@draigBrady.com>
28067             Bruno Haible  <bruno@clisp.org>
28068
28069         unistr/u8-strchr: Optimize ASCII argument case.
28070         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
28071
28072 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
28073
28074         (x)memcoll: minor tweaks
28075         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
28076         is after the type that it qualifies.
28077         (memcoll0): Likewise.
28078         * lib/memcoll.h (memcoll0): Likewise.
28079         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
28080         * lib/xmemcoll.h (xmemcoll0): Likewise.
28081         * lib/memcoll.c (memcoll0): Correct the comment.  This function
28082         differs from memcoll in that the NUL byte is part of the argument.
28083         Omit the abort-checks, as performance is a real issue here.  Plus,
28084         the checks were wrong anyway (an off-by-one error).  Omit local
28085         variable 'diff', as it's a bit clearer that way.
28086         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
28087         no longer needed.
28088
28089 2010-07-08  Chen Guo <chenguo4@yahoo.com>
28090
28091         (x)memcoll: speedup when input is known to be NUL delimited
28092         * lib/memcoll.c: Include stdlib.
28093         (memcoll0): New function.
28094         (strcoll_loop): New function, refactored for use in both memcoll
28095         and memcoll0.
28096         * lib/memcoll.h (memcoll0): Add prototype.
28097         * lib/xmemcoll.c (xmemcoll0): New function.
28098         (collate_error): New function, refactored for use in both xmemcoll
28099         and xmemcoll0.
28100         * lib/xmemcoll.h (xmemcoll0): Add prototype.
28101         * m4/memcoll.m4: add inline invocation.
28102
28103 2010-07-06  Pádraig Brady  <P@draigBrady.com>
28104
28105         * build-aux/bootstrap: Remove any local translations
28106         from the translation project synchronization directory,
28107         so that local only translations are not distributed.
28108
28109 2010-07-04  Bruno Haible  <bruno@clisp.org>
28110
28111         fsusage: Clarify which code applies to which platforms.
28112         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
28113         platform.
28114         * lib/fsusage.c (get_fs_usage): Likewise.
28115
28116 2010-07-04  Bruno Haible  <bruno@clisp.org>
28117
28118         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
28119         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
28120         Reported by Martin Lambers <marlam@marlam.de>.
28121
28122 2010-07-04  Jim Meyering  <meyering@redhat.com>
28123
28124         hash: once again explicitly disallow insertion of NULL
28125         * lib/hash.c (hash_insert0): Reinstate just-removed test:
28126         inserting a NULL pointer cannot work with these functions.
28127         Add a comment with details.
28128         This reverts part of the 2010-07-01 commit, 5bef1a35
28129         "hash: extend module to deal with non-pointer keys".
28130
28131 2010-07-01  Bruno Haible  <bruno@clisp.org>
28132
28133         stdbool: Update doc.
28134         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
28135         Info from Christian Weisgerber <naddy@mips.inka.de>.
28136
28137 2010-07-01  Jim Meyering  <meyering@redhat.com>
28138
28139         hash: extend module to deal with non-pointer keys
28140         * lib/hash.c (hash_insert0): New interface, much like hash_insert
28141         but that allows insertion of non-pointer entries.
28142         Do not disallow an ENTRY value of NULL.
28143         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
28144         * lib/hash.h (hash_insert0): Declare.
28145
28146 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28147
28148         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
28149         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
28150         not present (i.e. with autoconf 2.59 and when using gettextize, not
28151         gnulib), require AC_GNU_SOURCE instead.
28152
28153 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
28154
28155         idpriv-drop: Fix tests.
28156         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
28157         not to the test-idpriv-droptemp program.
28158
28159 2010-06-29  Bruno Haible  <bruno@clisp.org>
28160
28161         string: Fix syntax error with g++ 2.96.
28162         * lib/string.in.h (__pure__): Remove definition.
28163         (_GL_ATTRIBUTE_PURE): New macro.
28164         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
28165         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
28166         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28167
28168 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
28169
28170         unitypes: Fix bug introduced on 2010-05-18.
28171         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
28172
28173 2010-06-22  Eric Blake  <eblake@redhat.com>
28174
28175         memmem: slight optimization
28176         * lib/str-two-way.h (critical_factorization): Update comments.
28177         Reduce work during factorization phase.
28178         Reported by Carlos Bueno <carlos@bueno.org>.
28179
28180 2010-06-21  Bruno Haible  <bruno@clisp.org>
28181
28182         Fix HAVE_CALLOC_POSIX misnomer.
28183         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
28184         !HAVE_CALLOC_POSIX.
28185         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
28186         HAVE_CALLOC_POSIX.
28187         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
28188         instead of HAVE_CALLOC_POSIX.
28189         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
28190         HAVE_CALLOC_POSIX.
28191
28192         Use modern idiom for calloc() replacement.
28193         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
28194         AC_FUNC_CALLOC.
28195         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
28196         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
28197         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28198         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
28199         (gl_REPLACE_CALLOC): New macro.
28200
28201 2010-06-21  Bruno Haible  <bruno@clisp.org>
28202
28203         Fix HAVE_REALLOC_POSIX misnomer.
28204         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
28205         !HAVE_REALLOC_POSIX.
28206         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
28207         HAVE_REALLOC_POSIX.
28208         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
28209         instead of HAVE_REALLOC_POSIX.
28210         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
28211         HAVE_REALLOC_POSIX.
28212
28213         Use modern idiom for realloc() replacement.
28214         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
28215         AC_FUNC_REALLOC.
28216         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
28217         Autoconf's AC_FUNC_REALLOC.
28218         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28219         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
28220         (gl_REPLACE_REALLOC): New macro.
28221         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28222
28223 2010-06-21  Bruno Haible  <bruno@clisp.org>
28224
28225         Fix HAVE_MALLOC_POSIX misnomer.
28226         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
28227         !HAVE_MALLOC_POSIX.
28228         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
28229         HAVE_MALLOC_POSIX.
28230         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
28231         instead of HAVE_MALLOC_POSIX.
28232         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
28233         HAVE_MALLOC_POSIX.
28234
28235         Use modern idiom for malloc() replacement.
28236         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
28237         AC_FUNC_MALLOC.
28238         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
28239         Autoconf's AC_FUNC_MALLOC.
28240         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28241         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
28242         (gl_REPLACE_MALLOC): New macro.
28243         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28244
28245 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
28246
28247         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
28248         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
28249         This macro takes 3 arguments, not 4.
28250
28251 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
28252
28253         ipv6: fix detection under mingw
28254         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
28255         in6_addr.
28256
28257 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
28258
28259         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
28260         that strtod() works when cross-compiling to a glibc version known
28261         to work.
28262
28263 2010-06-15  Bruno Haible  <bruno@clisp.org>
28264
28265         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
28266
28267 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
28268
28269         select: Correct timeout.
28270         * lib/select.c (rpl_select): Compute wait_timeout correctly.
28271
28272 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28273
28274         git-version-gen: init shell var to avoid env var influence
28275         * build-aux/git-version-gen (v): Init shell var to empty.
28276
28277 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28278
28279         priv-set: Don't assume that priv.h exists merely because getppriv does.
28280         See Jan Andersen's bug report about AIX 5L in
28281         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
28282         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
28283         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
28284         * lib/priv-set.h: Likewise.
28285         * tests/test-priv-set.c: Likewise.
28286
28287 2010-06-13  Bruno Haible  <bruno@clisp.org>
28288
28289         relocatable: Make it easier to test whether to install wrappers.
28290         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
28291         RELOCATABLE_VIA_WRAPPER.
28292
28293 2010-06-13  Bruno Haible  <bruno@clisp.org>
28294
28295         gnulib-tool: Display specified modules and dependencies differently.
28296         * gnulib-tool (func_show_module_list): New function.
28297         (func_import, func_create_testdir): Invoke it.
28298         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28299
28300 2010-06-13  Bruno Haible  <bruno@clisp.org>
28301
28302         gnulib-tool: Align code of func_import and func_create_testdir.
28303         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
28304         specified_modules.
28305
28306 2010-06-12  Jim Meyering  <meyering@redhat.com>
28307
28308         test-inttostr: avoid spurious failure on Solaris 9
28309         * tests/test-inttostr.c (main): Skip the test when snprintf fails
28310         to accept "%ju".  Reported by Bruno Haible.
28311
28312 2010-06-11  Jim Meyering  <meyering@redhat.com>
28313
28314         test-sys_socket: mark variables as used more readably
28315         * tests/test-sys_socket.c (main): Mark otherwise unused variables
28316         as "used" explicitly via (void) statement casts.  This is more
28317         readable than using them in an artificial return expression.
28318         Suggestion from Bruno Haible.
28319
28320 2010-06-11  Bruno Haible  <bruno@clisp.org>
28321
28322         Avoid some more warnings from "gcc -Wwrite-strings".
28323         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
28324         to 'const char *'.
28325         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
28326         * tests/test-c-strcasestr.c (main): Likewise.
28327         * tests/test-mbscasestr1.c (main): Likewise.
28328         * tests/test-mbscasestr2.c (main): Likewise.
28329         * tests/test-memmem.c (main): Likewise.
28330         * tests/test-strstr.c (main): Likewise.
28331         * tests/test-strcasestr.c (main): Likewise.
28332
28333 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28334
28335         init.sh: change framework_failure_ to fail with status 99, not 1
28336         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
28337         automake's parallel-tests rule that this is an unexpected failure,
28338         even if the test is listed in XFAIL_TESTS.
28339
28340 2010-06-11  Jim Meyering  <meyering@redhat.com>
28341
28342         test-inttostr: avoid warnings about 4-6KB literal strings
28343         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
28344         Include "macros.h", for its definition of ASSERT.
28345         (CK): s/assert/ASSERT/
28346         * modules/inttostr-tests (Files): Add macros.h.
28347
28348         init.sh: don't use $ME_ or skip_ before they are defined
28349         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
28350         their first uses.  Also hoist their companions: warn_, fail_,
28351         framework_failure_, $stderr_fileno.  Prompted by a patch from
28352         Stefano Lattarini.
28353
28354         test-sys_socket: avoid set-but-not-used warnings from gcc
28355         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
28356         avoid warning about set-but-not-used variables.
28357
28358         test-xvasprintf: avoid 'const' discard warnings
28359         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
28360         "const" when assigning from literal strings.
28361         (test_xasprintf): Add "void" in function argument list to placate
28362         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
28363
28364         tests: avoid compilation warnings in argmatch and exclude tests...
28365         in packages that define ARGMATCH_DIE_DECL, like coreutils.
28366         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
28367         Since it always exits, declare with the "noreturn" attribute.
28368         * tests/test-argmatch.c: Likewise.
28369
28370         tests: avoid 'const' discard warnings in mbsstr tests
28371         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
28372         * tests/test-mbsstr2.c (main): Likewise.
28373
28374         test-verify: avoid warning from gcc's -Wmissing-declarations
28375         * tests/test-verify.c (function): Declare to be static.
28376
28377         test-inttostr.c: include <string.h> for use of strcmp
28378         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
28379
28380         test-linkat: avoid failed assertion on "other" architectures
28381         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
28382         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
28383         sparc: https://bugs.launchpad.net/bugs/591968
28384
28385 2010-06-11  Jim Meyering  <meyering@redhat.com>
28386
28387         printf.m4: avoid autoconf's "Expanded Before Required" warning
28388         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
28389         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
28390         autoconf warning.
28391
28392 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
28393
28394         Replacement header templates are now named with ".in", not "_".
28395         * doc/gnulib-intro.texi: Correct.
28396
28397 2010-06-10  Jim Meyering  <meyering@redhat.com>
28398
28399         inttostr-tests: depend on snprintf, not snprintf-posix
28400         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
28401         snprintf-posix, to avoid this aclocal failure:
28402           missing file gnulib-tests/vasnprintf.c
28403           configure.ac:45: error: expected source file, required through \
28404           AC_LIBSOURCES, not found
28405
28406 2010-06-10  Jim Meyering  <meyering@redhat.com>
28407
28408         inttostr: add a new function, inttostr, and tests
28409         The namesake function was not available.  The existence of the
28410         template file, inttostr.c makes its addition nontrivial.
28411         * lib/anytostr.c: Rename from inttostr.c.
28412         (anytostr): Rename from inttostr.
28413         * lib/inttostr.c: New file.
28414         * modules/inttostr (Files): Add anytostr.c.
28415         (Makefile.am): Set lib_SOURCES instead of ...
28416         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
28417         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
28418         * lib/offtostr.c: Likewise.
28419         * lib/uinttostr.c: Likewise.
28420         * lib/umaxtostr.c: Likewise.
28421         * modules/inttostr-tests: New file.
28422         * tests/test-inttostr.c: New file.  Test these functions.
28423
28424 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
28425             Bruno Haible  <bruno@clisp.org>
28426
28427         Add "Extending Gnulib" chapter to manual.
28428         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
28429         chapter.
28430         (Extending Gnulib): New chapter.
28431         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
28432         chapter.
28433
28434 2010-06-09  Bruno Haible  <bruno@clisp.org>
28435
28436         Avoid relocwrapper link errors due to gnulib replacement functions.
28437         * lib/areadlink.c: Use the system's malloc, realloc functions.
28438         (areadlink): Set errno to ENOMEM explicitly.
28439         * modules/areadlink (Depends-on): Remove malloc-posix.
28440         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28441
28442 2010-06-09  Bruno Haible  <bruno@clisp.org>
28443
28444         Avoid relocwrapper link errors due to gnulib replacement functions.
28445         * lib/canonicalize-lgpl.c: Use the system's malloc function.
28446         * lib/malloca.c: Likewise.
28447         * lib/relocatable.c: Likewise.
28448         * lib/progreloc.c: Use the system's malloc, sprintf functions.
28449         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
28450         * lib/setenv.c: Use the system's malloc, realloc functions.
28451         * lib/strerror.c: Use the system's sprintf function.
28452         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28453
28454 2010-06-04  Bruno Haible  <bruno@clisp.org>
28455
28456         Prefer documented low-level autoconf macro names.
28457         * m4/lib-link.m4: Use m4_translit instead of translit.
28458         * m4/environ.m4: Likewise.
28459         * m4/mathfunc.m4: Likewise.
28460         * m4/onceonly.m4: Likewise.
28461         * m4/stdint.m4: Likewise.
28462         Suggested by Eric Blake.
28463
28464 2010-06-04  Martin Lambers  <marlam@marlam.de>
28465             Bruno Haible  <bruno@clisp.org>
28466
28467         havelib: Allow library names with '+' characters.
28468         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
28469         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
28470
28471 2010-06-09  Bruno Haible  <bruno@clisp.org>
28472
28473         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
28474         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
28475         realloc failed.
28476
28477 2010-06-08  Peter Simons  <simons@cryp.to>
28478
28479         maint.mk: make the news-check rule more configurable
28480         * top/maint.mk (news-check-lines-spec): New variable.
28481         (news-check): Use "sed -n 1,10p" in place of "head".
28482
28483 2010-06-07  Jim Meyering  <meyering@redhat.com>
28484
28485         do-release-commit-and-tag: fix typo in --help
28486         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
28487
28488         regex: avoid new dead-code warning with gcc-4.6.0
28489         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
28490         if-block containing a while-loop.  It's been unused for at least
28491         5 years.
28492
28493 2010-06-05  Bruno Haible  <bruno@clisp.org>
28494
28495         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
28496         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
28497
28498 2010-06-04  Bruno Haible  <bruno@clisp.org>
28499
28500         Update to GNU gettext 0.18.1.
28501         * modules/gettext (configure.ac): Require gettext infrastructure from
28502         version 0.18.1.
28503
28504 2010-06-03  Bruno Haible  <bruno@clisp.org>
28505
28506         Don't use AC_LIBOBJ with file names in subdirectories.
28507         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
28508         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
28509         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
28510         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
28511         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
28512         gl_LIBUNISTRING_LIBSOURCE.
28513         (Makefile.am): Augment lib_SOURCES here, conditionally.
28514         * NEWS: Drop requirement for Automake option 'subdir-objects'.
28515
28516 2010-06-03  Bruno Haible  <bruno@clisp.org>
28517
28518         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
28519         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
28520         expansion does not end with a newline.
28521         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
28522         unnecessary newline.
28523
28524 2010-06-03  Bruno Haible  <bruno@clisp.org>
28525
28526         Reduce dependencies.
28527         * tests/test-quotearg.h: New file, extracted from
28528         tests/test-quotearg.c.
28529         * tests/test-quotearg-simple.c: New file, extracted from
28530         tests/test-quotearg.c.
28531         * tests/test-quotearg.c: Don't include <ctype.h>.
28532         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
28533         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
28534         use_quote_double_quotes, use_quotearg_colon): Moved to
28535         tests/test-quotearg.h.
28536         (results_g, flag_results, custom_quotes, custom_results): Moved
28537         to tests/test-quotearg-simple.c.
28538         (main): Moved the part that does not depend on gettext to
28539         tests/test-quotearg-simple.c. Return 77 if the test cannot be
28540         performed.
28541         * modules/quotearg-simple: New file.
28542         * modules/quotearg-simple-tests: New file.
28543         * modules/quotearg (Depends-on): Add quotearg-simple.
28544         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
28545         (Files): Add tests/test-quotearg.h.
28546         Reported by Paolo Bonzini.
28547
28548 2010-06-03  Bruno Haible  <bruno@clisp.org>
28549
28550         Reduce dependencies.
28551         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
28552
28553 2010-06-03  Bruno Haible  <bruno@clisp.org>
28554
28555         time: Undefine more broken macros.
28556         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28557         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28558         Reported by Eric Blake.
28559
28560 2010-06-03  Bruno Haible  <bruno@clisp.org>
28561
28562         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28563         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28564         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28565         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28566         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28567         Reported by Ludovic Courtès <ludo@gnu.org>.
28568
28569 2010-06-02  Eric Blake  <eblake@redhat.com>
28570
28571         time: work with mingw + pthreads-win32 library
28572         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28573         if timespec is defined only in pthread.h.
28574         * modules/time (Makefile.am): Substitute it.
28575         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28576         <pthread.h>, when needed.
28577         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28578         from the library.
28579
28580 2010-05-31  Bruno Haible  <bruno@clisp.org>
28581
28582         Avoid expanding two macros in the wrong order.
28583         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28584         gl_LIBUNISTRING if it is defined.
28585         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28586         autoconf >= 2.64.
28587         Reported by Ludovic Courtès <ludo@gnu.org>.
28588
28589 2010-05-27  Jim Meyering  <meyering@redhat.com>
28590
28591         maint.mk: also prohibit "#undef" of always-defined symbols
28592         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28593         Allow more than one space before the symbol name.
28594         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28595         the regexp uses alternation.
28596
28597 2010-05-26  Eric Blake  <eblake@redhat.com>
28598
28599         maint.mk: avoid echo -e
28600         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28601         Convert all uses of echo -* to printf.
28602         Reported by Matthias Bolte.
28603
28604 2010-05-25  Bruno Haible  <bruno@clisp.org>
28605
28606         Update to GNU gettext 0.18, part 2.
28607         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28608         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28609
28610 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28611
28612         Add missing include in test-pwrite.c.
28613         * tests/test-pwrite.c: Include string.h, for strcmp.
28614
28615 2010-05-24  Bruno Haible  <bruno@clisp.org>
28616
28617         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28618
28619 2010-05-24  Bruno Haible  <bruno@clisp.org>
28620
28621         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28622         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28623         iconveh_error argument.
28624         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28625         U_STRCONV_TO_LOCALE.
28626         * lib/unistr/u16-strcoll.c: Likewise.
28627         * lib/unistr/u32-strcoll.c: Likewise.
28628         * modules/unistr/u8-strcoll (Depends-on): Add
28629         uniconv/u8-strconv-to-enc, localcharset. Remove
28630         uniconv/u8-strconv-to-locale.
28631         (configure.ac): Bump version number.
28632         * modules/unistr/u16-strcoll (Depends-on): Add
28633         uniconv/u16-strconv-to-enc, localcharset. Remove
28634         uniconv/u16-strconv-to-locale.
28635         (configure.ac): Bump version number.
28636         * modules/unistr/u32-strcoll (Depends-on): Add
28637         uniconv/u32-strconv-to-enc, localcharset. Remove
28638         uniconv/u32-strconv-to-locale.
28639         (configure.ac): Bump version number.
28640
28641 2010-05-24  Bruno Haible  <bruno@clisp.org>
28642
28643         Avoid a test failure on NetBSD 5.0.
28644         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28645         an iconv() bug.
28646
28647 2010-05-24  Bruno Haible  <bruno@clisp.org>
28648
28649         Adjust #include directive style.
28650         * modules/regex (Includes): Recommend to write <regex.h>.
28651
28652 2010-05-24  Bruno Haible  <bruno@clisp.org>
28653
28654         regex: Don't require alloca.
28655         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28656         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28657         only inside if (0).
28658
28659 2010-05-23  Jim Meyering  <meyering@redhat.com>
28660
28661         test-renameat.c: include <sys/stat.h>
28662         * tests/test-renameat.c: Include <sys/stat.h>; required for
28663         definition of S_IS* macros.
28664
28665 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28666
28667         Update maintainer documentation for 'relocatable-prog' module.
28668         * doc/relocatable-maint.texi: Update.
28669         Comments by Bruno Haible.
28670
28671 2010-05-23  Bruno Haible  <bruno@clisp.org>
28672
28673         git-merge-changelog: Enable --split-merged-entry by default.
28674         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28675         (usage): Don't mention this option any more.
28676         Reported by Ralf Wildenhues.
28677
28678 2010-05-23  Jim Meyering  <meyering@redhat.com>
28679
28680         test-pwrite: do not leave behind a test file named "out"
28681         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28682         The trivial-looking use of init.sh is really necessary.
28683         It ensures that the temporary file, "out", is created in
28684         a temporary directory, and removed upon termination.
28685         * tests/test-pwrite.sh: Re-add file.
28686         * modules/pwrite-tests: Reference it.
28687
28688 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28689
28690         Fix output redirection buglet in init.sh.
28691         * tests/init.sh: Fix redirection of stderr.
28692
28693 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28694
28695         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28696
28697 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28698
28699         * modules/valgrind-tests: New file.
28700         * m4/valgrind-tests.m4: New file.
28701         * doc/valgrind-tests.texi: New file.
28702         * doc/gnulib.texi (Running self-tests under valgrind): New
28703         section.
28704
28705 2010-05-19  Bruno Haible  <bruno@clisp.org>
28706
28707         Clean up dead code in recent commit.
28708         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28709         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28710         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28711         Suggested by Paolo Bonzini.
28712
28713 2010-05-19  Bruno Haible  <bruno@clisp.org>
28714
28715         Avoid valgrind error reports from libunistring.
28716         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28717         * modules/libunistring (Files): Add it.
28718         * modules/libunistring-optional (Files): Likewise.
28719
28720 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28721             Bruno Haible  <bruno@clisp.org>
28722
28723         New module 'libunistring-optional'.
28724         * modules/libunistring-optional: New file.
28725         * m4/libunistring-base.m4: New file.
28726         * m4/libunistring-optional.m4: New file.
28727         * lib/unicase.in.h: Renamed from lib/unicase.h.
28728         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28729         * lib/unictype.in.h: Renamed from lib/unictype.h.
28730         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28731         * lib/uniname.in.h: Renamed from lib/uniname.h.
28732         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28733         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28734         * lib/unistr.in.h: Renamed from lib/unistr.h.
28735         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28736         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28737         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28738         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28739         gl_LIBUNISTRING. If the library was found, determine the installed
28740         version and set LIBUNISTRING_VERSION.
28741         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28742         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28743         handle a configuration option --with-included-libunistring.
28744         * modules/libunistring (Files): Add m4/absolute-header.m4.
28745         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28746         Add m4/libunistring-base.m4.
28747         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28748         (Makefile.am): Build unicase.h from unicase.in.h.
28749         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28750         Add m4/libunistring-base.m4.
28751         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28752         (Makefile.am): Build uniconv.h from uniconv.in.h.
28753         * modules/unictype/base (Files): Use unictype.in.h instead of
28754         unictype.h. Add m4/libunistring-base.m4.
28755         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28756         (Makefile.am): Build unictype.h from unictype.in.h.
28757         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28758         Add m4/libunistring-base.m4.
28759         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28760         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28761         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28762         Add m4/libunistring-base.m4.
28763         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28764         (Makefile.am): Build uniname.h from uniname.in.h.
28765         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28766         Add m4/libunistring-base.m4.
28767         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28768         (Makefile.am): Build uninorm.h from uninorm.in.h.
28769         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28770         unistdio.h. Add m4/libunistring-base.m4.
28771         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28772         (Makefile.am): Build unistdio.h from unistdio.in.h.
28773         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28774         Add m4/libunistring-base.m4.
28775         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28776         (Makefile.am): Build unistr.h from unistr.in.h.
28777         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28778         Add m4/libunistring-base.m4.
28779         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28780         (Makefile.am): Build unitypes.h from unitypes.in.h.
28781         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28782         Add m4/libunistring-base.m4.
28783         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28784         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28785         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28786         uniwidth.h. Add m4/libunistring-base.m4.
28787         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28788         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28789         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28790         instead of augmenting lib_SOURCES.
28791         * modules/unicase/empty-suffix-context: Likewise.
28792         * modules/unicase/locale-language: Likewise.
28793         * modules/unicase/tolower: Likewise.
28794         * modules/unicase/totitle: Likewise.
28795         * modules/unicase/toupper: Likewise.
28796         * modules/unicase/u8-casecmp: Likewise.
28797         * modules/unicase/u8-casecoll: Likewise.
28798         * modules/unicase/u8-casefold: Likewise.
28799         * modules/unicase/u8-casexfrm: Likewise.
28800         * modules/unicase/u8-ct-casefold: Likewise.
28801         * modules/unicase/u8-ct-tolower: Likewise.
28802         * modules/unicase/u8-ct-totitle: Likewise.
28803         * modules/unicase/u8-ct-toupper: Likewise.
28804         * modules/unicase/u8-is-cased: Likewise.
28805         * modules/unicase/u8-is-casefolded: Likewise.
28806         * modules/unicase/u8-is-lowercase: Likewise.
28807         * modules/unicase/u8-is-titlecase: Likewise.
28808         * modules/unicase/u8-is-uppercase: Likewise.
28809         * modules/unicase/u8-prefix-context: Likewise.
28810         * modules/unicase/u8-suffix-context: Likewise.
28811         * modules/unicase/u8-tolower: Likewise.
28812         * modules/unicase/u8-totitle: Likewise.
28813         * modules/unicase/u8-toupper: Likewise.
28814         * modules/unicase/u16-casecmp: Likewise.
28815         * modules/unicase/u16-casecoll: Likewise.
28816         * modules/unicase/u16-casefold: Likewise.
28817         * modules/unicase/u16-casexfrm: Likewise.
28818         * modules/unicase/u16-ct-casefold: Likewise.
28819         * modules/unicase/u16-ct-tolower: Likewise.
28820         * modules/unicase/u16-ct-totitle: Likewise.
28821         * modules/unicase/u16-ct-toupper: Likewise.
28822         * modules/unicase/u16-is-cased: Likewise.
28823         * modules/unicase/u16-is-casefolded: Likewise.
28824         * modules/unicase/u16-is-lowercase: Likewise.
28825         * modules/unicase/u16-is-titlecase: Likewise.
28826         * modules/unicase/u16-is-uppercase: Likewise.
28827         * modules/unicase/u16-prefix-context: Likewise.
28828         * modules/unicase/u16-suffix-context: Likewise.
28829         * modules/unicase/u16-tolower: Likewise.
28830         * modules/unicase/u16-totitle: Likewise.
28831         * modules/unicase/u16-toupper: Likewise.
28832         * modules/unicase/u32-casecmp: Likewise.
28833         * modules/unicase/u32-casecoll: Likewise.
28834         * modules/unicase/u32-casefold: Likewise.
28835         * modules/unicase/u32-casexfrm: Likewise.
28836         * modules/unicase/u32-ct-casefold: Likewise.
28837         * modules/unicase/u32-ct-tolower: Likewise.
28838         * modules/unicase/u32-ct-totitle: Likewise.
28839         * modules/unicase/u32-ct-toupper: Likewise.
28840         * modules/unicase/u32-is-cased: Likewise.
28841         * modules/unicase/u32-is-casefolded: Likewise.
28842         * modules/unicase/u32-is-lowercase: Likewise.
28843         * modules/unicase/u32-is-titlecase: Likewise.
28844         * modules/unicase/u32-is-uppercase: Likewise.
28845         * modules/unicase/u32-prefix-context: Likewise.
28846         * modules/unicase/u32-suffix-context: Likewise.
28847         * modules/unicase/u32-tolower: Likewise.
28848         * modules/unicase/u32-totitle: Likewise.
28849         * modules/unicase/u32-toupper: Likewise.
28850         * modules/unicase/ulc-casecmp: Likewise.
28851         * modules/unicase/ulc-casecoll: Likewise.
28852         * modules/unicase/ulc-casexfrm: Likewise.
28853         * modules/uniconv/u8-conv-from-enc: Likewise.
28854         * modules/uniconv/u8-conv-to-enc: Likewise.
28855         * modules/uniconv/u8-strconv-from-enc: Likewise.
28856         * modules/uniconv/u8-strconv-from-locale: Likewise.
28857         * modules/uniconv/u8-strconv-to-enc: Likewise.
28858         * modules/uniconv/u8-strconv-to-locale: Likewise.
28859         * modules/uniconv/u16-conv-from-enc: Likewise.
28860         * modules/uniconv/u16-conv-to-enc: Likewise.
28861         * modules/uniconv/u16-strconv-from-enc: Likewise.
28862         * modules/uniconv/u16-strconv-from-locale: Likewise.
28863         * modules/uniconv/u16-strconv-to-enc: Likewise.
28864         * modules/uniconv/u16-strconv-to-locale: Likewise.
28865         * modules/uniconv/u32-conv-from-enc: Likewise.
28866         * modules/uniconv/u32-conv-to-enc: Likewise.
28867         * modules/uniconv/u32-strconv-from-enc: Likewise.
28868         * modules/uniconv/u32-strconv-from-locale: Likewise.
28869         * modules/uniconv/u32-strconv-to-enc: Likewise.
28870         * modules/uniconv/u32-strconv-to-locale: Likewise.
28871         * modules/unictype/bidicategory-byname: Likewise.
28872         * modules/unictype/bidicategory-name: Likewise.
28873         * modules/unictype/bidicategory-of: Likewise.
28874         * modules/unictype/bidicategory-test: Likewise.
28875         * modules/unictype/block-list: Likewise.
28876         * modules/unictype/block-test: Likewise.
28877         * modules/unictype/category-C: Likewise.
28878         * modules/unictype/category-Cc: Likewise.
28879         * modules/unictype/category-Cf: Likewise.
28880         * modules/unictype/category-Cn: Likewise.
28881         * modules/unictype/category-Co: Likewise.
28882         * modules/unictype/category-Cs: Likewise.
28883         * modules/unictype/category-L: Likewise.
28884         * modules/unictype/category-Ll: Likewise.
28885         * modules/unictype/category-Lm: Likewise.
28886         * modules/unictype/category-Lo: Likewise.
28887         * modules/unictype/category-Lt: Likewise.
28888         * modules/unictype/category-Lu: Likewise.
28889         * modules/unictype/category-M: Likewise.
28890         * modules/unictype/category-Mc: Likewise.
28891         * modules/unictype/category-Me: Likewise.
28892         * modules/unictype/category-Mn: Likewise.
28893         * modules/unictype/category-N: Likewise.
28894         * modules/unictype/category-Nd: Likewise.
28895         * modules/unictype/category-Nl: Likewise.
28896         * modules/unictype/category-No: Likewise.
28897         * modules/unictype/category-P: Likewise.
28898         * modules/unictype/category-Pc: Likewise.
28899         * modules/unictype/category-Pd: Likewise.
28900         * modules/unictype/category-Pe: Likewise.
28901         * modules/unictype/category-Pf: Likewise.
28902         * modules/unictype/category-Pi: Likewise.
28903         * modules/unictype/category-Po: Likewise.
28904         * modules/unictype/category-Ps: Likewise.
28905         * modules/unictype/category-S: Likewise.
28906         * modules/unictype/category-Sc: Likewise.
28907         * modules/unictype/category-Sk: Likewise.
28908         * modules/unictype/category-Sm: Likewise.
28909         * modules/unictype/category-So: Likewise.
28910         * modules/unictype/category-Z: Likewise.
28911         * modules/unictype/category-Zl: Likewise.
28912         * modules/unictype/category-Zp: Likewise.
28913         * modules/unictype/category-Zs: Likewise.
28914         * modules/unictype/category-and: Likewise.
28915         * modules/unictype/category-and-not: Likewise.
28916         * modules/unictype/category-byname: Likewise.
28917         * modules/unictype/category-name: Likewise.
28918         * modules/unictype/category-none: Likewise.
28919         * modules/unictype/category-of: Likewise.
28920         * modules/unictype/category-or: Likewise.
28921         * modules/unictype/category-test: Likewise.
28922         * modules/unictype/combining-class: Likewise.
28923         * modules/unictype/ctype-alnum: Likewise.
28924         * modules/unictype/ctype-alpha: Likewise.
28925         * modules/unictype/ctype-blank: Likewise.
28926         * modules/unictype/ctype-cntrl: Likewise.
28927         * modules/unictype/ctype-digit: Likewise.
28928         * modules/unictype/ctype-graph: Likewise.
28929         * modules/unictype/ctype-lower: Likewise.
28930         * modules/unictype/ctype-print: Likewise.
28931         * modules/unictype/ctype-punct: Likewise.
28932         * modules/unictype/ctype-space: Likewise.
28933         * modules/unictype/ctype-upper: Likewise.
28934         * modules/unictype/ctype-xdigit: Likewise.
28935         * modules/unictype/decimal-digit: Likewise.
28936         * modules/unictype/digit: Likewise.
28937         * modules/unictype/mirror: Likewise.
28938         * modules/unictype/numeric: Likewise.
28939         * modules/unictype/property-alphabetic: Likewise.
28940         * modules/unictype/property-ascii-hex-digit: Likewise.
28941         * modules/unictype/property-bidi-arabic-digit: Likewise.
28942         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28943         * modules/unictype/property-bidi-block-separator: Likewise.
28944         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28945         * modules/unictype/property-bidi-common-separator: Likewise.
28946         * modules/unictype/property-bidi-control: Likewise.
28947         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28948         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28949         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28950         * modules/unictype/property-bidi-european-digit: Likewise.
28951         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28952         * modules/unictype/property-bidi-left-to-right: Likewise.
28953         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28954         * modules/unictype/property-bidi-other-neutral: Likewise.
28955         * modules/unictype/property-bidi-pdf: Likewise.
28956         * modules/unictype/property-bidi-segment-separator: Likewise.
28957         * modules/unictype/property-bidi-whitespace: Likewise.
28958         * modules/unictype/property-byname: Likewise.
28959         * modules/unictype/property-combining: Likewise.
28960         * modules/unictype/property-composite: Likewise.
28961         * modules/unictype/property-currency-symbol: Likewise.
28962         * modules/unictype/property-dash: Likewise.
28963         * modules/unictype/property-decimal-digit: Likewise.
28964         * modules/unictype/property-default-ignorable-code-point: Likewise.
28965         * modules/unictype/property-deprecated: Likewise.
28966         * modules/unictype/property-diacritic: Likewise.
28967         * modules/unictype/property-extender: Likewise.
28968         * modules/unictype/property-format-control: Likewise.
28969         * modules/unictype/property-grapheme-base: Likewise.
28970         * modules/unictype/property-grapheme-extend: Likewise.
28971         * modules/unictype/property-grapheme-link: Likewise.
28972         * modules/unictype/property-hex-digit: Likewise.
28973         * modules/unictype/property-hyphen: Likewise.
28974         * modules/unictype/property-id-continue: Likewise.
28975         * modules/unictype/property-id-start: Likewise.
28976         * modules/unictype/property-ideographic: Likewise.
28977         * modules/unictype/property-ids-binary-operator: Likewise.
28978         * modules/unictype/property-ids-trinary-operator: Likewise.
28979         * modules/unictype/property-ignorable-control: Likewise.
28980         * modules/unictype/property-iso-control: Likewise.
28981         * modules/unictype/property-join-control: Likewise.
28982         * modules/unictype/property-left-of-pair: Likewise.
28983         * modules/unictype/property-line-separator: Likewise.
28984         * modules/unictype/property-logical-order-exception: Likewise.
28985         * modules/unictype/property-lowercase: Likewise.
28986         * modules/unictype/property-math: Likewise.
28987         * modules/unictype/property-non-break: Likewise.
28988         * modules/unictype/property-not-a-character: Likewise.
28989         * modules/unictype/property-numeric: Likewise.
28990         * modules/unictype/property-other-alphabetic: Likewise.
28991         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28992         * modules/unictype/property-other-grapheme-extend: Likewise.
28993         * modules/unictype/property-other-id-continue: Likewise.
28994         * modules/unictype/property-other-id-start: Likewise.
28995         * modules/unictype/property-other-lowercase: Likewise.
28996         * modules/unictype/property-other-math: Likewise.
28997         * modules/unictype/property-other-uppercase: Likewise.
28998         * modules/unictype/property-paired-punctuation: Likewise.
28999         * modules/unictype/property-paragraph-separator: Likewise.
29000         * modules/unictype/property-pattern-syntax: Likewise.
29001         * modules/unictype/property-pattern-white-space: Likewise.
29002         * modules/unictype/property-private-use: Likewise.
29003         * modules/unictype/property-punctuation: Likewise.
29004         * modules/unictype/property-quotation-mark: Likewise.
29005         * modules/unictype/property-radical: Likewise.
29006         * modules/unictype/property-sentence-terminal: Likewise.
29007         * modules/unictype/property-soft-dotted: Likewise.
29008         * modules/unictype/property-space: Likewise.
29009         * modules/unictype/property-terminal-punctuation: Likewise.
29010         * modules/unictype/property-test: Likewise.
29011         * modules/unictype/property-titlecase: Likewise.
29012         * modules/unictype/property-unassigned-code-value: Likewise.
29013         * modules/unictype/property-unified-ideograph: Likewise.
29014         * modules/unictype/property-uppercase: Likewise.
29015         * modules/unictype/property-variation-selector: Likewise.
29016         * modules/unictype/property-white-space: Likewise.
29017         * modules/unictype/property-xid-continue: Likewise.
29018         * modules/unictype/property-xid-start: Likewise.
29019         * modules/unictype/property-zero-width: Likewise.
29020         * modules/unictype/scripts: Likewise.
29021         * modules/unictype/syntax-c-ident: Likewise.
29022         * modules/unictype/syntax-c-whitespace: Likewise.
29023         * modules/unictype/syntax-java-ident: Likewise.
29024         * modules/unictype/syntax-java-whitespace: Likewise.
29025         * modules/unilbrk/u8-possible-linebreaks: Likewise.
29026         * modules/unilbrk/u8-width-linebreaks: Likewise.
29027         * modules/unilbrk/u16-possible-linebreaks: Likewise.
29028         * modules/unilbrk/u16-width-linebreaks: Likewise.
29029         * modules/unilbrk/u32-possible-linebreaks: Likewise.
29030         * modules/unilbrk/u32-width-linebreaks: Likewise.
29031         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
29032         * modules/unilbrk/ulc-width-linebreaks: Likewise.
29033         * modules/uniname/uniname: Likewise.
29034         * modules/uninorm/canonical-decomposition: Likewise.
29035         * modules/uninorm/composition: Likewise.
29036         * modules/uninorm/decomposing-form: Likewise.
29037         * modules/uninorm/decomposition: Likewise.
29038         * modules/uninorm/filter: Likewise.
29039         * modules/uninorm/nfc: Likewise.
29040         * modules/uninorm/nfd: Likewise.
29041         * modules/uninorm/nfkc: Likewise.
29042         * modules/uninorm/nfkd: Likewise.
29043         * modules/uninorm/u8-normalize: Likewise.
29044         * modules/uninorm/u8-normcmp: Likewise.
29045         * modules/uninorm/u8-normcoll: Likewise.
29046         * modules/uninorm/u8-normxfrm: Likewise.
29047         * modules/uninorm/u16-normalize: Likewise.
29048         * modules/uninorm/u16-normcmp: Likewise.
29049         * modules/uninorm/u16-normcoll: Likewise.
29050         * modules/uninorm/u16-normxfrm: Likewise.
29051         * modules/uninorm/u32-normalize: Likewise.
29052         * modules/uninorm/u32-normcmp: Likewise.
29053         * modules/uninorm/u32-normcoll: Likewise.
29054         * modules/uninorm/u32-normxfrm: Likewise.
29055         * modules/unistdio/u8-asnprintf: Likewise.
29056         * modules/unistdio/u8-asprintf: Likewise.
29057         * modules/unistdio/u8-snprintf: Likewise.
29058         * modules/unistdio/u8-sprintf: Likewise.
29059         * modules/unistdio/u8-u8-asnprintf: Likewise.
29060         * modules/unistdio/u8-u8-asprintf: Likewise.
29061         * modules/unistdio/u8-u8-snprintf: Likewise.
29062         * modules/unistdio/u8-u8-sprintf: Likewise.
29063         * modules/unistdio/u8-u8-vasnprintf: Likewise.
29064         * modules/unistdio/u8-u8-vasprintf: Likewise.
29065         * modules/unistdio/u8-u8-vsnprintf: Likewise.
29066         * modules/unistdio/u8-u8-vsprintf: Likewise.
29067         * modules/unistdio/u8-vasnprintf: Likewise.
29068         * modules/unistdio/u8-vasprintf: Likewise.
29069         * modules/unistdio/u8-vsnprintf: Likewise.
29070         * modules/unistdio/u8-vsprintf: Likewise.
29071         * modules/unistdio/u16-asnprintf: Likewise.
29072         * modules/unistdio/u16-asprintf: Likewise.
29073         * modules/unistdio/u16-snprintf: Likewise.
29074         * modules/unistdio/u16-sprintf: Likewise.
29075         * modules/unistdio/u16-u16-asnprintf: Likewise.
29076         * modules/unistdio/u16-u16-asprintf: Likewise.
29077         * modules/unistdio/u16-u16-snprintf: Likewise.
29078         * modules/unistdio/u16-u16-sprintf: Likewise.
29079         * modules/unistdio/u16-u16-vasnprintf: Likewise.
29080         * modules/unistdio/u16-u16-vasprintf: Likewise.
29081         * modules/unistdio/u16-u16-vsnprintf: Likewise.
29082         * modules/unistdio/u16-u16-vsprintf: Likewise.
29083         * modules/unistdio/u16-vasnprintf: Likewise.
29084         * modules/unistdio/u16-vasprintf: Likewise.
29085         * modules/unistdio/u16-vsnprintf: Likewise.
29086         * modules/unistdio/u16-vsprintf: Likewise.
29087         * modules/unistdio/u32-asnprintf: Likewise.
29088         * modules/unistdio/u32-asprintf: Likewise.
29089         * modules/unistdio/u32-snprintf: Likewise.
29090         * modules/unistdio/u32-sprintf: Likewise.
29091         * modules/unistdio/u32-u32-asnprintf: Likewise.
29092         * modules/unistdio/u32-u32-asprintf: Likewise.
29093         * modules/unistdio/u32-u32-snprintf: Likewise.
29094         * modules/unistdio/u32-u32-sprintf: Likewise.
29095         * modules/unistdio/u32-u32-vasnprintf: Likewise.
29096         * modules/unistdio/u32-u32-vasprintf: Likewise.
29097         * modules/unistdio/u32-u32-vsnprintf: Likewise.
29098         * modules/unistdio/u32-u32-vsprintf: Likewise.
29099         * modules/unistdio/u32-vasnprintf: Likewise.
29100         * modules/unistdio/u32-vasprintf: Likewise.
29101         * modules/unistdio/u32-vsnprintf: Likewise.
29102         * modules/unistdio/u32-vsprintf: Likewise.
29103         * modules/unistdio/ulc-asnprintf: Likewise.
29104         * modules/unistdio/ulc-asprintf: Likewise.
29105         * modules/unistdio/ulc-fprintf: Likewise.
29106         * modules/unistdio/ulc-snprintf: Likewise.
29107         * modules/unistdio/ulc-sprintf: Likewise.
29108         * modules/unistdio/ulc-vasnprintf: Likewise.
29109         * modules/unistdio/ulc-vasprintf: Likewise.
29110         * modules/unistdio/ulc-vfprintf: Likewise.
29111         * modules/unistdio/ulc-vsnprintf: Likewise.
29112         * modules/unistdio/ulc-vsprintf: Likewise.
29113         * modules/unistr/u8-check: Likewise.
29114         * modules/unistr/u8-chr: Likewise.
29115         * modules/unistr/u8-cmp: Likewise.
29116         * modules/unistr/u8-cmp2: Likewise.
29117         * modules/unistr/u8-cpy: Likewise.
29118         * modules/unistr/u8-cpy-alloc: Likewise.
29119         * modules/unistr/u8-endswith: Likewise.
29120         * modules/unistr/u8-mblen: Likewise.
29121         * modules/unistr/u8-mbsnlen: Likewise.
29122         * modules/unistr/u8-mbtouc: Likewise.
29123         * modules/unistr/u8-mbtouc-unsafe: Likewise.
29124         * modules/unistr/u8-mbtoucr: Likewise.
29125         * modules/unistr/u8-move: Likewise.
29126         * modules/unistr/u8-next: Likewise.
29127         * modules/unistr/u8-prev: Likewise.
29128         * modules/unistr/u8-set: Likewise.
29129         * modules/unistr/u8-startswith: Likewise.
29130         * modules/unistr/u8-stpcpy: Likewise.
29131         * modules/unistr/u8-stpncpy: Likewise.
29132         * modules/unistr/u8-strcat: Likewise.
29133         * modules/unistr/u8-strchr: Likewise.
29134         * modules/unistr/u8-strcmp: Likewise.
29135         * modules/unistr/u8-strcoll: Likewise.
29136         * modules/unistr/u8-strcpy: Likewise.
29137         * modules/unistr/u8-strcspn: Likewise.
29138         * modules/unistr/u8-strdup: Likewise.
29139         * modules/unistr/u8-strlen: Likewise.
29140         * modules/unistr/u8-strmblen: Likewise.
29141         * modules/unistr/u8-strmbtouc: Likewise.
29142         * modules/unistr/u8-strncat: Likewise.
29143         * modules/unistr/u8-strncmp: Likewise.
29144         * modules/unistr/u8-strncpy: Likewise.
29145         * modules/unistr/u8-strnlen: Likewise.
29146         * modules/unistr/u8-strpbrk: Likewise.
29147         * modules/unistr/u8-strrchr: Likewise.
29148         * modules/unistr/u8-strspn: Likewise.
29149         * modules/unistr/u8-strstr: Likewise.
29150         * modules/unistr/u8-strtok: Likewise.
29151         * modules/unistr/u8-to-u16: Likewise.
29152         * modules/unistr/u8-to-u32: Likewise.
29153         * modules/unistr/u8-uctomb: Likewise.
29154         * modules/unistr/u16-check: Likewise.
29155         * modules/unistr/u16-chr: Likewise.
29156         * modules/unistr/u16-cmp: Likewise.
29157         * modules/unistr/u16-cmp2: Likewise.
29158         * modules/unistr/u16-cpy: Likewise.
29159         * modules/unistr/u16-cpy-alloc: Likewise.
29160         * modules/unistr/u16-endswith: Likewise.
29161         * modules/unistr/u16-mblen: Likewise.
29162         * modules/unistr/u16-mbsnlen: Likewise.
29163         * modules/unistr/u16-mbtouc: Likewise.
29164         * modules/unistr/u16-mbtouc-unsafe: Likewise.
29165         * modules/unistr/u16-mbtoucr: Likewise.
29166         * modules/unistr/u16-move: Likewise.
29167         * modules/unistr/u16-next: Likewise.
29168         * modules/unistr/u16-prev: Likewise.
29169         * modules/unistr/u16-set: Likewise.
29170         * modules/unistr/u16-startswith: Likewise.
29171         * modules/unistr/u16-stpcpy: Likewise.
29172         * modules/unistr/u16-stpncpy: Likewise.
29173         * modules/unistr/u16-strcat: Likewise.
29174         * modules/unistr/u16-strchr: Likewise.
29175         * modules/unistr/u16-strcmp: Likewise.
29176         * modules/unistr/u16-strcoll: Likewise.
29177         * modules/unistr/u16-strcpy: Likewise.
29178         * modules/unistr/u16-strcspn: Likewise.
29179         * modules/unistr/u16-strdup: Likewise.
29180         * modules/unistr/u16-strlen: Likewise.
29181         * modules/unistr/u16-strmblen: Likewise.
29182         * modules/unistr/u16-strmbtouc: Likewise.
29183         * modules/unistr/u16-strncat: Likewise.
29184         * modules/unistr/u16-strncmp: Likewise.
29185         * modules/unistr/u16-strncpy: Likewise.
29186         * modules/unistr/u16-strnlen: Likewise.
29187         * modules/unistr/u16-strpbrk: Likewise.
29188         * modules/unistr/u16-strrchr: Likewise.
29189         * modules/unistr/u16-strspn: Likewise.
29190         * modules/unistr/u16-strstr: Likewise.
29191         * modules/unistr/u16-strtok: Likewise.
29192         * modules/unistr/u16-to-u32: Likewise.
29193         * modules/unistr/u16-to-u8: Likewise.
29194         * modules/unistr/u16-uctomb: Likewise.
29195         * modules/unistr/u32-check: Likewise.
29196         * modules/unistr/u32-chr: Likewise.
29197         * modules/unistr/u32-cmp: Likewise.
29198         * modules/unistr/u32-cmp2: Likewise.
29199         * modules/unistr/u32-cpy: Likewise.
29200         * modules/unistr/u32-cpy-alloc: Likewise.
29201         * modules/unistr/u32-endswith: Likewise.
29202         * modules/unistr/u32-mblen: Likewise.
29203         * modules/unistr/u32-mbsnlen: Likewise.
29204         * modules/unistr/u32-mbtouc: Likewise.
29205         * modules/unistr/u32-mbtouc-unsafe: Likewise.
29206         * modules/unistr/u32-mbtoucr: Likewise.
29207         * modules/unistr/u32-move: Likewise.
29208         * modules/unistr/u32-next: Likewise.
29209         * modules/unistr/u32-prev: Likewise.
29210         * modules/unistr/u32-set: Likewise.
29211         * modules/unistr/u32-startswith: Likewise.
29212         * modules/unistr/u32-stpcpy: Likewise.
29213         * modules/unistr/u32-stpncpy: Likewise.
29214         * modules/unistr/u32-strcat: Likewise.
29215         * modules/unistr/u32-strchr: Likewise.
29216         * modules/unistr/u32-strcmp: Likewise.
29217         * modules/unistr/u32-strcoll: Likewise.
29218         * modules/unistr/u32-strcpy: Likewise.
29219         * modules/unistr/u32-strcspn: Likewise.
29220         * modules/unistr/u32-strdup: Likewise.
29221         * modules/unistr/u32-strlen: Likewise.
29222         * modules/unistr/u32-strmblen: Likewise.
29223         * modules/unistr/u32-strmbtouc: Likewise.
29224         * modules/unistr/u32-strncat: Likewise.
29225         * modules/unistr/u32-strncmp: Likewise.
29226         * modules/unistr/u32-strncpy: Likewise.
29227         * modules/unistr/u32-strnlen: Likewise.
29228         * modules/unistr/u32-strpbrk: Likewise.
29229         * modules/unistr/u32-strrchr: Likewise.
29230         * modules/unistr/u32-strspn: Likewise.
29231         * modules/unistr/u32-strstr: Likewise.
29232         * modules/unistr/u32-strtok: Likewise.
29233         * modules/unistr/u32-to-u16: Likewise.
29234         * modules/unistr/u32-to-u8: Likewise.
29235         * modules/unistr/u32-uctomb: Likewise.
29236         * modules/uniwbrk/u8-wordbreaks: Likewise.
29237         * modules/uniwbrk/u16-wordbreaks: Likewise.
29238         * modules/uniwbrk/u32-wordbreaks: Likewise.
29239         * modules/uniwbrk/ulc-wordbreaks: Likewise.
29240         * modules/uniwbrk/wordbreak-property: Likewise.
29241         * modules/uniwidth/u8-strwidth: Likewise.
29242         * modules/uniwidth/u8-width: Likewise.
29243         * modules/uniwidth/u16-strwidth: Likewise.
29244         * modules/uniwidth/u16-width: Likewise.
29245         * modules/uniwidth/u32-strwidth: Likewise.
29246         * modules/uniwidth/u32-width: Likewise.
29247         * modules/uniwidth/width: Likewise.
29248         * modules/unicase/cased-tests (Makefile.am): Link all test programs
29249         with $(LIBUNISTRING).
29250         * modules/unicase/ignorable-tests: Likewise.
29251         * modules/unicase/locale-language-tests: Likewise.
29252         * modules/unicase/tolower-tests: Likewise.
29253         * modules/unicase/totitle-tests: Likewise.
29254         * modules/unicase/toupper-tests: Likewise.
29255         * modules/unicase/u8-casecmp-tests: Likewise.
29256         * modules/unicase/u8-casecoll-tests: Likewise.
29257         * modules/unicase/u8-casefold-tests: Likewise.
29258         * modules/unicase/u8-is-cased-tests: Likewise.
29259         * modules/unicase/u8-is-casefolded-tests: Likewise.
29260         * modules/unicase/u8-is-lowercase-tests: Likewise.
29261         * modules/unicase/u8-is-titlecase-tests: Likewise.
29262         * modules/unicase/u8-is-uppercase-tests: Likewise.
29263         * modules/unicase/u8-tolower-tests: Likewise.
29264         * modules/unicase/u8-totitle-tests: Likewise.
29265         * modules/unicase/u8-toupper-tests: Likewise.
29266         * modules/unicase/u16-casecmp-tests: Likewise.
29267         * modules/unicase/u16-casecoll-tests: Likewise.
29268         * modules/unicase/u16-casefold-tests: Likewise.
29269         * modules/unicase/u16-is-cased-tests: Likewise.
29270         * modules/unicase/u16-is-casefolded-tests: Likewise.
29271         * modules/unicase/u16-is-lowercase-tests: Likewise.
29272         * modules/unicase/u16-is-titlecase-tests: Likewise.
29273         * modules/unicase/u16-is-uppercase-tests: Likewise.
29274         * modules/unicase/u16-tolower-tests: Likewise.
29275         * modules/unicase/u16-totitle-tests: Likewise.
29276         * modules/unicase/u16-toupper-tests: Likewise.
29277         * modules/unicase/u32-casecmp-tests: Likewise.
29278         * modules/unicase/u32-casecoll-tests: Likewise.
29279         * modules/unicase/u32-casefold-tests: Likewise.
29280         * modules/unicase/u32-is-cased-tests: Likewise.
29281         * modules/unicase/u32-is-casefolded-tests: Likewise.
29282         * modules/unicase/u32-is-lowercase-tests: Likewise.
29283         * modules/unicase/u32-is-titlecase-tests: Likewise.
29284         * modules/unicase/u32-is-uppercase-tests: Likewise.
29285         * modules/unicase/u32-tolower-tests: Likewise.
29286         * modules/unicase/u32-totitle-tests: Likewise.
29287         * modules/unicase/u32-toupper-tests: Likewise.
29288         * modules/unicase/ulc-casecmp-tests: Likewise.
29289         * modules/unicase/ulc-casecoll-tests: Likewise.
29290         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
29291         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
29292         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
29293         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
29294         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
29295         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
29296         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
29297         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
29298         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
29299         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
29300         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
29301         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
29302         * modules/unictype/bidicategory-byname-tests: Likewise.
29303         * modules/unictype/bidicategory-name-tests: Likewise.
29304         * modules/unictype/bidicategory-of-tests: Likewise.
29305         * modules/unictype/bidicategory-test-tests: Likewise.
29306         * modules/unictype/block-list-tests: Likewise.
29307         * modules/unictype/block-of-tests: Likewise.
29308         * modules/unictype/block-test-tests: Likewise.
29309         * modules/unictype/category-C-tests: Likewise.
29310         * modules/unictype/category-Cc-tests: Likewise.
29311         * modules/unictype/category-Cf-tests: Likewise.
29312         * modules/unictype/category-Cn-tests: Likewise.
29313         * modules/unictype/category-Co-tests: Likewise.
29314         * modules/unictype/category-Cs-tests: Likewise.
29315         * modules/unictype/category-L-tests: Likewise.
29316         * modules/unictype/category-Ll-tests: Likewise.
29317         * modules/unictype/category-Lm-tests: Likewise.
29318         * modules/unictype/category-Lo-tests: Likewise.
29319         * modules/unictype/category-Lt-tests: Likewise.
29320         * modules/unictype/category-Lu-tests: Likewise.
29321         * modules/unictype/category-M-tests: Likewise.
29322         * modules/unictype/category-Mc-tests: Likewise.
29323         * modules/unictype/category-Me-tests: Likewise.
29324         * modules/unictype/category-Mn-tests: Likewise.
29325         * modules/unictype/category-N-tests: Likewise.
29326         * modules/unictype/category-Nd-tests: Likewise.
29327         * modules/unictype/category-Nl-tests: Likewise.
29328         * modules/unictype/category-No-tests: Likewise.
29329         * modules/unictype/category-P-tests: Likewise.
29330         * modules/unictype/category-Pc-tests: Likewise.
29331         * modules/unictype/category-Pd-tests: Likewise.
29332         * modules/unictype/category-Pe-tests: Likewise.
29333         * modules/unictype/category-Pf-tests: Likewise.
29334         * modules/unictype/category-Pi-tests: Likewise.
29335         * modules/unictype/category-Po-tests: Likewise.
29336         * modules/unictype/category-Ps-tests: Likewise.
29337         * modules/unictype/category-S-tests: Likewise.
29338         * modules/unictype/category-Sc-tests: Likewise.
29339         * modules/unictype/category-Sk-tests: Likewise.
29340         * modules/unictype/category-Sm-tests: Likewise.
29341         * modules/unictype/category-So-tests: Likewise.
29342         * modules/unictype/category-Z-tests: Likewise.
29343         * modules/unictype/category-Zl-tests: Likewise.
29344         * modules/unictype/category-Zp-tests: Likewise.
29345         * modules/unictype/category-Zs-tests: Likewise.
29346         * modules/unictype/category-and-not-tests: Likewise.
29347         * modules/unictype/category-and-tests: Likewise.
29348         * modules/unictype/category-byname-tests: Likewise.
29349         * modules/unictype/category-name-tests: Likewise.
29350         * modules/unictype/category-none-tests: Likewise.
29351         * modules/unictype/category-of-tests: Likewise.
29352         * modules/unictype/category-or-tests: Likewise.
29353         * modules/unictype/category-test-withtable-tests: Likewise.
29354         * modules/unictype/combining-class-tests: Likewise.
29355         * modules/unictype/ctype-alnum-tests: Likewise.
29356         * modules/unictype/ctype-alpha-tests: Likewise.
29357         * modules/unictype/ctype-blank-tests: Likewise.
29358         * modules/unictype/ctype-cntrl-tests: Likewise.
29359         * modules/unictype/ctype-digit-tests: Likewise.
29360         * modules/unictype/ctype-graph-tests: Likewise.
29361         * modules/unictype/ctype-lower-tests: Likewise.
29362         * modules/unictype/ctype-print-tests: Likewise.
29363         * modules/unictype/ctype-punct-tests: Likewise.
29364         * modules/unictype/ctype-space-tests: Likewise.
29365         * modules/unictype/ctype-upper-tests: Likewise.
29366         * modules/unictype/ctype-xdigit-tests: Likewise.
29367         * modules/unictype/decimal-digit-tests: Likewise.
29368         * modules/unictype/digit-tests: Likewise.
29369         * modules/unictype/mirror-tests: Likewise.
29370         * modules/unictype/numeric-tests: Likewise.
29371         * modules/unictype/property-alphabetic-tests: Likewise.
29372         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
29373         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
29374         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
29375         * modules/unictype/property-bidi-block-separator-tests: Likewise.
29376         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
29377         * modules/unictype/property-bidi-common-separator-tests: Likewise.
29378         * modules/unictype/property-bidi-control-tests: Likewise.
29379         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
29380         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
29381         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
29382         * modules/unictype/property-bidi-european-digit-tests: Likewise.
29383         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
29384         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
29385         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
29386         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
29387         * modules/unictype/property-bidi-pdf-tests: Likewise.
29388         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
29389         * modules/unictype/property-bidi-whitespace-tests: Likewise.
29390         * modules/unictype/property-byname-tests: Likewise.
29391         * modules/unictype/property-combining-tests: Likewise.
29392         * modules/unictype/property-composite-tests: Likewise.
29393         * modules/unictype/property-currency-symbol-tests: Likewise.
29394         * modules/unictype/property-dash-tests: Likewise.
29395         * modules/unictype/property-decimal-digit-tests: Likewise.
29396         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
29397         * modules/unictype/property-deprecated-tests: Likewise.
29398         * modules/unictype/property-diacritic-tests: Likewise.
29399         * modules/unictype/property-extender-tests: Likewise.
29400         * modules/unictype/property-format-control-tests: Likewise.
29401         * modules/unictype/property-grapheme-base-tests: Likewise.
29402         * modules/unictype/property-grapheme-extend-tests: Likewise.
29403         * modules/unictype/property-grapheme-link-tests: Likewise.
29404         * modules/unictype/property-hex-digit-tests: Likewise.
29405         * modules/unictype/property-hyphen-tests: Likewise.
29406         * modules/unictype/property-id-continue-tests: Likewise.
29407         * modules/unictype/property-id-start-tests: Likewise.
29408         * modules/unictype/property-ideographic-tests: Likewise.
29409         * modules/unictype/property-ids-binary-operator-tests: Likewise.
29410         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
29411         * modules/unictype/property-ignorable-control-tests: Likewise.
29412         * modules/unictype/property-iso-control-tests: Likewise.
29413         * modules/unictype/property-join-control-tests: Likewise.
29414         * modules/unictype/property-left-of-pair-tests: Likewise.
29415         * modules/unictype/property-line-separator-tests: Likewise.
29416         * modules/unictype/property-logical-order-exception-tests: Likewise.
29417         * modules/unictype/property-lowercase-tests: Likewise.
29418         * modules/unictype/property-math-tests: Likewise.
29419         * modules/unictype/property-non-break-tests: Likewise.
29420         * modules/unictype/property-not-a-character-tests: Likewise.
29421         * modules/unictype/property-numeric-tests: Likewise.
29422         * modules/unictype/property-other-alphabetic-tests: Likewise.
29423         * modules/unictype/property-other-default-ignorable-code-point-tests:
29424         Likewise.
29425         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
29426         * modules/unictype/property-other-id-continue-tests: Likewise.
29427         * modules/unictype/property-other-id-start-tests: Likewise.
29428         * modules/unictype/property-other-lowercase-tests: Likewise.
29429         * modules/unictype/property-other-math-tests: Likewise.
29430         * modules/unictype/property-other-uppercase-tests: Likewise.
29431         * modules/unictype/property-paired-punctuation-tests: Likewise.
29432         * modules/unictype/property-paragraph-separator-tests: Likewise.
29433         * modules/unictype/property-pattern-syntax-tests: Likewise.
29434         * modules/unictype/property-pattern-white-space-tests: Likewise.
29435         * modules/unictype/property-private-use-tests: Likewise.
29436         * modules/unictype/property-punctuation-tests: Likewise.
29437         * modules/unictype/property-quotation-mark-tests: Likewise.
29438         * modules/unictype/property-radical-tests: Likewise.
29439         * modules/unictype/property-sentence-terminal-tests: Likewise.
29440         * modules/unictype/property-soft-dotted-tests: Likewise.
29441         * modules/unictype/property-space-tests: Likewise.
29442         * modules/unictype/property-terminal-punctuation-tests: Likewise.
29443         * modules/unictype/property-test-tests: Likewise.
29444         * modules/unictype/property-titlecase-tests: Likewise.
29445         * modules/unictype/property-unassigned-code-value-tests: Likewise.
29446         * modules/unictype/property-unified-ideograph-tests: Likewise.
29447         * modules/unictype/property-uppercase-tests: Likewise.
29448         * modules/unictype/property-variation-selector-tests: Likewise.
29449         * modules/unictype/property-white-space-tests: Likewise.
29450         * modules/unictype/property-xid-continue-tests: Likewise.
29451         * modules/unictype/property-xid-start-tests: Likewise.
29452         * modules/unictype/property-zero-width-tests: Likewise.
29453         * modules/unictype/scripts-tests: Likewise.
29454         * modules/unictype/syntax-c-ident-tests: Likewise.
29455         * modules/unictype/syntax-c-whitespace-tests: Likewise.
29456         * modules/unictype/syntax-java-ident-tests: Likewise.
29457         * modules/unictype/syntax-java-whitespace-tests: Likewise.
29458         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
29459         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
29460         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
29461         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
29462         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
29463         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
29464         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
29465         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
29466         * modules/uniname/uniname-tests: Likewise.
29467         * modules/uninorm/canonical-decomposition-tests: Likewise.
29468         * modules/uninorm/compat-decomposition-tests: Likewise.
29469         * modules/uninorm/composition-tests: Likewise.
29470         * modules/uninorm/decomposing-form-tests: Likewise.
29471         * modules/uninorm/decomposition-tests: Likewise.
29472         * modules/uninorm/filter-tests: Likewise.
29473         * modules/uninorm/nfc-tests: Likewise.
29474         * modules/uninorm/nfd-tests: Likewise.
29475         * modules/uninorm/nfkc-tests: Likewise.
29476         * modules/uninorm/nfkd-tests: Likewise.
29477         * modules/uninorm/u8-normcmp-tests: Likewise.
29478         * modules/uninorm/u8-normcoll-tests: Likewise.
29479         * modules/uninorm/u16-normcmp-tests: Likewise.
29480         * modules/uninorm/u16-normcoll-tests: Likewise.
29481         * modules/uninorm/u32-normcmp-tests: Likewise.
29482         * modules/uninorm/u32-normcoll-tests: Likewise.
29483         * modules/unistdio/u8-asnprintf-tests: Likewise.
29484         * modules/unistdio/u8-vasnprintf-tests: Likewise.
29485         * modules/unistdio/u8-vasprintf-tests: Likewise.
29486         * modules/unistdio/u8-vsnprintf-tests: Likewise.
29487         * modules/unistdio/u8-vsprintf-tests: Likewise.
29488         * modules/unistdio/u16-asnprintf-tests: Likewise.
29489         * modules/unistdio/u16-vasnprintf-tests: Likewise.
29490         * modules/unistdio/u16-vasprintf-tests: Likewise.
29491         * modules/unistdio/u16-vsnprintf-tests: Likewise.
29492         * modules/unistdio/u16-vsprintf-tests: Likewise.
29493         * modules/unistdio/u32-asnprintf-tests: Likewise.
29494         * modules/unistdio/u32-vasnprintf-tests: Likewise.
29495         * modules/unistdio/u32-vasprintf-tests: Likewise.
29496         * modules/unistdio/u32-vsnprintf-tests: Likewise.
29497         * modules/unistdio/u32-vsprintf-tests: Likewise.
29498         * modules/unistdio/ulc-asnprintf-tests: Likewise.
29499         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
29500         * modules/unistdio/ulc-vasprintf-tests: Likewise.
29501         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
29502         * modules/unistdio/ulc-vsprintf-tests: Likewise.
29503         * modules/unistr/u8-check-tests: Likewise.
29504         * modules/unistr/u8-chr-tests: Likewise.
29505         * modules/unistr/u8-cmp-tests: Likewise.
29506         * modules/unistr/u8-cmp2-tests: Likewise.
29507         * modules/unistr/u8-cpy-alloc-tests: Likewise.
29508         * modules/unistr/u8-cpy-tests: Likewise.
29509         * modules/unistr/u8-mblen-tests: Likewise.
29510         * modules/unistr/u8-mbsnlen-tests: Likewise.
29511         * modules/unistr/u8-mbtouc-tests: Likewise.
29512         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
29513         * modules/unistr/u8-mbtoucr-tests: Likewise.
29514         * modules/unistr/u8-move-tests: Likewise.
29515         * modules/unistr/u8-next-tests: Likewise.
29516         * modules/unistr/u8-prev-tests: Likewise.
29517         * modules/unistr/u8-set-tests: Likewise.
29518         * modules/unistr/u8-stpcpy-tests: Likewise.
29519         * modules/unistr/u8-stpncpy-tests: Likewise.
29520         * modules/unistr/u8-strcat-tests: Likewise.
29521         * modules/unistr/u8-strcmp-tests: Likewise.
29522         * modules/unistr/u8-strcoll-tests: Likewise.
29523         * modules/unistr/u8-strcpy-tests: Likewise.
29524         * modules/unistr/u8-strdup-tests: Likewise.
29525         * modules/unistr/u8-strlen-tests: Likewise.
29526         * modules/unistr/u8-strmblen-tests: Likewise.
29527         * modules/unistr/u8-strmbtouc-tests: Likewise.
29528         * modules/unistr/u8-strncat-tests: Likewise.
29529         * modules/unistr/u8-strncmp-tests: Likewise.
29530         * modules/unistr/u8-strncpy-tests: Likewise.
29531         * modules/unistr/u8-strnlen-tests: Likewise.
29532         * modules/unistr/u8-to-u16-tests: Likewise.
29533         * modules/unistr/u8-to-u32-tests: Likewise.
29534         * modules/unistr/u8-uctomb-tests: Likewise.
29535         * modules/unistr/u16-check-tests: Likewise.
29536         * modules/unistr/u16-chr-tests: Likewise.
29537         * modules/unistr/u16-cmp-tests: Likewise.
29538         * modules/unistr/u16-cmp2-tests: Likewise.
29539         * modules/unistr/u16-cpy-alloc-tests: Likewise.
29540         * modules/unistr/u16-cpy-tests: Likewise.
29541         * modules/unistr/u16-mblen-tests: Likewise.
29542         * modules/unistr/u16-mbsnlen-tests: Likewise.
29543         * modules/unistr/u16-mbtouc-tests: Likewise.
29544         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
29545         * modules/unistr/u16-mbtoucr-tests: Likewise.
29546         * modules/unistr/u16-move-tests: Likewise.
29547         * modules/unistr/u16-next-tests: Likewise.
29548         * modules/unistr/u16-prev-tests: Likewise.
29549         * modules/unistr/u16-set-tests: Likewise.
29550         * modules/unistr/u16-stpcpy-tests: Likewise.
29551         * modules/unistr/u16-stpncpy-tests: Likewise.
29552         * modules/unistr/u16-strcat-tests: Likewise.
29553         * modules/unistr/u16-strcmp-tests: Likewise.
29554         * modules/unistr/u16-strcoll-tests: Likewise.
29555         * modules/unistr/u16-strcpy-tests: Likewise.
29556         * modules/unistr/u16-strdup-tests: Likewise.
29557         * modules/unistr/u16-strlen-tests: Likewise.
29558         * modules/unistr/u16-strmblen-tests: Likewise.
29559         * modules/unistr/u16-strmbtouc-tests: Likewise.
29560         * modules/unistr/u16-strncat-tests: Likewise.
29561         * modules/unistr/u16-strncmp-tests: Likewise.
29562         * modules/unistr/u16-strncpy-tests: Likewise.
29563         * modules/unistr/u16-strnlen-tests: Likewise.
29564         * modules/unistr/u16-to-u32-tests: Likewise.
29565         * modules/unistr/u16-to-u8-tests: Likewise.
29566         * modules/unistr/u16-uctomb-tests: Likewise.
29567         * modules/unistr/u32-check-tests: Likewise.
29568         * modules/unistr/u32-chr-tests: Likewise.
29569         * modules/unistr/u32-cmp-tests: Likewise.
29570         * modules/unistr/u32-cmp2-tests: Likewise.
29571         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29572         * modules/unistr/u32-cpy-tests: Likewise.
29573         * modules/unistr/u32-mblen-tests: Likewise.
29574         * modules/unistr/u32-mbsnlen-tests: Likewise.
29575         * modules/unistr/u32-mbtouc-tests: Likewise.
29576         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29577         * modules/unistr/u32-mbtoucr-tests: Likewise.
29578         * modules/unistr/u32-move-tests: Likewise.
29579         * modules/unistr/u32-next-tests: Likewise.
29580         * modules/unistr/u32-prev-tests: Likewise.
29581         * modules/unistr/u32-set-tests: Likewise.
29582         * modules/unistr/u32-stpcpy-tests: Likewise.
29583         * modules/unistr/u32-stpncpy-tests: Likewise.
29584         * modules/unistr/u32-strcat-tests: Likewise.
29585         * modules/unistr/u32-strcmp-tests: Likewise.
29586         * modules/unistr/u32-strcoll-tests: Likewise.
29587         * modules/unistr/u32-strcpy-tests: Likewise.
29588         * modules/unistr/u32-strdup-tests: Likewise.
29589         * modules/unistr/u32-strlen-tests: Likewise.
29590         * modules/unistr/u32-strmblen-tests: Likewise.
29591         * modules/unistr/u32-strmbtouc-tests: Likewise.
29592         * modules/unistr/u32-strncat-tests: Likewise.
29593         * modules/unistr/u32-strncmp-tests: Likewise.
29594         * modules/unistr/u32-strncpy-tests: Likewise.
29595         * modules/unistr/u32-strnlen-tests: Likewise.
29596         * modules/unistr/u32-to-u16-tests: Likewise.
29597         * modules/unistr/u32-to-u8-tests: Likewise.
29598         * modules/unistr/u32-uctomb-tests: Likewise.
29599         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29600         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29601         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29602         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29603         * modules/uniwidth/u8-strwidth-tests: Likewise.
29604         * modules/uniwidth/u8-width-tests: Likewise.
29605         * modules/uniwidth/u16-strwidth-tests: Likewise.
29606         * modules/uniwidth/u16-width-tests: Likewise.
29607         * modules/uniwidth/u32-strwidth-tests: Likewise.
29608         * modules/uniwidth/u32-width-tests: Likewise.
29609         * modules/uniwidth/width-tests: Likewise.
29610
29611 2010-05-18  Richard Jones  <rjones@redhat.com>
29612
29613         doc: users.txt: list hivex
29614         * users.txt: Add hivex.
29615
29616 2010-05-18  Richard Jones  <rjones@redhat.com>
29617
29618         doc: users.txt: list febootstrap
29619         * users.txt: Add febootstrap.
29620
29621 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29622
29623         bootstrap: fix an error when gnulib is not used as a git submodule
29624         * build-aux/bootstrap (gnulib_path): If its length is zero then
29625         assign "gnulib" to it.
29626         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29627
29628 2010-05-16  Bruno Haible  <bruno@clisp.org>
29629
29630         Avoid autoconf warnings about AM_ICONV.
29631         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29632         2.64.
29633
29634 2010-05-16  Bruno Haible  <bruno@clisp.org>
29635
29636         absolute-header: Make the macro usable in more situations.
29637         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29638         from gl_ABSOLUTE_HEADER.
29639         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29640
29641 2010-05-16  James Youngman  <jay@gnu.org>
29642
29643         doc: update users.txt
29644         * users.txt: Add CSSC.
29645
29646 2010-05-16  Jim Meyering  <meyering@redhat.com>
29647
29648         init.sh: fix an error in the previous change; add more comments
29649         * tests/init.sh: Compare exit code in loop against 9, not 2.
29650         Patch by Bruno Haible.
29651         Make the two tests more similar by adding an empty "then" clause.
29652         Add comments.
29653
29654         init.sh: avoid unnecessary shell re-exec
29655         * tests/init.sh: Improve the re-exec-required check to first test the
29656         current shell.  If it passes the test, do not search for a shell that
29657         does pass, and do not re-exec.  This test is particularly contorted to
29658         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29659         of $(...) evokes a syntax error and causes immediate shell exit with
29660         status 2.  Bruno Haible reported that the re-exec made it impossible
29661         to single-step through any init.sh-using script.
29662
29663 2010-05-16  Bruno Haible  <bruno@clisp.org>
29664
29665         Fix collision between gnulib's and libintl's printf replacements.
29666         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29667         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29668         (printf): When using GNU C, map the __printf__ function to rpl_printf
29669         via __asm__. When not using GNU C, define rpl_printf instead of
29670         __printf__.
29671         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29672         commit.
29673         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29674         commit.
29675         * m4/asm-underscore.m4: New file.
29676         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29677         * modules/stdio (Files): Add m4/asm-underscore.m4.
29678         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29679         Reported by Ben Pfaff.
29680
29681 2010-05-16  Bruno Haible  <bruno@clisp.org>
29682
29683         verify: Avoid skipping the test on openSUSE 11.0.
29684         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29685
29686 2010-05-13  Bruno Haible  <bruno@clisp.org>
29687
29688         Avoid useless warnings from G++.
29689         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29690         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29691         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29692
29693 2010-05-11  Jim Meyering  <meyering@redhat.com>
29694
29695         maint.mk: tweak preceding change
29696         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29697         regexps tighter by anchoring at EOL, and make the new group "shy"
29698         for slightly decreased overhead.
29699
29700 2010-05-11  Eric Blake  <eblake@redhat.com>
29701
29702         maint.mk: gnulib doesn't guarantee NSIG
29703         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29704
29705 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29706
29707         test-pwrite.c: Remove unused variable declaration.
29708         * tests/test-pwrite.c (main): Remove read_buf declaration.
29709
29710         Remove useless test-pwrite.sh file.
29711         * tests/test-pwrite.sh: Delete file.
29712         * modules/pwrite-tests: Remove references.
29713         Reported by Bruno Haible.
29714
29715 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29716
29717         init.sh: fix a typo
29718         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29719
29720 2010-05-10  Jim Meyering  <meyering@redhat.com>
29721
29722         maint.mk: avoid using a temporary file in the always-defined-macros check
29723         * top/maint.mk (.re-defmac): Remove rule.
29724         (gl_trap_): Remove definition.
29725         (sc_prohibit_always-defined_macros): Rewrite not to create and
29726         depend on a temporary file.  Instead, depend on GNU grep's ability
29727         to read a list of regular expressions from stdin when given "-f -".
29728
29729 2010-05-09  Bruno Haible  <bruno@clisp.org>
29730
29731         Update to GNU gettext 0.18, part 1.
29732         * m4/gettext.m4: Update to GNU gettext 0.18.
29733         * m4/intl.m4: Likewise.
29734         * m4/po.m4: Likewise.
29735         * modules/gettext (Files): Add m4/fcntl-o.m4.
29736         (configure.ac): Require gettext infrastructure from version 0.18.
29737
29738 2010-05-09  Jim Meyering  <meyering@redhat.com>
29739
29740         init.sh: enable MALLOC_PERTURB_
29741         * tests/init.sh: Enable glibc's malloc-perturbing option.
29742
29743         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29744         With my recent change in init.sh from the two-line form:
29745             -#   : ${srcdir=.}
29746             -#   . "$srcdir/init.sh"; path_prepend_ .
29747             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29748         I noticed that using the one-line form would cause this test
29749         to fail with a false-positive, or to stop working altogether,
29750         depending on whether help-version changed or all the tests did.
29751         * top/maint.mk (_hv_regex): Remove this definition.
29752         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29753         (_hv_regex_strong): Use a stronger regex to check for conformance.
29754         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29755         Give a separate diagnostic for lack of conforming use.
29756
29757         maint.mk: prohibit definition of symbols defined by gnulib
29758         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29759         definition of symbols defined by gnulib.
29760
29761 2010-05-09  Bruno Haible  <bruno@clisp.org>
29762
29763         acl: Avoid test failure on Cygwin-hosted mingw.
29764         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29765
29766 2010-05-09  Bruno Haible  <bruno@clisp.org>
29767
29768         error: Use system's fcntl function.
29769         * lib/error.c (fcntl): Undefine.
29770
29771 2010-05-09  Jim Meyering  <meyering@redhat.com>
29772
29773         verify: adjust formatting to be more consistent
29774         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29775         argument-list '('s, and after one comma.
29776
29777 2010-05-09  Bruno Haible  <bruno@clisp.org>
29778
29779         error: More reliable output on mingw.
29780         * lib/error.c: Include <windows.h>.
29781         (is_open): New function.
29782         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29783         defined.
29784
29785 2010-05-09  Bruno Haible  <bruno@clisp.org>
29786
29787         vasnprintf: Fix syntax errors in libintl build on mingw.
29788         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29789         pad_ourselves and prec_ourselves after use.
29790
29791 2010-05-08  Bruno Haible  <bruno@clisp.org>
29792
29793         * lib/config.charset: Update comments for Cygwin 1.7.
29794         * lib/localcharset.c: Likewise.
29795
29796 2010-05-07  Jim Meyering  <meyering@redhat.com>
29797
29798         init.sh: improve comments
29799         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29800         . "${srcdir=.}/init.sh"; path_prepend_ .
29801         Add a note about path_prepend_ and the alternative of using
29802         TESTS_ENVIRONMENT.
29803
29804 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29805
29806         exclude: Unescape hashed patterns in wildcard mode.
29807         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29808         to the hash list.
29809         * tests/test-exclude8.sh: New test case.
29810         * modules/exclude-tests: Add new test.
29811
29812 2010-05-05  Eric Blake  <eblake@redhat.com>
29813
29814         verify: automate tests
29815         * modules/verify-tests: New module.
29816         * tests/test-verify.sh: New file.
29817         * tests/test-verify.c: Guard each negative test with a unique id.
29818         Also avoid warning about unused left hand of comma expressions.
29819
29820 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29821
29822         Further improvements to verify.h, suggested by Eric Blake.
29823         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29824         the GL_* versions, to avoid collision with OpenGL.
29825         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29826         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29827         than testing merely whether it's defined.
29828
29829         Modify verify.h to pacify gcc -Wredundant_decls.
29830         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29831         These use the prefix "GL_" since they're likely to be useful elsewhere.
29832         We may need to break them out into a different .h file.
29833         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29834         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29835         of verify_function__.
29836
29837 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29838
29839         Tests for module pwrite.
29840         * modules/pwrite-tests: New file.
29841         * tests/test-pwrite.sh: New file.
29842         * tests/test-pwrite.c: New file.
29843
29844         New module pwrite.
29845         * lib/unistd.in.h (pwrite): New declaration.
29846         * lib/pwrite.c: New file, from glibc with modifications.
29847         * m4/pwrite.m4: New file.
29848         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29849         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29850         REPLACE_PWRITE.
29851         * modules/pwrite: New file.
29852         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29853         REPLACE_PWRITE.
29854         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29855         * doc/posix-functions/pwrite.texi: Mention the new module.
29856
29857 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29858
29859         pread: Update documentation.
29860         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29861
29862 2010-05-04  Eric Blake  <eblake@redhat.com>
29863
29864         docs: update cygwin progress
29865         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29866         this bug.
29867         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29868         Added in cygwin 1.7.2.
29869         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29870         Likewise.
29871         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29872         Likewise.
29873         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29874         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29875         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29876         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29877         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29878         Mention nproc module.
29879         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29880         bug in cygwin 1.7.5 addition.
29881         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29882         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29883         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29884         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29885         1.7.5.
29886         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29887         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29888         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29889         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29890         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29891         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29892         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29893         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29894         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29895         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29896         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29897         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29898         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29899         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29900         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29901         Likewise.
29902         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29903         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29904         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29905         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29906         Likewise.
29907         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29908         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29909         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29910         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29911         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29912         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29913         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29914         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29915         Likewise.
29916         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29917         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29918         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29919         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29920         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29921         Likewise.
29922         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29923         Likewise.
29924         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29925         Likewise.
29926         * doc/glibc-functions/xdrrec_endofrecord.texi
29927         (xdrrec_endofrecord): Likewise.
29928         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29929         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29930         Likewise.
29931         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29932         Likewise.
29933
29934 2010-05-04  Jim Meyering  <meyering@redhat.com>
29935
29936         gendocs.sh: make its "-s FILE" option more useful
29937         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29938         $PACKAGE to reflect the probably-different basename of "FILE".
29939
29940 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29941
29942         bootstrap: don't ignore download_po_files failure
29943         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29944         failure.
29945
29946 2010-05-03  Jim Meyering  <meyering@redhat.com>
29947
29948         maint.mk: allow to pass options to gendocs.sh
29949         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29950         (gendocs_options_): New overridable variable.
29951
29952         gnu-web-doc-update: don't ignore configure or build failure
29953         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29954
29955         announce-gen: backslash-escape '@'s in --help output
29956         * build-aux/announce-gen: Fix syntax errors.
29957
29958         maint.mk, announce-gen: allow project-specific announcement mail headers
29959         * top/maint.mk (translation_project_): Define default.
29960         (announcement_Cc_, announcement_mail_headers_): Likewise.
29961         (announcement): Invoke announce-gen with new --mail-headers option.
29962         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29963
29964         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29965         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29966         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29967         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29968         line in the "err2" output file when running "make check" in verbose
29969         mode (i.e., with set -x enabled).
29970
29971 2010-05-03  Bruno Haible  <bruno@clisp.org>
29972
29973         wctob: Fix for weird platforms.
29974         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29975         argument value.
29976
29977 2010-05-03  Jim Meyering  <meyering@redhat.com>
29978
29979         maint.mk: prohibit unwarranted use of <strings.h>
29980         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29981         strings.h in a file that does not also use strcasecmp, strncasecmp,
29982         ffs or ffsll.
29983
29984         maint.mk: remove obsolete comments
29985         * top/maint.mk: Remove stale, commented-out rules.
29986
29987 2010-05-02  Bruno Haible  <bruno@clisp.org>
29988
29989         wcwidth: Declare also when it's aliased.
29990         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29991         macro.
29992
29993 2010-05-02  Bruno Haible  <bruno@clisp.org>
29994
29995         Fix regression from 2010-04-25.
29996         * gnulib-tool (func_modules_transitive_closure): Check the status of
29997         all modules, not only of the tests that are of the form foo-tests where
29998         foo is a module.
29999
30000 2010-05-02  Bruno Haible  <bruno@clisp.org>
30001
30002         wctob: Work around nasty Cygwin 1.7.2 bug.
30003         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
30004         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
30005
30006 2010-05-01  Bruno Haible  <bruno@clisp.org>
30007
30008         fpurge: Sharper test.
30009         * tests/test-fpurge.c (main): Add one more ftell check.
30010         * modules/fpurge-tests (Depends-on): Add ftell.
30011         Suggested by Eric Blake.
30012
30013 2010-05-01  Bruno Haible  <bruno@clisp.org>
30014
30015         ftello: Another test.
30016         * tests/test-ftello3.c: New file.
30017         * modules/ftello-tests (Files): Add it.
30018         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30019         MOSTLYCLEANFILES.
30020
30021         ftell: Another test.
30022         * tests/test-ftell3.c: New file.
30023         * modules/ftell-tests (Files): Add it.
30024         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30025         MOSTLYCLEANFILES.
30026
30027 2010-05-01  Bruno Haible  <bruno@clisp.org>
30028
30029         ftell, ftello: Work around Solaris bug.
30030         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
30031         * lib/ftello.c: Include stdio-impl.h.
30032         (ftello): On Solaris, when _IOWRT is set, compute the result without
30033         looking at _IOREAD.
30034         * modules/ftello (Files): Add lib/stdio-impl.h.
30035         * doc/posix-functions/ftell.texi: Mention Solaris bug.
30036         * doc/posix-functions/ftello.texi: Likewise.
30037         Reported by Eric Blake.
30038
30039 2010-05-01  Bruno Haible  <bruno@clisp.org>
30040
30041         freading: Adapt to special meaning of _IOREAD flag on Solaris.
30042         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
30043         the _IOWRT flag is also set.
30044
30045 2010-05-01  Bruno Haible  <bruno@clisp.org>
30046
30047         Fix doc about a HP-UX stdio bug.
30048         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
30049         * doc/posix-functions/ftello.texi: Likewise.
30050
30051 2010-05-01  Bruno Haible  <bruno@clisp.org>
30052
30053         lseek test: Fix failure on Solaris.
30054         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
30055         output.
30056
30057 2010-04-30  Jim Meyering  <meyering@redhat.com>
30058
30059         bootstrap: don't ignore failure to generate po*/Makevars
30060         * build-aux/bootstrap (with_gettext): Don't ignore failure
30061         to create po/Makevars or runtime-po/Makevars.
30062
30063 2010-04-29  Eric Blake  <eblake@redhat.com>
30064
30065         headers: relax license to LGPLv2+
30066         * modules/fcntl-h (License): Relax license.
30067         * modules/getopt-posix (License): Likewise.
30068         * modules/locale (License): Likewise.
30069         * modules/math (License): Likewise.
30070         * modules/pty (License): Likewise.
30071         * modules/sched (License): Likewise.
30072         * modules/search (License): Likewise.
30073         * modules/spawn (License): Likewise.
30074         * modules/stdarg (License): Likewise.
30075         * modules/sysexits (License): Likewise.
30076
30077 2010-04-29  Jim Meyering  <meyering@redhat.com>
30078
30079         inttypes: relax license to LGPLv2+
30080         * modules/inttypes (License): Relax license.
30081
30082 2010-04-29  Simon Josefsson  <simon@josefsson.org>
30083
30084         * top/maint.mk (indent): Run twice to produce idempotent results.
30085
30086 2010-04-28  Bruno Haible  <bruno@clisp.org>
30087
30088         getdate: Generate getdate.c in the source directory.
30089         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
30090         MOSTLYCLEANFILES.
30091         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
30092
30093 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
30094
30095         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
30096         is not declared as a const *; avoid warnings in that case.
30097
30098 2010-04-28  Eric Blake  <eblake@redhat.com>
30099
30100         canonicalize-lgpl: avoid compiler warning
30101         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
30102         declaration' / 'extraneous semicolon' warning with some compilers.
30103         Reported by Andreas Gruenbacher.
30104
30105 2010-04-28  Jim Meyering  <meyering@redhat.com>
30106
30107         init.sh: ensure a more reliable exit status when exiting via trap
30108         * tests/init.sh (setup_): Don't rely on $? in signal handler.
30109         Inspired by patches from Dmitry V. Levin.
30110         Also trap on signal 3 (SIGQUIT).
30111
30112 2010-04-27  Bruno Haible  <bruno@clisp.org>
30113
30114         Update doc about utimes().
30115         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
30116         'utimens' module.
30117         Reported by Andreas Gruenbacher <agruen@suse.de>.
30118
30119 2010-04-27  Eric Blake  <eblake@redhat.com>
30120
30121         full-read, full-write: relax license
30122         * modules/full-read (License): Drop to LGPLv2+.
30123         * modules/full-write (License): Likewise.
30124         * modules/safe-read (License): Likewise.
30125         * modules/safe-write (License): Likewise.
30126
30127         pthread: mention library for linking
30128         * modules/pthread (Link): Mention $(LIB_PTHREAD).
30129
30130 2010-04-27  Jim Meyering  <meyering@redhat.com>
30131
30132         maint.mk: fix a bug introduced in last change
30133         * top/maint.mk (gl_assured_headers_): Now that all names are on
30134         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
30135         is not anchored to end of word, it should be adequate.
30136
30137         maint.mk: avoid side-effect in latest syntax-check
30138         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
30139         to run commands via $(shell...), and hence to incur cost only when
30140         the new rule is actually run.
30141
30142         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
30143         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
30144         and use that to create a regexp used to detect all #if HAVE_..._H uses.
30145         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
30146         (gl_assured_headers_, az_, AZ_): Define.
30147         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
30148
30149 2010-04-26  Jim Meyering  <jim@meyering.net>
30150             Bruno Haible  <bruno@clisp.org>
30151
30152         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
30153         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
30154         Prompted by an exchange with Gilles Espinasse.
30155
30156 2010-04-26  Jim Meyering  <meyering@redhat.com>
30157
30158         git-version-gen: aesthetic tweak
30159         * build-aux/git-version-gen: Use "$nl" rather than a literal,
30160         so that the command remains on a single line.
30161
30162 2010-04-26  Eric Blake  <eblake@redhat.com>
30163
30164         git-version-gen: allow use on EBCDIC hosts
30165         * build-aux/git-version-gen (dirty): Use literal rather than tying
30166         ourselves to ascii.
30167         Reported by Steve Goetze.
30168
30169 2010-04-25  Bruno Haible  <bruno@clisp.org>
30170
30171         netdb: Add support for GNULIB_POSIXCHECK.
30172         * lib/netdb.in.h: Include warn-on-use.h.
30173         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
30174         functions are used when GNULIB_POSIXCHECK is defined and the
30175         getaddrinfo module is not in use.
30176         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
30177         freeaddrinfo, gai_strerror, getnameinfo are declared.
30178         * modules/netdb (Depends-on): Add warn-on-use.
30179         (Makefile.am): Include warn-on-use.h in netdb.h.
30180
30181 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
30182
30183         build: avoid "make check" failure without .git/ directory
30184         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
30185         there is no .git/ directory.
30186
30187 2010-04-25  Bruno Haible  <bruno@clisp.org>
30188
30189         ptsname: Fix misuse of ttyname_r.
30190         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
30191         of errno.
30192
30193 2010-04-25  Bruno Haible  <bruno@clisp.org>
30194
30195         ttyname_r: Make it work on Solaris 10.
30196         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
30197         if the system function has the POSIX declaration. Test whether the
30198         function fails if the buffer is less than 128 bytes large.
30199         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
30200         system's ttyname_r function. Provide a reasonably large buffer.
30201         * modules/ttyname_r (Depends-on): Add extensions.
30202         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
30203
30204 2010-04-25  Bruno Haible  <bruno@clisp.org>
30205
30206         Use the 'extensions' module for some more functions on Solaris.
30207         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
30208         module.
30209         * doc/posix-functions/ctime_r.texi: Likewise.
30210         * doc/posix-functions/getgrgid_r.texi: Likewise.
30211         * doc/posix-functions/getgrnam_r.texi: Likewise.
30212         * doc/posix-functions/getpwnam_r.texi: Likewise.
30213         * doc/posix-functions/getpwuid_r.texi: Likewise.
30214         * doc/posix-functions/readdir_r.texi: Likewise.
30215         * doc/posix-functions/sigwait.texi: Likewise.
30216         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
30217         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
30218
30219 2010-04-25  Bruno Haible  <bruno@clisp.org>
30220
30221         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
30222         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
30223         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
30224         * lib/ttyname_r.c: Include <limits.h>.
30225         (ttyname_r): Define using the system's ttyname_r function, if it exists
30226         and not on Solaris.
30227         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
30228         set.
30229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
30230         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
30231         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
30232         Reported by Simon Josefsson.
30233
30234 2010-04-25  Bruno Haible  <bruno@clisp.org>
30235
30236         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
30237         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
30238         * doc/posix-functions/ctime_r.texi: Likewise.
30239         * doc/posix-functions/getgrgid_r.texi: Likewise.
30240         * doc/posix-functions/getgrnam_r.texi: Likewise.
30241         * doc/posix-functions/getlogin_r.texi: Likewise.
30242         * doc/posix-functions/getpwnam_r.texi: Likewise.
30243         * doc/posix-functions/getpwuid_r.texi: Likewise.
30244         * doc/posix-functions/readdir_r.texi: Likewise.
30245         * doc/posix-functions/sigwait.texi: Likewise.
30246         * doc/posix-functions/ttyname_r.texi: Likewise.
30247         Reported by Simon Josefsson.
30248
30249 2010-04-25  Bruno Haible  <bruno@clisp.org>
30250
30251         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
30252         * gnulib-tool (func_usage): Document that --with-*-tests options apply
30253         also to --create-testdir.
30254         (func_acceptable): Don't consider the status of *-tests modules here.
30255         (func_modules_transitive_closure): Consider it here, before including a
30256         test module.
30257         (func_import, func_create_testdir): Set inc_all_direct_tests,
30258         inc_all_indirect_tests.
30259         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
30260         --create-testdir and --create-megatestdir.
30261
30262 2010-04-25  Bruno Haible  <bruno@clisp.org>
30263
30264         gnulib-tool: Add --without-*-tests options.
30265         * gnulib-tool (func_usage): Document the --without-*-tests options.
30266         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
30267         excl_unportable_tests): New variables.
30268         Fail if they are specified with --import or --update.
30269         (func_acceptable): Respect the excl_*_tests variables.
30270         (func_import): Set the excl_*_tests variables to empty.
30271
30272 2010-04-25  Simon Josefsson  <simon@josefsson.org>
30273             Bruno Haible  <bruno@clisp.org>
30274
30275         Work around a MacOS X 10.4 bug with openpty.
30276         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
30277         * tests/test-openpty.c (main): Close the master side explicitly.
30278
30279 2010-04-25  Bruno Haible  <bruno@clisp.org>
30280
30281         strnlen: Fix a C++ test error on MacOS X and Solaris.
30282         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
30283         the function is not declared.
30284         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
30285         Simon Josefsson.
30286
30287 2010-04-24  Bruno Haible  <bruno@clisp.org>
30288
30289         Avoid a gcc warning.
30290         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
30291         of correct type for %08lx directive.
30292         Reported by Eric Blake.
30293
30294 2010-04-24  Bruno Haible  <bruno@clisp.org>
30295
30296         vasnprintf: Correct errno value in case of out-of-memory.
30297         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
30298         or sprintf. Use the errno value from SNPRINTF or sprintf.
30299         Reported by Ian Beckwith <ianb@erislabs.net>.
30300
30301 2010-04-24  Bruno Haible  <bruno@clisp.org>
30302
30303         ansi-c++-opt: Find correct compiler when cross-compiling.
30304         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
30305         AC_CHECK_PROGS.
30306         Reported by Simon Josefsson.
30307
30308 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
30309
30310         vc-list-files: Add support for subversion
30311         * build-aux/vc-list-files: Use "svn list" to generate the list of
30312         files controlled by subversion.
30313
30314 2010-04-23  Jim Meyering  <meyering@redhat.com>
30315
30316         vc-list-files tests: convert to use init.sh
30317         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
30318         path_prepend_.
30319         Use Exit, not exit.
30320         Use skip_ rather than open coding it.
30321         Remove trap set-up and compare definitions.
30322         * tests/test-vc-list-files-git.sh: Likewise.
30323         * modules/vc-list-files-tests (Files): Add tests/init.sh.
30324
30325 2010-04-22  Simon Josefsson  <simon@josefsson.org>
30326
30327         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
30328         backup files.
30329
30330 2010-04-21  Simon Josefsson  <simon@josefsson.org>
30331
30332         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
30333
30334 2010-04-20  Eric Blake  <eblake@redhat.com>
30335
30336         tests: be robust to ignored SIGPIPE
30337         * tests/test-select-in.sh: Consume all output.
30338         * tests/test-lseek.sh: Check correct exit status, while avoiding
30339         EPIPE.
30340
30341 2010-04-20  Simon Josefsson  <simon@josefsson.org>
30342             Bruno Haible  <bruno@clisp.org>
30343
30344         visibility: Don't use -fvisibility if it leads to a warning.
30345         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
30346         yes, don't pretend that visibility works if it leads to a warning.
30347         Reported by Mike Gran <spk121@yahoo.com>.
30348
30349 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
30350
30351         * build-aux/bootstrap: Use "git -h" for testing for supported options
30352         instead of "git --help".  The short-form option only shows a summary,
30353         and doesn't layout the full man page.  Grep for the full option name
30354         in the summary, too.
30355
30356 2010-04-19  Bruno Haible  <bruno@clisp.org>
30357
30358         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
30359         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
30360         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
30361         mention of RELOCATABLE_STRIP.
30362         Reported by Sylvain Beucler <beuc@beuc.net>.
30363
30364 2010-04-19  Bruno Haible  <bruno@clisp.org>
30365
30366         * lib/diffseq.h: Fix typo in comment.
30367         Reported by Eric Blake.
30368
30369 2010-04-19  Bruno Haible  <bruno@clisp.org>
30370
30371         ioctl: Move autoconf macro to a .m4 file.
30372         * m4/ioctl.m4: New file, extracted from modules/ioctl.
30373         * modules/ioctl (Files): Add it.
30374         (configure.ac): Simply invoke gl_FUNC_IOCTL.
30375         Reported by Ian Beckwith <ianb@erislabs.net>.
30376
30377 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
30378             Bruno Haible  <bruno@clisp.org>
30379
30380         diffseq: Accommodate use-case with abstract arrays.
30381         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
30382         is not defined.
30383         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
30384         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
30385
30386 2010-04-18  Bruno Haible  <bruno@clisp.org>
30387
30388         * doc/posix-headers/stdbool.texi: More precise wording.
30389
30390 2010-04-17  Jim Meyering  <meyering@redhat.com>
30391
30392         maint.mk: use gnu-style indentation in an embedded perl script
30393         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
30394         Rename variable: s/two/last_two_bytes/
30395
30396 2010-04-16  Eric Blake  <eblake@redhat.com>
30397
30398         test-stdbool: skip test that fails with Solaris CC
30399         * tests/test-stdbool.c (f): Skip test that causes compilation
30400         error under buggy C++ compiler.
30401         * lib/stdbool.in.h: Document the limitation.
30402         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
30403
30404         setenv: allow compilation with C++
30405         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
30406         register keyword.
30407
30408         stdint: allow test to pass with C++
30409         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
30410
30411         getopt: allow compilation with C++
30412         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
30413         struct.
30414         * lib/getopt.c (_getopt_internal_r): Use correct type.
30415         Reported by Dagobert Michelson, via Joel E. Denny.
30416
30417 2010-04-16  Bruno Haible  <bruno@clisp.org>
30418
30419         Override netdb.h always.
30420         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
30421         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
30422         Reported by Ludovic Courtès <ludo@gnu.org>.
30423
30424 2010-04-15  Bruno Haible  <bruno@clisp.org>
30425
30426         openpty: Fix mistake from 2010-03-21.
30427         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
30428         Reported by Simon Josefsson.
30429
30430 2010-04-15  Eric Blake  <eblake@redhat.com>
30431
30432         test-forkpty: fix expected signature
30433         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
30434         Reported by Simon Josefsson.
30435
30436 2010-04-15  Jim Meyering  <meyering@redhat.com>
30437
30438         maint.mk: texinfo_suffix_re_: correct the default regexp
30439         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
30440
30441         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
30442         make it configurable via texinfo_suffix_re_.
30443
30444 2010-04-14  Eric Blake  <eblake@redhat.com>
30445
30446         strtok_r: relax license to LGPLv2+
30447         * modules/strtok_r (License): Relax license.
30448         Reported by Matthias Bolte.
30449
30450 2010-04-14  Simon Josefsson  <simon@josefsson.org>
30451
30452         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
30453         version 1.4.4 by default instead of requiring the libgcrypt
30454         version used during build.  This makes it possible to use the
30455         application with older but still binary compatible libgcrypt
30456         versions.
30457
30458 2010-04-13  Eric Blake  <eblake@redhat.com>
30459
30460         getopt-gnu: match recent glibc fixes and posix ruling
30461         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
30462         '+' handling, when requesting extensions.
30463         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
30464         'W;' handling.
30465         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
30466         * doc/posix-functions/getopt.texi (getopt): Document this.
30467         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30468         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30469         Likewise.
30470
30471         getopt: merge bug fixes from glibc
30472         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
30473         diagnostics.  Honor '+:' correctly.  Reject ';'.
30474
30475         getopt-posix: detect MacOS bug
30476         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
30477         optind when missing a required argument.
30478         * doc/posix-functions/getopt.texi (getopt): Document the bug.
30479         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30480         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30481         Likewise.
30482
30483         getopt-posix: avoid spurious failure on Solaris
30484         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
30485         an indicator that setting optind=1 is sufficient for reset.
30486
30487         getopt-posix: avoid spurious failure on FreeBSD
30488         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
30489         in POSIX mode, since the m4 test uses it.
30490
30491         gnulib-tool: silence warning on BSD sh
30492         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
30493
30494 2010-04-13  Jim Meyering  <meyering@redhat.com>
30495
30496         doc: users.txt: GNU patch now uses gnulib
30497         * users.txt: Add patch.
30498
30499 2010-04-12  Jim Meyering  <meyering@redhat.com>
30500
30501         maint.mk: generate more concise timing data for syntax-check rules
30502         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
30503         " done" from each line that reports a syntax-check test duration.
30504
30505 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
30506
30507         git-version-gen: use "git update-index..." rather than "git status"
30508         * build-aux/git-version-gen: Use git update-index --refresh, not
30509         "git status".  With some versions of git, "git status" would fail
30510         to update the index and result in an unwarranted "-dirty" suffix.
30511
30512 2010-04-11  Jim Meyering  <meyering@redhat.com>
30513
30514         openat: correct formatting (no semantic change)
30515         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
30516         Suggested by Bruno Haible.
30517
30518 2010-04-11  Bruno Haible  <bruno@clisp.org>
30519
30520         Stricter declaration checking in testdirs.
30521         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30522         If for_tests is true, augment AM_CPPFLAGS to define
30523         GNULIB_STRICT_CHECKING.
30524         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
30525         GNULIB_STRICT_CHECKING is defined, verify that the function is
30526         declared.
30527
30528 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
30529             Bruno Haible  <bruno@clisp.org>
30530
30531         libunistring: Improve configure output.
30532         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
30533         Don't say "consider installing GNU libunistring" when checking again
30534         with libiconv.
30535
30536 2010-04-11  Bruno Haible  <bruno@clisp.org>
30537
30538         libunistring: Correct value of $LTLIBUNISTRING.
30539         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
30540         correct the value of $LTLIBUNISTRING.
30541
30542 2010-04-11  Bruno Haible  <bruno@clisp.org>
30543
30544         havelib: Add static libraries to LIBS in the right order.
30545         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
30546         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
30547
30548 2010-04-11  Bruno Haible  <bruno@clisp.org>
30549
30550         libunistring: Detect libunistring also when it depends on libiconv.
30551         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
30552         the second AC_LIB_HAVE_LINKFLAGS invocation.
30553
30554 2010-04-11  James Youngman  <jay@gnu.org>
30555
30556         close-stream: declare local scalars to be "const"
30557         * lib/close-stream.c (close_stream): Make boolean variables const
30558         to document the fact that we set but do not change them.
30559
30560 2010-04-11  Bruno Haible  <bruno@clisp.org>
30561
30562         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30563
30564 2010-04-11  Jim Meyering  <meyering@redhat.com>
30565
30566         maint.mk: don't include dist-check.mk
30567         * top/maint.mk: Remove bogus include directive.
30568
30569         maint.mk: improve empty-line-at-EOF check
30570         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30571         solution, rather than tail+Perl-based one.  The latter would read
30572         a few kilobytes from the end of each file, and did not handle empty
30573         files properly.
30574
30575         maint.mk: print the elapsed time for each syntax-check rule
30576         * top/maint.mk (sc_m_rules_): Save start time in a file.
30577         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30578         (local-check): Interpose the .z rules
30579
30580 2010-04-11  Jim Meyering  <meyering@redhat.com>
30581
30582         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30583         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30584         empty file with one that ends in an empty line.
30585
30586 2010-04-10  Bruno Haible  <bruno@clisp.org>
30587
30588         mkdir: Make it work on mingw64.
30589         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30590         * lib/mkdir.c: Update comment.
30591         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
30592
30593 2010-04-10  Bruno Haible  <bruno@clisp.org>
30594
30595         Don't override improved macro from newer autoconf.
30596         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30597         autoconf >= 2.62.
30598         Reported by Joel E. Denny <jdenny@clemson.edu>.
30599
30600 2010-04-10  Jim Meyering  <meyering@redhat.com>
30601
30602         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30603         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30604
30605         maint.mk: correct a diagnostic
30606         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30607         in diagnostic; now use $prohibit.
30608
30609 2010-04-10  Bruno Haible  <address@hidden>
30610
30611         fchownat: Fix a C++ test error on Solaris 8.
30612         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30613         the function does not exist.
30614
30615 2010-04-10  Bruno Haible  <bruno@clisp.org>
30616
30617         vasnprintf: Add more tests.
30618         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30619         (test_function): Test converting an invalid wide string.
30620
30621         vasnprintf: Correct handling of unconvertible wide string arguments.
30622         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30623         VASNPRINTF.
30624         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30625         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30626         smaller than the expected maximum need for the directive. Set errno to
30627         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30628         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30629         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30630         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30631         * modules/vasnprintf (Files): Add m4/printf.m4.
30632         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30633
30634 2010-04-10  Bruno Haible  <bruno@clisp.org>
30635
30636         vasnprintf: Fix crash in %ls directive.
30637         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30638         string is passed as argument to %ls, with no precision and no width.
30639         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30640
30641 2010-04-10  Bruno Haible  <bruno@clisp.org>
30642
30643         vasnprintf: Fix multiple test failures on mingw.
30644         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30645         _snprintf, or snwprintf, not _snwprintf.
30646
30647 2010-04-10  Bruno Haible  <bruno@clisp.org>
30648
30649         write: Fix a C++ test error on mingw.
30650         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30651
30652 2010-04-10  Bruno Haible  <bruno@clisp.org>
30653
30654         vasnprintf test: Reduce code duplication.
30655         * tests/test-vasnprintf.c (test_function): New function, extracted from
30656         test_vasnprintf.
30657         (test_vasnprintf, test_asnprintf): Invoke it.
30658
30659 2010-04-10  Bruno Haible  <bruno@clisp.org>
30660
30661         strnlen: Fix warning in C++ mode on MacOS X.
30662         * lib/string.in.h (strnlen): Use the modern idiom.
30663         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30664         defining strnlen as a macro already in <config.h>.
30665         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30666         REPLACE_STRNLEN.
30667         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30668         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30669
30670 2010-04-08  James Youngman  <jay@gnu.org>
30671
30672         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30673         the example.
30674
30675 2010-04-09  Jim Meyering  <meyering@redhat.com>
30676
30677         maint.mk: print better diagnostic when there is no $(_hv_file)
30678         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30679         announce that when $(_hv_file) (aka help-version) does not exist.
30680
30681         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30682         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30683         not try to interpret its random input bytes.  Jarno Rajahalme reported
30684         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30685         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30686         (mktempd_): Likewise, just in case.
30687
30688         ftruncate: add two years to projected module removal date: 2012
30689         * m4/ftruncate.m4: Adjust comments.
30690
30691         ftruncate: mark module as obsolete; even MinGW provides it, now
30692         * modules/ftruncate (Status): Obsolete.
30693         (Notice): Say that.
30694         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30695         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30696
30697 2010-04-08  Bruno Haible  <bruno@clisp.org>
30698
30699         Fix side effects from tests-related modules.
30700         * modules/dprintf-posix (Comment): New section.
30701         * modules/fprintf-posix (Comment): Likewise.
30702         * modules/obstack-printf-posix (Comment): Likewise.
30703         * modules/printf-posix (Comment): Likewise.
30704         * modules/snprintf-posix (Comment): Likewise.
30705         * modules/sprintf-posix (Comment): Likewise.
30706         * modules/vasnprintf-posix (Comment): Likewise.
30707         * modules/vasprintf-posix (Comment): Likewise.
30708         * modules/vdprintf-posix (Comment): Likewise.
30709         * modules/vfprintf-posix (Comment): Likewise.
30710         * modules/vprintf-posix (Comment): Likewise.
30711         * modules/vsnprintf-posix (Comment): Likewise.
30712         * modules/vsprintf-posix (Comment): Likewise.
30713         * modules/xprintf-posix (Comment): Likewise.
30714         * modules/xvasprintf-posix (Comment): Likewise.
30715         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30716         * modules/floorf-tests (Depends-on): Likewise.
30717         * modules/round-tests (Depends-on): Likewise.
30718         * modules/roundf-tests (Depends-on): Likewise.
30719         * modules/trunc-tests (Depends-on): Likewise.
30720         * modules/truncf-tests (Depends-on): Likewise.
30721         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30722         'fprintf-posix' module is not present.
30723         * tests/test-floorf2.c (check): Likewise.
30724         * tests/test-trunc2.c (check): Likewise.
30725         * tests/test-truncf2.c (check): Likewise.
30726         * tests/test-round2.c (equal): Likewise.
30727         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30728
30729 2010-04-07  Karl Berry  <karl@gnu.org>
30730
30731         * config/srclist.txt,
30732         * config/srclistvars.sh,
30733         * config/srclist-update: doc fixes.
30734
30735 2010-04-07  Jim Meyering  <meyering@redhat.com>
30736
30737         maint.mk: add a PATH crosschecking syntax-check rule
30738         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30739         Useful if you use a test like the one in help-version (coreutils,
30740         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30741         printed by prog --version.
30742
30743 2010-04-06  Bruno Haible  <bruno@clisp.org>
30744
30745         Fix link error on mingw.
30746         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30747         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30748
30749 2010-04-06  Bruno Haible  <bruno@clisp.org>
30750
30751         Assume rmdir exists.
30752         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30753
30754 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30755
30756         doc: update users.txt
30757         * users.txt: Add gcal.
30758
30759 2010-04-06  Jim Meyering  <meyering@redhat.com>
30760
30761         init.sh: simply unset TMPDIR rather than risking env -i
30762         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30763         although it probably works fine on all Unix-based systems, some
30764         systems (Cygwin?) cannot tolerate a totally cleared environment.
30765         Suggestion from Eric Blake.
30766
30767 2010-04-06  Jim Meyering  <meyering@redhat.com>
30768
30769         init.sh: portability fix: use env's POSIX-specified -i option not -u
30770         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30771         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30772
30773 2010-04-05  Bruno Haible  <bruno@clisp.org>
30774
30775         btowc: Work around Cygwin 1.7.2 bug.
30776         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30777         does not map NUL to 0.
30778         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30779
30780 2010-04-05  Bruno Haible  <bruno@clisp.org>
30781
30782         Make the multithread modules work on Cygwin 1.7.2.
30783         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30784         imported symbols can be declared weak, so that it returns "no" on
30785         Cygwin 1.7.2.
30786
30787 2010-04-05  Bruno Haible  <bruno@clisp.org>
30788
30789         Use the module 'strncat'.
30790         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30791
30792         Tests for module 'strncat'.
30793         * modules/strncat-tests: New file.
30794         * tests/test-strncat.c: New file.
30795
30796         New module 'strncat'.
30797         * lib/string.in.h (strncat): New declaration.
30798         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30799         * m4/strncat.m4: New file, based on m4/memchr.m4.
30800         * modules/strncat: New file.
30801         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30802         is declared.
30803         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30804         REPLACE_STRNCAT.
30805         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30806         REPLACE_STRNCAT.
30807         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30808         module.
30809         * tests/test-string-c++.cc: Check signature of strncat.
30810
30811 2010-04-05  Jim Meyering  <meyering@redhat.com>
30812
30813         xstrtoumax-tests: convert to use init.sh
30814         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30815         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30816         Use Exit, not exit.
30817         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30818
30819         xstrtoimax-tests: convert to use init.sh
30820         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30821         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30822         Use Exit, not exit.
30823         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30824
30825 2010-04-05  Bruno Haible  <bruno@clisp.org>
30826
30827         sys_socket: Avoid #define replacements in C++ mode.
30828         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30829         warning to the function if possible, rather than #defining the symbol
30830         to a dysfunctional alias.
30831
30832 2010-04-05  Bruno Haible  <bruno@clisp.org>
30833
30834         fseeko: Fix C++ test error on mingw.
30835         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30836         gl_FUNC_FSEEKO.
30837         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30838         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30839         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30840         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30841
30842 2010-04-05  Bruno Haible  <bruno@clisp.org>
30843
30844         duplocale: Improve test output.
30845         * tests/test-duplocale.c (main): Print reason for skipped test.
30846
30847 2010-04-05  Bruno Haible  <bruno@clisp.org>
30848
30849         Assume rmdir exists.
30850         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30851         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30852
30853 2010-04-05  Bruno Haible  <bruno@clisp.org>
30854
30855         Fix link error on Solaris 8 with cc.
30856         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30857
30858 2010-04-05  Bruno Haible  <bruno@clisp.org>
30859
30860         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30861         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30862
30863 2010-04-05  Bruno Haible  <bruno@clisp.org>
30864
30865         vasprintf: Update documentation.
30866         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30867
30868 2010-04-05  Bruno Haible  <bruno@clisp.org>
30869
30870         ptsname: Improve test.
30871         * tests/test-ptsname.c (main): Also try the various master names of BSD
30872         systems.
30873
30874 2010-04-05  Bruno Haible  <bruno@clisp.org>
30875
30876         memchr: Avoid a possible C++ test error.
30877         * lib/string.in.h (memchr): Provide declaration if function is missing.
30878         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30879         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30880         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30881         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30882
30883 2010-04-05  Bruno Haible  <bruno@clisp.org>
30884
30885         strtok_r: Improve idiom.
30886         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30887         AC_LIBOBJ is used.
30888
30889 2010-04-05  Bruno Haible  <bruno@clisp.org>
30890
30891         strdup: Improve idiom.
30892         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30893         AC_LIBOBJ is used.
30894         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30895         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30896         when AC_LIBOBJ is used.
30897
30898 2010-04-05  Bruno Haible  <bruno@clisp.org>
30899
30900         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30901         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30902         don't set REPLACE_MBSINIT to 1.
30903         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30904         don't set REPLACE_MBRTOWC to 1.
30905         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30906         exist, don't set REPLACE_MBSRTOWCS to 1.
30907         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30908         exist, don't set REPLACE_MBSNRTOWCS to 1.
30909         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30910         don't set REPLACE_WCRTOMB to 1.
30911         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30912         exist, don't set REPLACE_WCSRTOMBS to 1.
30913         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30914         exist, don't set REPLACE_WCSNRTOMBS to 1.
30915
30916 2010-04-05  Bruno Haible  <bruno@clisp.org>
30917
30918         ldexpl: Improve idiom.
30919         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30920         make sure to set HAVE_DECL_LDEXPL to 0.
30921
30922 2010-04-05  Jim Meyering  <meyering@redhat.com>
30923
30924         xstrtol-tests: convert to use init.sh
30925         * modules/xstrtol-tests (Files): Add tests/init.sh.
30926         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30927         Use Exit, not exit.
30928         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30929
30930         atexit-tests: convert to use init.sh
30931         * modules/atexit-tests (Files): Add tests/init.sh.
30932         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30933         Use Exit, not exit.
30934         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30935
30936         init.sh: fix typo
30937         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30938
30939         init.sh: make it easier for a test script to write to the tty, ...
30940         when using automake's parallel-tests mode.
30941         * tests/init.sh (stderr_fileno_): Define overridable variable.
30942         (warn_): New function, to use it.
30943         (fail_, skip_, framework_failure_): Use warn_.
30944
30945 2010-04-04  Bruno Haible  <bruno@clisp.org>
30946
30947         btowc: Avoid warning.
30948         * lib/btowc.c: Include <stdlib.h>.
30949         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30950
30951 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30952             Bruno Haible  <bruno@clisp.org>
30953
30954         wchar: Port to NetBSD 1.5.
30955         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30956         * lib/wctype.in.h (WEOF): Likewise.
30957
30958 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30959             Bruno Haible  <bruno@clisp.org>
30960
30961         Port extended stdio to NetBSD 1.5.
30962         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30963         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30964         older.
30965
30966 2010-04-04  Bruno Haible  <bruno@clisp.org>
30967
30968         string: Remove unused substitution.
30969         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30970         HAVE_DECL_STRERROR.
30971         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30972
30973 2010-04-04  Bruno Haible  <bruno@clisp.org>
30974
30975         strtod: Avoid a possible C++ test error.
30976         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30977         set REPLACE_STRTOD.
30978
30979 2010-04-04  Bruno Haible  <bruno@clisp.org>
30980
30981         strerror: Update documentation.
30982         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30983
30984 2010-04-04  Bruno Haible  <bruno@clisp.org>
30985
30986         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30987         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30988         _GL_CXXALIAS_SYS_CAST.
30989
30990 2010-04-04  Bruno Haible  <bruno@clisp.org>
30991
30992         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30993         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30994         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30995         REPLACE_FREXPL to 1.
30996         * doc/posix-functions/frexpl.texi: Update documentation.
30997
30998 2010-04-04  Bruno Haible  <bruno@clisp.org>
30999
31000         math: Fix some C++ test errors on Solaris 8 and Cygwin.
31001         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
31002
31003 2010-04-04  Bruno Haible  <bruno@clisp.org>
31004
31005         Implement nanosleep for native Windows.
31006         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
31007
31008 2010-04-04  Bruno Haible  <bruno@clisp.org>
31009
31010         math: Fix some C++ test errors on Solaris 8.
31011         * lib/math.in.h (truncf, trunc): Use simpler idiom.
31012
31013 2010-04-04  Bruno Haible  <bruno@clisp.org>
31014
31015         math: Fix some C++ test errors on Cygwin.
31016         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
31017         truncl): Provide declaration if the system does not have it.
31018         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
31019         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
31020         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
31021         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
31022         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
31023         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
31024         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
31025         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
31026         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
31027         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
31028         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
31029         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
31030         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
31031         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
31032         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
31033         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
31034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
31035         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31036         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31037         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
31038         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31039         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31040
31041 2010-04-04  Bruno Haible  <bruno@clisp.org>
31042
31043         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
31044         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
31045         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
31046         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
31047         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31048         * m4/isinf.m4 (gl_ISINF): Likewise.
31049         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31050
31051 2010-04-04  Bruno Haible  <bruno@clisp.org>
31052
31053         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
31054         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31055
31056 2010-04-04  Bruno Haible  <bruno@clisp.org>
31057
31058         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
31059         * modules/tmpfile (configure.ac): Update.
31060
31061         tmpfile: Fix C++ test error on mingw.
31062         * lib/stdio.in.h (tmpfile): New declaration.
31063         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
31064         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
31065         * modules/tmpfile (Depends-on): Add stdio.
31066         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31067         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
31068         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
31069         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
31070         REPLACE_TMPFILE.
31071         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
31072
31073 2010-04-04  Bruno Haible  <bruno@clisp.org>
31074
31075         ioctl: Fix C++ test error on mingw.
31076         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
31077         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
31078         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
31079
31080 2010-04-03  Bruno Haible  <bruno@clisp.org>
31081
31082         wcwidth: Fix C++ test error on mingw.
31083         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
31084         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
31085         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
31086
31087 2010-04-03  Bruno Haible  <bruno@clisp.org>
31088
31089         nanosleep: Fix C++ test error on mingw.
31090         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
31091         * lib/time.in.h (nanosleep): Use modern idiom.
31092         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
31093         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
31094         REPLACE_NANOSLEEP to 1.
31095         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
31096         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
31097
31098 2010-04-03  Bruno Haible  <bruno@clisp.org>
31099
31100         strptime: Fix C++ test error on mingw.
31101         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
31102         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
31103         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
31104         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
31105         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
31106         not REPLACE_STRPTIME.
31107         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
31108         REPLACE_STRPTIME.
31109
31110 2010-04-03  Bruno Haible  <bruno@clisp.org>
31111
31112         timegm: Fix C++ test error on mingw.
31113         * lib/time.in.h (timegm): Use modern idiom.
31114         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
31115         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
31116         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
31117         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
31118
31119 2010-04-03  Bruno Haible  <bruno@clisp.org>
31120
31121         timegm: Assume declaration if function exists.
31122         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
31123         if it exists. Don't clobber ac_cv_func_timegm.
31124
31125 2010-04-03  Bruno Haible  <bruno@clisp.org>
31126
31127         time_r: Fix C++ test error on mingw.
31128         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
31129         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
31130         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
31131         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
31132         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
31133
31134 2010-04-03  Bruno Haible  <bruno@clisp.org>
31135
31136         time_r: Minor updates.
31137         * modules/time_r (Description): Mention the provided functions.
31138         * lib/time_r.c: Don't include <string.h>.
31139         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
31140         * doc/posix-functions/localtime_r.texi: Likewise.
31141
31142 2010-04-03  Bruno Haible  <bruno@clisp.org>
31143
31144         time: Fix regression introduced on 2010-03-08.
31145         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
31146         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
31147
31148 2010-04-03  Jim Meyering  <meyering@redhat.com>
31149
31150         maint.mk: don't silently disable project-specific syntax-check rules
31151         * top/maint.mk (_prohibit_regexp): Define, to help people realize
31152         that they need to convert their project-specific syntax-check rules
31153         to use the new _sc_search_regexp.
31154
31155 2010-04-03  Bruno Haible  <bruno@clisp.org>
31156
31157         fchdir: Fix regression introduced on 2010-03-08.
31158         * lib/unistd.in.h (fchdir): Fix declaration.
31159         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
31160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
31161         REPLACE_FCHDIR.
31162         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
31163         REPLACE_FCHDIR.
31164
31165 2010-04-03  Bruno Haible  <bruno@clisp.org>
31166
31167         getpagesize: Fix C++ test error on mingw.
31168         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
31169         system does not declare the function.
31170         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
31171         declared.
31172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31173         HAVE_DECL_GETPAGESIZE.
31174         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
31175
31176 2010-04-03  Bruno Haible  <bruno@clisp.org>
31177
31178         stdio: Make C++ tests work on mingw.
31179         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
31180         does not declare the function.
31181
31182 2010-04-03  Bruno Haible  <bruno@clisp.org>
31183
31184         ftello: Fix C++ test error on mingw.
31185         * lib/stdio.in.h (ftello): Use modern idiom.
31186         * lib/ftello.c (ftello): Renamed from rpl_ftello.
31187         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
31188         is missing and that it needs to be replaced.
31189         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
31190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
31191         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
31192
31193 2010-04-03  Bruno Haible  <bruno@clisp.org>
31194
31195         fseeko: Fix C++ test error on mingw.
31196         * lib/stdio.in.h (fseeko): Use modern idiom.
31197         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
31198         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
31199         is missing and that it needs to be replaced.
31200         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
31201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
31202         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
31203
31204 2010-04-03  Bruno Haible  <bruno@clisp.org>
31205
31206         mkstemp: Fix C++ test error on mingw.
31207         * lib/stdlib.in.h (mkstemp): Use modern idiom.
31208         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
31209         function is missing and that it needs to be replaced.
31210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
31211         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
31212
31213 2010-04-03  Bruno Haible  <bruno@clisp.org>
31214
31215         stpncpy: Fix C++ test error on mingw.
31216         * lib/string.in.h (stpncpy): Use modern idiom.
31217         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
31218         function is missing and that it needs to be replaced.
31219         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31220         REPLACE_STPNCPY.
31221         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
31222
31223 2010-04-03  Bruno Haible  <bruno@clisp.org>
31224
31225         sys_stat: Fix C++ test error on mingw.
31226         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
31227         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
31228
31229 2010-04-03  Bruno Haible  <bruno@clisp.org>
31230
31231         pty: Update doc.
31232         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
31233
31234 2010-04-03  Bruno Haible  <bruno@clisp.org>
31235
31236         unistd: Fix C++ test error on mingw.
31237         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
31238
31239 2010-04-03  Bruno Haible  <bruno@clisp.org>
31240
31241         Update doc regarding mingw.
31242         * doc/glibc-functions/openpty.texi: Update regarding mingw.
31243         * doc/glibc-functions/login_tty.texi: Likewise.
31244         * doc/glibc-functions/forkpty.texi: Likewise.
31245
31246 2010-04-03  Bruno Haible  <bruno@clisp.org>
31247
31248         stdlib: Avoid compilation failure of c-strtold on mingw.
31249         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
31250
31251 2010-04-03  Bruno Haible  <bruno@clisp.org>
31252
31253         locale: Make C++ tests work on Cygwin and mingw.
31254         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
31255         cannot provide the function.
31256         Reported by Simon Josefsson.
31257
31258 2010-04-03  Bruno Haible  <bruno@clisp.org>
31259
31260         localename: Port to MacOS X 10.6.
31261         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
31262         memory layout of the locales in MacOS X 10.6 as well.
31263         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
31264
31265 2010-04-02  Bruno Haible  <bruno@clisp.org>
31266
31267         gnulib-tool: Ensure that long-running tests are executed last.
31268         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
31269         running tests after the one for the other tests.
31270
31271 2010-04-02  Bruno Haible  <bruno@clisp.org>
31272
31273         gnulib-tool: Ensure the tests in the main directory are executed first.
31274         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
31275         start with the current directory.
31276
31277 2010-04-02  Bruno Haible  <bruno@clisp.org>
31278
31279         Tests for module 'havelib', moved here from GNU gettext.
31280         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
31281         modifications.
31282         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
31283         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
31284         with modifications.
31285         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
31286         modifications.
31287         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
31288         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
31289         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
31290         with modifications.
31291         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
31292         with modifications.
31293         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
31294         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
31295         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
31296         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
31297         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
31298         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
31299         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
31300         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
31301         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
31302         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
31303         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
31304         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
31305         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
31306         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
31307         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
31308         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
31309         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
31310         with modifications.
31311         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
31312         with modifications.
31313         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
31314         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
31315         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
31316         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
31317         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
31318         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
31319         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
31320         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
31321         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
31322         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
31323         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
31324         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
31325         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
31326         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
31327         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
31328         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
31329         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
31330         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
31331         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
31332         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
31333         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
31334         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
31335         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
31336         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
31337         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
31338         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
31339         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
31340         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
31341         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
31342         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
31343         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
31344         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
31345         * tests/havelib/rpathx/rpathx.c: New file, from
31346         gettext/autoconf-lib-link.
31347         * tests/havelib/rpathx/Makefile.am: New file, from
31348         gettext/autoconf-lib-link.
31349         * tests/havelib/rpathx/configure.ac: New file, from
31350         gettext/autoconf-lib-link with modifications.
31351         * tests/havelib/rpathy/rpathy.c: New file, from
31352         gettext/autoconf-lib-link.
31353         * tests/havelib/rpathy/Makefile.am: New file, from
31354         gettext/autoconf-lib-link.
31355         * tests/havelib/rpathy/configure.ac: New file, from
31356         gettext/autoconf-lib-link with modifications.
31357         * tests/havelib/rpathz/rpathz.c: New file, from
31358         gettext/autoconf-lib-link.
31359         * tests/havelib/rpathz/Makefile.am: New file, from
31360         gettext/autoconf-lib-link.
31361         * tests/havelib/rpathz/configure.ac: New file, from
31362         gettext/autoconf-lib-link with modifications.
31363         * tests/havelib/rpathlx/usex.c: New file, from
31364         gettext/autoconf-lib-link.
31365         * tests/havelib/rpathlx/Makefile.am: New file, from
31366         gettext/autoconf-lib-link.
31367         * tests/havelib/rpathlx/configure.ac: New file, from
31368         gettext/autoconf-lib-link with modifications.
31369         * tests/havelib/rpathly/usey.c: New file, from
31370         gettext/autoconf-lib-link.
31371         * tests/havelib/rpathly/Makefile.am: New file, from
31372         gettext/autoconf-lib-link.
31373         * tests/havelib/rpathly/configure.ac: New file, from
31374         gettext/autoconf-lib-link with modifications.
31375         * tests/havelib/rpathlz/usez.c: New file, from
31376         gettext/autoconf-lib-link.
31377         * tests/havelib/rpathlz/Makefile.am: New file, from
31378         gettext/autoconf-lib-link.
31379         * tests/havelib/rpathlz/configure.ac: New file, from
31380         gettext/autoconf-lib-link with modifications.
31381         * tests/havelib/rpathlyx/usey.c: New file, from
31382         gettext/autoconf-lib-link.
31383         * tests/havelib/rpathlyx/Makefile.am: New file, from
31384         gettext/autoconf-lib-link.
31385         * tests/havelib/rpathlyx/configure.ac: New file, from
31386         gettext/autoconf-lib-link with modifications.
31387         * tests/havelib/rpathlzyx/usez.c: New file, from
31388         gettext/autoconf-lib-link.
31389         * tests/havelib/rpathlzyx/Makefile.am: New file, from
31390         gettext/autoconf-lib-link.
31391         * tests/havelib/rpathlzyx/configure.ac: New file, from
31392         gettext/autoconf-lib-link with modifications.
31393         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
31394         with modifications.
31395
31396 2010-04-02  Bruno Haible  <bruno@clisp.org>
31397
31398         gnulib-tool: Create distributed built sources also for the tests.
31399         * gnulib-tool (func_create_testdir): Also generate distributed built
31400         sources in the tests directory.
31401
31402 2010-04-02  Bruno Haible  <bruno@clisp.org>
31403
31404         gnulib-tool: Obey user's environment variables.
31405         * gnulib-tool (func_create_testdir): When creating built sources,
31406         respect the environment variables for autoconf, automake, etc. given by
31407         the user.
31408
31409 2010-04-02  Bruno Haible  <bruno@clisp.org>
31410
31411         gnulib-tool: Provide the value of --m4-base to modules.
31412         * gnulib-tool (func_import, func_create_testdir): Emit a definition
31413         of gl_m4_base.
31414
31415 2010-04-02  Eric Blake  <eblake@redhat.com>
31416
31417         maint.mk: fix some fallout
31418         * NEWS: Document the incompatible change, and its effect on cfg.mk.
31419         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
31420
31421 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31422
31423         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
31424         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
31425         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
31426         (sc_cast_of_x_alloc_return_value): Likewise.
31427         (sc_cast_of_alloca_return_value): Likewise.
31428         (sc_space_tab): Likewise.
31429         (sc_prohibit_atoi_atof): Likewise.
31430         (sc_prohibit_magic_number_exit): Likewise.
31431         (sc_error_exit_success): Likewise.
31432         (sc_file_system): Likewise.
31433         (sc_prohibit_have_config_h): Likewise.
31434         (sc_require_config_h): Likewise.
31435         (sc_prohibit_HAVE_MBRTOWC): Likewise.
31436         (sc_obsolete_symbols): Likewise.
31437         (sc_changelog): Likewise.
31438         (sc_program_name): Likewise.
31439         (sc_the_the): Likewise.
31440         (sc_trailing_blank): Likewise.
31441         (sc_two_space_separator_in_usage): Likewise.
31442         (sc_useless_cpp_parens): Likewise.
31443         (sc_GPL_version): Likewise.
31444         (sc_GFDL_version): Likewise.
31445         (sc_texinfo_acronym): Likewise.
31446         (sc_prohibit_cvs_keyword): Likewise.
31447         (sc_prohibit_stat_st_blocks): Likewise.
31448         (sc_prohibit_S_IS_definition): Likewise.
31449         (sc_redundant_const): Likewise.
31450         (sc_makefile_TAB_only_indentation): Likewise.
31451         (sc_m4_quote_check): Likewise.
31452         (sc_makefile_path_separator_check): Likewise.
31453         (sc_copyright_check): Likewise.
31454         (sc_Wundef_boolean): Likewise.
31455         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31456
31457         maint.mk: match 0 or more whitespace-before-function-call '('
31458         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
31459         that have zero or two-and-more spaces between the function name
31460         and the open parenthesis.
31461         (sc_error_message_warn_fatal): Likewise.
31462         (sc_error_message_uppercase): Likewise.
31463         (sc_error_message_period): Likewise.
31464
31465 2010-03-31  Eric Blake  <eblake@redhat.com>
31466
31467         maint.mk: check for [ as well as test
31468         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
31469         Based on a libvirt report by Matthias Bolte.
31470
31471         gnumakefile: don't squelch _version output
31472         * top/GNUmakefile (_version): Create one-shot dependency rather
31473         than using $(shell) when version must be regenerated.
31474         (_autoreconf): Run verbosely, by default.
31475
31476         sys_time: avoid compiler warnings
31477         * lib/sys_time.in.h (includes): Ensure gcc pragma is
31478         unconditional, fixing regression from 2010-03-29.
31479         Reported by Simon Josefsson.
31480
31481 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31482
31483         maint.mk: s/_header_without_use/_sc_header_without_use/
31484         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
31485         (sc_prohibit_assert_without_use): Use the new name.
31486         (sc_prohibit_close_stream_without_use): Likewise.
31487         (sc_prohibit_getopt_without_use): Likewise.
31488         (sc_prohibit_quotearg_without_use): Likewise.
31489         (sc_prohibit_quote_without_use): Likewise.
31490         (sc_prohibit_long_options_without_use): Likewise.
31491         (sc_prohibit_inttostr_without_use): Likewise.
31492         (sc_prohibit_ignore_value_without_use): Likewise.
31493         (sc_prohibit_error_without_use): Likewise.
31494         (sc_prohibit_xalloc_without_use): Likewise.
31495         (sc_prohibit_hash_without_use): Likewise.
31496         (sc_prohibit_hash_pjw_without_use): Likewise.
31497         (sc_prohibit_safe_read_without_use): Likewise.
31498         (sc_prohibit_argmatch_without_use): Likewise.
31499         (sc_prohibit_canonicalize_without_use): Likewise.
31500         (sc_prohibit_root_dev_ino_without_use): Likewise.
31501         (sc_prohibit_openat_without_use): Likewise.
31502         (sc_prohibit_c_ctype_without_use): Likewise.
31503         (sc_prohibit_signal_without_use): Likewise.
31504         (sc_prohibit_intprops_without_use): Likewise.
31505
31506 2010-03-30  Eric Blake  <eblake@redhat.com>
31507
31508         maint: improve module indicators
31509         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
31510         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
31511         columns, and avoid extra macro expansion.
31512
31513         fdopendir: work around FreeBSD bug
31514         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31515         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
31516         * modules/dirent (Makefile.am): Substitute it.
31517         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
31518         declaration.
31519         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
31520         fix.
31521         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31522
31523 2010-03-29  Bruno Haible  <bruno@clisp.org>
31524
31525         Emit #pragma system_header after the inclusion guard, not before.
31526         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
31527         guard that spans the entire file, not before. This enables an
31528         optimization in GCC's preprocessor.
31529         * lib/ctype.in.h: Likewise.
31530         * lib/dirent.in.h: Likewise.
31531         * lib/errno.in.h: Likewise.
31532         * lib/float.in.h: Likewise.
31533         * lib/getopt.in.h: Likewise.
31534         * lib/iconv.in.h: Likewise.
31535         * lib/langinfo.in.h: Likewise.
31536         * lib/locale.in.h: Likewise.
31537         * lib/math.in.h: Likewise.
31538         * lib/netdb.in.h: Likewise.
31539         * lib/netinet_in.in.h: Likewise.
31540         * lib/pty.in.h: Likewise.
31541         * lib/sched.in.h: Likewise.
31542         * lib/se-selinux.in.h: Likewise.
31543         * lib/search.in.h: Likewise.
31544         * lib/spawn.in.h: Likewise.
31545         * lib/stdarg.in.h: Likewise.
31546         * lib/stdint.in.h: Likewise.
31547         * lib/string.in.h: Likewise.
31548         * lib/strings.in.h: Likewise.
31549         * lib/sys_file.in.h: Likewise.
31550         * lib/sys_ioctl.in.h: Likewise.
31551         * lib/sys_time.in.h: Likewise.
31552         * lib/sys_times.in.h: Likewise.
31553         * lib/sys_utsname.in.h: Likewise.
31554         * lib/sys_wait.in.h: Likewise.
31555         * lib/sysexits.in.h: Likewise.
31556         * lib/wctype.in.h: Likewise.
31557
31558 2010-03-28  James Youngman  <jay@gnu.org>
31559
31560         save-cwd: don't leak a file descriptor when the caller execs.
31561         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31562         saved file descriptor.
31563         * modules/save-cwd (Depends-on): Depend on cloexec.
31564
31565 2010-03-29  Bruno Haible  <bruno@clisp.org>
31566
31567         Remove vestiges of fts-lgpl module.
31568         * lib/fts_.h: Assume GNULIB_FTS is 1.
31569         * lib/fts.c: Likewise.
31570         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31571
31572 2010-03-28  Bruno Haible  <bruno@clisp.org>
31573
31574         Fix definition of tests witness macro.
31575         * gnulib-tool (func_import): Fix definition of witness macro.
31576
31577 2010-03-28  Bruno Haible  <bruno@clisp.org>
31578
31579         Fix ioctl's protoype on glibc systems.
31580         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31581         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31582         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31583         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31584         signature. If not, arrange to replace the ioctl function.
31585         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31586         REPLACE_IOCTL.
31587         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31588         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31589         Reported by Ludovic Courtès <ludo@gnu.org>.
31590
31591 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31592
31593         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31594         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31595         made it so grep -r --include=GLOB* ... did not work.
31596
31597 2010-03-26  Jim Meyering  <meyering@redhat.com>
31598             Eric Blake  <eblake@redhat.com>
31599
31600         maint.mk: prohibit use of test's -o and -a operators
31601         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31602
31603 2010-03-28  Bruno Haible  <bruno@clisp.org>
31604
31605         Remove unused GNULIB_XYZ macro definitions.
31606         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31607         invocation.
31608
31609 2010-03-28  Bruno Haible  <bruno@clisp.org>
31610
31611         Mark privileged tests modules.
31612         * modules/idpriv-drop-tests (Status): New section.
31613         * modules/idpriv-droptemp-tests (Status): New section.
31614
31615 2010-03-28  Bruno Haible  <bruno@clisp.org>
31616
31617         Split C++ tests into separate tests modules.
31618         * modules/dirent-c++-tests: New file, extracted from
31619         modules/dirent-tests.
31620         * modules/dirent-tests: Depend on it.
31621         * modules/fcntl-h-c++-tests: New file, extracted from
31622         modules/fcntl-h-tests.
31623         * modules/fcntl-h-tests: Depend on it.
31624         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31625         * modules/glob-tests: Depend on it.
31626         * modules/iconv-h-c++-tests: New file, extracted from
31627         modules/iconv-h-tests.
31628         * modules/iconv-h-tests: Depend on it.
31629         * modules/langinfo-c++-tests: New file, extracted from
31630         modules/langinfo-tests.
31631         * modules/langinfo-tests: Depend on it.
31632         * modules/locale-c++-tests: New file, extracted from
31633         modules/locale-tests.
31634         * modules/locale-tests: Depend on it.
31635         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31636         * modules/math-tests: Depend on it.
31637         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31638         * modules/pty-tests: Depend on it.
31639         * modules/search-c++-tests: New file, extracted from
31640         modules/search-tests.
31641         * modules/search-tests: Depend on it.
31642         * modules/signal-c++-tests: New file, extracted from
31643         modules/signal-tests.
31644         * modules/signal-tests: Depend on it.
31645         * modules/spawn-c++-tests: New file, extracted from
31646         modules/spawn-tests.
31647         * modules/spawn-tests: Depend on it.
31648         * modules/stdio-c++-tests: New file, extracted from
31649         modules/stdio-tests.
31650         * modules/stdio-tests: Depend on it.
31651         * modules/stdlib-c++-tests: New file, extracted from
31652         modules/stdlib-tests.
31653         * modules/stdlib-tests: Depend on it.
31654         * modules/string-c++-tests: New file, extracted from
31655         modules/string-tests.
31656         * modules/string-tests: Depend on it.
31657         * modules/sys_ioctl-c++-tests: New file, extracted from
31658         modules/sys_ioctl-tests.
31659         * modules/sys_ioctl-tests: Depend on it.
31660         * modules/sys_select-c++-tests: New file, extracted from
31661         modules/sys_select-tests.
31662         * modules/sys_select-tests: Depend on it.
31663         * modules/sys_socket-c++-tests: New file, extracted from
31664         modules/sys_socket-tests.
31665         * modules/sys_socket-tests: Depend on it.
31666         * modules/sys_stat-c++-tests: New file, extracted from
31667         modules/sys_stat-tests.
31668         * modules/sys_stat-tests: Depend on it.
31669         * modules/sys_time-c++-tests: New file, extracted from
31670         modules/sys_time-tests.
31671         * modules/sys_time-tests: Depend on it.
31672         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31673         * modules/time-tests: Depend on it.
31674         * modules/unistd-c++-tests: New file, extracted from
31675         modules/unistd-tests.
31676         * modules/unistd-tests: Depend on it.
31677         * modules/wchar-c++-tests: New file, extracted from
31678         modules/wchar-tests.
31679         * modules/wchar-tests: Depend on it.
31680         * modules/wctype-c++-tests: New file, extracted from
31681         modules/wctype-tests.
31682         * modules/wctype-tests: Depend on it.
31683         Reported by Simon Josefsson.
31684
31685 2010-03-28  Bruno Haible  <bruno@clisp.org>
31686
31687         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31688         * gnulib-tool (func_exists_module): New function, extracted from
31689         func_verify_module.
31690         (func_verify_module): Use it.
31691         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31692         'foo' only if 'foo' exists.
31693         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31694         module.
31695
31696 2010-03-28  Bruno Haible  <bruno@clisp.org>
31697
31698         gnulib-tool: Add support for special categories of tests.
31699         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31700         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31701         (func_usage): Document them.
31702         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31703         inc_unportable_tests, inc_all_tests): New variables.
31704         (func_acceptable): Consider these variables.
31705         (func_modules_transitive_closure): Make it work when the 'Status' field
31706         consists of multiple words.
31707         (func_import): Store and restore the values of inc_cxx_tests,
31708         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31709         inc_all_tests in gnulib-comp.m4.
31710         (func_create_testdir): Set inc_all_tests to true.
31711         * doc/gnulib.texi (Extra tests modules): New section.
31712         Suggested by Jim Meyering.
31713
31714 2010-03-28  Bruno Haible  <bruno@clisp.org>
31715
31716         ansi-c++-opt: Allow turning off the C++ build by default.
31717         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31718         gl_CXX_CHOICE_DEFAULT_NO is defined.
31719         Requested by Eric Blake.
31720
31721 2010-03-28  Bruno Haible  <bruno@clisp.org>
31722
31723         unistd: Avoid #define replacements in C++ mode.
31724         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31725         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31726         setsockopt, shutdown, select): In C++, attach a warning to the function
31727         if possible, rather than #defining the symbol to a dysfunctional alias.
31728         Reported by John W. Eaton <jwe@gnu.org>.
31729
31730 2010-03-28  Bruno Haible  <bruno@clisp.org>
31731
31732         Fix link errors on mingw.
31733         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31734         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31735         $(LIBSOCKET).
31736         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31737         $(LIBSOCKET).
31738
31739 2010-03-28  Bruno Haible  <bruno@clisp.org>
31740             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31741
31742         lib-ignore: Determine different options for different compilers.
31743         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31744         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31745         Add comments.
31746         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31747         * NEWS: Mention the change.
31748
31749 2010-03-27  Bruno Haible  <bruno@clisp.org>
31750
31751         Remove unused GNULIB_XYZ macro definitions.
31752         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31753         * modules/fseek (configure.ac): Likewise.
31754         * modules/ioctl (configure.ac): Likewise.
31755         * modules/open (configure.ac): Likewise.
31756         * modules/stdlib-safer (configure.ac): Likewise.
31757
31758 2010-03-27  Bruno Haible  <bruno@clisp.org>
31759
31760         Add a remark about certain modules.
31761         * modules/malloc (Comment): New section.
31762         * modules/realloc (Comment): Likewise.
31763         * modules/sigpipe (Comment): Likewise.
31764
31765 2010-03-27  Bruno Haible  <bruno@clisp.org>
31766
31767         Resolve conflict between the two kinds of module indicators.
31768         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31769         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31770         * modules/canonicalize (configure.ac): Invoke
31771         gl_MODULE_INDICATOR_FOR_TESTS.
31772         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31773         GNULIB_XYZ.
31774         * tests/test-dirent-c++.cc: Likewise.
31775         * tests/test-dirent-safer.c: Likewise.
31776         * tests/test-dup2.c: Likewise.
31777         * tests/test-fchdir.c: Likewise.
31778         * tests/test-fcntl-h-c++.cc: Likewise.
31779         * tests/test-getopt.c: Likewise.
31780         * tests/test-getopt.h: Likewise.
31781         * tests/test-langinfo-c++.cc: Likewise.
31782         * tests/test-locale-c++.cc: Likewise.
31783         * tests/test-math-c++.cc: Likewise.
31784         * tests/test-pty-c++.cc: Likewise.
31785         * tests/test-search-c++.cc: Likewise.
31786         * tests/test-signal-c++.cc: Likewise.
31787         * tests/test-spawn-c++.cc: Likewise.
31788         * tests/test-stdio-c++.cc: Likewise.
31789         * tests/test-stdlib-c++.cc: Likewise.
31790         * tests/test-string-c++.cc: Likewise.
31791         * tests/test-sys_ioctl-c++.cc: Likewise.
31792         * tests/test-sys_select-c++.cc: Likewise.
31793         * tests/test-sys_socket-c++.cc: Likewise.
31794         * tests/test-sys_stat-c++.cc: Likewise.
31795         * tests/test-sys_time-c++.cc: Likewise.
31796         * tests/test-time-c++.cc: Likewise.
31797         * tests/test-unistd-c++.cc: Likewise.
31798         * tests/test-wchar-c++.cc: Likewise.
31799         * tests/uninorm/test-u8-nfc.c: Likewise.
31800         * tests/uninorm/test-u8-nfd.c: Likewise.
31801         * tests/uninorm/test-u8-nfkc.c: Likewise.
31802         * tests/uninorm/test-u8-nfkd.c: Likewise.
31803         * tests/uninorm/test-u16-nfc.c: Likewise.
31804         * tests/uninorm/test-u16-nfd.c: Likewise.
31805         * tests/uninorm/test-u16-nfkc.c: Likewise.
31806         * tests/uninorm/test-u16-nfkd.c: Likewise.
31807         * tests/uninorm/test-u32-nfc.c: Likewise.
31808         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31809         * tests/uninorm/test-u32-nfd.c: Likewise.
31810         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31811         * tests/uninorm/test-u32-nfkc.c: Likewise.
31812         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31813         * tests/uninorm/test-u32-nfkd.c: Likewise.
31814         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31815         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31816
31817 2010-03-27  Bruno Haible  <bruno@clisp.org>
31818
31819         Distinguish two kinds of module indicators.
31820         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31821         gl_MODULE_INDICATOR.
31822         (gl_MODULE_INDICATOR): New macro.
31823         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31824         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31825         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31826         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31827         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31828         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31829         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31830         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31831         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31832         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31833         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31834         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31835         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31836         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31837         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31838         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31839         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31840         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31841         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31842         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31843         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31844         * modules/cloexec (configure.ac): Likewise.
31845         * modules/getopt-gnu (configure.ac): Likewise.
31846         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31847         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31848         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31849         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31850
31851 2010-03-27  Bruno Haible  <bruno@clisp.org>
31852
31853         New module description field 'Comment'.
31854         * gnulib-tool: New option --extract-comment.
31855         (func_usage): Document it.
31856         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31857         (func_get_comment): New function.
31858         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31859
31860 2010-03-27  Bruno Haible  <bruno@clisp.org>
31861
31862         Addendum to 2010-02-07 commit.
31863         * gnulib-tool (func_usage): Document --extract-applicability option.
31864
31865 2010-03-27  Bruno Haible  <bruno@clisp.org>
31866
31867         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31868         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31869         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31870         rather than link errors.
31871
31872 2010-03-27  Bruno Haible  <bruno@clisp.org>
31873
31874         Avoid side effects from tests-related modules on the compilation of lib.
31875         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31876         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31877         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31878         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31879         macro.
31880         (func_import): Define a witness macro. Assign it a value that depends
31881         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31882         tests-related modules.
31883         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31884         Reported by Jim Meyering.
31885
31886 2010-03-27  Bruno Haible  <bruno@clisp.org>
31887
31888         Factorize common .m4 code.
31889         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31890         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31891         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31892         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31893         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31894         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31895         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31896         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31897         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31898         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31899         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31900         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31901         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31902         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31903         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31904         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31905         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31906         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31907         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31908         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31909         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31910         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31911         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31912         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31913         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31914         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31915         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31916         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31917         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31918         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31919         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31920         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31921
31922 2010-03-27  Bruno Haible  <bruno@clisp.org>
31923
31924         Fix a compilation error on Cygwin with g++ >= 4.3.
31925         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31926         if it is undefined or if we alias it to chmod.
31927         (lstat): Don't warn about the use of this function if it is undefined
31928         or if we alias it to stat.
31929         Reported by Simon Josefsson.
31930
31931 2010-03-27  Bruno Haible  <bruno@clisp.org>
31932
31933         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31934         * modules/getlogin (configure.ac): Update.
31935
31936         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31937         * modules/getlogin_r (configure.ac): Update.
31938
31939         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31940         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31941         * modules/inet_ntop (configure.ac): Update.
31942
31943         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31944         * modules/inet_pton (configure.ac): Update.
31945
31946         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31947         * modules/mbslen (configure.ac): Update.
31948
31949         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31950         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31951         * modules/forkpty (configure.ac): Update.
31952         * modules/openpty (configure.ac): Update.
31953
31954 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31955
31956         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31957         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31958
31959 2010-03-25  Eric Blake  <eblake@redhat.com>
31960
31961         maint: use pragma consistently across replacement headers
31962         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31963         * lib/dirent.in.h (system_header): Likewise.
31964         * lib/errno.in.h (system_header): Likewise.
31965         * lib/float.in.h (system_header): Likewise.
31966         * lib/getopt.in.h (system_header): Likewise.
31967         * lib/iconv.in.h (system_header): Likewise.
31968         * lib/inttypes.in.h (system_header): Likewise.
31969         * lib/langinfo.in.h (system_header): Likewise.
31970         * lib/locale.in.h (system_header): Likewise.
31971         * lib/math.in.h (system_header): Likewise.
31972         * lib/netdb.in.h (system_header): Likewise.
31973         * lib/netinet_in.in.h (system_header): Likewise.
31974         * lib/pty.in.h (system_header): Likewise.
31975         * lib/sched.in.h (system_header): Likewise.
31976         * lib/se-selinux.in.h (system_header): Likewise.
31977         * lib/search.in.h (system_header): Likewise.
31978         * lib/spawn.in.h (system_header): Likewise.
31979         * lib/stdarg.in.h (system_header): Likewise.
31980         * lib/stdint.in.h (system_header): Likewise.
31981         * lib/string.in.h (system_header): Likewise.
31982         * lib/strings.in.h (system_header): Likewise.
31983         * lib/sys_file.in.h (system_header): Likewise.
31984         * lib/sys_ioctl.in.h (system_header): Likewise.
31985         * lib/sys_socket.in.h (system_header): Likewise.
31986         * lib/sys_times.in.h (system_header): Likewise.
31987         * lib/sys_utsname.in.h (system_header): Likewise.
31988         * lib/sys_wait.in.h (system_header): Likewise.
31989         * lib/sysexits.in.h (system_header): Likewise.
31990         * lib/unistd.in.h (system_header): Likewise.
31991         * lib/wctype.in.h (system_header): Likewise.
31992
31993         arpa/inet: fix mingw compilation warning
31994         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31995         Reported by Matthew Bolte.
31996
31997 2010-03-25  Bruno Haible  <bruno@clisp.org>
31998
31999         Avoid collision between gnulib wrapper and libintl wrapper.
32000         * lib/printf.c (printf): Don't define if a printf wrapper is already
32001         defined in intl/printf.c.
32002         Reported by Michel Boaventura <michel@michelboaventura.com>.
32003
32004 2010-03-25  Bruno Haible  <bruno@clisp.org>
32005
32006         Use ANSI C.
32007         * lib/readutmp.h (getutent): Provide ANSI C prototype.
32008
32009 2010-03-25  Bruno Haible  <bruno@clisp.org>
32010
32011         Minor formatting changes.
32012         * lib/acosl.c: Insert space before function argument list.
32013         * lib/argz.c: Likewise.
32014         * lib/asinl.c: Likewise.
32015         * lib/expl.c: Likewise.
32016         * lib/gen-uni-tables.c: Likewise.
32017         * lib/gettext.h: Likewise.
32018         * lib/glthread/lock.h: Likewise.
32019         * lib/tanl.c: Likewise.
32020         * lib/uniname/uniname.c: Likewise.
32021         * tests/test-idpriv-drop.c: Likewise.
32022         * tests/test-idpriv-droptemp.c: Likewise.
32023         * tests/test-lock.c: Likewise.
32024         * tests/test-tls.c: Likewise.
32025         * lib/argp-help.c: Insert space before function-like macro argument
32026         list.
32027         * lib/memcmp.c: Likewise.
32028         * tests/test-base64.c: Likewise.
32029         * lib/localename.c: Insert space before sizeof's argument list.
32030         * lib/safe-alloc.h: Likewise.
32031         * lib/file-set.h: Insert space before macro argument list.
32032         * tests/test-argp.c: Likewise.
32033         * lib/argp-namefrob.h: Insert space before function parameter list.
32034         * lib/getaddrinfo.c: Likewise.
32035         * lib/netdb.in.h: Likewise.
32036         * lib/parse-duration.h: Likewise.
32037         * lib/parse-duration.c: Likewise.
32038         * lib/poll.c: Likewise.
32039         * lib/select.c: Likewise.
32040         * lib/trim.h: Likewise.
32041         * tests/test-usleep.c: Likewise.
32042         * lib/ldexpl.c: Insert space before function parameter list and before
32043         function argument list.
32044         * lib/logl.c: Likewise.
32045         * lib/sqrtl.c: Likewise.
32046         * lib/trim.c: Likewise.
32047         * lib/cosl.c: Use GNU style indentation. Insert space before function
32048         argument list.
32049         * lib/sinl.c: Likewise.
32050         * lib/tsearch.c: Insert space after 'for'.
32051         Reported by Jim Meyering.
32052
32053 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
32054
32055         * maint.mk (sc_Wundef_boolean): Check for the presence of the
32056         config header before grepping, as it's not present before
32057         autoreconf/configure are run.  Reported by Simon Josefsson.
32058
32059 2010-03-23  Bruno Haible  <bruno@clisp.org>
32060
32061         pt_chown: Make it work with automake < 1.11.
32062         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
32063         Reported by Simon Josefsson.
32064
32065 2010-03-23  Bruno Haible  <bruno@clisp.org>
32066
32067         pt_chown: Don't depend on GPLed modules.
32068         * lib/pt_chown.c: Don't include idpriv.h.
32069         (main): Don't drop privileges.
32070         * modules/pt_chown (Depends-on): Remove idpriv-drop.
32071         Reported by Simon Josefsson.
32072
32073 2010-03-24  Simon Josefsson  <simon@josefsson.org>
32074
32075         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
32076         suggestions from karl@freefriends.org (Karl Berry).
32077
32078 2010-03-22  Eric Blake  <eblake@redhat.com>
32079
32080         gethostname: further tweaks
32081         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
32082         are overriding gethostname.
32083         Suggested by Bruno Haible.
32084
32085 2010-03-21  Bruno Haible  <bruno@clisp.org>
32086
32087         Fix comments.
32088         * lib/forkpty.c (rpl_forkpty): Fix comment.
32089         * lib/openpty.c (rpl_openpty): Likewise.
32090         Reported by Eric Blake.
32091
32092 2010-03-22  Eric Blake  <eblake@redhat.com>
32093
32094         gethostname: fix build on mingw
32095         * lib/unistd.in.h (includes): Work around fact that mingw
32096         <winsock2.h> re-includes <unistd.h>, by avoiding any
32097         redeclarations if we are being included by <winsock2.h>.
32098         Reported by Matthias Bolte.
32099
32100 2010-03-21  Bruno Haible  <bruno@clisp.org>
32101
32102         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32103         * lib/forkpty.c (forkpty): New replacement function, from glibc with
32104         modifications.
32105         * lib/pty.in.h (forkpty): Update declaration. Add comments.
32106         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
32107         provide the replacement.
32108         * modules/forkpty (Depends-on): Add openpty, login_tty.
32109         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
32110         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
32111         * doc/glibc-functions/forkpty.texi: More supported platforms.
32112         * config/srclist.txt: Add forkpty.c (commented).
32113
32114 2010-03-21  Bruno Haible  <bruno@clisp.org>
32115
32116         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
32117         (Makefile.am): Verify that PTY_LIB is defined.
32118
32119         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
32120
32121 2010-03-21  Bruno Haible  <bruno@clisp.org>
32122
32123         Tests for module 'login_tty'.
32124         * modules/login_tty-tests: New file.
32125         * tests/test-login_tty.c: New file.
32126
32127         New module 'login_tty'.
32128         * lib/login_tty.c: New file.
32129         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
32130         * modules/login_tty: New file.
32131         * doc/glibc-functions/login_tty.texi: Mention the new module.
32132
32133 2010-03-21  Bruno Haible  <bruno@clisp.org>
32134
32135         login_tty: Documentation.
32136         * doc/glibc-functions/login_tty.texi: New file.
32137         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
32138
32139 2010-03-21  Bruno Haible  <bruno@clisp.org>
32140
32141         pty: Consistent macro naming.
32142         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
32143         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
32144         * modules/pty (configure.ac): Update.
32145
32146 2010-03-21  Bruno Haible  <bruno@clisp.org>
32147
32148         Tests for openpty: Make stricter.
32149         * tests/test-openpty.c (main): Add test of canonical processing and
32150         erase.
32151         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
32152
32153         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32154         * lib/openpty.c (openpty): New replacement function.
32155         * lib/pty.in.h: Include <termios.h>.
32156         (openpty): Update declaration. Add comments.
32157         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
32158         is not declared, arrange to provide the replacement. Check for _getpty
32159         and posix_openpt.
32160         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
32161         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
32162         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
32163         * modules/pty-tests (test_pty_c___LDADD): New variable.
32164         * doc/glibc-functions/openpty.texi: More supported platforms.
32165
32166 2010-03-21  Bruno Haible  <bruno@clisp.org>
32167
32168         setenv: Tweaks.
32169         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
32170         the test program.
32171         * doc/posix-functions/setenv.texi: Update platforms list.
32172
32173 2010-03-21  Bruno Haible  <bruno@clisp.org>
32174
32175         New module 'unlockpt'.
32176         * lib/unlockpt.c: New file, from glibc with modifications.
32177         * m4/unlockpt.m4: New file.
32178         * modules/unlockpt: New file.
32179         * lib/stdlib.in.h (unlockpt): New declaration.
32180         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
32181         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
32182         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
32183         HAVE_UNLOCKPT.
32184         * doc/posix-functions/unlockpt.texi: Mention the new module.
32185         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
32186         * config/srclist.txt: Add unlockpt.c (commented).
32187
32188 2010-03-21  Jim Meyering  <meyering@redhat.com>
32189
32190         maint.mk: prohibit inclusion of "intprops.h" without use
32191         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
32192
32193 2010-03-21  Bruno Haible  <bruno@clisp.org>
32194
32195         New module 'grantpt'.
32196         * lib/grantpt.c: New file, from glibc with modifications.
32197         * m4/grantpt.m4: New file.
32198         * modules/grantpt: New file.
32199         * lib/stdlib.in.h (grantpt): New declaration.
32200         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
32201         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
32202         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
32203         HAVE_GRANTPT.
32204         * doc/posix-functions/grantpt.texi: Mention the new module.
32205         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
32206         * config/srclist.txt: Add grantpt.c (commented).
32207
32208 2010-03-21  Bruno Haible  <bruno@clisp.org>
32209
32210         New module 'pt_chown'.
32211         * lib/pt_chown.c: New file, from glibc with modifications.
32212         * lib/pty-private.h: New file, from glibc with modifications.
32213         * modules/pt_chown: New file.
32214         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
32215
32216 2010-03-21  Bruno Haible  <bruno@clisp.org>
32217
32218         Tests for module 'ptsname'.
32219         * modules/ptsname-tests: New file.
32220         * tests/test-ptsname.c: New file.
32221
32222         New module 'ptsname'.
32223         * lib/ptsname.c: New file, from glibc with modifications.
32224         * m4/ptsname.m4: New file.
32225         * modules/ptsname: New file.
32226         * lib/stdlib.in.h (ptsname): New declaration.
32227         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
32228         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
32229         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
32230         HAVE_PTSNAME.
32231         * doc/posix-functions/ptsname.texi: Mention the new module.
32232         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
32233         * config/srclist.txt: Add ptsname.c (commented).
32234
32235 2010-03-21  Bruno Haible  <bruno@clisp.org>
32236
32237         Tests for module 'ttyname_r'.
32238         * modules/ttyname_r-tests: New file.
32239         * tests/test-ttyname_r.c: New file.
32240
32241         New module 'ttyname_r'.
32242         * lib/ttyname_r.c: New file.
32243         * m4/ttyname_r.m4: New file.
32244         * modules/ttyname_r: New file.
32245         * lib/unistd.in.h (ttyname_r): New declaration.
32246         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
32247         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
32248         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
32249         HAVE_TTYNAME_R.
32250         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
32251         * doc/posix-functions/ttyname_r.texi: Mention the new module.
32252
32253 2010-03-20  Bruno Haible  <bruno@clisp.org>
32254
32255         signal: Undefine macro definitions in C++ mode.
32256         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
32257         sigfillset): Undefine macro definitions from the system header in C++
32258         mode.
32259         Reported by John W. Eaton <jwe@gnu.org>.
32260
32261 2010-03-20  Bruno Haible  <bruno@clisp.org>
32262
32263         Ensure no #include statements inside extern "C" { ... }.
32264         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
32265         contain #include statements.
32266         * lib/time.in.h: Likewise.
32267
32268 2010-03-20  Bruno Haible  <bruno@clisp.org>
32269
32270         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
32271         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
32272         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
32273         Reported by John W. Eaton <jwe@gnu.org>.
32274
32275 2010-03-20  Bruno Haible  <bruno@clisp.org>
32276
32277         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
32278         Reported by Jim Meyering.
32279
32280 2010-03-20  Bruno Haible  <bruno@clisp.org>
32281
32282         pipe: Set errno upon failure.
32283         * lib/pipe.h: Specify that when -1 is returned, errno is set.
32284         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
32285         errno value in error message.
32286
32287 2010-03-20  Bruno Haible  <bruno@clisp.org>
32288             Jim Meyering  <meyering@redhat.com>
32289
32290         lchown: Avoid "unused variable" warning.
32291         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
32292
32293 2010-03-20  Bruno Haible  <bruno@clisp.org>
32294
32295         Work around unlink() bug on MacOS X 10.5.6.
32296         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
32297         attempting to unlink a parent directory.
32298         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
32299         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
32300         activate for the replacement function.
32301         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
32302
32303 2010-03-20  Bruno Haible  <bruno@clisp.org>
32304
32305         Fix link errors on Solaris 8.
32306         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
32307         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
32308
32309 2010-03-19  Jim Meyering  <meyering@redhat.com>
32310
32311         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
32312         The _LIBC implementation of build_range_exp correctly honors the
32313         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
32314         However, the non-_LIBC implementation would ignore that syntax-bit
32315         flag and return REG_ERANGE unconditionally.
32316         This change makes it honor that flag.
32317         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
32318         Make two pointer parameters "const".
32319         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
32320         (parse_bracket_exp): Update caller.
32321
32322         regex.m4: correct the reversed range endpoint ([b-a]) test
32323         * m4/regex.m4: When requiring that [b-a] evoke failure,
32324         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
32325         test pass once again for x86-based systems.
32326
32327 2010-03-19  Bruno Haible  <bruno@clisp.org>
32328
32329         scandir: Fix link error on Solaris 8.
32330         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
32331         macros.
32332
32333 2010-03-19  Bruno Haible  <bruno@clisp.org>
32334
32335         getusershell: Fix documentation.
32336         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
32337         module.
32338         * doc/glibc-functions/setusershell.texi: Likewise.
32339
32340         getusershell: Provide declaration, missing on Solaris 9.
32341         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
32342         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
32343         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
32344         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
32345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32346         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
32347         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
32348         HAVE_GETUSERSHELL.
32349         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
32350
32351 2010-03-19  Bruno Haible  <bruno@clisp.org>
32352
32353         wctype: Provide iswblank function.
32354         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
32355         exists and is fine.
32356         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
32357         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
32358         * tests/test-wctype.c (main): Re-enable the iswblank tests.
32359         * doc/posix-functions/iswblank.texi: Update.
32360
32361 2010-03-19  Bruno Haible  <bruno@clisp.org>
32362
32363         Tests of module 'pty' in C++ mode.
32364         * modules/pty-tests: New file.
32365         * tests/test-pty-c++.cc: New file.
32366         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32367
32368 2010-03-19  Eric Blake  <eblake@redhat.com>
32369
32370         logb: fix documentation
32371         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
32372         1.5 declaration bug.
32373
32374         forkpty, openpty: prefer glibc's const-safe prototype
32375         * lib/forkpty.c (rpl_forkpty): New file.
32376         * lib/openpty.c (rpl_openpty): Likewise.
32377         * modules/forkpty (Files): Distribute it.
32378         * modules/openpty (Files): Likewise.
32379         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
32380         check...
32381         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
32382         replacement for for non-const BSD signature.
32383         * modules/pty (Makefile.am): Substitute witnesses.
32384         * lib/pty.in.h (forkpty, openpty): Declare replacements.
32385         * tests/test-forkpty.c: Update signature check.
32386         * tests/test-openpty.c: Likewise.
32387         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
32388         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32389
32390         forkpty, openpty: split functions into new modules
32391         * modules/pty (Makefile.am): Substitute new witnesses.
32392         (Libraries): Move library detection...
32393         * modules/forkpty: ...into new module.
32394         * modules/openpty: Another new module.
32395         * modules/pty-tests: Rename and split...
32396         * modules/forkpty-tests: ...to this...
32397         * modules/openpty-tests: ...and this.
32398         * tests/test-pty.c: Rename and split...
32399         * tests/test-forkpty.c: ...to this...
32400         * tests/test-openpty.c: ...and this.
32401         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
32402         (gl_PTY): Split library searching...
32403         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
32404         (gl_FORKPTY, gl_OPENPTY): New macros.
32405         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
32406         * NEWS: Mention the split.
32407         * MODULES.html.sh (Misc): Document the modules.
32408         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
32409         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32410
32411         pty: improve replacement header
32412         * lib/pty.in.h: New file.
32413         * modules/pty (Files): Ship it.
32414         (Makefile.am): Always build replacement.
32415         * m4/pty.m4: Rename...
32416         * m4/pty_h.m4: ...to this.
32417         (gl_PTY): Modernize setting of witness macros; update check of
32418         forkpty to take proper advantage of cache.
32419         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
32420
32421         getopt: avoid compiler warning
32422         * lib/getopt.c (attribute_hidden): Remove unused macro.
32423
32424 2010-03-18  Bruno Haible  <bruno@clisp.org>
32425
32426         Fix link errors on Solaris 8.
32427         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
32428         * modules/search-tests (test_search_c___LDADD): Likewise.
32429         * modules/signal-tests (test_signal_c___LDADD): Likewise.
32430         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
32431         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
32432         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
32433         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
32434         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
32435         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
32436
32437 2010-03-18  Bruno Haible  <bruno@clisp.org>
32438
32439         Fix bug introduced on 2010-03-14.
32440         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
32441         (gl_SPAWN_H): Require it.
32442         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
32443         Reported by Simon Josefsson.
32444
32445 2010-03-18  Bruno Haible  <bruno@clisp.org>
32446
32447         Fix typo introduced on 2009-12-31.
32448         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
32449         posix_spawn_file_actions_adddup2.
32450
32451 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
32452         and Eric Blake  <eblake@redhat.com>
32453
32454         test-vc-list-files-git: make more robust
32455         * tests/test-vc-list-files-git.sh: Unset problematic environment
32456         variables.  Chain commands together.
32457
32458 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
32459
32460         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
32461         `AC_CHECK_DECL' invocation.
32462
32463 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
32464
32465         * lib/inttostr.c (inttostr): Make sure the invocation of verify
32466         appears before executable statements. Suggested by Petr Sumbera
32467         <Petr.Sumbera@Sun.COM>.
32468
32469 2010-03-14  Bruno Haible  <bruno@clisp.org>
32470
32471         * tests/test-flock.c (test_exclusive): Comment out a test that causes
32472         portability problems. Instead use a simpler test.
32473         (main): Check that invalid arguments are rejected only on Linux.
32474
32475 2010-03-14  Bruno Haible  <bruno@clisp.org>
32476
32477         Fix bug introduced on 2009-12-31.
32478         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32479         gl_PREREQ_SYS_H_WINSOCK2 always.
32480         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
32481         SYS_SOCKET_H variable.
32482         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
32483         Update comments.
32484         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
32485         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32486         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32487         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32488         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
32489
32490 2010-03-14  Bruno Haible  <bruno@clisp.org>
32491
32492         Fix values returned by sinl, cosl.
32493         * lib/trigl.h: Add specification comments.
32494         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
32495         that combines the values from the precomputed table with the values of
32496         the Chebyshev polynomials.
32497
32498 2010-03-14  Bruno Haible  <bruno@clisp.org>
32499
32500         Fix compilation error when modules 'posix_spawn[p]' are not used.
32501         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
32502         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
32503
32504 2010-03-14  Bruno Haible  <bruno@clisp.org>
32505
32506         Fix compilation error on mingw when module 'time_r' is not used.
32507         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
32508         is 1.
32509         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
32510         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32511         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
32512         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
32513
32514 2010-03-14  Bruno Haible  <bruno@clisp.org>
32515
32516         Fix compilation error with Sun C.
32517         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
32518         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
32519         instead of GCC specific ULONG_LONG_MAX.
32520         * lib/xstrtoll.c: Likewise.
32521         * lib/xstrtoull.c: Likewise.
32522
32523 2010-03-13  Bruno Haible  <bruno@clisp.org>
32524
32525         Allow the user to disable C++ code and tests.
32526         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
32527         (gl_PROG_ANSI_CXX): Require it.
32528
32529 2010-03-13  Bruno Haible  <bruno@clisp.org>
32530
32531         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
32532         cases.
32533
32534 2010-03-13  Bruno Haible  <bruno@clisp.org>
32535
32536         Test that gnulib does not break the standard C++ headers.
32537         * tests/test-locale-c++2.cc: New file.
32538         * modules/locale-tests (Files): Add it.
32539         (Makefile.am): Compile it for test-locale-c++.
32540         * tests/test-math-c++2.cc: New file.
32541         * modules/math-tests (Files): Add it.
32542         (Makefile.am): Compile it for test-math-c++.
32543         * tests/test-signal-c++2.cc: New file.
32544         * modules/signal-tests (Files): Add it.
32545         (Makefile.am): Compile it for test-signal-c++.
32546         * tests/test-stdio-c++2.cc: New file.
32547         * modules/stdio-tests (Files): Add it.
32548         (Makefile.am): Compile it for test-stdio-c++.
32549         * tests/test-stdlib-c++2.cc: New file.
32550         * modules/stdlib-tests (Files): Add it.
32551         (Makefile.am): Compile it for test-stdlib-c++.
32552         * tests/test-string-c++2.cc: New file.
32553         * modules/string-tests (Files): Add it.
32554         (Makefile.am): Compile it for test-string-c++.
32555         * tests/test-time-c++2.cc: New file.
32556         * modules/time-tests (Files): Add it.
32557         (Makefile.am): Compile it for test-time-c++.
32558         Reported by John W. Eaton <jwe@gnu.org>.
32559
32560 2010-03-13  Bruno Haible  <bruno@clisp.org>
32561
32562         * gnulib-tool (func_usage): Clarify which options are available for
32563         --create-testdir and --create-megatestdir.
32564
32565 2010-03-13  Bruno Haible  <bruno@clisp.org>
32566
32567         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32568         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32569         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32570         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32571         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32572         when appropriate.
32573         Reported by Jim Meyering.
32574
32575 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32576
32577         * gnulib-tool (func_import): Explain origin of code.
32578
32579 2010-03-12  Bruno Haible  <bruno@clisp.org>
32580
32581         Fix problem with automake's definition of CXXLINK.
32582         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32583         Reported by Simon Josefsson and Ludovic Courtès.
32584
32585 2010-03-12  Bruno Haible  <bruno@clisp.org>
32586
32587         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32588         stable releases.
32589
32590 2010-03-11  Bruno Haible  <bruno@clisp.org>
32591
32592         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32593         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32594         whether the system provides one variant or multiple variants of the
32595         function.
32596         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32597         C++ compilers.
32598         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32599         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32600         Reported by Jim Meyering.
32601
32602 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32603
32604         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32605
32606 2010-03-08  Bruno Haible  <bruno@clisp.org>
32607
32608         gnulib-tool: Add support for --libtool in --create-testdir.
32609         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32610         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32611
32612 2010-03-08  Eric Blake  <eblake@redhat.com>
32613
32614         gnulib-tool.texi: mention possibility of git submodule
32615         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32616         submodules.
32617         * doc/.gitignore: Ignore another generated file.
32618
32619 2010-03-08  Karl Berry  <karl@gnu.org>
32620
32621         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32622         of committing gnulib files while skipping others.
32623
32624 2010-03-07  Bruno Haible  <bruno@clisp.org>
32625
32626         Tests of module 'wctype' in C++ mode.
32627         * tests/test-wctype-c++.cc: New file.
32628         * modules/wctype-tests (Files): Add it and tests/signature.h.
32629         (Depends-on): Add ansi-c++-opt.
32630         (Makefile.am): Arrange to compile and run test-wctype-c++.
32631
32632         Tests of module 'wchar' in C++ mode.
32633         * tests/test-wchar-c++.cc: New file.
32634         * modules/wchar-tests (Files): Add it and tests/signature.h.
32635         (Depends-on): Add ansi-c++-opt.
32636         (Makefile.am): Arrange to compile and run test-wchar-c++.
32637         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32638         gl_MODULE_INDICATOR.
32639
32640         Tests of module 'unistd' in C++ mode.
32641         * tests/test-unistd-c++.cc: New file.
32642         * modules/unistd-tests (Files): Add it and tests/signature.h.
32643         (Depends-on): Add ansi-c++-opt.
32644         (Makefile.am): Arrange to compile and run test-unistd-c++.
32645         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32646         gl_MODULE_INDICATOR.
32647
32648         Tests of module 'time' in C++ mode.
32649         * tests/test-time-c++.cc: New file.
32650         * modules/time-tests (Files): Add it and tests/signature.h.
32651         (Depends-on): Add ansi-c++-opt.
32652         (Makefile.am): Arrange to compile and run test-time-c++.
32653         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32654
32655         Tests of module 'sys_time' in C++ mode.
32656         * tests/test-sys_time-c++.cc: New file.
32657         * modules/sys_time-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_time-c++.
32660         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32661         gl_MODULE_INDICATOR.
32662
32663         Tests of module 'sys_stat' in C++ mode.
32664         * tests/test-sys_stat-c++.cc: New file.
32665         * modules/sys_stat-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_stat-c++.
32668         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32669         gl_MODULE_INDICATOR.
32670
32671         Tests of module 'sys_socket' in C++ mode.
32672         * tests/test-sys_socket-c++.cc: New file.
32673         * modules/sys_socket-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_socket-c++.
32676         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32677         gl_MODULE_INDICATOR.
32678
32679         Tests of module 'sys_select' in C++ mode.
32680         * tests/test-sys_select-c++.cc: New file.
32681         * modules/sys_select-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_select-c++.
32684         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32685         gl_MODULE_INDICATOR.
32686
32687         Tests of module 'sys_ioctl' in C++ mode.
32688         * tests/test-sys_ioctl-c++.cc: New file.
32689         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32690         (Depends-on): Add ansi-c++-opt.
32691         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32692         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32693         gl_MODULE_INDICATOR.
32694
32695         Tests of module 'string' in C++ mode.
32696         * tests/test-string-c++.cc: New file.
32697         * modules/string-tests (Files): Add it and tests/signature.h.
32698         (Depends-on): Add ansi-c++-opt.
32699         (Makefile.am): Arrange to compile and run test-string-c++.
32700         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32701         gl_MODULE_INDICATOR.
32702
32703         Tests of module 'stdlib' in C++ mode.
32704         * tests/test-stdlib-c++.cc: New file.
32705         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32706         (Depends-on): Add ansi-c++-opt.
32707         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32708         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32709         gl_MODULE_INDICATOR.
32710
32711         Tests of module 'stdio' in C++ mode.
32712         * tests/test-stdio-c++.cc: New file.
32713         * modules/stdio-tests (Files): Add it and tests/signature.h.
32714         (Depends-on): Add ansi-c++-opt.
32715         (Makefile.am): Arrange to compile and run test-stdio-c++.
32716         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32717         gl_MODULE_INDICATOR.
32718
32719         Tests of module 'spawn' in C++ mode.
32720         * tests/test-spawn-c++.cc: New file.
32721         * modules/spawn-tests (Files): Add it and tests/signature.h.
32722         (Depends-on): Add ansi-c++-opt.
32723         (Makefile.am): Arrange to compile and run test-spawn-c++.
32724         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32725         gl_MODULE_INDICATOR.
32726
32727         Tests of module 'signal' in C++ mode.
32728         * tests/test-signal-c++.cc: New file.
32729         * modules/signal-tests (Files): Add it and tests/signature.h.
32730         (Depends-on): Add ansi-c++-opt.
32731         (Makefile.am): Arrange to compile and run test-signal-c++.
32732         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32733         gl_MODULE_INDICATOR.
32734
32735         Tests of module 'search' in C++ mode.
32736         * tests/test-search-c++.cc: New file.
32737         * modules/search-tests (Files): Add it and tests/signature.h.
32738         (Depends-on): Add ansi-c++-opt.
32739         (Makefile.am): Arrange to compile and run test-search-c++.
32740         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32741         gl_MODULE_INDICATOR.
32742
32743         Tests of module 'math' in C++ mode.
32744         * tests/test-math-c++.cc: New file.
32745         * modules/math-tests (Files): Add it and tests/signature.h.
32746         (Depends-on): Add ansi-c++-opt.
32747         (Makefile.am): Arrange to compile and run test-math-c++.
32748         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32749
32750         Tests of module 'locale' in C++ mode.
32751         * tests/test-locale-c++.cc: New file.
32752         * modules/locale-tests (Files): Add it and tests/signature.h.
32753         (Depends-on): Add ansi-c++-opt.
32754         (Makefile.am): Arrange to compile and run test-locale-c++.
32755         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32756         gl_MODULE_INDICATOR.
32757
32758         Tests of module 'langinfo' in C++ mode.
32759         * tests/test-langinfo-c++.cc: New file.
32760         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32761         (Depends-on): Add ansi-c++-opt.
32762         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32763         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32764         gl_MODULE_INDICATOR.
32765
32766         Tests of module 'iconv-h' in C++ mode.
32767         * tests/test-iconv-h-c++.cc: New file.
32768         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32769         (Depends-on): Add ansi-c++-opt.
32770         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32771
32772         Tests of module 'glob' in C++ mode.
32773         * tests/test-glob-c++.cc: New file.
32774         * modules/glob-tests (Files): Add it.
32775         (Depends-on): Add ansi-c++-opt.
32776         (Makefile.am): Arrange to compile and run test-glob-c++.
32777
32778         Tests of module 'fcntl-h' in C++ mode.
32779         * tests/test-fcntl-h-c++.cc: New file.
32780         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32781         (Depends-on): Add ansi-c++-opt.
32782         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32783         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32784         gl_MODULE_INDICATOR.
32785
32786         Tests of module 'dirent' in C++ mode.
32787         * tests/test-dirent-c++.cc: New file.
32788         * modules/dirent-tests (Files): Add it and tests/signature.h.
32789         (Depends-on): Add ansi-c++-opt.
32790         (Makefile.am): Arrange to compile and run test-dirent-c++.
32791         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32792         gl_MODULE_INDICATOR.
32793
32794         New module 'ansi-c++-opt'.
32795         * modules/ansi-c++-opt: New file.
32796         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32797
32798         Document C++ namespace mode.
32799         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32800
32801         wctype: Avoid #define replacements in C++ mode.
32802         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32803         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32804         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32805         In C++, define a namespaced alias symbol.
32806         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32807         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32808         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32809         rule.
32810
32811         wchar: Avoid #define replacements in C++ mode.
32812         * lib/wchar.in.h: Include c++defs.h.
32813         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32814         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32815         symbol.
32816         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32817         * modules/wchar (Depends-on): Add c++defs.
32818         (Makefile.am): Update wchar.h rule.
32819
32820         unistd: Avoid #define replacements in C++ mode.
32821         * lib/unistd.in.h: Include c++defs.h.
32822         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32823         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32824         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32825         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32826         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32827         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32828         symbol.
32829         (environ): Update.
32830         * modules/unistd (Depends-on): Add c++defs.
32831         (Makefile.am): Update unistd.h rule.
32832
32833         time: Avoid #define replacements in C++ mode.
32834         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32835         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32836         define a namespaced alias symbol.
32837         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32838         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32839         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32840         * modules/time (Depends-on): Add c++defs, warn-on-use.
32841         (Makefile.am): Update time.h rule.
32842         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32843         * modules/nanosleep (configure.ac): Likewise.
32844         * modules/strptime (configure.ac): Likewise.
32845         * modules/timegm (configure.ac): Likewise.
32846
32847         sys_time: Avoid #define replacements in C++ mode.
32848         * lib/sys_time.in.h: Include c++defs.h.
32849         (gettimeofday): In C++, define a namespaced alias symbol.
32850         * modules/sys_time (Depends-on): Add c++defs.
32851         (Makefile.am): Update sys/time.h rule.
32852
32853         sys_stat: Avoid #define replacements in C++ mode.
32854         * lib/sys_stat.in.h: Include c++defs.h.
32855         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32856         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32857         namespaced alias symbol.
32858         In C++, define a namespaced alias symbol.
32859         * modules/sys_stat (Depends-on): Add c++defs.
32860         (Makefile.am): Update sys/stat.h rule.
32861
32862         sys_socket: Avoid #define replacements in C++ mode.
32863         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32864         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32865         definitions also when the system has a <sys/socket.h>.
32866         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32867         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32868         In C++, define a namespaced alias symbol.
32869         * modules/sys_socket (Depends-on): Add c++defs.
32870         (Makefile.am): Update sys/socket.h rule.
32871
32872         sys_select: Avoid #define replacements in C++ mode.
32873         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32874         definitions also when the system has a <sys/select.h>.
32875         (select): In C++, define a namespaced alias symbol.
32876         * modules/sys_select (Depends-on): Add c++defs.
32877         (Makefile.am): Update sys/select.h rule.
32878
32879         sys_ioctl: Avoid #define replacements in C++ mode.
32880         * lib/sys_ioctl.in.h: Include c++defs.h.
32881         (ioctl): In C++, define a namespaced alias symbol.
32882         * modules/sys_ioctl (Depends-on): Add c++defs.
32883         (Makefile.am): Update sys/ioctl.h rule.
32884
32885         string: Avoid #define replacements in C++ mode.
32886         * lib/string.in.h: Include c++defs.h.
32887         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32888         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32889         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32890         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32891         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32892         * modules/string (Depends-on): Add c++defs.
32893         (Makefile.am): Update string.h rule.
32894
32895         stdlib: Avoid #define replacements in C++ mode.
32896         * lib/stdlib.in.h: Include c++defs.h.
32897         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32898         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32899         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32900         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32901         symbol.
32902         * modules/stdlib (Depends-on): Add c++defs.
32903         (Makefile.am): Update stdlib.h rule.
32904
32905         stdio: Avoid #define replacements in C++ mode.
32906         * lib/stdio.in.h: Include c++defs.h.
32907         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32908         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32909         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32910         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32911         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32912         namespaced alias symbol.
32913         * modules/stdio (Depends-on): Add c++defs.
32914         (Makefile.am): Update stdio.h rule.
32915
32916         spawn: Avoid #define replacements in C++ mode.
32917         * lib/spawn.in.h: Include c++defs.h.
32918         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32919         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32920         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32921         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32922         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32923         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32924         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32925         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32926         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32927         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32928         In C++, define a namespaced alias symbol.
32929         * modules/spawn (Depends-on): Add c++defs.
32930         (Makefile.am): Update spawn.h rule.
32931
32932         signal: Avoid #define replacements in C++ mode.
32933         * lib/signal.in.h: Include c++defs.h.
32934         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32935         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32936         namespaced alias symbol.
32937         * modules/signal (Depends-on): Add c++defs.
32938         (Makefile.am): Update signal.h rule.
32939
32940         search: Avoid #define replacements in C++ mode.
32941         * lib/search.in.h: Include c++defs.h.
32942         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32943         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32944         symbol.
32945         * modules/search (Depends-on): Add c++defs.
32946         (Makefile.am): Update search.h rule.
32947
32948         math: Avoid #define replacements in C++ mode.
32949         * lib/math.in.h: Include c++defs.h.
32950         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32951         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32952         trunc, truncl): In C++, define a namespaced alias symbol.
32953         * modules/math (Depends-on): Add c++defs.
32954         (Makefile.am): Update math.h rule.
32955
32956         locale: Avoid #define replacements in C++ mode.
32957         * lib/locale.in.h: Include c++defs.h.
32958         (duplocale): In C++, define a namespaced alias symbol.
32959         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32960         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32961         * modules/locale (Depends-on): Add c++defs.
32962         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32963
32964         langinfo: Avoid #define replacements in C++ mode.
32965         * lib/langinfo.in.h: Include c++defs.h.
32966         (nl_langinfo): In C++, define a namespaced alias symbol.
32967         * modules/langinfo (Depends-on): Add c++defs.
32968         (Makefile.am): Update langinfo.h rule.
32969
32970         iconv-h: Avoid #define replacements in C++ mode.
32971         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32972         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32973         symbol.
32974         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32975         whenever iconv is present.
32976         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32977         (Makefile.am): Update iconv.h rule.
32978
32979         glob: Avoid #define replacements in C++ mode.
32980         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32981         (_gl_glob_errfunc_fn): New type.
32982         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32983         symbol.
32984         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32985         (Makefile.am): Update glob.h rule.
32986
32987         fcntl-h: Avoid #define replacements in C++ mode.
32988         * lib/fcntl.in.h: Include c++defs.h.
32989         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32990         * modules/fcntl-h (Depends-on): Add c++defs.
32991         (Makefile.am): Update fcntl.h rule.
32992
32993         dirent: Avoid #define replacements in C++ mode.
32994         * lib/dirent.in.h: Include c++defs.h.
32995         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32996         namespaced alias symbol.
32997         (dirfd): Update declaration.
32998         * modules/dirent (Depends-on): Add c++defs.
32999         (Makefile.am): Update dirent.h rule.
33000
33001         ctype: Make it usable in C++ code.
33002         * lib/ctype.in.h: Include c++defs.h.
33003         (isblank): Declare as extern "C".
33004         * modules/ctype (Depends-on): Add c++defs.
33005         (Makefile.am): Update ctype.h rule.
33006
33007         New module 'c++defs'.
33008         * modules/c++defs: New file.
33009         * build-aux/c++defs.h: New file.
33010         Reported by John W. Eaton <jwe@gnu.org>.
33011
33012 2010-03-07  Bruno Haible  <bruno@clisp.org>
33013
33014         logb: Provide missing declaration for Cygwin.
33015         * lib/math.in.h (logb): New declaration.
33016         * m4/logb.m4: New file.
33017         * modules/logb (Files): Add m4/logb.m4.
33018         (Depends-on): Add math.
33019         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
33020         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
33021         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
33022         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
33023         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
33024
33025 2010-03-07  Bruno Haible  <bruno@clisp.org>
33026
33027         Fix test-cond link error.
33028         * tests/test-cond.c: Include <stdio.h>.
33029
33030 2010-03-07  Bruno Haible  <bruno@clisp.org>
33031
33032         Fix test-dirent-safer link error.
33033         * modules/dirent-safer-tests (Makefile.am): Define
33034         test_dirent_safer_LDADD.
33035
33036 2010-03-07  Bruno Haible  <bruno@clisp.org>
33037
33038         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
33039         among default module list.
33040
33041 2010-03-07  Bruno Haible  <bruno@clisp.org>
33042
33043         Fix link error on platforms with GNU libiconv.
33044         * modules/unistr/u8-strcoll-tests (Makefile): Define
33045         test_u8_strcoll_LDADD.
33046         * modules/unistr/u16-strcoll-tests (Makefile): Define
33047         test_u16_strcoll_LDADD.
33048         * modules/unistr/u32-strcoll-tests (Makefile): Define
33049         test_u32_strcoll_LDADD.
33050
33051 2010-03-07  Bruno Haible  <bruno@clisp.org>
33052
33053         Use POSIX declarations for socket functions.
33054         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
33055         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
33056         rpl_sendto): Change declaration to match POSIX.
33057         * lib/connect.c (rpl_connect): Likewise.
33058         * lib/accept.c (rpl_accept): Likewise.
33059         * lib/bind.c (rpl_bind): Likewise.
33060         * lib/getpeername.c (rpl_getpeername): Likewise.
33061         * lib/getsockname.c (rpl_getsockname): Likewise.
33062         * lib/recv.c (rpl_recv): Likewise.
33063         * lib/send.c (rpl_send): Likewise.
33064         * lib/recvfrom.c (rpl_recvfrom): Likewise.
33065         * lib/sendto.c (rpl_sendto): Likewise.
33066
33067 2010-03-06  Bruno Haible  <bruno@clisp.org>
33068
33069         Clarify access, euidaccess, faccessat.
33070         * doc/posix-functions/faccessat.texi: Mention security problem under
33071         "Other problems", not "Portability problems".
33072         * doc/posix-functions/access.texi: Likewise. Mention a related security
33073         problem.
33074         * doc/glibc-functions/euidaccess.texi: Mention security problems.
33075         * lib/euidaccess.c: Add comments about platforms.
33076         * lib/unistd.in.h (access, euidaccess): Add warnings.
33077
33078 2010-03-07  Bruno Haible  <bruno@clisp.org>
33079
33080         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
33081         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
33082         (POSIX_SPAWN_SETSCHEDULER): Likewise.
33083         (POSIX_SPAWN_USEVFORK): Define in a way that works when
33084         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33085         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
33086         declare when POSIX_SPAWN_SETSCHEDULER is zero.
33087         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
33088         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
33089         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
33090         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
33091         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
33092         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
33093         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
33094         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
33095         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
33096         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
33097         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
33098         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
33099         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
33100         Likewise.
33101         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
33102         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
33103         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
33104         Likewise.
33105         * tests/test-spawn.c (main): Make it work when
33106         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33107
33108 2010-03-07  Bruno Haible  <bruno@clisp.org>
33109
33110         Fix incorrect Makefile.am generation in German locale.
33111         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33112         Execute sed command with character range in C locale.
33113
33114 2010-03-06  Bruno Haible  <bruno@clisp.org>
33115
33116         Tests for module 'iconv-h'.
33117         * modules/iconv-h-tests: New file.
33118         * tests/test-iconv-h.c: New file.
33119
33120         New module 'iconv-h'.
33121         * modules/iconv-h: New file.
33122         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
33123         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
33124         (configure.ac): Remove gl_ICONV_H.
33125         (Makefile.am): Remove rule for iconv.h.
33126
33127 2010-03-06  Bruno Haible  <bruno@clisp.org>
33128
33129         More consistent naming of *.m4 files.
33130         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
33131         * modules/wctype (Files): Update.
33132
33133         More consistent naming of *.m4 files.
33134         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
33135         * modules/wchar (Files): Update.
33136
33137 2010-03-06  Jim Meyering  <meyering@redhat.com>
33138
33139         euidaccess: relax license to LGPLv2+
33140         * modules/euidaccess (License): Relax to LGPLv2+.
33141
33142 2010-03-06  Bruno Haible  <bruno@clisp.org>
33143
33144         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
33145         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
33146         (Makefile.am): Augment lib_SOURCES instead.
33147
33148 2010-03-04  Jim Meyering  <meyering@redhat.com>
33149
33150         utime: remove obsolete module
33151         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
33152         unnecessary for years, and has been marked as obsolete for 10 months.
33153         * modules/utime: Remove file.
33154         * lib/utime.c: Remove file.
33155         * m4/utime.m4: Remove file.
33156         * m4/utimes-null.m4: Remove file.
33157         * doc/posix-functions/utime.texi (utime): Remove reference to
33158         the module.  Move the sole "fixed by gnulib" item into the
33159         "problems not fixed by Gnulib" list.
33160         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
33161
33162 2010-03-05  Simon Josefsson  <simon@josefsson.org>
33163
33164         * modules/exit (License): Relax license to LGPLv2+.
33165         (Status): Mark as obsolete.
33166         * NEWS: Mention deprecated 'exit' module.
33167         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
33168         of now obsolete 'exit'.
33169
33170 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33171
33172         fts-lgpl: remove unused module
33173         * modules/fts-lgpl: Remove.
33174         * MODULES.html.sh (func_all_modules): Adjust.
33175         * check-module (find_included_lib_files): Adjust.
33176         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
33177
33178 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
33179
33180         copy-acl: enhance Solaris ACL error handling
33181         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
33182         * lib/set-mode-acl.c (qset_acl): Likewise.
33183
33184 2010-03-02  Bruno Haible  <bruno@clisp.org>
33185
33186         spawn: Don't override the system defined values on FreeBSD 8.
33187         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
33188         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
33189         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
33190         if HAVE_POSIX_SPAWN is 1.
33191         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
33192
33193 2010-03-01  Bruno Haible  <bruno@clisp.org>
33194
33195         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
33196         regarding Automake.
33197
33198 2010-02-25  Bruno Haible  <bruno@clisp.org>
33199
33200         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
33201         * gnulib-tool: Define 'echo' as a function only before the ksh alias
33202         setting, not afterwards.
33203         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
33204
33205 2010-02-24  Eric Blake  <eblake@redhat.com>
33206
33207         bootstrap, git-version-gen: use timestamp
33208         * build-aux/git-version-gen (scriptversion): Force UTC.
33209         * build-aux/bootstrap (scriptversion): New variable.
33210
33211         bootstrap: allow older git
33212         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
33213         older than 1.6.4.  Requested by the libvirt project.
33214
33215 2010-02-23  Eric Blake  <eblake@redhat.com>
33216
33217         warn-on-use: work with old autoconf
33218         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
33219         AS_VAR semantics of autoconf 2.60.
33220         Reported by Bruno Haible.
33221
33222         bootstrap: improve some comments
33223         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
33224         clarification comments.
33225
33226         gettimeofday: provide correct function
33227         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
33228         when replacement is declared, otherwise provide gettimeofday.
33229         Reported by Michael Goffioul.
33230
33231 2010-02-23  Jim Meyering  <meyering@redhat.com>
33232
33233         lib-ignore: relax license to "unlimited", not LGPLv2+
33234         * modules/lib-ignore (License): Relax to "unlimited".
33235
33236 2010-02-23  Jim Meyering  <meyering@redhat.com>
33237
33238         lib-ignore: relax license to LGPLv2+
33239         * modules/lib-ignore (License): Relax to LGPLv2+.
33240
33241 2010-02-22  Eric Blake  <eblake@redhat.com>
33242
33243         lseek: avoid bash 3.2 broken pipe bug
33244         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
33245         warning from bash 3.2.
33246         Reported by Ben Pfaff, with analysis from Bruno Haible.
33247
33248         bootstrap: support non-FSF copyright holder
33249         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
33250         bootstrap.conf override of COPYRIGHT_HOLDER.
33251         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
33252
33253         bootstrap: interoperate with gettext 0.14.1
33254         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
33255
33256         bootstrap: allow for alternate submodule location
33257         * build-aux/bootstrap (gnulib_path): New variable; use instead of
33258         hardcoding submodule location.
33259         (gnulib_mk): Allow direct use of Makefile.am.
33260
33261         bootstrap: use GNULIB_SRCDIR to reduce disk usage
33262         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
33263         rather than reconfiguring where the submodule points.
33264
33265         gettimeofday: restore support for platforms that lack function
33266         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
33267         replacement if function is missing.
33268         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
33269         * modules/sys_time (Makefile.am): Substitute it.
33270         * lib/sys_time.in.h (gettimeofday): Check it.
33271         Reported by Michael Goffioul.
33272
33273 2010-02-21  Bruno Haible  <bruno@clisp.org>
33274
33275         * lib/stdio.in.h (obstack_printf): Fix typo.
33276
33277 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
33278
33279         vc-list-files: use bzr ls's -R option
33280         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
33281         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
33282
33283 2010-02-21  Jim Meyering  <meyering@redhat.com>
33284
33285         init.sh: fix EXEEXT shims to work also for names like test-prog
33286         * tests/init.sh: Re-exec a better shell, when needed.
33287         If the current shell lacks support for posix $(...), an init.sh-using
33288         test will now try to find a shell that supports that.  If EXEEXT is
33289         nonempty, we also require support for hyphen-in-alias-name and shell
33290         substitutions like ${var#glob}.  Failure to find such a shell results
33291         in a skipped test.
33292
33293 2010-02-21  Bruno Haible  <bruno@clisp.org>
33294
33295         Really work around around "broken pipe" error message from bash 3.2.
33296         * gnulib-tool (func_reset_sigpipe): Remove function.
33297         (echo): In bash 3.2, define to a function that uses printf.
33298         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
33299
33300 2010-02-20  Bruno Haible  <bruno@clisp.org>
33301
33302         Restore support for automake 1.9.6 with autoconf 2.61.
33303         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
33304         Reported by James Youngman <jay@gnu.org>.
33305
33306 2010-02-20  Bruno Haible  <bruno@clisp.org>
33307
33308         Improve *printf warning condition.
33309         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
33310         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
33311         and the function is overridden due to SIGPIPE emulation.
33312
33313 2010-02-20  Bruno Haible  <bruno@clisp.org>
33314
33315         * lib/stdio.in.h: Tweak comments.
33316
33317 2010-02-19  Bruno Haible  <bruno@clisp.org>
33318
33319         Make it easier to find modules. New gnulib-tool option '--find'.
33320         * gnulib-tool: New option --find.
33321         (func_usage): Document it.
33322         (func_sanitize_modulelist): New function, extracted from
33323         func_all_modules.
33324         (func_all_modules): Invoke it.
33325         * doc/gnulib-tool.texi (Which modules?): New node.
33326
33327 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
33328
33329         * lib/sys_select.in.h: Provide select replacement even if
33330         sys/select.h exists on a system, for Interix.
33331
33332 2010-02-18  Jim Meyering  <meyering@redhat.com>
33333
33334         init.sh: don't use $(...) just yet
33335         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
33336         to accommodate e.g., Solaris' /bin/sh.
33337
33338 2010-02-17  Bruno Haible  <bruno@clisp.org>
33339
33340         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
33341         Reported by Ludovic Courtès <ludo@gnu.org>.
33342
33343 2010-02-16  Simon Josefsson  <simon@josefsson.org>
33344
33345         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
33346         linking with -lintl.
33347
33348 2010-02-17  Simon Josefsson  <simon@josefsson.org>
33349
33350         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
33351         if not provided by the system's netdb.h.  Reported by
33352         ludo@gnu.org (Ludovic Courtès).
33353
33354 2010-02-15  Jim Meyering  <meyering@redhat.com>
33355
33356         init.sh: improve portability and efficiency
33357         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
33358         "dummy" in a for loop.
33359         Use '!', not '^' to select the complement of a character set used
33360         in a "case" statement.
33361         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
33362         Suggestions from Eric Blake.
33363
33364         init.sh: automatically accommodate programs with the .exe suffix
33365         Automatically arrange for an invocation of "prog" to execute the
33366         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
33367         may use the simpler "prog", yet still work when built on a system
33368         that requires specifying the added suffix.
33369         Do this by constructing a function named "prog" that invokes
33370         "prog.exe" for each .exe file in selected directories.
33371         * tests/init.sh (find_exe_basenames_): New function.
33372         (create_exe_shim_functions_): New function.
33373         (path_prepend_): Use it.
33374
33375         maint.mk: mark syntax-check sc_*.m rules as .PHONY
33376         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
33377         "make -t syntax-check" doesn't create a ton of sc_*.m files.
33378
33379 2010-02-14  Jim Meyering  <meyering@redhat.com>
33380
33381         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
33382         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
33383         (sc_prohibit_hash_pjw_without_use): New rule.
33384
33385         maint.mk: allow the default upload destination dir to be overridden
33386         * top/maint.mk (upload_dest_dir_): Define with a default that
33387         preserves the status quo.
33388         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
33389         Reported by Peter Simons.
33390
33391         maint.mk: prohibit inclusion of "hash.h" without_use
33392         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
33393
33394 2010-02-10  Jim Meyering  <meyering@redhat.com>
33395
33396         maint.mk: prohibit inclusion of "ignore-value.h" without_use
33397         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
33398
33399 2010-02-09  Eric Blake  <ebb9@byu.net>
33400         and Bruno Haible  <bruno@clisp.org>
33401
33402         obstack-printf-posix: ensure declaration
33403         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
33404         extracted from gl_FUNC_OBSTACK_PRINTF.
33405         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
33406         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33407         Likewise.
33408         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
33409         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
33410         0.
33411
33412 2010-02-08  Bruno Haible  <bruno@clisp.org>
33413
33414         gnulib-tool: Fix typo in 2010-02-07 commit.
33415         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
33416         Reported by Eric Blake.
33417
33418 2010-02-07  Bruno Haible  <bruno@clisp.org>
33419
33420         gnulib-tool: Fix up caching patches.
33421         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
33422         option --no-cache. Use associative arrays when supported by the shell.
33423         (sed_comments): New variable.
33424         (modcache): Renamed from do_cache.
33425         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
33426         abbreviate unnecessarily.
33427         (have_associative): New variable.
33428         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
33429         way also for ksh and zsh.
33430         (func_init_sed_convert_to_cache_statements): New function, extracted
33431         from func_cache_lookup_module. Add support for associative arrays.
33432         Don't set the c_MODULE_cached variable here. Ignore all lines before
33433         the first field header. Remove only the final newline, not all trailing
33434         newlines. Support empty fields correctly. Limit the use of 'eval' to
33435         assignments.
33436         (func_get_description, func_get_status, func_get_notice,
33437         func_get_applicability, func_get_filelist, func_get_dependencies,
33438         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
33439         func_get_automake_snippet, func_get_include_directive,
33440         func_get_link_directive, func_get_license, func_get_maintainer):
33441         Update documentation. List the unoptimized code first. Add support for
33442         associative arrays. Limit the use of 'eval' to assignments.
33443         (func_get_applicability): Undo stylistic pessimisations.
33444         (func_get_automake_snippet, func_get_include_directive): Reduce code
33445         duplication.
33446         (func_modules_transitive_closure, func_modules_add_dummy,
33447         func_modules_notice, func_modules_to_filelist, func_add_file,
33448         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
33449         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
33450         func_create_testdir, func_create_megatestdir): Update documentation.
33451
33452 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33453
33454         * gnulib-tool (func_cache_lookup_module): Store the module name
33455         belonging to the cache variable; error out if two different
33456         module names map to the same cache variable name.
33457
33458 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33459
33460         gnulib-tool: Make caching optional.
33461         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
33462         Update matching short versions of --no-changelog.
33463         (func_usage): Update.
33464         (sed_extract_cache_prog): Renamed from ...
33465         (sed_extract_prog): ... this; revert to old extraction script.
33466         (func_get_description, func_get_status)
33467         (func_get_notice, func_get_applicability, func_get_filelist)
33468         (func_get_dependencies, func_get_autoconf_early_snippet)
33469         (func_get_autoconf_snippet, func_get_automake_snippet)
33470         (func_get_include_directive, func_get_link_directive)
33471         (func_get_license, func_get_maintainer): If $do_cache is false,
33472         use old, non-caching extraction scripts.
33473         Suggestion by Bruno Haible.
33474
33475 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33476
33477         gnulib-tool: cache module metainformation.
33478         * gnulib-tool (sed_extract_prog): Match newline before each
33479         header, and rewrite header to a shell variable suffix.
33480         (func_cache_var, func_cache_lookup_module): New functions,
33481         to turn a module name into a cache variable prefix, and to
33482         look up and cache module metainformation.
33483         (func_get_description, func_get_status)
33484         (func_get_notice, func_get_applicability, func_get_filelist)
33485         (func_get_dependencies, func_get_autoconf_early_snippet)
33486         (func_get_autoconf_snippet, func_get_automake_snippet)
33487         (func_get_include_directive, func_get_link_directive)
33488         (func_get_license, func_get_maintainer): Use
33489         func_cache_lookup_module.
33490
33491 2010-02-07  Bruno Haible  <bruno@clisp.org>
33492
33493         fnctl: Fix missing dependency.
33494         * modules/fcntl (Depends-on): Add getdtablesize.
33495         Reported by John W. Eaton <jwe@gnu.org>.
33496
33497 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33498
33499         Argp: fix recognition of short alias options.
33500
33501         * lib/argp-parse.c (convert_options): Fix improper use of
33502         `|' between character values.
33503         * tests/test-argp.c (group1_option): New alias option
33504         --read (-r).
33505         (group1_parser): Special handling for 'r'.
33506         (test15): New test case.
33507         (test_fun): Add test15.
33508         * tests/test-argp-2.sh: Update expected --help and --usage
33509         outputs.
33510
33511 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33512
33513         * tests/test-argp.c: Fix indentation.
33514
33515 2010-02-04  Eric Blake  <ebb9@byu.net>
33516
33517         gettimeofday: expose type of second argument
33518         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
33519         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
33520         * tests/test-gettimeofday.c: Use it to silence warning.
33521         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
33522         the issue.
33523
33524 2010-02-03  Jim Meyering  <meyering@redhat.com>
33525
33526         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
33527         * lib/regcomp.c (TYPE_SIGNED): Define.
33528         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
33529
33530         regcomp.c: avoid a new -Wshadow warning
33531         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
33532
33533 2010-02-01  Jim Meyering  <meyering@redhat.com>
33534
33535         removing useless parentheses in cpp #define directives
33536         For motivation, see commit c0221df4, "define STREQ(a,b)
33537         consistently, removing useless parentheses"
33538         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
33539         * lib/mountlist.c (MNT_IGNORE): Likewise.
33540         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
33541
33542 2010-02-01  Eric Blake  <ebb9@byu.net>
33543
33544         sys_time: use link-warning
33545         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
33546         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
33547         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
33548         * modules/sys_time (Depends-on): Add warn-on-use.
33549         (Makefile.am): Always build replacement.
33550         (configure.ac): Update substitutions.
33551         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
33552         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
33553         bother with SYS_TIME_H.
33554         * modules/gettimeofday (configure.ac): Declare indicator.
33555         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
33556         in use.
33557
33558         closein-tests: silence compiler warning
33559         * tests/test-closein.c (main): Ignore fread result.
33560         * modules/closein-tests (Depends-on): Add ignore-value.
33561
33562         tests: silence warning about system return
33563         * tests/test-areadlink-with-size.c (main): Ignore system result.
33564         * tests/test-areadlink.c (main): Likewise.
33565         * tests/test-areadlinkat-with-size.c (main): Likewise.
33566         * tests/test-areadlinkat.c (main): Likewise.
33567         * tests/test-canonicalize-lgpl.c (main): Likewise.
33568         * tests/test-canonicalize.c (main): Likewise.
33569         * tests/test-chown.c (main): Likewise.
33570         * tests/test-fchownat.c (main): Likewise.
33571         * tests/test-fdutimensat.c (main): Likewise.
33572         * tests/test-fstatat.c (main): Likewise.
33573         * tests/test-futimens.c (main): Likewise.
33574         * tests/test-lchown.c (main): Likewise.
33575         * tests/test-link.c (main): Likewise.
33576         * tests/test-linkat.c (main): Likewise.
33577         * tests/test-lstat.c (main): Likewise.
33578         * tests/test-mkdir.c (main): Likewise.
33579         * tests/test-mkdirat.c (main): Likewise.
33580         * tests/test-mkfifo.c (main): Likewise.
33581         * tests/test-mkfifoat.c (main): Likewise.
33582         * tests/test-mknod.c (main): Likewise.
33583         * tests/test-readlink.c (main): Likewise.
33584         * tests/test-remove.c (main): Likewise.
33585         * tests/test-rename.c (main): Likewise.
33586         * tests/test-renameat.c (main): Likewise.
33587         * tests/test-rmdir.c (main): Likewise.
33588         * tests/test-symlink.c (main): Likewise.
33589         * tests/test-symlinkat.c (main): Likewise.
33590         * tests/test-unlink.c (main): Likewise.
33591         * tests/test-unlinkat.c (main): Likewise.
33592         * tests/test-utimens.c (main): Likewise.
33593         * tests/test-utimensat.c (main): Likewise.
33594         * modules/areadlink-tests (Depends-on): Add ignore-value.
33595         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33596         * modules/areadlinkat-tests (Depends-on): Likewise.
33597         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33598         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33599         * modules/canonicalize-tests (Depends-on): Likewise.
33600         * modules/chown-tests (Depends-on): Likewise.
33601         * modules/fdutimensat-tests (Depends-on): Likewise.
33602         * modules/futimens-tests (Depends-on): Likewise.
33603         * modules/lchown-tests (Depends-on): Likewise.
33604         * modules/link-tests (Depends-on): Likewise.
33605         * modules/linkat-tests (Depends-on): Likewise.
33606         * modules/lstat-tests (Depends-on): Likewise.
33607         * modules/mkdir-tests (Depends-on): Likewise.
33608         * modules/mkfifo-tests (Depends-on): Likewise.
33609         * modules/mkfifoat-tests (Depends-on): Likewise.
33610         * modules/mknod-tests (Depends-on): Likewise.
33611         * modules/openat-tests (Depends-on): Likewise.
33612         * modules/readlink-tests (Depends-on): Likewise.
33613         * modules/remove-tests (Depends-on): Likewise.
33614         * modules/rename-tests (Depends-on): Likewise.
33615         * modules/renameat-tests (Depends-on): Likewise.
33616         * modules/rmdir-tests (Depends-on): Likewise.
33617         * modules/symlink-tests (Depends-on): Likewise.
33618         * modules/symlinkat-tests (Depends-on): Likewise.
33619         * modules/unlink-tests (Depends-on): Likewise.
33620         * modules/utimens-tests (Depends-on): Likewise.
33621         * modules/utimensat-tests (Depends-on): Likewise.
33622
33623 2010-01-31  Bruno Haible  <bruno@clisp.org>
33624
33625         Perform the same test for many <math.h> functions.
33626         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33627         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33628         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33629         of gl_MATHFUNC.
33630         * modules/acos (configure.ac): Likewise.
33631         * modules/asin (configure.ac): Likewise.
33632         * modules/atan (configure.ac): Likewise.
33633         * modules/atan2 (configure.ac): Likewise.
33634         * modules/cbrt (configure.ac): Likewise.
33635         * modules/copysign (configure.ac): Likewise.
33636         * modules/cos (configure.ac): Likewise.
33637         * modules/cosh (configure.ac): Likewise.
33638         * modules/erf (configure.ac): Likewise.
33639         * modules/erfc (configure.ac): Likewise.
33640         * modules/exp (configure.ac): Likewise.
33641         * modules/fmod (configure.ac): Likewise.
33642         * modules/hypot (configure.ac): Likewise.
33643         * modules/j0 (configure.ac): Likewise.
33644         * modules/j1 (configure.ac): Likewise.
33645         * modules/jn (configure.ac): Likewise.
33646         * modules/lgamma (configure.ac): Likewise.
33647         * modules/log (configure.ac): Likewise.
33648         * modules/log10 (configure.ac): Likewise.
33649         * modules/log1p (configure.ac): Likewise.
33650         * modules/pow (configure.ac): Likewise.
33651         * modules/remainder (configure.ac): Likewise.
33652         * modules/sin (configure.ac): Likewise.
33653         * modules/sinh (configure.ac): Likewise.
33654         * modules/tan (configure.ac): Likewise.
33655         * modules/tanh (configure.ac): Likewise.
33656         * modules/y0 (configure.ac): Likewise.
33657         * modules/y1 (configure.ac): Likewise.
33658         * modules/yn (configure.ac): Likewise.
33659         Suggested by Paolo Bonzini.
33660
33661 2010-01-31  Bruno Haible  <bruno@clisp.org>
33662
33663         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33664
33665 2010-01-31  Bruno Haible  <bruno@clisp.org>
33666
33667         Work around getdelim() bug on FreeBSD 8.0.
33668         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33669         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33670         not work.
33671         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33672         is 1.
33673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33674         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33675         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33676         a non-zero size.
33677         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33678
33679 2010-01-31  Bruno Haible  <bruno@clisp.org>
33680
33681         Work around getline() bug on FreeBSD 8.0.
33682         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33683         and a non-zero size.
33684         * tests/test-getline.c (main): Likewise.
33685         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33686         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33687
33688 2010-01-28  Eric Blake  <ebb9@byu.net>
33689
33690         regex: fix build failure
33691         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33692         platforms.
33693
33694 2010-01-28  Jim Meyering  <meyering@redhat.com>
33695
33696         regex: do not ignore memory allocation failure
33697         * lib/regex_internal.c (create_cd_newstate): Detect
33698         re_node_set_init_copy failure.   Extracted from glibc commit
33699         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33700
33701         regex: sync more white-space changes from libc
33702         * lib/regex_internal.c: White-space only changes.
33703         * lib/regexec.c: Likewise.
33704
33705         regex: add many uses of __attribute_warn_unused_result__
33706         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33707         * lib/regexec.c: Likewise.
33708         Extracted from a messy glibc commit.
33709
33710         regcomp.c: spelling and merge-artifact from glibc
33711         * lib/regcomp.c: Merge remainder of glibc's
33712         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33713
33714         regcomp.c: sync white-space changes from glibc
33715         * lib/regcomp.c: Merge to accommodate white space
33716         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33717
33718         regcomp.c: do not ignore internal return values
33719         * lib/regcomp.c: Do not ignore internal return values.
33720         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33721         but without its white-space changes and spelling fixes.
33722
33723         regex_internal.h: define __attribute_warn_unused_result__
33724         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33725
33726         maint: add a syntax-check rule to check for vulnerable Makefile.in
33727         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33728
33729 2010-01-27  Jim Meyering  <meyering@redhat.com>
33730
33731         ncftpput-ftp: clean up spaces
33732         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33733         Remove trailing blanks.
33734
33735 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33736
33737         * build-aux/git-version-gen: Fix copyright statement.
33738         * build-aux/gnupload: Likewise.
33739         * tests/test-arcfour.c: Likewise.
33740         * tests/test-arctwo.c: Likewise.
33741         * tests/test-count-one-bits.c: Likewise.
33742         * tests/test-crc.c: Likewise.
33743         * tests/test-des.c: Likewise.
33744         * tests/test-gc-arcfour.c: Likewise.
33745         * tests/test-gc-arctwo.c: Likewise.
33746         * tests/test-gc-des.c: Likewise.
33747         * tests/test-gc-hmac-md5.c: Likewise.
33748         * tests/test-gc-hmac-sha1.c: Likewise.
33749         * tests/test-gc-md2.c: Likewise.
33750         * tests/test-gc-md4.c: Likewise.
33751         * tests/test-gc-md5.c: Likewise.
33752         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33753         * tests/test-gc-rijndael.c: Likewise.
33754         * tests/test-gc-sha1.c: Likewise.
33755         * tests/test-gc.c: Likewise.
33756         * tests/test-gethostname.c: Likewise.
33757         * tests/test-gettimeofday.c: Likewise.
33758         * tests/test-hash.c: Likewise.
33759         * tests/test-hmac-md5.c: Likewise.
33760         * tests/test-hmac-sha1.c: Likewise.
33761         * tests/test-md2.c: Likewise.
33762         * tests/test-md4.c: Likewise.
33763         * tests/test-md5.c: Likewise.
33764         * tests/test-memchr.c: Likewise.
33765         * tests/test-memchr2.c: Likewise.
33766         * tests/test-memcmp.c: Likewise.
33767         * tests/test-memmem.c: Likewise.
33768         * tests/test-memrchr.c: Likewise.
33769         * tests/test-rawmemchr.c: Likewise.
33770         * tests/test-read-file.c: Likewise.
33771         * tests/test-rijndael.c: Likewise.
33772         * tests/test-sockets.c: Likewise.
33773         * tests/test-strchrnul.c: Likewise.
33774         * tests/test-strstr.c: Likewise.
33775         * tests/test-strtod.c: Likewise.
33776         * build-aux/ncftpput-ftp: Likewise.
33777
33778 2010-01-26  Eric Blake  <ebb9@byu.net>
33779
33780         ignore-value: update recommended header name
33781         * modules/ignore-value (Include): Only use <> for headers that
33782         exist in glibc.
33783
33784 2010-01-26  Jim Meyering  <meyering@redhat.com>
33785
33786         test-userspec.c: avoid compiler warnings
33787         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33788         and "initialization discards qualifiers..." warnings.
33789         Put the first "uid" in its own scope, and make char* members "const".
33790
33791 2010-01-25  Bruno Haible  <bruno@clisp.org>
33792
33793         gnulib-tool: Make warning diagnostics consistent.
33794         * gnulib-tool (func_warning): New function.
33795         Use it everywhere where gnulib-tool produces output to stderr and it is
33796         not a fatal error.
33797
33798 2010-01-25  Bruno Haible  <bruno@clisp.org>
33799
33800         Fix test dependencies.
33801         * modules/xstrtol-tests (Depends-on): Add inttypes.
33802         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33803
33804 2010-01-25 Pádraig Brady <P@draigBrady.com>
33805
33806         syntax-check: detect incorrect boolean macro values in config.h
33807         * modules/maintainer-makefile (configure.ac): Parameterize the location
33808         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33809         The logic is from Eric Blake and the location indicated by Jim Meyering.
33810         Note the more natural CONFIG_HEADER name is prohibited by automake
33811         for backwards compatibility reasons.
33812         * top/maint.mk (sc_Wundef_boolean): New rule.
33813
33814 2010-01-25  Jim Meyering  <meyering@redhat.com>
33815
33816         bootstrap: detect MacOS 10.6's shasum, too
33817         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33818         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33819
33820 2010-01-23  Jim Meyering  <meyering@redhat.com>
33821
33822         xstrtoll: new module
33823         * modules/xstrtoll: New file.
33824         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33825         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33826         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33827         ./configure fails if you use this module and lack "long long".
33828         * modules/xstrtoll-tests: New module.
33829         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33830         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33831         new init.sh-based test framework.
33832
33833 2010-01-24  Bruno Haible  <bruno@clisp.org>
33834
33835         Tests for module 'yn'.
33836         * modules/yn-tests: New file.
33837         * tests/test-yn.c: New file.
33838
33839         Tests for module 'y1'.
33840         * modules/y1-tests: New file.
33841         * tests/test-y1.c: New file.
33842
33843         Tests for module 'y0'.
33844         * modules/y0-tests: New file.
33845         * tests/test-y0.c: New file.
33846
33847         Tests for module 'tanh'.
33848         * modules/tanh-tests: New file.
33849         * tests/test-tanh.c: New file.
33850
33851         Tests for module 'tan'.
33852         * modules/tan-tests: New file.
33853         * tests/test-tan.c: New file.
33854
33855         Tests for module 'sqrt'.
33856         * modules/sqrt-tests: New file.
33857         * tests/test-sqrt.c: New file.
33858
33859         Tests for module 'sinh'.
33860         * modules/sinh-tests: New file.
33861         * tests/test-sinh.c: New file.
33862
33863         Tests for module 'sin'.
33864         * modules/sin-tests: New file.
33865         * tests/test-sin.c: New file.
33866
33867         Tests for module 'rint'.
33868         * modules/rint-tests: New file.
33869         * tests/test-rint.c: New file.
33870
33871         Tests for module 'remainder'.
33872         * modules/remainder-tests: New file.
33873         * tests/test-remainder.c: New file.
33874
33875         Tests for module 'pow'.
33876         * modules/pow-tests: New file.
33877         * tests/test-pow.c: New file.
33878
33879         Tests for module 'nextafter'.
33880         * modules/nextafter-tests: New file.
33881         * tests/test-nextafter.c: New file.
33882
33883         Tests for module 'modf'.
33884         * modules/modf-tests: New file.
33885         * tests/test-modf.c: New file.
33886
33887         Tests for module 'logb'.
33888         * modules/logb-tests: New file.
33889         * tests/test-logb.c: New file.
33890
33891         Tests for module 'log1p'.
33892         * modules/log1p-tests: New file.
33893         * tests/test-log1p.c: New file.
33894
33895         Tests for module 'log10'.
33896         * modules/log10-tests: New file.
33897         * tests/test-log10.c: New file.
33898
33899         Tests for module 'log'.
33900         * modules/log-tests: New file.
33901         * tests/test-log.c: New file.
33902
33903         Tests for module 'lgamma'.
33904         * modules/lgamma-tests: New file.
33905         * tests/test-lgamma.c: New file.
33906
33907         Tests for module 'ldexp'.
33908         * modules/ldexp-tests: New file.
33909         * tests/test-ldexp.c: New file.
33910
33911         Tests for module 'jn'.
33912         * modules/jn-tests: New file.
33913         * tests/test-jn.c: New file.
33914
33915         Tests for module 'j1'.
33916         * modules/j1-tests: New file.
33917         * tests/test-j1.c: New file.
33918
33919         Tests for module 'j0'.
33920         * modules/j0-tests: New file.
33921         * tests/test-j0.c: New file.
33922
33923         Tests for module 'hypot'.
33924         * modules/hypot-tests: New file.
33925         * tests/test-hypot.c: New file.
33926
33927         Tests for module 'fmod'.
33928         * modules/fmod-tests: New file.
33929         * tests/test-fmod.c: New file.
33930
33931         Tests for module 'fabs'.
33932         * modules/fabs-tests: New file.
33933         * tests/test-fabs.c: New file.
33934
33935         Tests for module 'exp'.
33936         * modules/exp-tests: New file.
33937         * tests/test-exp.c: New file.
33938
33939         Tests for module 'erfc'.
33940         * modules/erfc-tests: New file.
33941         * tests/test-erfc.c: New file.
33942
33943         Tests for module 'erf'.
33944         * modules/erf-tests: New file.
33945         * tests/test-erf.c: New file.
33946
33947         Tests for module 'cosh'.
33948         * modules/cosh-tests: New file.
33949         * tests/test-cosh.c: New file.
33950
33951         Tests for module 'cos'.
33952         * modules/cos-tests: New file.
33953         * tests/test-cos.c: New file.
33954
33955         Tests for module 'copysign'.
33956         * modules/copysign-tests: New file.
33957         * tests/test-copysign.c: New file.
33958
33959         Tests for module 'cbrt'.
33960         * modules/cbrt-tests: New file.
33961         * tests/test-cbrt.c: New file.
33962
33963         Tests for module 'atan2'.
33964         * modules/atan2-tests: New file.
33965         * tests/test-atan2.c: New file.
33966
33967         Tests for module 'atan'.
33968         * modules/atan-tests: New file.
33969         * tests/test-atan.c: New file.
33970
33971         Tests for module 'asin'.
33972         * modules/asin-tests: New file.
33973         * tests/test-asin.c: New file.
33974
33975         Tests for module 'acos'.
33976         * modules/acos-tests: New file.
33977         * tests/test-acos.c: New file.
33978
33979 2010-01-24  Bruno Haible  <bruno@clisp.org>
33980
33981         Fix tests for common <math.h> functions.
33982         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33983         code snippet that references the function pointer, rather than merely
33984         calling the function. Substitute the FUNC_LIBM variable.
33985         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33986         * modules/acos (configure.ac): Likewise.
33987         * modules/asin (configure.ac): Likewise.
33988         * modules/atan (configure.ac): Likewise.
33989         * modules/atan2 (configure.ac): Likewise.
33990         * modules/cbrt (configure.ac): Likewise.
33991         * modules/copysign (configure.ac): Likewise.
33992         * modules/cos (configure.ac): Likewise.
33993         * modules/cosh (configure.ac): Likewise.
33994         * modules/erf (configure.ac): Likewise.
33995         * modules/erfc (configure.ac): Likewise.
33996         * modules/exp (configure.ac): Likewise.
33997         * modules/fabs (configure.ac): Likewise.
33998         * modules/fmod (configure.ac): Likewise.
33999         * modules/hypot (configure.ac): Likewise.
34000         * modules/j0 (configure.ac): Likewise.
34001         * modules/j1 (configure.ac): Likewise.
34002         * modules/jn (configure.ac): Likewise.
34003         * modules/ldexp (configure.ac): Likewise.
34004         * modules/lgamma (configure.ac): Likewise.
34005         * modules/log (configure.ac): Likewise.
34006         * modules/log10 (configure.ac): Likewise.
34007         * modules/log1p (configure.ac): Likewise.
34008         * modules/logb (configure.ac): Likewise.
34009         * modules/modf (configure.ac): Likewise.
34010         * modules/nextafter (configure.ac): Likewise.
34011         * modules/pow (configure.ac): Likewise.
34012         * modules/remainder (configure.ac): Likewise.
34013         * modules/rint (configure.ac): Likewise.
34014         * modules/sin (configure.ac): Likewise.
34015         * modules/sinh (configure.ac): Likewise.
34016         * modules/tan (configure.ac): Likewise.
34017         * modules/tanh (configure.ac): Likewise.
34018         * modules/y0 (configure.ac): Likewise.
34019         * modules/y1 (configure.ac): Likewise.
34020         * modules/yn (configure.ac): Likewise.
34021
34022 2010-01-24  Bruno Haible  <bruno@clisp.org>
34023
34024         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
34025         * tests/test-acosl.c (x): New variable.
34026         (main): Store argument in x and fetch it from x.
34027         * tests/test-asinl.c (x): New variable.
34028         (main): Store argument in x and fetch it from x.
34029         * tests/test-atanl.c (x): New variable.
34030         (main): Store argument in x and fetch it from x.
34031         * tests/test-cosl.c (x): New variable.
34032         (main): Store argument in x and fetch it from x.
34033         * tests/test-expl.c (x): New variable.
34034         (main): Store argument in x and fetch it from x.
34035         * tests/test-logl.c (x): New variable.
34036         (main): Store argument in x and fetch it from x.
34037         * tests/test-sinl.c (x): New variable.
34038         (main): Store argument in x and fetch it from x.
34039         * tests/test-sqrtl.c (x): New variable.
34040         (main): Store argument in x and fetch it from x.
34041         * tests/test-tanl.c (x): New variable.
34042         (main): Store argument in x and fetch it from x.
34043
34044 2010-01-24  Bruno Haible  <bruno@clisp.org>
34045
34046         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
34047         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
34048         assignments to the initial TESTS_ENVIRONMENT.
34049         * doc/gnulib.texi (Unit test modules): Document it.
34050         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
34051         TESTS_ENVIRONMENT.
34052         * modules/btowc-tests (Makefile.am): Likewise.
34053         * modules/c-stack-tests (Makefile.am): Likewise.
34054         * modules/c-strcase-tests (Makefile.am): Likewise.
34055         * modules/copy-file-tests (Makefile.am): Likewise.
34056         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
34057         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
34058         * modules/mbrtowc-tests (Makefile.am): Likewise.
34059         * modules/mbscasecmp-tests (Makefile.am): Likewise.
34060         * modules/mbscasestr-tests (Makefile.am): Likewise.
34061         * modules/mbschr-tests (Makefile.am): Likewise.
34062         * modules/mbscspn-tests (Makefile.am): Likewise.
34063         * modules/mbsinit-tests (Makefile.am): Likewise.
34064         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
34065         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
34066         * modules/mbspbrk-tests (Makefile.am): Likewise.
34067         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
34068         * modules/mbsrchr-tests (Makefile.am): Likewise.
34069         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
34070         * modules/mbsspn-tests (Makefile.am): Likewise.
34071         * modules/mbsstr-tests (Makefile.am): Likewise.
34072         * modules/nl_langinfo-tests (Makefile.am): Likewise.
34073         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
34074         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
34075         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
34076         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
34077         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
34078         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
34079         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
34080         * modules/wcrtomb-tests (Makefile.am): Likewise.
34081         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
34082         * modules/wcsrtombs-tests (Makefile.am): Likewise.
34083         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
34084         assignments from TESTS_ENVIRONMENT.
34085         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
34086         augmentation.
34087         * modules/argp-version-etc-tests (Makefile.am): Likewise.
34088         * modules/atexit-tests (Makefile.am): Likewise.
34089         * modules/binary-io-tests (Makefile.am): Likewise.
34090         * modules/closein-tests (Makefile.am): Likewise.
34091         * modules/dprintf-posix-tests (Makefile.am): Likewise.
34092         * modules/exclude-tests (Makefile.am): Likewise.
34093         * modules/fflush-tests (Makefile.am): Likewise.
34094         * modules/fpending-tests (Makefile.am): Likewise.
34095         * modules/fprintf-posix-tests (Makefile.am): Likewise.
34096         * modules/freadahead-tests (Makefile.am): Likewise.
34097         * modules/freadptr-tests (Makefile.am): Likewise.
34098         * modules/freadseek-tests (Makefile.am): Likewise.
34099         * modules/fseek-tests (Makefile.am): Likewise.
34100         * modules/fseeko-tests (Makefile.am): Likewise.
34101         * modules/ftell-tests (Makefile.am): Likewise.
34102         * modules/ftello-tests (Makefile.am): Likewise.
34103         * modules/idpriv-drop-tests (Makefile.am): Likewise.
34104         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
34105         * modules/lseek-tests (Makefile.am): Likewise.
34106         * modules/parse-duration-tests (Makefile.am): Likewise.
34107         * modules/perror-tests (Makefile.am): Likewise.
34108         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
34109         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
34110         * modules/pipe-tests (Makefile.am): Likewise.
34111         * modules/pread-tests (Makefile.am): Likewise.
34112         * modules/printf-posix-tests (Makefile.am): Likewise.
34113         * modules/select-tests (Makefile.am): Likewise.
34114         * modules/sigpipe-tests (Makefile.am): Likewise.
34115         * modules/tsearch-tests (Makefile.am): Likewise.
34116         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
34117         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
34118         * modules/uniname/uniname-tests (Makefile.am): Likewise.
34119         * modules/uniwidth/width-tests (Makefile.am): Likewise.
34120         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
34121         * modules/version-etc-tests (Makefile.am): Likewise.
34122         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
34123         * modules/vprintf-posix-tests (Makefile.am): Likewise.
34124         * modules/xalloc-die-tests (Makefile.am): Likewise.
34125         * modules/xprintf-posix-tests (Makefile.am): Likewise.
34126         * modules/xstrtoimax-tests (Makefile.am): Likewise.
34127         * modules/xstrtol-tests (Makefile.am): Likewise.
34128         * modules/xstrtoumax-tests (Makefile.am): Likewise.
34129         * modules/yesno-tests (Makefile.am): Likewise.
34130         Suggested by Jim Meyering.
34131
34132 2010-01-24  Bruno Haible  <bruno@clisp.org>
34133
34134         More documentation.
34135         * doc/gnulib.texi (Writing modules): New chapter.
34136         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
34137         the new chapter.
34138
34139 2010-01-24  Jim Meyering  <meyering@redhat.com>
34140
34141         maint.mk: do not prepend "./" after filtering
34142         * top/maint.mk (_prepend_srcdir_prefix): New variable
34143         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
34144         "./" when $(srcdir) is ".".
34145
34146         define STREQ(a,b) consistently, removing useless parentheses
34147         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
34148         since the only risk is that "a" or "b" contains an unparenthesized
34149         comma, but if either did that, STREQ would have 3 or more arguments.
34150         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
34151         * lib/fts.c (STREQ): Remove unnecessary parentheses.
34152         * lib/hash-triple.c (STREQ): Likewise.
34153         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
34154         * lib/getugroups.c (STREQ): Likewise.
34155
34156 2010-01-23  Jim Meyering  <meyering@redhat.com>
34157
34158         maint.mk: fix syntax-check in a non-srcdir build directory
34159         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
34160         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
34161
34162 2010-01-22  Jim Meyering  <meyering@redhat.com>
34163
34164         userspec: add unit tests
34165         * tests/test-userspec.c: New file.
34166         * modules/userspec-tests: Likewise.
34167
34168 2010-01-21  Jim Meyering  <meyering@redhat.com>
34169
34170         maint.mk: handle source file names containing "." robustly
34171         * top/maint.mk (_dot_escaped_srcdir): Define.
34172         (VC_LIST): Use it in LHS of sed substitution.
34173
34174 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
34175
34176         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
34177         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
34178         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
34179         from a non-srcdir build.
34180
34181 2010-01-20  Eric Blake  <ebb9@byu.net>
34182
34183         warn-on-use: use instead of link-warning
34184         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
34185         * modules/unistd (Depends-on, Makefile.am): Likewise.
34186         * modules/arpa_inet (Depends-on): Replace link-warning with
34187         warn-on-use.
34188         (Makefile.am): Update rules accordingly.
34189         * modules/ctype (Depends-on, Makefile.am): Likewise.
34190         * modules/dirent (Depends-on, Makefile.am): Likewise.
34191         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
34192         * modules/inttypes (Depends-on, Makefile.am): Likewise.
34193         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34194         * modules/locale (Depends-on, Makefile.am): Likewise.
34195         * modules/math (Depends-on, Makefile.am): Likewise.
34196         * modules/search (Depends-on, Makefile.am): Likewise.
34197         * modules/signal (Depends-on, Makefile.am): Likewise.
34198         * modules/spawn (Depends-on, Makefile.am): Likewise.
34199         * modules/stdlib (Depends-on, Makefile.am): Likewise.
34200         * modules/string (Depends-on, Makefile.am): Likewise.
34201         * modules/strings (Depends-on, Makefile.am): Likewise.
34202         * modules/sys_file (Depends-on, Makefile.am): Likewise.
34203         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
34204         * modules/sys_select (Depends-on, Makefile.am): Likewise.
34205         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
34206         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
34207         * modules/sys_times (Depends-on, Makefile.am): Likewise.
34208         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34209         * modules/wchar (Depends-on, Makefile.am): Likewise.
34210         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
34211         should be poisoned.
34212         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
34213         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
34214         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
34215         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34216         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34217         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34218         * m4/math_h.m4 (gl_MATH_H): Likewise.
34219         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34220         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34221         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34222         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34223         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34224         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34225         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34226         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
34227         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
34228         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34229         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34230         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34231         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34232         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34233         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34234         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34235         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
34236         GL_LINK_WARNING.
34237         * lib/ctype.in.h: Likewise.
34238         * lib/dirent.in.h: Likewise.
34239         * lib/fcntl.in.h: Likewise.
34240         * lib/inttypes.in.h: Likewise.
34241         * lib/langinfo.in.h: Likewise.
34242         * lib/locale.in.h: Likewise.
34243         * lib/math.in.h: Likewise.
34244         * lib/search.in.h: Likewise.
34245         * lib/signal.in.h: Likewise.
34246         * lib/spawn.in.h: Likewise.
34247         * lib/stdio.in.h: Likewise.
34248         * lib/stdlib.in.h: Likewise.
34249         * lib/string.in.h: Likewise.
34250         * lib/strings.in.h: Likewise.
34251         * lib/sys_file.in.h: Likewise.
34252         * lib/sys_ioctl.in.h: Likewise.
34253         * lib/sys_select.in.h: Likewise.
34254         * lib/sys_socket.in.h: Likewise.
34255         * lib/sys_stat.in.h: Likewise.
34256         * lib/sys_times.in.h: Likewise.
34257         * lib/sys_utsname.in.h: Likewise.
34258         * lib/unistd.in.h: Likewise.
34259         * lib/wchar.in.h: Likewise.
34260
34261 2010-01-20  Bruno Haible  <bruno@clisp.org>
34262
34263         Avoid duplicate -lm.
34264         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
34265         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
34266         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
34267         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
34268         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
34269         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
34270         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
34271         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
34272         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
34273         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
34274         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
34275         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
34276         Reported by Paolo Bonzini.
34277
34278 2010-01-19  Bruno Haible  <bruno@clisp.org>
34279
34280         langinfo, nl_langinfo: Relicense under LGPLv2+.
34281         * modules/langinfo (License): Change to LGPLv2+.
34282         * modules/nl_langinfo (License): Likewise.
34283         Patch by David Lutterkort <lutter@redhat.com>.
34284
34285 2010-01-19  Bruno Haible  <bruno@clisp.org>
34286
34287         Avoid compilation error with cc on OSF/1 5.1.
34288         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
34289         statement, not before.
34290         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34291
34292 2010-01-18  Bruno Haible  <bruno@clisp.org>
34293
34294         Avoid a link error due to the __printf__ symbol.
34295         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
34296         and 2.6.x.
34297         (__format__, __printf__): Remove definitions.
34298         * lib/argp-fmtstream.h: Likewise.
34299         * lib/argp.h: Likewise.
34300         * lib/error.h: Likewise.
34301         * lib/vasnprintf.h: Likewise.
34302         * lib/xprintf.h: Likewise.
34303         * lib/xvasprintf.h: Likewise.
34304         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34305
34306 2010-01-18  Bruno Haible  <bruno@clisp.org>
34307
34308         Tests for module 'tanl'.
34309         * modules/tanl-tests: New file.
34310         * tests/test-tanl.c: New file.
34311
34312         Tests for module 'sqrtl'.
34313         * modules/sqrtl-tests: New file.
34314         * tests/test-sqrtl.c: New file.
34315
34316         Tests for module 'sinl'.
34317         * modules/sinl-tests: New file.
34318         * tests/test-sinl.c: New file.
34319
34320         Tests for module 'logl'.
34321         * modules/logl-tests: New file.
34322         * tests/test-logl.c: New file.
34323
34324         Tests for module 'expl'.
34325         * modules/expl-tests: New file.
34326         * tests/test-expl.c: New file.
34327
34328         Tests for module 'cosl'.
34329         * modules/cosl-tests: New file.
34330         * tests/test-cosl.c: New file.
34331
34332         Tests for module 'atanl'.
34333         * modules/atanl-tests: New file.
34334         * tests/test-atanl.c: New file.
34335
34336         Tests for module 'asinl'.
34337         * modules/asinl-tests: New file.
34338         * tests/test-asinl.c: New file.
34339
34340         Tests for module 'acosl'.
34341         * modules/acosl-tests: New file.
34342         * tests/test-acosl.c: New file.
34343
34344         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34345         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
34346         tanl): Use the standard gnulib idiom.
34347         * lib/cosl.c: Don't include trigl.c and sincosl.c.
34348         * lib/sinl.c: Likewise.
34349         * lib/tanl.c: Don't include trigl.c.
34350         (kernel_tanl): Make static.
34351         * lib/sincosl.c: Include trigl.h first.
34352         * lib/trigl.c: Likewise.
34353         * m4/acosl.m4: New file.
34354         * m4/asinl.m4: New file.
34355         * m4/atanl.m4: New file.
34356         * m4/cosl.m4: New file.
34357         * m4/expl.m4: New file.
34358         * m4/logl.m4: New file.
34359         * m4/sinl.m4: New file.
34360         * m4/sqrtl.m4: New file.
34361         * m4/tanl.m4: New file.
34362         * m4/mathl.m4: Remove file.
34363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
34364         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34365         Don't initialize GNULIB_MATHL.
34366         * modules/acosl: New file.
34367         * modules/asinl: New file.
34368         * modules/atanl: New file.
34369         * modules/cosl: New file.
34370         * modules/expl: New file.
34371         * modules/logl: New file.
34372         * modules/sinl: New file.
34373         * modules/sqrtl: New file.
34374         * modules/tanl: New file.
34375         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
34376         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
34377         substitute GNULIB_MATHL.
34378         * modules/mathl: Rewritten.
34379         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
34380         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
34381         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
34382         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
34383         * doc/posix-functions/expl.texi: Mention the 'expl' module.
34384         * doc/posix-functions/logl.texi: Mention the 'logl' module.
34385         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
34386         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
34387         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
34388
34389 2010-01-18  Bruno Haible  <bruno@clisp.org>
34390
34391         sqrt: Make gl_FUNC_SQRT requirable.
34392         * m4/sqrt.m4: New file.
34393         * modules/sqrt (Files): Add it.
34394         (configure.ac): Invoke gl_FUNC_SQRT.
34395
34396 2010-01-18  Bruno Haible  <bruno@clisp.org>
34397
34398         New modules for common <math.h> functions.
34399         * m4/mathfunc.m4: New file.
34400         * modules/acos: New file.
34401         * modules/asin: New file.
34402         * modules/atan: New file.
34403         * modules/atan2: New file.
34404         * modules/cbrt: New file.
34405         * modules/copysign: New file.
34406         * modules/cos: New file.
34407         * modules/cosh: New file.
34408         * modules/erf: New file.
34409         * modules/erfc: New file.
34410         * modules/exp: New file.
34411         * modules/fabs: New file.
34412         * modules/fmod: New file.
34413         * modules/hypot: New file.
34414         * modules/j0: New file.
34415         * modules/j1: New file.
34416         * modules/jn: New file.
34417         * modules/ldexp: New file.
34418         * modules/lgamma: New file.
34419         * modules/log: New file.
34420         * modules/log10: New file.
34421         * modules/log1p: New file.
34422         * modules/logb: New file.
34423         * modules/modf: New file.
34424         * modules/nextafter: New file.
34425         * modules/pow: New file.
34426         * modules/remainder: New file.
34427         * modules/rint: New file.
34428         * modules/sin: New file.
34429         * modules/sinh: New file.
34430         * modules/sqrt: New file.
34431         * modules/tan: New file.
34432         * modules/tanh: New file.
34433         * modules/y0: New file.
34434         * modules/y1: New file.
34435         * modules/yn: New file.
34436         * doc/posix-functions/acos.texi: Mention the 'acos' module.
34437         * doc/posix-functions/asin.texi: Mention the 'asin' module.
34438         * doc/posix-functions/atan.texi: Mention the 'atan' module.
34439         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
34440         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
34441         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
34442         * doc/posix-functions/cos.texi: Mention the 'cos' module.
34443         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
34444         * doc/posix-functions/erf.texi: Mention the 'erf' module.
34445         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
34446         * doc/posix-functions/exp.texi: Mention the 'exp' module.
34447         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
34448         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
34449         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
34450         * doc/posix-functions/j0.texi: Mention the 'j0' module.
34451         * doc/posix-functions/j1.texi: Mention the 'j1' module.
34452         * doc/posix-functions/jn.texi: Mention the 'jn' module.
34453         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
34454         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
34455         * doc/posix-functions/log.texi: Mention the 'log' module.
34456         * doc/posix-functions/log10.texi: Mention the 'log10' module.
34457         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
34458         * doc/posix-functions/logb.texi: Mention the 'logb' module.
34459         * doc/posix-functions/modf.texi: Mention the 'modf' module.
34460         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
34461         * doc/posix-functions/pow.texi: Mention the 'pow' module.
34462         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
34463         * doc/posix-functions/rint.texi: Mention the 'rint' module.
34464         * doc/posix-functions/sin.texi: Mention the 'sin' module.
34465         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
34466         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
34467         * doc/posix-functions/tan.texi: Mention the 'tan' module.
34468         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
34469         * doc/posix-functions/y0.texi: Mention the 'y0' module.
34470         * doc/posix-functions/y1.texi: Mention the 'y1' module.
34471         * doc/posix-functions/yn.texi: Mention the 'yn' module.
34472
34473 2010-01-18  Jim Meyering  <meyering@redhat.com>
34474
34475         ignore-value: relax license to LGPLv2+
34476         * modules/ignore-value (License): Relax to LGPLv2+.
34477
34478         getdate: don't leak when TZ contains two or more '"'s
34479         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
34480         double quote in TZ after the first one.
34481
34482         readtokens: do not leak internal token_lengths buffer
34483         * lib/readtokens.c (readtokens): Free the local, lengths,
34484         when the supplied "token_lengths" parameter is NULL.
34485
34486 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34487
34488         Fix a couple of missing LIBTHREAD link failures on AIX.
34489         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
34490         $(LIBTHREAD).
34491         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
34492
34493         Link test-poll against INET_PTON_LIB.
34494         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
34495         for inet_pton on Solaris 10.
34496
34497 2010-01-17  Bruno Haible  <bruno@clisp.org>
34498
34499         unistdio/*-sprintf: Fix typo in module description.
34500         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
34501         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
34502         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
34503         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
34504         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
34505         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
34506         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
34507         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34508
34509 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34510
34511         gnulib-tool: fix filelist for AIX, HP-UX ksh.
34512         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
34513         variables in shell case patterns, for AIX and HP-UX ksh.
34514
34515         Split large sed scripts, for HP-UX sed.
34516         * modules/stdio: Split sed scripts around 50 sed commands,
34517         to avoid HP-UX limit of 99 commands, in the near future.
34518         * modules/string: Likewise.
34519         * modules/unistd: Likewise.
34520
34521         gnulib-tool: avoid writing in the current directory.
34522         * gnulib-tool (func_emit_lib_Makefile_am)
34523         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
34524         not in the current directory, so concurrent gnulib-tool
34525         instances do not interfere.
34526
34527 2010-01-16  Jim Meyering  <meyering@redhat.com>
34528
34529         doc: update users.txt
34530         * users.txt: Add grep.
34531         (diffutils, gzip): Update URLs.
34532
34533 2010-01-12  Bruno Haible  <bruno@clisp.org>
34534
34535         posix_spawn: Avoid test failure on Cygwin.
34536         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
34537         characters.
34538         Reported by Simon Josefsson.
34539
34540 2010-01-12  Bruno Haible  <bruno@clisp.org>
34541
34542         * tests/test-cond.c (main): When skipping the test, show the reason.
34543
34544 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34545
34546         * lib/striconv.c (str_cd_iconv): Avoid if before free.
34547
34548 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34549
34550         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
34551         VC_LIST_ALWAYS_EXCLUDE_REGEX.
34552
34553 2010-01-12  Eric Blake  <ebb9@byu.net>
34554
34555         build: guarantee AS_VAR_IF
34556         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34557         (gl_AS_VAR_IF): Move...
34558         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34559         Reported by Simon Josefsson.
34560
34561 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34562
34563         * lib/stdio.in.h: Fix typo.
34564
34565 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34566
34567         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34568         libgpg-error.
34569
34570 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34571
34572         * tests/test-xalloc-die.sh: Use $EXEEXT.
34573
34574 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34575             Bruno Haible  <bruno@clisp.org>
34576
34577         getlogin, getlogin_r: Avoid test failure.
34578         * tests/test-getlogin.c: Include <stdio.h>.
34579         (main): Skip the test when the function fails because stdin is not a
34580         tty.
34581         * tests/test-getlogin_r.c: Include <stdio.h>.
34582         (main): Skip the test when the function fails because stdin is not a
34583         tty.
34584
34585 2010-01-11  Eric Blake  <ebb9@byu.net>
34586
34587         tests: avoid more large file warnings
34588         * tests/test-fflush.c: Avoid warning about ftell use.
34589         * tests/test-fseek.c: Avoid warning about fseek use.
34590
34591 2010-01-10  Bruno Haible  <bruno@clisp.org>
34592
34593         nproc: Work better on Linux when /proc and /sys are not mounted.
34594         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34595         as lower bound when, on glibc/Linux systems,
34596         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34597         Suggested by Pádraig Brady <P@draigbrady.com>.
34598         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34599
34600         nproc: Refactor.
34601         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34602         extracted from num_processors.
34603         (num_processors): Call it.
34604
34605 2010-01-11  Jim Meyering  <meyering@redhat.com>
34606
34607         utimecmp: avoid new warning from upcoming gcc-4.5.0
34608         * lib/utimecmp.c (BILLION): Define using #define rather than an
34609         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34610
34611 2010-01-11  Eric Blake  <ebb9@byu.net>
34612
34613         math: add portability warnings for classification macros
34614         * modules/math (Depends-on): Add warn-on-use.
34615         (Makefile.am): Provide new substitutions.
34616         * m4/math_h.m4 (gl_MATH_H): Require inline.
34617         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34618         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34619         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34620         implement warnings.
34621
34622         unistd: warn on use of environ without module
34623         * modules/unistd (Depends-on): Add warn-on-use.
34624         (Makefile.am): Provide new substitutions.
34625         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34626         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34627
34628         stdio: warn on suspicious uses
34629         * modules/stdio (Depends-on): Add warn-on-use.
34630         (Makefile.am): Provide new substitutions.
34631         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34632         fseeko.
34633         * lib/stdio.in.h (gets): Always warn on use.
34634         (fseek, ftell): Adjust when warnings are issued, and honor
34635         _GL_NO_LARGE_FILES as a way to silence the warning.
34636         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34637         any warning about large file offsets.
34638         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34639         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34640         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34641         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34642         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34643         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34644         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34645         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34646
34647         warn-on-use: new module
34648         * modules/warn-on-use: New file.
34649         * build-aux/warn-on-use.h: Likewise.
34650         * m4/warn-on-use.m4: Likewise.
34651         * MODULES.html.sh (Support for building): Mention it.
34652
34653 2010-01-10  Bruno Haible  <bruno@clisp.org>
34654
34655         Tests for module 'unistr/u32-strdup'.
34656         * modules/unistr/u32-strdup-tests: New file.
34657         * tests/unistr/test-u32-strdup.c: New file.
34658
34659         Tests for module 'unistr/u16-strdup'.
34660         * modules/unistr/u16-strdup-tests: New file.
34661         * tests/unistr/test-u16-strdup.c: New file.
34662
34663         Tests for module 'unistr/u8-strdup'.
34664         * modules/unistr/u8-strdup-tests: New file.
34665         * tests/unistr/test-u8-strdup.c: New file.
34666         * tests/unistr/test-strdup.h: New file.
34667
34668         Tests for module 'unistr/u32-strncmp'.
34669         * modules/unistr/u32-strncmp-tests: New file.
34670         * tests/unistr/test-u32-strncmp.c: New file.
34671
34672         Tests for module 'unistr/u16-strncmp'.
34673         * modules/unistr/u16-strncmp-tests: New file.
34674         * tests/unistr/test-u16-strncmp.c: New file.
34675
34676         Tests for module 'unistr/u8-strncmp'.
34677         * modules/unistr/u8-strncmp-tests: New file.
34678         * tests/unistr/test-u8-strncmp.c: New file.
34679         * tests/unistr/test-strncmp.h: New file.
34680
34681         Tests for module 'unistr/u32-strcoll'.
34682         * modules/unistr/u32-strcoll-tests: New file.
34683         * tests/unistr/test-u32-strcoll.c: New file.
34684
34685         Tests for module 'unistr/u16-strcoll'.
34686         * modules/unistr/u16-strcoll-tests: New file.
34687         * tests/unistr/test-u16-strcoll.c: New file.
34688
34689         Tests for module 'unistr/u8-strcoll'.
34690         * modules/unistr/u8-strcoll-tests: New file.
34691         * tests/unistr/test-u8-strcoll.c: New file.
34692
34693         Tests for module 'unistr/u32-strcmp'.
34694         * modules/unistr/u32-strcmp-tests: New file.
34695         * tests/unistr/test-u32-strcmp.c: New file.
34696         * tests/unistr/test-u32-strcmp.h: New file.
34697
34698         Tests for module 'unistr/u16-strcmp'.
34699         * modules/unistr/u16-strcmp-tests: New file.
34700         * tests/unistr/test-u16-strcmp.c: New file.
34701         * tests/unistr/test-u16-strcmp.h: New file.
34702
34703         Tests for module 'unistr/u8-strcmp'.
34704         * modules/unistr/u8-strcmp-tests: New file.
34705         * tests/unistr/test-u8-strcmp.c: New file.
34706         * tests/unistr/test-u8-strcmp.h: New file.
34707         * tests/unistr/test-strcmp.h: New file.
34708
34709         Tests for module 'unistr/u32-strncat'.
34710         * modules/unistr/u32-strncat-tests: New file.
34711         * tests/unistr/test-u32-strncat.c: New file.
34712
34713         Tests for module 'unistr/u16-strncat'.
34714         * modules/unistr/u16-strncat-tests: New file.
34715         * tests/unistr/test-u16-strncat.c: New file.
34716
34717         Tests for module 'unistr/u8-strncat'.
34718         * modules/unistr/u8-strncat-tests: New file.
34719         * tests/unistr/test-u8-strncat.c: New file.
34720         * tests/unistr/test-strncat.h: New file.
34721
34722         Tests for module 'unistr/u32-strcat'.
34723         * modules/unistr/u32-strcat-tests: New file.
34724         * tests/unistr/test-u32-strcat.c: New file.
34725
34726         Tests for module 'unistr/u16-strcat'.
34727         * modules/unistr/u16-strcat-tests: New file.
34728         * tests/unistr/test-u16-strcat.c: New file.
34729
34730         Tests for module 'unistr/u8-strcat'.
34731         * modules/unistr/u8-strcat-tests: New file.
34732         * tests/unistr/test-u8-strcat.c: New file.
34733         * tests/unistr/test-strcat.h: New file.
34734
34735         Tests for module 'unistr/u32-stpncpy'.
34736         * modules/unistr/u32-stpncpy-tests: New file.
34737         * tests/unistr/test-u32-stpncpy.c: New file.
34738
34739         Tests for module 'unistr/u16-stpncpy'.
34740         * modules/unistr/u16-stpncpy-tests: New file.
34741         * tests/unistr/test-u16-stpncpy.c: New file.
34742
34743         Tests for module 'unistr/u8-stpncpy'.
34744         * modules/unistr/u8-stpncpy-tests: New file.
34745         * tests/unistr/test-u8-stpncpy.c: New file.
34746         * tests/unistr/test-stpncpy.h: New file.
34747
34748         Tests for module 'unistr/u32-strncpy'.
34749         * modules/unistr/u32-strncpy-tests: New file.
34750         * tests/unistr/test-u32-strncpy.c: New file.
34751
34752         Tests for module 'unistr/u16-strncpy'.
34753         * modules/unistr/u16-strncpy-tests: New file.
34754         * tests/unistr/test-u16-strncpy.c: New file.
34755
34756         Tests for module 'unistr/u8-strncpy'.
34757         * modules/unistr/u8-strncpy-tests: New file.
34758         * tests/unistr/test-u8-strncpy.c: New file.
34759         * tests/unistr/test-strncpy.h: New file.
34760
34761         Tests for module 'unistr/u32-stpcpy'.
34762         * modules/unistr/u32-stpcpy-tests: New file.
34763         * tests/unistr/test-u32-stpcpy.c: New file.
34764
34765         Tests for module 'unistr/u16-stpcpy'.
34766         * modules/unistr/u16-stpcpy-tests: New file.
34767         * tests/unistr/test-u16-stpcpy.c: New file.
34768
34769         Tests for module 'unistr/u8-stpcpy'.
34770         * modules/unistr/u8-stpcpy-tests: New file.
34771         * tests/unistr/test-u8-stpcpy.c: New file.
34772         * tests/unistr/test-stpcpy.h: New file.
34773
34774         Tests for module 'unistr/u32-strcpy'.
34775         * modules/unistr/u32-strcpy-tests: New file.
34776         * tests/unistr/test-u32-strcpy.c: New file.
34777
34778         Tests for module 'unistr/u16-strcpy'.
34779         * modules/unistr/u16-strcpy-tests: New file.
34780         * tests/unistr/test-u16-strcpy.c: New file.
34781
34782         Tests for module 'unistr/u8-strcpy'.
34783         * modules/unistr/u8-strcpy-tests: New file.
34784         * tests/unistr/test-u8-strcpy.c: New file.
34785         * tests/unistr/test-strcpy.h: New file.
34786
34787         Tests for module 'unistr/u32-strnlen'.
34788         * modules/unistr/u32-strnlen-tests: New file.
34789         * tests/unistr/test-u32-strnlen.c: New file.
34790
34791         Tests for module 'unistr/u16-strnlen'.
34792         * modules/unistr/u16-strnlen-tests: New file.
34793         * tests/unistr/test-u16-strnlen.c: New file.
34794
34795         Tests for module 'unistr/u8-strnlen'.
34796         * modules/unistr/u8-strnlen-tests: New file.
34797         * tests/unistr/test-u8-strnlen.c: New file.
34798         * tests/unistr/test-strnlen.h: New file.
34799
34800         Tests for module 'unistr/u32-strlen'.
34801         * modules/unistr/u32-strlen-tests: New file.
34802         * tests/unistr/test-u32-strlen.c: New file.
34803
34804         Tests for module 'unistr/u16-strlen'.
34805         * modules/unistr/u16-strlen-tests: New file.
34806         * tests/unistr/test-u16-strlen.c: New file.
34807
34808         Tests for module 'unistr/u8-strlen'.
34809         * modules/unistr/u8-strlen-tests: New file.
34810         * tests/unistr/test-u8-strlen.c: New file.
34811
34812         Tests for module 'unistr/u32-prev'.
34813         * modules/unistr/u32-prev-tests: New file.
34814         * tests/unistr/test-u32-prev.c: New file.
34815
34816         Tests for module 'unistr/u16-prev'.
34817         * modules/unistr/u16-prev-tests: New file.
34818         * tests/unistr/test-u16-prev.c: New file.
34819
34820         Tests for module 'unistr/u8-prev'.
34821         * modules/unistr/u8-prev-tests: New file.
34822         * tests/unistr/test-u8-prev.c: New file.
34823
34824         Tests for module 'unistr/u32-next'.
34825         * modules/unistr/u32-next-tests: New file.
34826         * tests/unistr/test-u32-next.c: New file.
34827
34828         Tests for module 'unistr/u16-next'.
34829         * modules/unistr/u16-next-tests: New file.
34830         * tests/unistr/test-u16-next.c: New file.
34831
34832         Tests for module 'unistr/u8-next'.
34833         * modules/unistr/u8-next-tests: New file.
34834         * tests/unistr/test-u8-next.c: New file.
34835
34836         Tests for module 'unistr/u32-strmbtouc'.
34837         * modules/unistr/u32-strmbtouc-tests: New file.
34838         * tests/unistr/test-u32-strmbtouc.c: New file.
34839
34840         Tests for module 'unistr/u16-strmbtouc'.
34841         * modules/unistr/u16-strmbtouc-tests: New file.
34842         * tests/unistr/test-u16-strmbtouc.c: New file.
34843
34844         Tests for module 'unistr/u8-strmbtouc'.
34845         * modules/unistr/u8-strmbtouc-tests: New file.
34846         * tests/unistr/test-u8-strmbtouc.c: New file.
34847
34848         Tests for module 'unistr/u32-strmblen'.
34849         * modules/unistr/u32-strmblen-tests: New file.
34850         * tests/unistr/test-u32-strmblen.c: New file.
34851
34852         Tests for module 'unistr/u16-strmblen'.
34853         * modules/unistr/u16-strmblen-tests: New file.
34854         * tests/unistr/test-u16-strmblen.c: New file.
34855
34856         Tests for module 'unistr/u8-strmblen'.
34857         * modules/unistr/u8-strmblen-tests: New file.
34858         * tests/unistr/test-u8-strmblen.c: New file.
34859
34860         Tests for module 'unistr/u32-cpy-alloc'.
34861         * modules/unistr/u32-cpy-alloc-tests: New file.
34862         * tests/unistr/test-u32-cpy-alloc.c: New file.
34863
34864         Tests for module 'unistr/u16-cpy-alloc'.
34865         * modules/unistr/u16-cpy-alloc-tests: New file.
34866         * tests/unistr/test-u16-cpy-alloc.c: New file.
34867
34868         Tests for module 'unistr/u8-cpy-alloc'.
34869         * modules/unistr/u8-cpy-alloc-tests: New file.
34870         * tests/unistr/test-u8-cpy-alloc.c: New file.
34871         * tests/unistr/test-cpy-alloc.h: New file.
34872
34873         Tests for module 'unistr/u32-mbsnlen'.
34874         * modules/unistr/u32-mbsnlen-tests: New file.
34875         * tests/unistr/test-u32-mbsnlen.c: New file.
34876
34877         Tests for module 'unistr/u16-mbsnlen'.
34878         * modules/unistr/u16-mbsnlen-tests: New file.
34879         * tests/unistr/test-u16-mbsnlen.c: New file.
34880
34881         Tests for module 'unistr/u8-mbsnlen'.
34882         * modules/unistr/u8-mbsnlen-tests: New file.
34883         * tests/unistr/test-u8-mbsnlen.c: New file.
34884
34885         Tests for module 'unistr/u32-chr'.
34886         * modules/unistr/u32-chr-tests: New file.
34887         * tests/unistr/test-u32-chr.c: New file.
34888
34889         Tests for module 'unistr/u16-chr'.
34890         * modules/unistr/u16-chr-tests: New file.
34891         * tests/unistr/test-u16-chr.c: New file.
34892
34893         Tests for module 'unistr/u8-chr'.
34894         * modules/unistr/u8-chr-tests: New file.
34895         * tests/unistr/test-u8-chr.c: New file.
34896         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34897
34898         Tests for module 'unistr/u32-cmp2'.
34899         * modules/unistr/u32-cmp2-tests: New file.
34900         * tests/unistr/test-u32-cmp2.c: New file.
34901
34902         Tests for module 'unistr/u16-cmp2'.
34903         * modules/unistr/u16-cmp2-tests: New file.
34904         * tests/unistr/test-u16-cmp2.c: New file.
34905
34906         Tests for module 'unistr/u8-cmp2'.
34907         * modules/unistr/u8-cmp2-tests: New file.
34908         * tests/unistr/test-u8-cmp2.c: New file.
34909         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34910
34911         Tests for module 'unistr/u32-cmp'.
34912         * modules/unistr/u32-cmp-tests: New file.
34913         * tests/unistr/test-u32-cmp.c: New file.
34914
34915         Tests for module 'unistr/u16-cmp'.
34916         * modules/unistr/u16-cmp-tests: New file.
34917         * tests/unistr/test-u16-cmp.c: New file.
34918
34919         Tests for module 'unistr/u8-cmp'.
34920         * modules/unistr/u8-cmp-tests: New file.
34921         * tests/unistr/test-u8-cmp.c: New file.
34922         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34923
34924         Tests for module 'unistr/u32-set'.
34925         * modules/unistr/u32-set-tests: New file.
34926         * tests/unistr/test-u32-set.c: New file.
34927
34928         Tests for module 'unistr/u16-set'.
34929         * modules/unistr/u16-set-tests: New file.
34930         * tests/unistr/test-u16-set.c: New file.
34931
34932         Tests for module 'unistr/u8-set'.
34933         * modules/unistr/u8-set-tests: New file.
34934         * tests/unistr/test-u8-set.c: New file.
34935         * tests/unistr/test-set.h: New file.
34936
34937         Tests for module 'unistr/u32-move'.
34938         * modules/unistr/u32-move-tests: New file.
34939         * tests/unistr/test-u32-move.c: New file.
34940
34941         Tests for module 'unistr/u16-move'.
34942         * modules/unistr/u16-move-tests: New file.
34943         * tests/unistr/test-u16-move.c: New file.
34944
34945         Tests for module 'unistr/u8-move'.
34946         * modules/unistr/u8-move-tests: New file.
34947         * tests/unistr/test-u8-move.c: New file.
34948         * tests/unistr/test-move.h: New file.
34949
34950         Tests for module 'unistr/u32-cpy'.
34951         * modules/unistr/u32-cpy-tests: New file.
34952         * tests/unistr/test-u32-cpy.c: New file.
34953
34954         Tests for module 'unistr/u16-cpy'.
34955         * modules/unistr/u16-cpy-tests: New file.
34956         * tests/unistr/test-u16-cpy.c: New file.
34957
34958         Tests for module 'unistr/u8-cpy'.
34959         * modules/unistr/u8-cpy-tests: New file.
34960         * tests/unistr/test-u8-cpy.c: New file.
34961         * tests/unistr/test-cpy.h: New file.
34962
34963 2010-01-09  Bruno Haible  <bruno@clisp.org>
34964
34965         Tests for module 'unistr/u32-uctomb'.
34966         * modules/unistr/u32-uctomb-tests: New file.
34967         * tests/unistr/test-u32-uctomb.c: New file.
34968
34969         Tests for module 'unistr/u16-uctomb'.
34970         * modules/unistr/u16-uctomb-tests: New file.
34971         * tests/unistr/test-u16-uctomb.c: New file.
34972
34973         Tests for module 'unistr/u8-uctomb'.
34974         * modules/unistr/u8-uctomb-tests: New file.
34975         * tests/unistr/test-u8-uctomb.c: New file.
34976
34977         Tests for module 'unistr/u32-mbtoucr'.
34978         * modules/unistr/u32-mbtoucr-tests: New file.
34979         * tests/unistr/test-u32-mbtoucr.c: New file.
34980
34981         Tests for module 'unistr/u16-mbtoucr'.
34982         * modules/unistr/u16-mbtoucr-tests: New file.
34983         * tests/unistr/test-u16-mbtoucr.c: New file.
34984
34985         Tests for module 'unistr/u8-mbtoucr'.
34986         * modules/unistr/u8-mbtoucr-tests: New file.
34987         * tests/unistr/test-u8-mbtoucr.c: New file.
34988
34989         Tests for module 'unistr/u32-mbtouc'.
34990         * modules/unistr/u32-mbtouc-tests: New file.
34991         * tests/unistr/test-u32-mbtouc.c: New file.
34992
34993         Tests for module 'unistr/u16-mbtouc'.
34994         * modules/unistr/u16-mbtouc-tests: New file.
34995         * tests/unistr/test-u16-mbtouc.c: New file.
34996
34997         Tests for module 'unistr/u8-mbtouc'.
34998         * modules/unistr/u8-mbtouc-tests: New file.
34999         * tests/unistr/test-u8-mbtouc.c: New file.
35000
35001         Tests for module 'unistr/u32-mbtouc-unsafe'.
35002         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
35003         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
35004         * tests/unistr/test-u32-mbtouc.h: New file.
35005
35006         Tests for module 'unistr/u16-mbtouc-unsafe'.
35007         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
35008         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
35009         * tests/unistr/test-u16-mbtouc.h: New file.
35010
35011         Tests for module 'unistr/u8-mbtouc-unsafe'.
35012         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
35013         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
35014         * tests/unistr/test-u8-mbtouc.h: New file.
35015
35016         Tests for module 'unistr/u32-mblen'.
35017         * modules/unistr/u32-mblen-tests: New file.
35018         * tests/unistr/test-u32-mblen.c: New file.
35019
35020         Tests for module 'unistr/u16-mblen'.
35021         * modules/unistr/u16-mblen-tests: New file.
35022         * tests/unistr/test-u16-mblen.c: New file.
35023
35024         Tests for module 'unistr/u8-mblen'.
35025         * modules/unistr/u8-mblen-tests: New file.
35026         * tests/unistr/test-u8-mblen.c: New file.
35027
35028         Tests for module 'unistr/u32-to-u16'.
35029         * modules/unistr/u32-to-u16-tests: New file.
35030         * tests/unistr/test-u32-to-u16.c: New file.
35031
35032         Tests for module 'unistr/u32-to-u8'.
35033         * modules/unistr/u32-to-u8-tests: New file.
35034         * tests/unistr/test-u32-to-u8.c: New file.
35035
35036         Tests for module 'unistr/u16-to-u32'.
35037         * modules/unistr/u16-to-u32-tests: New file.
35038         * tests/unistr/test-u16-to-u32.c: New file.
35039
35040         Tests for module 'unistr/u16-to-u8'.
35041         * modules/unistr/u16-to-u8-tests: New file.
35042         * tests/unistr/test-u16-to-u8.c: New file.
35043
35044         Tests for module 'unistr/u8-to-u32'.
35045         * modules/unistr/u8-to-u32-tests: New file.
35046         * tests/unistr/test-u8-to-u32.c: New file.
35047
35048         Tests for module 'unistr/u8-to-u16'.
35049         * modules/unistr/u8-to-u16-tests: New file.
35050         * tests/unistr/test-u8-to-u16.c: New file.
35051
35052         Tests for module 'unistr/u32-check'.
35053         * modules/unistr/u32-check-tests: New file.
35054         * tests/unistr/test-u32-check.c: New file.
35055
35056         Tests for module 'unistr/u16-check'.
35057         * modules/unistr/u16-check-tests: New file.
35058         * tests/unistr/test-u16-check.c: New file.
35059
35060         Tests for module 'unistr/u8-check'.
35061         * modules/unistr/u8-check-tests: New file.
35062         * tests/unistr/test-u8-check.c: New file.
35063
35064         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
35065         (category_equals): New function.
35066         (main): Add more tests.
35067         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
35068
35069         * tests/unictype/test-bidi_byname.c (main): Add more tests.
35070
35071 2010-01-10  Bruno Haible  <bruno@clisp.org>
35072
35073         unistr/u*-strcoll: Try harder to distinguish different strings.
35074         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
35075         compare s1 and s2 to see if they are different.
35076
35077 2010-01-10  Bruno Haible  <bruno@clisp.org>
35078
35079         unistr/u*-stpncpy: Fix the return value.
35080         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
35081         description of the return value consistent with stpncpy in glibc.
35082         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
35083         written non-NUL unit.
35084
35085 2010-01-10  Bruno Haible  <bruno@clisp.org>
35086
35087         unistr/u*-next: Add missing dependencies.
35088         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
35089         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
35090         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
35091
35092 2010-01-10  Bruno Haible  <bruno@clisp.org>
35093
35094         unistr/u8-mbsnlen: Fix return value for incomplete character.
35095         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
35096         u8_mblen.
35097         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
35098         Remove unistr/u8-mblen.
35099         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
35100         u16_mblen.
35101         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
35102         Remove unistr/u16-mblen.
35103
35104 2010-01-10  Bruno Haible  <bruno@clisp.org>
35105
35106         wchar: Fix compilation error when <wchar.h> is used from coreutils.
35107         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
35108         Reported by Brian Gough <bjg@gnu.org> and
35109         Chris Clayton <chris2553@googlemail.com> via
35110         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
35111
35112 2010-01-09  Bruno Haible  <bruno@clisp.org>
35113
35114         unistr/u16-to-u32: Reject invalid input.
35115         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
35116         u16_mbtouc.
35117         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
35118         Remove unistr/u16-mbtouc.
35119
35120         unistr/u16-to-u8: Reject invalid input.
35121         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
35122         u16_mbtouc.
35123         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
35124         Remove unistr/u16-mbtouc.
35125
35126         unistr/u8-to-u32: Reject invalid input.
35127         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
35128         u8_mbtouc.
35129         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
35130         Remove unistr/u8-mbtouc.
35131
35132         unistr/u8-to-u16: Reject invalid input.
35133         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
35134         u8_mbtouc.
35135         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
35136         Remove unistr/u8-mbtouc.
35137
35138 2010-01-09  Bruno Haible  <bruno@clisp.org>
35139
35140         Tests for module 'getlogin'.
35141         * modules/getlogin-tests: New file.
35142         * tests/test-getlogin.c: New file.
35143
35144         New module 'getlogin'.
35145         * lib/unistd.in.h (getlogin): New declaration.
35146         * lib/getlogin.c: New file.
35147         * m4/getlogin.m4: New file.
35148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
35149         HAVE_GETLOGIN.
35150         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
35151         HAVE_GETLOGIN.
35152         * modules/getlogin: New file.
35153         * doc/posix-functions/getlogin.texi: Mention the new module.
35154         Reported by John W. Eaton <jwe@gnu.org>.
35155
35156 2010-01-09  Bruno Haible  <bruno@clisp.org>
35157
35158         getlogin_r: Support for native Windows.
35159         * lib/getlogin_r.c: Include <windows.h>
35160         (getlogin_r): Implement for native Windows.
35161         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
35162         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
35163         via John W. Eaton <jwe@gnu.org>.
35164
35165 2010-01-09  Bruno Haible  <bruno@clisp.org>
35166
35167         getlogin_r: Small fixes.
35168         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
35169         succeeds.
35170         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
35171         before testing whether getlogin_r is declared. No need to set
35172         HAVE_DECL_GETLOGIN_R to 1.
35173         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
35174
35175 2010-01-09  Bruno Haible  <bruno@clisp.org>
35176
35177         * lib/unistd.in.h (getlogin_r): Add comment.
35178
35179 2010-01-09  Bruno Haible  <bruno@clisp.org>
35180
35181         Tests for module 'getlogin_r'.
35182         * modules/getlogin_r-tests: New file.
35183         * tests/test-getlogin_r.c: New file.
35184
35185 2010-01-09  Jim Meyering  <meyering@redhat.com>
35186
35187         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
35188         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
35189         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
35190
35191 2010-01-08  Simon Josefsson  <simon@josefsson.org>
35192
35193         * lib/dup2.c (rpl_dup2): Improve comment.
35194
35195 2010-01-08  Eric Blake  <ebb9@byu.net>
35196
35197         maint.mk: allow packages to add makefile @@ exceptions
35198         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
35199         (sc_makefile_check): Rename...
35200         (sc_makefile_at_at_check): ...to this, and use hook.
35201
35202         dup2: work around mingw bug
35203         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
35204         Reported by Simon Josefsson.
35205
35206 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
35207
35208         glob: Fix C++ compilation.
35209         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
35210         C++.
35211
35212 2010-01-07  Bruno Haible  <bruno@clisp.org>
35213
35214         Fix indentation of wctype.in.h, broken since 2007-01-06.
35215         * lib/wctype.in.h: Fix indentation of preprocessor directives.
35216
35217 2010-01-07  Bruno Haible  <bruno@clisp.org>
35218
35219         mbslen: Avoid collision with system function.
35220         * lib/string.in.h [MirBSD]: Include <wchar.h>.
35221         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
35222         * m4/mbslen.m4: New file.
35223         * modules/mbslen (Files): Add it.
35224         (configure.ac): Invoke gl_MBSLEN.
35225         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
35226         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
35227         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
35228         via Ian Beckwith <ianb@erislabs.net>.
35229
35230 2010-01-07  Bruno Haible  <bruno@clisp.org>
35231
35232         dirent: Document the last fix.
35233         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
35234
35235 2010-01-07  Bruno Haible  <bruno@clisp.org>
35236
35237         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
35238         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
35239         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
35240         va_list are defined.
35241         * doc/posix-headers/stdio.texi: Document the bug of missing types.
35242         Reported by Eric Blake.
35243
35244 2010-01-07  Bruno Haible  <bruno@clisp.org>
35245
35246         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
35247         * modules/xlist (Depends-on): Add 'list',
35248         * modules/xoset (Depends-on): Add 'oset'.
35249         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35250
35251 2010-01-07  Bruno Haible  <bruno@clisp.org>
35252
35253         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
35254         * doc/posix-functions/strncasecmp.texi: Likewise.
35255
35256 2010-01-07  Bruno Haible  <bruno@clisp.org>
35257
35258         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
35259
35260 2010-01-07  John W. Eaton  <jwe@octave.org>
35261
35262         wctype: allow C++ use
35263         * lib/wctype.in.h: Add extern "C" block for C++.
35264
35265 2010-01-06  Eric Blake  <ebb9@byu.net>
35266
35267         maint.mk: detect incorrect GFDL usage
35268         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
35269
35270 2010-01-06  Jim Meyering  <meyering@redhat.com>
35271         and Eric Blake  <ebb9@byu.net>
35272
35273         maint.mk: ignore multi-line copyright in NEWS
35274         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
35275
35276 2010-01-06  Eric Blake  <ebb9@byu.net>
35277
35278         select: add missing dependency
35279         * modules/select-tests (Depends-on): Move sockets dependency...
35280         * modules/select (Depends-on): ...here.
35281         Reported by Ian Beckwith.
35282
35283         doc: regenerate INSTALL
35284         * doc/INSTALL: Reflect recent autoconf update.
35285         * doc/INSTALL.ISO: Likewise.
35286         * doc/INSTALL.UTF-8: Likewise.
35287
35288         pread: fix compilation on glibc
35289         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
35290         Reported by Ralf Wildenhues.
35291
35292         dirent: fix test failure
35293         * lib/dirent.in.h (includes): Guarantee ino_t.
35294         Reported by Ralf Wildenhues.
35295
35296 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
35297
35298         linkat, renameat: avoid bad free
35299         * lib/at-func2.c (at_func2): Fix typo.
35300         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
35301
35302 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35303
35304         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
35305         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
35306         to avoid failure of symlink test later.
35307
35308 2010-01-06  Eric Blake  <ebb9@byu.net>
35309
35310         stdio, unistd: guarantee ssize_t
35311         * lib/unistd.in.h (includes): Ensure that types required by POSIX
35312         2008 are exposed when needed.
35313         * lib/stdio.in.h (includes): Likewise.
35314         Reported by Ralf Wildenhues.
35315
35316 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
35317
35318         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
35319         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
35320         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
35321
35322 2010-01-06  Jim Meyering  <meyering@redhat.com>
35323
35324         readtokens: this module *does* require xalloc.h
35325         It uses only functions that were omitted by the old syntax-check rule.
35326         * lib/readtokens.c: Include "xalloc.h" once again.
35327         * modules/readtokens (Depends-on): Add xalloc.
35328         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
35329
35330 2010-01-05  Eric Blake  <ebb9@byu.net>
35331
35332         maint: support 'make announcement' from a VPATH build
35333         * top/maint.mk (announcement): Look for correct NEWS file.
35334
35335 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
35336
35337         utimens (fdutimens): ignore a negative FD, per contract
35338         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
35339         when we have a valid file descriptor.  Otherwise, using a brand
35340         new glibc (with just-patched futimens that now fails with EBADF)
35341         would cause this function to fail with ENOSYS.
35342         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
35343         See also http://bugzilla.redhat.com/552320.
35344
35345 2010-01-05  Eric Blake  <ebb9@byu.net>
35346
35347         strcase: document what it provides
35348         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
35349         gnulib module.
35350         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
35351         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
35352
35353 2010-01-05  Jim Meyering  <meyering@redhat.com>
35354
35355         maint: remove useless inclusions of "xalloc.h"
35356         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
35357         * lib/readtokens.c: Likewise.
35358         * lib/same.c: Likewise.
35359         * modules/getloadavg (Depends-on): Remove xalloc.
35360         * modules/readtokens: Likewise.
35361         * modules/same: Likewise.
35362
35363         maint.mk: include 4 more function names in alloca.h-checking regexp
35364         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
35365         regexp.  Before, we would give a false-positive (saying alloca.h
35366         is included unnecessarily) when the only uses involved omitted symbols.
35367
35368         xalloc.h: use consistent formatting
35369         * lib/xalloc.h: Move declarations to start in the first column.
35370
35371 2010-01-05  Eric Blake  <ebb9@byu.net>
35372
35373         mkdir: avoid xalloc
35374         * lib/mkdir.c (includes): Drop unused header.
35375         Reported by John W. Eaton.
35376
35377 2010-01-04  Jim Meyering  <meyering@redhat.com>
35378
35379         nl_langinfo: avoid configure-time syntax error
35380         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
35381         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
35382         the empty string.  Don't let that provoke a shell syntax error.
35383
35384         regcomp, regexec, fnmatch: avoid array bounds read error
35385         * lib/regcomp.c (build_equiv_class): From glibc:
35386         Use only the low 24 bits of a findidx return value as an index
35387         into the weights array.  Patch by Ulrich Drepper:
35388         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
35389         * lib/regexec.c (check_node_accept_bytes): Likewise.
35390         * lib/fnmatch_loop.c (FCT): Likewise.
35391
35392         regcomp: skip collseq lookup when there are no rules
35393         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
35394         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
35395
35396         regcomp: recognize ill-formed { } expressions
35397         * lib/regcomp.c (parse_dup_op): From glibc:
35398         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
35399
35400         regcomp: fix typo in comment
35401         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
35402         s/satisfy/satisfies/.
35403
35404         regcomp: sync from glibc: remove dead store
35405         * lib/regcomp.c (duplicate_node_closure): Remove useless
35406         search_duplicated_node call and dead store.
35407
35408         regcomp: sync from glibc; always use nl_langinfo
35409         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
35410         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
35411         * modules/regex (Depends-on): Add nl_langinfo.
35412
35413 2010-01-04  Eric Blake  <ebb9@byu.net>
35414
35415         fdopendir: fix configure test
35416         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
35417
35418 2010-01-01  Bruno Haible  <bruno@clisp.org>
35419
35420         wchar: Remove unused configure check.
35421         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
35422
35423 2010-01-01  Eric Blake  <ebb9@byu.net>
35424
35425         headers: make check of system header explicit
35426         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
35427         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
35428         ourselves.
35429         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35430         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35431         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
35432         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
35433         internals.
35434         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
35435         missing.
35436         Suggested by Bruno Haible.
35437
35438 2010-01-01  Jim Meyering  <meyering@redhat.com>
35439
35440         ChangeLog: tweak to eliminate unnecessary copyright line
35441         * ChangeLog: Remove a copyright line that was mistakenly updated
35442         by today's update-copyright run.  Reported by Eric Blake.
35443
35444         test-update-copyright: don't let envvar setting cause test failure
35445         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35446
35447 2010-01-01  Bruno Haible  <bruno@clisp.org>
35448
35449         localename: Avoid gcc warning.
35450         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
35451         function if it is not used.
35452
35453 2010-01-01  Jim Meyering  <meyering@redhat.com>
35454
35455         update nearly all FSF copyright year lists to include 2010
35456         Use the same procedure as for 2009, outlined in
35457         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
35458
35459         version-etc: set COPYRIGHT_YEAR to 2010
35460         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
35461
35462 2009-12-31  Eric Blake  <ebb9@byu.net>
35463
35464         doc: correct availability of cygwin 1.5.x getopt
35465         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
35466         variables.
35467         * doc/posix-functions/opterr.texi (opterr): Likewise.
35468         * doc/posix-functions/optind.texi (optind): Likewise.
35469         * doc/posix-functions/optopt.texi (optopt): Likewise.
35470         * doc/posix-functions/tzname.texi (tzname): Likewise.
35471
35472         openat: update maintainer
35473         * modules/openat (Maintainer): Add myself.
35474
35475         utimens: avoid shadowing warning
35476         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
35477         buffers into one, to avoid shadowing, as well as avoiding a
35478         redundant stat.
35479         Reported by Jim Meyering.
35480
35481         test-dup2: avoid compiler warning
35482         * tests/test-dup2.c (is_inheritable): Only define if used.
35483
35484 2010-01-01  Bruno Haible  <bruno@clisp.org>
35485
35486         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
35487         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
35488         defined, use wctomb instead of wcrtomb.
35489
35490 2010-01-01  Bruno Haible  <bruno@clisp.org>
35491
35492         iconv: Reject native Solaris iconv.
35493         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
35494         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
35495
35496 2009-12-31  Bruno Haible  <bruno@clisp.org>
35497
35498         * tests/test-signal.c (main): Remove test of 'SIG'.
35499
35500 2009-12-31  Bruno Haible  <bruno@clisp.org>
35501
35502         spawn: Fix incomplete fix.
35503         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35504         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35505         warnings for GNULIB_POSIXCHECK again.
35506         Reported by Eric Blake.
35507
35508 2009-12-31  Bruno Haible  <bruno@clisp.org>
35509
35510         Avoid namespace pollution on glibc systems.
35511         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
35512         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
35513         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
35514         glibc systems.
35515
35516 2009-12-31  Bruno Haible  <bruno@clisp.org>
35517
35518         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
35519         (gl_REPLACE_WCHAR_H): Turn into a no-op.
35520         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
35521         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35522         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35523         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35524         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35525
35526 2009-12-31  Bruno Haible  <bruno@clisp.org>
35527
35528         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35529         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
35530         afterwards.
35531
35532 2009-12-31  Bruno Haible  <bruno@clisp.org>
35533
35534         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
35535         SYS_UTSNAME_H.
35536
35537 2009-12-31  Bruno Haible  <bruno@clisp.org>
35538
35539         spawn: Fix misapplied patch.
35540         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35541         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35542         warnings for GNULIB_POSIXCHECK.
35543
35544 2009-12-31  Bruno Haible  <bruno@clisp.org>
35545
35546         times: Update after sys_times changed.
35547         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
35548         * modules/times (Files): Add it.
35549         (configure.ac): Invoke gl_FUNC_TIMES.
35550
35551 2009-12-31  Bruno Haible  <bruno@clisp.org>
35552
35553         Use AC_C_INLINE where necessary.
35554         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
35555         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35556         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35557         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35558         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35559         * m4/mbiter.m4 (gl_MBITER): Likewise.
35560         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35561         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35562         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35563         * modules/u64 (configure.ac): Likewise.
35564
35565 2009-12-31  Bruno Haible  <bruno@clisp.org>
35566
35567         Use AC_C_INLINE instead of module 'inline' where possible.
35568         * modules/inline (Description): Clarify purpose.
35569         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35570         * modules/count-one-bits (Depends-on): Remove inline.
35571         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35572         * modules/openat (Depends-on): Remove inline.
35573         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35574         instead of depending on module 'inline'.
35575         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35576         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35577         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35578         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35579         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35580         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35581         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35582         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35583         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35584         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35585         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35586         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35587         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35588         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35589         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35590         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35591         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35592         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35593         Likewise.
35594         * modules/unictype/property-ascii-hex-digit (Depends-on,
35595         configure.ac): Likewise.
35596         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35597         configure.ac): Likewise.
35598         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35599         configure.ac): Likewise.
35600         * modules/unictype/property-bidi-block-separator (Depends-on,
35601         configure.ac): Likewise.
35602         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35603         configure.ac): Likewise.
35604         * modules/unictype/property-bidi-common-separator (Depends-on,
35605         configure.ac): Likewise.
35606         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35607         Likewise.
35608         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35609         configure.ac): Likewise.
35610         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35611         configure.ac): Likewise.
35612         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35613         configure.ac): Likewise.
35614         * modules/unictype/property-bidi-european-digit (Depends-on,
35615         configure.ac): Likewise.
35616         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35617         configure.ac): Likewise.
35618         * modules/unictype/property-bidi-left-to-right (Depends-on,
35619         configure.ac): Likewise.
35620         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35621         configure.ac): Likewise.
35622         * modules/unictype/property-bidi-other-neutral (Depends-on,
35623         configure.ac): Likewise.
35624         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35625         Likewise.
35626         * modules/unictype/property-bidi-segment-separator (Depends-on,
35627         configure.ac): Likewise.
35628         * modules/unictype/property-bidi-whitespace (Depends-on,
35629         configure.ac): Likewise.
35630         * modules/unictype/property-combining (Depends-on, configure.ac):
35631         Likewise.
35632         * modules/unictype/property-composite (Depends-on, configure.ac):
35633         Likewise.
35634         * modules/unictype/property-currency-symbol (Depends-on,
35635         configure.ac): Likewise.
35636         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35637         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35638         Likewise.
35639         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35640         configure.ac): Likewise.
35641         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35642         Likewise.
35643         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35644         Likewise.
35645         * modules/unictype/property-extender (Depends-on, configure.ac):
35646         Likewise.
35647         * modules/unictype/property-format-control (Depends-on, configure.ac):
35648         Likewise.
35649         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35650         Likewise.
35651         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35652         Likewise.
35653         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35654         Likewise.
35655         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35656         Likewise.
35657         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35658         Likewise.
35659         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35660         Likewise.
35661         * modules/unictype/property-id-start (Depends-on, configure.ac):
35662         Likewise.
35663         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35664         Likewise.
35665         * modules/unictype/property-ids-binary-operator (Depends-on,
35666         configure.ac): Likewise.
35667         * modules/unictype/property-ids-trinary-operator (Depends-on,
35668         configure.ac): Likewise.
35669         * modules/unictype/property-ignorable-control (Depends-on,
35670         configure.ac): Likewise.
35671         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35672         Likewise.
35673         * modules/unictype/property-join-control (Depends-on, configure.ac):
35674         Likewise.
35675         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35676         Likewise.
35677         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35678         Likewise.
35679         * modules/unictype/property-logical-order-exception (Depends-on,
35680         configure.ac): Likewise.
35681         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35682         Likewise.
35683         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35684         * modules/unictype/property-non-break (Depends-on, configure.ac):
35685         Likewise.
35686         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35687         Likewise.
35688         * modules/unictype/property-numeric (Depends-on, configure.ac):
35689         Likewise.
35690         * modules/unictype/property-other-alphabetic (Depends-on,
35691         configure.ac): Likewise.
35692         * modules/unictype/property-other-default-ignorable-code-point
35693         (Depends-on, configure.ac): Likewise.
35694         * modules/unictype/property-other-grapheme-extend (Depends-on,
35695         configure.ac): Likewise.
35696         * modules/unictype/property-other-id-continue (Depends-on,
35697         configure.ac): Likewise.
35698         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35699         Likewise.
35700         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35701         Likewise.
35702         * modules/unictype/property-other-math (Depends-on, configure.ac):
35703         Likewise.
35704         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35705         Likewise.
35706         * modules/unictype/property-paired-punctuation (Depends-on,
35707         configure.ac): Likewise.
35708         * modules/unictype/property-paragraph-separator (Depends-on,
35709         configure.ac): Likewise.
35710         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35711         Likewise.
35712         * modules/unictype/property-pattern-white-space (Depends-on,
35713         configure.ac): Likewise.
35714         * modules/unictype/property-private-use (Depends-on, configure.ac):
35715         Likewise.
35716         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35717         Likewise.
35718         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35719         Likewise.
35720         * modules/unictype/property-radical (Depends-on, configure.ac):
35721         Likewise.
35722         * modules/unictype/property-sentence-terminal (Depends-on,
35723         configure.ac): Likewise.
35724         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35725         Likewise.
35726         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35727         * modules/unictype/property-terminal-punctuation (Depends-on,
35728         configure.ac): Likewise.
35729         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35730         Likewise.
35731         * modules/unictype/property-unassigned-code-value (Depends-on,
35732         configure.ac): Likewise.
35733         * modules/unictype/property-unified-ideograph (Depends-on,
35734         configure.ac): Likewise.
35735         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35736         Likewise.
35737         * modules/unictype/property-variation-selector (Depends-on,
35738         configure.ac): Likewise.
35739         * modules/unictype/property-white-space (Depends-on, configure.ac):
35740         Likewise.
35741         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35742         Likewise.
35743         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35744         Likewise.
35745         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35746         Likewise.
35747         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35748         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35749         Likewise.
35750
35751 2009-12-31  Bruno Haible  <bruno@clisp.org>
35752
35753         Remove unnecessary AC_C_INLINE invocation.
35754         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35755         since 2009-08-21.
35756
35757 2009-12-31  Jim Meyering  <meyering@redhat.com>
35758
35759         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35760         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35761         With this change, we can all remove the gpg_key_ID = ... definition
35762         from our respective cfg.mk files.
35763
35764         maint.mk: create announcement template in ~/, not in /tmp
35765         * top/maint.mk (emit_upload_commands): Adjust.
35766         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35767         Remove temporary file, .ci-msg.
35768
35769 2009-12-31  Eric Blake  <ebb9@byu.net>
35770
35771         link-warning: always build headers with link warnings
35772         * modules/arpa_inet (Makefile.am): Always build replacement
35773         header.
35774         * modules/ctype (Makefile.am): Likewise.
35775         * modules/dirent (Makefile.am): Likewise.
35776         * modules/inttypes (Makefile.am): Likewise.
35777         * modules/langinfo (Makefile.am): Likewise.
35778         * modules/locale (Makefile.am): Likewise.
35779         * modules/spawn (Makefile.am): Likewise.
35780         * modules/sys_file (Makefile.am): Likewise.
35781         * modules/sys_ioctl (Makefile.am): Likewise.
35782         * modules/sys_select (Makefile.am): Likewise.
35783         * modules/sys_socket (Makefile.am): Likewise.
35784         * modules/sys_times (Makefile.am): Likewise.
35785         * modules/sys_utsname (Makefile.am): Likewise.
35786         * modules/sys_wait (Makefile.am): Likewise.
35787         * modules/wchar (Makefile.am): Likewise.
35788         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35789         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35790         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35791         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35792         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35793         Likewise.
35794         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35795         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35796         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35797         Likewise.
35798         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35799         Likewise.
35800         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35801         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35802         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35803         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35804         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35805         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35806         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35807         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35808         (gl_WCHAR_H_DEFAULTS): Likewise.
35809
35810 2009-12-31  Eric Blake  <ebb9@byu.net>
35811
35812         signal, spawn: use link warnings
35813         * lib/signal.in.h (sigset_t): Make unconditional.
35814         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35815         (sigpending, sigprocmask, sigaction): Add link warnings.
35816         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35817         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35818         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35819         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35820         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35821         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35822         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35823         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35824         (posix_spawn_file_actions_destroy)
35825         (posix_spawn_file_actions_addopen)
35826         (posix_spawn_file_actions_addclose)
35827         (posix_spawn_file_actions_adddup2): Likewise.
35828         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35829         * tests/test-signal.c (main): Enhance test.
35830
35831         spawn: improve wrapper support
35832         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35833         (gl_SPAWN_H_DEFAULTS): New defaults.
35834         * modules/spawn (Makefile.am): Substitute them.
35835         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35836         Only declare if missing or broken.
35837
35838         sys_times, sys_utsname: use include_next
35839         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35840         header.
35841         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35842         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35843         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35844         * modules/sys_times (Depends-on): Add include_next.
35845         (Makefile.am): Substitute additional values.
35846         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35847         * lib/sys_times.in.h (includes): Include native header, if
35848         available.
35849         * lib/sys_utsname.in.h (includes): Likewise.
35850         * tests/test-sys_times.c (main): Enhance test.
35851
35852         fdutimensat: revert prior patch
35853         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35854         utimens.h.
35855         Reported by Bruno Haible.
35856
35857 2009-12-30  Eric Blake  <ebb9@byu.net>
35858
35859         sys_wait: drop link-warning dependency
35860         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35861         link-warning efforts.
35862         * lib/sys_wait.in.h: Likewise.
35863
35864         fdutimensat: remove bogus dependency
35865         * modules/fdutimensat (Depends-on): Drop inline.
35866
35867         unistd: fix typo
35868         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35869
35870 2009-12-30  Bruno Haible  <bruno@clisp.org>
35871
35872         Fix compilation error with Solaris cc.
35873         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35874         * lib/unicase/u16-is-invariant.c: Likewise.
35875         * lib/unicase/u32-is-invariant.c: Likewise.
35876         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35877
35878 2009-12-30  Bruno Haible  <bruno@clisp.org>
35879
35880         Fix test crash.
35881         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35882         locales.
35883         Reported by Simon Josefsson <simon@josefsson.org>.
35884
35885 2009-12-30  Bruno Haible  <bruno@clisp.org>
35886
35887         Fix compilation error on most platforms.
35888         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35889         Reported by Simon Josefsson <simon@josefsson.org>
35890         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35891
35892 2009-12-30  Eric Blake  <ebb9@byu.net>
35893
35894         futimens, utimensat: work around ntfs-3g bug
35895         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35896         a ctime bug is present, and expand workaround to cover ntfs-3g.
35897         * lib/utimens.c (fdutimens, lutimens): Likewise.
35898         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35899         (validate_timespec): Adjust return value.
35900         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35901         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35902         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35903
35904 2009-12-29  Eric Blake  <ebb9@byu.net>
35905
35906         link-warning: make usage consistent
35907         * modules/ctype (Depends-on): Add link-warning.
35908         (Makefile.am): Update rules accordingly.
35909         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35910         * modules/locale (Depends-on, Makefile.am): Likewise.
35911         * modules/sys_file (Makefile.am): Likewise.
35912         * modules/getopt-posix (Makefile.am): Delete unused link warning
35913         efforts.
35914         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35915         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35916         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35917         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35918
35919         stdio: remove unused variables
35920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35921         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35922         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35923
35924         tests: test more substitute headers
35925         * modules/ctype-tests: New file.
35926         * modules/dirent-tests: Likewise.
35927         * modules/spawn-tests: Likewise.
35928         * modules/sys_file-tests: Likewise.
35929         * modules/sys_ioctl-tests: Likewise.
35930         * modules/sys_wait-tests: Likewise.
35931         * tests/test-ctype.c: Likewise.
35932         * tests/test-dirent.c: Likewise.
35933         * tests/test-spawn.c: Likewise.
35934         * tests/test-sys_file.c: Likewise.
35935         * tests/test-sys_ioctl.c: Likewise.
35936         * tests/test-sys_wait.c: Likewise.
35937         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35938         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35939         whether or not flock is in use.
35940
35941         tests: remove License section from module
35942         * modules/arpa_inet-tests: Remove unneeded section.
35943         * modules/byteswap-tests: Likewise.
35944         * modules/ceilf-tests: Likewise.
35945         * modules/ceill-tests: Likewise.
35946         * modules/crypto/des-tests: Likewise.
35947         * modules/crypto/gc-arcfour-tests: Likewise.
35948         * modules/crypto/gc-arctwo-tests: Likewise.
35949         * modules/crypto/gc-des-tests: Likewise.
35950         * modules/crypto/gc-hmac-md5-tests: Likewise.
35951         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35952         * modules/crypto/gc-md2-tests: Likewise.
35953         * modules/crypto/gc-md4-tests: Likewise.
35954         * modules/crypto/gc-md5-tests: Likewise.
35955         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35956         * modules/crypto/gc-rijndael-tests: Likewise.
35957         * modules/crypto/gc-sha1-tests: Likewise.
35958         * modules/crypto/gc-tests: Likewise.
35959         * modules/crypto/md2-tests: Likewise.
35960         * modules/crypto/md4-tests: Likewise.
35961         * modules/fcntl-h-tests: Likewise.
35962         * modules/floorf-tests: Likewise.
35963         * modules/floorl-tests: Likewise.
35964         * modules/frexp-nolibm-tests: Likewise.
35965         * modules/frexp-tests: Likewise.
35966         * modules/frexpl-nolibm-tests: Likewise.
35967         * modules/frexpl-tests: Likewise.
35968         * modules/getaddrinfo-tests: Likewise.
35969         * modules/inttypes-tests: Likewise.
35970         * modules/isfinite-tests: Likewise.
35971         * modules/isinf-tests: Likewise.
35972         * modules/ldexpl-tests: Likewise.
35973         * modules/locale-tests: Likewise.
35974         * modules/math-tests: Likewise.
35975         * modules/netdb-tests: Likewise.
35976         * modules/netinet_in-tests: Likewise.
35977         * modules/printf-frexp-tests: Likewise.
35978         * modules/printf-frexpl-tests: Likewise.
35979         * modules/priv-set-tests: Likewise.
35980         * modules/random_r-tests: Likewise.
35981         * modules/round-tests: Likewise.
35982         * modules/roundf-tests: Likewise.
35983         * modules/roundl-tests: Likewise.
35984         * modules/search-tests: Likewise.
35985         * modules/select-tests: Likewise.
35986         * modules/signal-tests: Likewise.
35987         * modules/stdbool-tests: Likewise.
35988         * modules/stddef-tests: Likewise.
35989         * modules/stdint-tests: Likewise.
35990         * modules/stdio-tests: Likewise.
35991         * modules/stdlib-tests: Likewise.
35992         * modules/string-tests: Likewise.
35993         * modules/strings-tests: Likewise.
35994         * modules/sys_select-tests: Likewise.
35995         * modules/sys_socket-tests: Likewise.
35996         * modules/sys_stat-tests: Likewise.
35997         * modules/sys_time-tests: Likewise.
35998         * modules/sys_utsname-tests: Likewise.
35999         * modules/sysexits-tests: Likewise.
36000         * modules/time-tests: Likewise.
36001         * modules/trunc-tests: Likewise.
36002         * modules/truncf-tests: Likewise.
36003         * modules/truncl-tests: Likewise.
36004         * modules/tsearch-tests: Likewise.
36005         * modules/unistd-tests: Likewise.
36006         * modules/wchar-tests: Likewise.
36007         * modules/wctype-tests: Likewise.
36008
36009         tests: fix license on several tests
36010         * tests/test-des.c: Update to GPLv3+.
36011         * tests/test-flock.c: Likewise.
36012         * tests/test-fsync.c: Likewise.
36013         * tests/test-futimens.h: Likewise.
36014         * tests/test-gc-arcfour.c: Likewise.
36015         * tests/test-gc-arctwo.c: Likewise.
36016         * tests/test-gc-des.c: Likewise.
36017         * tests/test-gc-hmac-md5.c: Likewise.
36018         * tests/test-gc-hmac-sha1.c: Likewise.
36019         * tests/test-gc-md2.c: Likewise.
36020         * tests/test-gc-md4.c: Likewise.
36021         * tests/test-gc-md5.c: Likewise.
36022         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36023         * tests/test-gc-rijndael.c: Likewise.
36024         * tests/test-gc-sha1.c: Likewise.
36025         * tests/test-gc.c: Likewise.
36026         * tests/test-getcwd.c: Likewise.
36027         * tests/test-link.c: Likewise.
36028         * tests/test-link.h: Likewise.
36029         * tests/test-lutimens.h: Likewise.
36030         * tests/test-md2.c: Likewise.
36031         * tests/test-md4.c: Likewise.
36032         * tests/test-mkdir.h: Likewise.
36033         * tests/test-rename.c: Likewise.
36034         * tests/test-rename.h: Likewise.
36035         * tests/test-safe-alloc.c: Likewise.
36036         * tests/test-utimens-common.h: Likewise.
36037         * tests/test-utimens.h: Likewise.
36038
36039         maint: sync license texts
36040         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
36041         * doc/gpl-3.0.texi: Revert copyright year update.
36042         * doc/lgpl-3.0.texi: Likewise.
36043
36044 2009-12-29  Jim Meyering  <meyering@redhat.com>
36045
36046         update nearly all FSF copyright year lists to include 2009
36047         The files named by the following are exempted:
36048             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
36049               test -f "$dst" && { echo "$dst"; continue; }
36050               test -d "$dst" || continue
36051               echo "$dst"/$(basename "$src")
36052             done > exempt
36053             git ls-files tests/unictype >> exempt
36054         In the remaining files, convert to all-interval notation if
36055         - there is already at least one year interval like 2000-2003
36056         - the file is maintained by me
36057         - the file is in lib/uni*/, where that style already prevails
36058         Otherwise, use update-copyright's default.
36059
36060 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36061         and Eric Blake  <ebb9@byu.net>
36062
36063         tests: don't require debug system() to pass
36064         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
36065         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36066         * tests/test-unlink.h (test_unlink_func): Likewise.
36067         * tests/test-fstatat.c (main): ...into callers.
36068         * tests/test-lstat.c (main): Likewise.
36069         * tests/test-rmdir.c (main): Likewise.
36070         * tests/test-unlink.c (main): Likewise.
36071         * tests/test-unlinkat.c (main): Likewise.
36072         * tests/test-areadlink-with-size.c (main): Don't require a
36073         debug-only system call to pass, aiding cross-testing to mingw.
36074         * tests/test-areadlink.c (main): Likewise.
36075         * tests/test-areadlinkat-with-size.c (main): Likewise.
36076         * tests/test-areadlinkat.c (main): Likewise.
36077         * tests/test-canonicalize-lgpl.c (main): Likewise.
36078         * tests/test-canonicalize.c (main): Likewise.
36079         * tests/test-chown.c (main): Likewise.
36080         * tests/test-fchownat.c (main): Likewise.
36081         * tests/test-lchown.c (main): Likewise.
36082         * tests/test-fdutimensat.c (main): Likewise.
36083         * tests/test-futimens.c (main): Likewise.
36084         * tests/test-link.c (main): Likewise.
36085         * tests/test-linkat.c (main): Likewise.
36086         * tests/test-mkdir.c (main): Likewise.
36087         * tests/test-mkdirat.c (main): Likewise.
36088         * tests/test-mkfifo.c (main): Likewise.
36089         * tests/test-mkfifoat.c (main): Likewise.
36090         * tests/test-mknod.c (main): Likewise.
36091         * tests/test-readlink.c (main): Likewise.
36092         * tests/test-remove.c (main): Likewise.
36093         * tests/test-rename.c (main): Likewise.
36094         * tests/test-renameat.c (main): Likewise.
36095         * tests/test-symlink.c (main): Likewise.
36096         * tests/test-symlinkat.c (main): Likewise.
36097         * tests/test-utimens.c (main): Likewise.
36098         * tests/test-utimensat.c (main): Likewise.
36099
36100 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36101
36102         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
36103         on $(UNUSED_PARAMETER_H) to avoid build failure.
36104
36105 2009-12-28  Jim Meyering  <meyering@redhat.com>
36106
36107         update-copyright: you may specify a max. line length other than 72
36108         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36109
36110         maint: use consistent FSF copyright line syntax
36111         * lib/posixtm.c: Add missing comma in FSF copyright line.
36112         * lib/posixtm.h: Likewise.
36113         * lib/getugroups.c: Add missing ", Inc.".
36114
36115         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
36116         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
36117         FSF copyright line.  Remove trailing blanks.
36118
36119 2009-12-28  Eric Blake  <ebb9@byu.net>
36120
36121         test-dup2: reduce dependencies
36122         * modules/cloexec (Configure.ac): Set witness.
36123         * modules/dup2-tests (Depends-on): Drop cloexec.
36124         * tests/test-dup2.c (main): Skip portion of test if cloexec module
36125         not present.
36126         Suggested by Bruno Haible.
36127
36128 2009-12-26  Bruno Haible  <bruno@clisp.org>
36129
36130         Remove an unneeded dependency.
36131         * modules/fseterr (Depends-on): Remove dup2.
36132
36133 2009-12-26  Eric Blake  <ebb9@byu.net>
36134
36135         tests: use macros.h in more places
36136         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
36137         (ASSERT_STREAM): Provide default of stderr.
36138         * tests/test-dirent-safer.c: Include macros.h, using alternate
36139         stream for assertions.
36140         * tests/test-dup-safer.c: Likewise.
36141         * tests/test-freopen-safer.c: Likewise.
36142         * tests/test-getopt.c: Likewise.
36143         * tests/test-openat-safer.c: Likewise.
36144         * tests/test-pipe.c: Likewise.
36145         * tests/test-popen-safer.c: Likewise.
36146         * modules/dirent-safer-tests (Files): Include macros.h.
36147         * modules/unistd-safer-tests (Files): Likewise.
36148         * modules/freopen-safer-tests (Files): Likewise.
36149         * modules/getopt-posix-tests (Files): Likewise.
36150         * modules/openat-safer-tests (Files): Likewise.
36151         * modules/pipe-tests (Files): Likewise.
36152
36153 2009-12-26  Bruno Haible  <bruno@clisp.org>
36154
36155         javacomp: Portability fix.
36156         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
36157         that it also works on Solaris.
36158
36159 2009-12-26  Bruno Haible  <bruno@clisp.org>
36160
36161         localename: Fix storage allocation of gl_locale_name_thread's result.
36162         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
36163         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
36164         all platforms that have 'uselocale'.
36165         (gl_locale_name_thread_unsafe): New function, extracted from
36166         gl_locale_name_thread.
36167         (gl_locale_name_thread): Call struniq on all platforms that have
36168         'uselocale'.
36169         * tests/test-localename.c (test_locale_name_thread): Check that the
36170         resulting strings are permanently allocated.
36171         * modules/localename-tests (Depends-on): Add strdup.
36172
36173 2009-12-26  Bruno Haible  <bruno@clisp.org>
36174
36175         * tests/test-localename.c (categories): Fill in the strings.
36176
36177 2009-12-26  Jim Meyering  <meyering@redhat.com>
36178
36179         isdir: complete the removal of m4/isdir.m4
36180         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
36181
36182         isdir: clean up, since at least grep still uses it
36183         * lib/isdir.c: Include "isdir.h".
36184         (S_ISDIR): Remove now-unneeded definition.
36185         * modules/isdir (Files): Add lib/isdir.h.
36186         * lib/isdir.h: New file, with declaration.
36187         * m4/isdir.m4: Remove file -- unneeded.
36188
36189 2009-12-25  Bruno Haible  <bruno@clisp.org>
36190
36191         selinux-h: Make generated .h files standalone.
36192         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
36193         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
36194         * lib/se-selinux.in.h: Likewise.
36195         * modules/selinux-h (Depends-on): Add unused-parameter.
36196         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
36197         selinux/selinux.h and selinux/context.h.
36198         Suggested by Eric Blake.
36199
36200 2009-12-25  Bruno Haible  <bruno@clisp.org>
36201
36202         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
36203         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
36204         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
36205         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
36206         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
36207
36208 2009-12-24  Bruno Haible  <bruno@clisp.org>
36209
36210         openat: Fix warning.
36211         * lib/openat-proc.c: Include <unistd.h>.
36212
36213 2009-12-24  Bruno Haible  <bruno@clisp.org>
36214
36215         New module 'unused-parameter'.
36216         * build-aux/unused-parameter.h: New file, extracted from earlier
36217         gnulib-common.m4.
36218         * modules/unused-parameter: New file.
36219         * lib/unistr.h: Include unused-parameter.h.
36220         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
36221         _GL_UNUSED.
36222         * modules/unistr/base (Depends-on): Add unused-parameter.
36223
36224 2009-12-24  Bruno Haible  <bruno@clisp.org>
36225
36226         Add missing dependencies to 'extensions' module.
36227         * m4/extensions.m4: Add comment.
36228         * modules/accept4 (Depends-on): Add extensions.
36229         * modules/dup3 (Depends-on): Likewise.
36230         * modules/fcntl (Depends-on): Likewise.
36231         * modules/futimens (Depends-on): Likewise.
36232         * modules/mknod (Depends-on): Likewise.
36233         * modules/pipe2 (Depends-on): Likewise.
36234         * modules/stat-time (Depends-on): Likewise.
36235         * modules/strcasestr-simple (Depends-on): Likewise.
36236         * modules/strsignal (Depends-on): Likewise.
36237         * modules/utimensat (Depends-on): Likewise.
36238         * modules/localcharset (Depends-on): Likewise. Needed because of
36239         gl_FCNTL_O_FLAGS.
36240         * modules/wcrtomb (Depends-on): Likewise. Needed because of
36241         AC_TYPE_MBSTATE_T.
36242         * modules/wcsnrtombs (Depends-on): Likewise.
36243         * modules/wcsrtombs (Depends-on): Likewise.
36244
36245 2009-12-24  Bruno Haible  <bruno@clisp.org>
36246
36247         binary-io: Avoid gcc warning due to SET_BINARY.
36248         * lib/binary-io.h (SET_BINARY): Cast the result to void.
36249         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
36250
36251 2009-12-24  Bruno Haible  <bruno@clisp.org>
36252
36253         Avoid future namespace pollution on glibc systems.
36254         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
36255         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
36256         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
36257         glibc systems.
36258
36259 2009-12-24  Bruno Haible  <bruno@clisp.org>
36260
36261         Refactor common macros used in tests.
36262         * tests/macros.h: New file.
36263         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
36264         and/or <stdlib.h>, if appropriate.
36265         (ASSERT, SIZEOF): Remove macros.
36266         * tests/test-areadlink-with-size.c: Likewise.
36267         * tests/test-areadlinkat.c: Likewise.
36268         * tests/test-areadlinkat-with-size.c: Likewise.
36269         * tests/test-argmatch.c: Likewise.
36270         * tests/test-argv-iter.c: Likewise.
36271         * tests/test-array-mergesort.c: Likewise.
36272         * tests/test-array_list.c: Likewise.
36273         * tests/test-array_oset.c: Likewise.
36274         * tests/test-avltree_list.c: Likewise.
36275         * tests/test-avltree_oset.c: Likewise.
36276         * tests/test-avltreehash_list.c: Likewise.
36277         * tests/test-base64.c: Likewise.
36278         * tests/test-binary-io.c: Likewise.
36279         * tests/test-bitrotate.c: Likewise.
36280         * tests/test-btowc.c: Likewise.
36281         * tests/test-byteswap.c: Likewise.
36282         * tests/test-c-ctype.c: Likewise.
36283         * tests/test-c-stack.c: Likewise.
36284         * tests/test-c-strcasecmp.c: Likewise.
36285         * tests/test-c-strcasestr.c: Likewise.
36286         * tests/test-c-strncasecmp.c: Likewise.
36287         * tests/test-c-strstr.c: Likewise.
36288         * tests/test-canonicalize-lgpl.c: Likewise.
36289         * tests/test-canonicalize.c: Likewise.
36290         * tests/test-carray_list.c: Likewise.
36291         * tests/test-ceilf1.c: Likewise.
36292         * tests/test-ceilf2.c: Likewise.
36293         * tests/test-ceill.c: Likewise.
36294         * tests/test-chown.c: Likewise.
36295         * tests/test-cloexec.c: Likewise.
36296         * tests/test-copy-acl.c: Likewise.
36297         * tests/test-copy-file.c: Likewise.
36298         * tests/test-count-one-bits.c: Likewise.
36299         * tests/test-dprintf-posix.c: Likewise.
36300         * tests/test-dup2.c: Likewise.
36301         * tests/test-dup3.c: Likewise.
36302         * tests/test-duplocale.c: Likewise.
36303         * tests/test-fbufmode.c: Likewise.
36304         * tests/test-fchdir.c: Likewise.
36305         * tests/test-fchownat.c: Likewise.
36306         * tests/test-fcntl-safer.c: Likewise.
36307         * tests/test-fcntl.c: Likewise.
36308         * tests/test-fdopendir.c: Likewise.
36309         * tests/test-fdutimensat.c: Likewise.
36310         * tests/test-fflush2.c: Likewise.
36311         * tests/test-file-has-acl.c: Likewise.
36312         * tests/test-filevercmp.c: Likewise.
36313         * tests/test-flock.c: Likewise.
36314         * tests/test-floorf1.c: Likewise.
36315         * tests/test-floorf2.c: Likewise.
36316         * tests/test-floorl.c: Likewise.
36317         * tests/test-fnmatch.c: Likewise.
36318         * tests/test-fopen.h: Likewise.
36319         * tests/test-fpending.c: Likewise.
36320         * tests/test-fprintf-posix.c: Likewise.
36321         * tests/test-fpurge.c: Likewise.
36322         * tests/test-freadable.c: Likewise.
36323         * tests/test-freadahead.c: Likewise.
36324         * tests/test-freading.c: Likewise.
36325         * tests/test-freadptr.c: Likewise.
36326         * tests/test-freadptr2.c: Likewise.
36327         * tests/test-freadseek.c: Likewise.
36328         * tests/test-freopen.c: Likewise.
36329         * tests/test-frexp.c: Likewise.
36330         * tests/test-frexpl.c: Likewise.
36331         * tests/test-fseek.c: Likewise.
36332         * tests/test-fseeko.c: Likewise.
36333         * tests/test-fstatat.c: Likewise.
36334         * tests/test-fstrcmp.c: Likewise.
36335         * tests/test-fsync.c: Likewise.
36336         * tests/test-ftell.c: Likewise.
36337         * tests/test-ftello.c: Likewise.
36338         * tests/test-func.c: Likewise.
36339         * tests/test-futimens.c: Likewise.
36340         * tests/test-fwritable.c: Likewise.
36341         * tests/test-fwriting.c: Likewise.
36342         * tests/test-getcwd.c: Likewise.
36343         * tests/test-getdate.c: Likewise.
36344         * tests/test-getdelim.c: Likewise.
36345         * tests/test-getdtablesize.c: Likewise.
36346         * tests/test-getgroups.c: Likewise.
36347         * tests/test-getline.c: Likewise.
36348         * tests/test-getndelim2.c: Likewise.
36349         * tests/test-glob.c: Likewise.
36350         * tests/test-hash.c: Likewise.
36351         * tests/test-i-ring.c: Likewise.
36352         * tests/test-iconv-utf.c: Likewise.
36353         * tests/test-iconv.c: Likewise.
36354         * tests/test-idpriv-drop.c: Likewise.
36355         * tests/test-idpriv-droptemp.c: Likewise.
36356         * tests/test-inet_ntop.c: Likewise.
36357         * tests/test-inet_pton.c: Likewise.
36358         * tests/test-isblank.c: Likewise.
36359         * tests/test-isfinite.c: Likewise.
36360         * tests/test-isinf.c: Likewise.
36361         * tests/test-isnan.c: Likewise.
36362         * tests/test-isnand.h: Likewise.
36363         * tests/test-isnanf.h: Likewise.
36364         * tests/test-isnanl.h: Likewise.
36365         * tests/test-lchown.c: Likewise.
36366         * tests/test-ldexpl.c: Likewise.
36367         * tests/test-link.c: Likewise.
36368         * tests/test-linkat.c: Likewise.
36369         * tests/test-linked_list.c: Likewise.
36370         * tests/test-linkedhash_list.c: Likewise.
36371         * tests/test-localename.c: Likewise.
36372         * tests/test-lseek.c: Likewise.
36373         * tests/test-lstat.c: Likewise.
36374         * tests/test-mbmemcasecmp.c: Likewise.
36375         * tests/test-mbmemcasecoll.c: Likewise.
36376         * tests/test-mbrtowc.c: Likewise.
36377         * tests/test-mbscasecmp.c: Likewise.
36378         * tests/test-mbscasestr1.c: Likewise.
36379         * tests/test-mbscasestr2.c: Likewise.
36380         * tests/test-mbscasestr3.c: Likewise.
36381         * tests/test-mbscasestr4.c: Likewise.
36382         * tests/test-mbschr.c: Likewise.
36383         * tests/test-mbscspn.c: Likewise.
36384         * tests/test-mbsinit.c: Likewise.
36385         * tests/test-mbsncasecmp.c: Likewise.
36386         * tests/test-mbsnrtowcs.c: Likewise.
36387         * tests/test-mbspbrk.c: Likewise.
36388         * tests/test-mbspcasecmp.c: Likewise.
36389         * tests/test-mbsrchr.c: Likewise.
36390         * tests/test-mbsrtowcs.c: Likewise.
36391         * tests/test-mbsspn.c: Likewise.
36392         * tests/test-mbsstr1.c: Likewise.
36393         * tests/test-mbsstr2.c: Likewise.
36394         * tests/test-mbsstr3.c: Likewise.
36395         * tests/test-memchr.c: Likewise.
36396         * tests/test-memchr2.c: Likewise.
36397         * tests/test-memcmp.c: Likewise.
36398         * tests/test-memmem.c: Likewise.
36399         * tests/test-memrchr.c: Likewise.
36400         * tests/test-mkdir.c: Likewise.
36401         * tests/test-mkdirat.c: Likewise.
36402         * tests/test-mkfifo.c: Likewise.
36403         * tests/test-mkfifoat.c: Likewise.
36404         * tests/test-mknod.c: Likewise.
36405         * tests/test-nanosleep.c: Likewise.
36406         * tests/test-nl_langinfo.c: Likewise.
36407         * tests/test-obstack-printf.c: Likewise.
36408         * tests/test-open.c: Likewise.
36409         * tests/test-openat.c: Likewise.
36410         * tests/test-pipe-filter-gi1.c: Likewise.
36411         * tests/test-pipe-filter-gi2-main.c: Likewise.
36412         * tests/test-pipe-filter-ii1.c: Likewise.
36413         * tests/test-pipe-filter-ii2-main.c: Likewise.
36414         * tests/test-pipe2.c: Likewise.
36415         * tests/test-popen.h: Likewise.
36416         * tests/test-posixtm.c: Likewise.
36417         * tests/test-pread.c: Likewise.
36418         * tests/test-printf-frexp.c: Likewise.
36419         * tests/test-printf-frexpl.c: Likewise.
36420         * tests/test-printf-posix.c: Likewise.
36421         * tests/test-priv-set.c: Likewise.
36422         * tests/test-quotearg.c: Likewise.
36423         * tests/test-random_r.c: Likewise.
36424         * tests/test-rawmemchr.c: Likewise.
36425         * tests/test-rbtree_list.c: Likewise.
36426         * tests/test-rbtree_oset.c: Likewise.
36427         * tests/test-rbtreehash_list.c: Likewise.
36428         * tests/test-readlink.c: Likewise.
36429         * tests/test-remove.c: Likewise.
36430         * tests/test-rename.c: Likewise.
36431         * tests/test-renameat.c: Likewise.
36432         * tests/test-rmdir.c: Likewise.
36433         * tests/test-round1.c: Likewise.
36434         * tests/test-roundf1.c: Likewise.
36435         * tests/test-roundl.c: Likewise.
36436         * tests/test-safe-alloc.c: Likewise.
36437         * tests/test-sameacls.c: Likewise.
36438         * tests/test-set-mode-acl.c: Likewise.
36439         * tests/test-setenv.c: Likewise.
36440         * tests/test-sigaction.c: Likewise.
36441         * tests/test-signbit.c: Likewise.
36442         * tests/test-sleep.c: Likewise.
36443         * tests/test-snprintf-posix.c: Likewise.
36444         * tests/test-snprintf.c: Likewise.
36445         * tests/test-sprintf-posix.c: Likewise.
36446         * tests/test-stat-time.c: Likewise.
36447         * tests/test-stat.c: Likewise.
36448         * tests/test-strcasestr.c: Likewise.
36449         * tests/test-strchrnul.c: Likewise.
36450         * tests/test-strerror.c: Likewise.
36451         * tests/test-striconv.c: Likewise.
36452         * tests/test-striconveh.c: Likewise.
36453         * tests/test-striconveha.c: Likewise.
36454         * tests/test-strsignal.c: Likewise.
36455         * tests/test-strstr.c: Likewise.
36456         * tests/test-strtod.c: Likewise.
36457         * tests/test-strverscmp.c: Likewise.
36458         * tests/test-symlink.c: Likewise.
36459         * tests/test-symlinkat.c: Likewise.
36460         * tests/test-trunc1.c: Likewise.
36461         * tests/test-trunc2.c: Likewise.
36462         * tests/test-truncf1.c: Likewise.
36463         * tests/test-truncf2.c: Likewise.
36464         * tests/test-truncl.c: Likewise.
36465         * tests/test-uname.c: Likewise.
36466         * tests/test-unlink.c: Likewise.
36467         * tests/test-unlinkat.c: Likewise.
36468         * tests/test-unsetenv.c: Likewise.
36469         * tests/test-usleep.c: Likewise.
36470         * tests/test-utimens.c: Likewise.
36471         * tests/test-utimensat.c: Likewise.
36472         * tests/test-vasnprintf-posix.c: Likewise.
36473         * tests/test-vasnprintf-posix2.c: Likewise.
36474         * tests/test-vasnprintf.c: Likewise.
36475         * tests/test-vasprintf-posix.c: Likewise.
36476         * tests/test-vasprintf.c: Likewise.
36477         * tests/test-vdprintf-posix.c: Likewise.
36478         * tests/test-vfprintf-posix.c: Likewise.
36479         * tests/test-vprintf-posix.c: Likewise.
36480         * tests/test-vsnprintf-posix.c: Likewise.
36481         * tests/test-vsnprintf.c: Likewise.
36482         * tests/test-vsprintf-posix.c: Likewise.
36483         * tests/test-wcrtomb.c: Likewise.
36484         * tests/test-wcsnrtombs.c: Likewise.
36485         * tests/test-wcsrtombs.c: Likewise.
36486         * tests/test-wctype.c: Likewise.
36487         * tests/test-wcwidth.c: Likewise.
36488         * tests/test-xfprintf-posix.c: Likewise.
36489         * tests/test-xmemdup0.c: Likewise.
36490         * tests/test-xprintf-posix.c: Likewise.
36491         * tests/test-xvasprintf.c: Likewise.
36492         * tests/unicase/test-locale-language.c: Likewise.
36493         * tests/unicase/test-mapping-part1.h: Likewise.
36494         * tests/unicase/test-predicate-part1.h: Likewise.
36495         * tests/unicase/test-u8-casecmp.c: Likewise.
36496         * tests/unicase/test-u8-casecoll.c: Likewise.
36497         * tests/unicase/test-u8-casefold.c: Likewise.
36498         * tests/unicase/test-u8-is-cased.c: Likewise.
36499         * tests/unicase/test-u8-is-casefolded.c: Likewise.
36500         * tests/unicase/test-u8-is-lowercase.c: Likewise.
36501         * tests/unicase/test-u8-is-titlecase.c: Likewise.
36502         * tests/unicase/test-u8-is-uppercase.c: Likewise.
36503         * tests/unicase/test-u8-tolower.c: Likewise.
36504         * tests/unicase/test-u8-totitle.c: Likewise.
36505         * tests/unicase/test-u8-toupper.c: Likewise.
36506         * tests/unicase/test-u16-casecmp.c: Likewise.
36507         * tests/unicase/test-u16-casecoll.c: Likewise.
36508         * tests/unicase/test-u16-casefold.c: Likewise.
36509         * tests/unicase/test-u16-is-cased.c: Likewise.
36510         * tests/unicase/test-u16-is-casefolded.c: Likewise.
36511         * tests/unicase/test-u16-is-lowercase.c: Likewise.
36512         * tests/unicase/test-u16-is-titlecase.c: Likewise.
36513         * tests/unicase/test-u16-is-uppercase.c: Likewise.
36514         * tests/unicase/test-u16-tolower.c: Likewise.
36515         * tests/unicase/test-u16-totitle.c: Likewise.
36516         * tests/unicase/test-u16-toupper.c: Likewise.
36517         * tests/unicase/test-u32-casecmp.c: Likewise.
36518         * tests/unicase/test-u32-casecoll.c: Likewise.
36519         * tests/unicase/test-u32-casefold.c: Likewise.
36520         * tests/unicase/test-u32-is-cased.c: Likewise.
36521         * tests/unicase/test-u32-is-casefolded.c: Likewise.
36522         * tests/unicase/test-u32-is-lowercase.c: Likewise.
36523         * tests/unicase/test-u32-is-titlecase.c: Likewise.
36524         * tests/unicase/test-u32-is-uppercase.c: Likewise.
36525         * tests/unicase/test-u32-tolower.c: Likewise.
36526         * tests/unicase/test-u32-totitle.c: Likewise.
36527         * tests/unicase/test-u32-toupper.c: Likewise.
36528         * tests/unicase/test-ulc-casecmp.c: Likewise.
36529         * tests/unicase/test-ulc-casecoll.c: Likewise.
36530         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36531         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36532         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36533         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36534         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36535         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36536         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36537         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36538         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36539         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36540         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36541         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36542         * tests/unictype/test-bidi_byname.c: Likewise.
36543         * tests/unictype/test-bidi_name.c: Likewise.
36544         * tests/unictype/test-bidi_of.c: Likewise.
36545         * tests/unictype/test-bidi_test.c: Likewise.
36546         * tests/unictype/test-block_list.c: Likewise.
36547         * tests/unictype/test-block_of.c: Likewise.
36548         * tests/unictype/test-block_test.c: Likewise.
36549         * tests/unictype/test-categ_and.c: Likewise.
36550         * tests/unictype/test-categ_and_not.c: Likewise.
36551         * tests/unictype/test-categ_byname.c: Likewise.
36552         * tests/unictype/test-categ_name.c: Likewise.
36553         * tests/unictype/test-categ_none.c: Likewise.
36554         * tests/unictype/test-categ_of.c: Likewise.
36555         * tests/unictype/test-categ_or.c: Likewise.
36556         * tests/unictype/test-categ_test_withtable.c: Likewise.
36557         * tests/unictype/test-combining.c: Likewise.
36558         * tests/unictype/test-decdigit.c: Likewise.
36559         * tests/unictype/test-digit.c: Likewise.
36560         * tests/unictype/test-mirror.c: Likewise.
36561         * tests/unictype/test-numeric.c: Likewise.
36562         * tests/unictype/test-pr_byname.c: Likewise.
36563         * tests/unictype/test-pr_test.c: Likewise.
36564         * tests/unictype/test-predicate-part1.h: Likewise.
36565         * tests/unictype/test-scripts.c: Likewise.
36566         * tests/unictype/test-sy_c_ident.c: Likewise.
36567         * tests/unictype/test-sy_java_ident.c: Likewise.
36568         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36569         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36570         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36571         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36572         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36573         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36574         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36575         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36576         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36577         * tests/uninorm/test-compat-decomposition.c: Likewise.
36578         * tests/uninorm/test-composition.c: Likewise.
36579         * tests/uninorm/test-decomposing-form.c: Likewise.
36580         * tests/uninorm/test-decomposition.c: Likewise.
36581         * tests/uninorm/test-u8-nfc.c: Likewise.
36582         * tests/uninorm/test-u8-nfd.c: Likewise.
36583         * tests/uninorm/test-u8-nfkc.c: Likewise.
36584         * tests/uninorm/test-u8-nfkd.c: Likewise.
36585         * tests/uninorm/test-u8-normcmp.c: Likewise.
36586         * tests/uninorm/test-u8-normcoll.c: Likewise.
36587         * tests/uninorm/test-u16-nfc.c: Likewise.
36588         * tests/uninorm/test-u16-nfd.c: Likewise.
36589         * tests/uninorm/test-u16-nfkc.c: Likewise.
36590         * tests/uninorm/test-u16-nfkd.c: Likewise.
36591         * tests/uninorm/test-u16-normcmp.c: Likewise.
36592         * tests/uninorm/test-u16-normcoll.c: Likewise.
36593         * tests/uninorm/test-u32-nfc.c: Likewise.
36594         * tests/uninorm/test-u32-nfd.c: Likewise.
36595         * tests/uninorm/test-u32-nfkc.c: Likewise.
36596         * tests/uninorm/test-u32-nfkd.c: Likewise.
36597         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36598         * tests/uninorm/test-u32-normcmp.c: Likewise.
36599         * tests/uninorm/test-u32-normcoll.c: Likewise.
36600         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36601         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36602         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36603         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36604         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36605         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36606         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36607         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36608         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36609         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36610         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36611         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36612         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36613         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36614         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36615         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36616         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36617         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36618         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36619         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36620         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36621         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36622         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36623         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36624         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36625         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36626         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36627         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36628         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36629         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36630         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36631         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36632         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36633         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36634         * tests/uniwidth/test-u8-width.c: Likewise.
36635         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36636         * tests/uniwidth/test-u16-width.c: Likewise.
36637         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36638         * tests/uniwidth/test-u32-width.c: Likewise.
36639         * tests/uniwidth/test-uc_width.c: Likewise.
36640         * tests/uniwidth/test-uc_width2.c: Likewise.
36641         * modules/acl-tests (Files): Add tests/macros.h.
36642         * modules/areadlink-tests (Files): Likewise.
36643         * modules/areadlink-with-size-tests (Files): Likewise.
36644         * modules/areadlinkat-tests (Files): Likewise.
36645         * modules/areadlinkat-with-size-tests (Files): Likewise.
36646         * modules/argmatch-tests (Files): Likewise.
36647         * modules/argv-iter-tests (Files): Likewise.
36648         * modules/array-list-tests (Files): Likewise.
36649         * modules/array-mergesort-tests (Files): Likewise.
36650         * modules/array-oset-tests (Files): Likewise.
36651         * modules/avltree-list-tests (Files): Likewise.
36652         * modules/avltree-oset-tests (Files): Likewise.
36653         * modules/avltreehash-list-tests (Files): Likewise.
36654         * modules/base64-tests (Files): Likewise.
36655         * modules/binary-io-tests (Files): Likewise.
36656         * modules/bitrotate-tests (Files): Likewise.
36657         * modules/btowc-tests (Files): Likewise.
36658         * modules/byteswap-tests (Files): Likewise.
36659         * modules/c-ctype-tests (Files): Likewise.
36660         * modules/c-stack-tests (Files): Likewise.
36661         * modules/c-strcase-tests (Files): Likewise.
36662         * modules/c-strcasestr-tests (Files): Likewise.
36663         * modules/c-strstr-tests (Files): Likewise.
36664         * modules/canonicalize-lgpl-tests (Files): Likewise.
36665         * modules/canonicalize-tests (Files): Likewise.
36666         * modules/carray-list-tests (Files): Likewise.
36667         * modules/ceilf-tests (Files): Likewise.
36668         * modules/ceill-tests (Files): Likewise.
36669         * modules/chown-tests (Files): Likewise.
36670         * modules/cloexec-tests (Files): Likewise.
36671         * modules/copy-file-tests (Files): Likewise.
36672         * modules/count-one-bits-tests (Files): Likewise.
36673         * modules/dprintf-posix-tests (Files): Likewise.
36674         * modules/dup2-tests (Files): Likewise.
36675         * modules/dup3-tests (Files): Likewise.
36676         * modules/duplocale-tests (Files): Likewise.
36677         * modules/fbufmode-tests (Files): Likewise.
36678         * modules/fchdir-tests (Files): Likewise.
36679         * modules/fcntl-safer-tests (Files): Likewise.
36680         * modules/fcntl-tests (Files): Likewise.
36681         * modules/fdopendir-tests (Files): Likewise.
36682         * modules/fdutimensat-tests (Files): Likewise.
36683         * modules/fflush-tests (Files): Likewise.
36684         * modules/filevercmp-tests (Files): Likewise.
36685         * modules/flock-tests (Files): Likewise.
36686         * modules/floorf-tests (Files): Likewise.
36687         * modules/floorl-tests (Files): Likewise.
36688         * modules/fnmatch-tests (Files): Likewise.
36689         * modules/fopen-safer-tests (Files): Likewise.
36690         * modules/fopen-tests (Files): Likewise.
36691         * modules/fpending-tests (Files): Likewise.
36692         * modules/fprintf-posix-tests (Files): Likewise.
36693         * modules/fpurge-tests (Files): Likewise.
36694         * modules/freadable-tests (Files): Likewise.
36695         * modules/freadahead-tests (Files): Likewise.
36696         * modules/freading-tests (Files): Likewise.
36697         * modules/freadptr-tests (Files): Likewise.
36698         * modules/freadseek-tests (Files): Likewise.
36699         * modules/freopen-tests (Files): Likewise.
36700         * modules/frexp-nolibm-tests (Files): Likewise.
36701         * modules/frexp-tests (Files): Likewise.
36702         * modules/frexpl-nolibm-tests (Files): Likewise.
36703         * modules/frexpl-tests (Files): Likewise.
36704         * modules/fseek-tests (Files): Likewise.
36705         * modules/fseeko-tests (Files): Likewise.
36706         * modules/fstrcmp-tests (Files): Likewise.
36707         * modules/fsync-tests (Files): Likewise.
36708         * modules/ftell-tests (Files): Likewise.
36709         * modules/ftello-tests (Files): Likewise.
36710         * modules/func-tests (Files): Likewise.
36711         * modules/futimens-tests (Files): Likewise.
36712         * modules/fwritable-tests (Files): Likewise.
36713         * modules/fwriting-tests (Files): Likewise.
36714         * modules/getcwd-tests (Files): Likewise.
36715         * modules/getdate-tests (Files): Likewise.
36716         * modules/getdelim-tests (Files): Likewise.
36717         * modules/getdtablesize-tests (Files): Likewise.
36718         * modules/getgroups-tests (Files): Likewise.
36719         * modules/getline-tests (Files): Likewise.
36720         * modules/getndelim2-tests (Files): Likewise.
36721         * modules/glob-tests (Files): Likewise.
36722         * modules/hash-tests (Files): Likewise.
36723         * modules/i-ring-tests (Files): Likewise.
36724         * modules/iconv-tests (Files): Likewise.
36725         * modules/iconv_open-utf-tests (Files): Likewise.
36726         * modules/idpriv-drop-tests (Files): Likewise.
36727         * modules/idpriv-droptemp-tests (Files): Likewise.
36728         * modules/inet_ntop-tests (Files): Likewise.
36729         * modules/inet_pton-tests (Files): Likewise.
36730         * modules/isblank-tests (Files): Likewise.
36731         * modules/isfinite-tests (Files): Likewise.
36732         * modules/isinf-tests (Files): Likewise.
36733         * modules/isnan-tests (Files): Likewise.
36734         * modules/isnand-nolibm-tests (Files): Likewise.
36735         * modules/isnand-tests (Files): Likewise.
36736         * modules/isnanf-nolibm-tests (Files): Likewise.
36737         * modules/isnanf-tests (Files): Likewise.
36738         * modules/isnanl-nolibm-tests (Files): Likewise.
36739         * modules/isnanl-tests (Files): Likewise.
36740         * modules/lchown-tests (Files): Likewise.
36741         * modules/ldexpl-tests (Files): Likewise.
36742         * modules/link-tests (Files): Likewise.
36743         * modules/linkat-tests (Files): Likewise.
36744         * modules/linked-list-tests (Files): Likewise.
36745         * modules/linkedhash-list-tests (Files): Likewise.
36746         * modules/localename-tests (Files): Likewise.
36747         * modules/lseek-tests (Files): Likewise.
36748         * modules/lstat-tests (Files): Likewise.
36749         * modules/mbmemcasecmp-tests (Files): Likewise.
36750         * modules/mbmemcasecoll-tests (Files): Likewise.
36751         * modules/mbrtowc-tests (Files): Likewise.
36752         * modules/mbscasecmp-tests (Files): Likewise.
36753         * modules/mbscasestr-tests (Files): Likewise.
36754         * modules/mbschr-tests (Files): Likewise.
36755         * modules/mbscspn-tests (Files): Likewise.
36756         * modules/mbsinit-tests (Files): Likewise.
36757         * modules/mbsncasecmp-tests (Files): Likewise.
36758         * modules/mbsnrtowcs-tests (Files): Likewise.
36759         * modules/mbspbrk-tests (Files): Likewise.
36760         * modules/mbspcasecmp-tests (Files): Likewise.
36761         * modules/mbsrchr-tests (Files): Likewise.
36762         * modules/mbsrtowcs-tests (Files): Likewise.
36763         * modules/mbsspn-tests (Files): Likewise.
36764         * modules/mbsstr-tests (Files): Likewise.
36765         * modules/memchr-tests (Files): Likewise.
36766         * modules/memchr2-tests (Files): Likewise.
36767         * modules/memcmp-tests (Files): Likewise.
36768         * modules/memmem-tests (Files): Likewise.
36769         * modules/memrchr-tests (Files): Likewise.
36770         * modules/mkdir-tests (Files): Likewise.
36771         * modules/mkfifo-tests (Files): Likewise.
36772         * modules/mkfifoat-tests (Files): Likewise.
36773         * modules/mknod-tests (Files): Likewise.
36774         * modules/nanosleep-tests (Files): Likewise.
36775         * modules/nl_langinfo-tests (Files): Likewise.
36776         * modules/obstack-printf-tests (Files): Likewise.
36777         * modules/open-tests (Files): Likewise.
36778         * modules/openat-tests (Files): Likewise.
36779         * modules/pipe-filter-gi-tests (Files): Likewise.
36780         * modules/pipe-filter-ii-tests (Files): Likewise.
36781         * modules/pipe2-tests (Files): Likewise.
36782         * modules/popen-safer-tests (Files): Likewise.
36783         * modules/popen-tests (Files): Likewise.
36784         * modules/posixtm-tests (Files): Likewise.
36785         * modules/pread-tests (Files): Likewise.
36786         * modules/printf-frexp-tests (Files): Likewise.
36787         * modules/printf-frexpl-tests (Files): Likewise.
36788         * modules/printf-posix-tests (Files): Likewise.
36789         * modules/priv-set-tests (Files): Likewise.
36790         * modules/quotearg-tests (Files): Likewise.
36791         * modules/random_r-tests (Files): Likewise.
36792         * modules/rawmemchr-tests (Files): Likewise.
36793         * modules/rbtree-list-tests (Files): Likewise.
36794         * modules/rbtree-oset-tests (Files): Likewise.
36795         * modules/rbtreehash-list-tests (Files): Likewise.
36796         * modules/readlink-tests (Files): Likewise.
36797         * modules/remove-tests (Files): Likewise.
36798         * modules/rename-tests (Files): Likewise.
36799         * modules/renameat-tests (Files): Likewise.
36800         * modules/rmdir-tests (Files): Likewise.
36801         * modules/round-tests (Files): Likewise.
36802         * modules/roundf-tests (Files): Likewise.
36803         * modules/roundl-tests (Files): Likewise.
36804         * modules/safe-alloc-tests (Files): Likewise.
36805         * modules/setenv-tests (Files): Likewise.
36806         * modules/sigaction-tests (Files): Likewise.
36807         * modules/signbit-tests (Files): Likewise.
36808         * modules/sleep-tests (Files): Likewise.
36809         * modules/snprintf-posix-tests (Files): Likewise.
36810         * modules/snprintf-tests (Files): Likewise.
36811         * modules/sprintf-posix-tests (Files): Likewise.
36812         * modules/stat-tests (Files): Likewise.
36813         * modules/stat-time-tests (Files): Likewise.
36814         * modules/strcasestr-tests (Files): Likewise.
36815         * modules/strchrnul-tests (Files): Likewise.
36816         * modules/strerror-tests (Files): Likewise.
36817         * modules/striconv-tests (Files): Likewise.
36818         * modules/striconveh-tests (Files): Likewise.
36819         * modules/striconveha-tests (Files): Likewise.
36820         * modules/strsignal-tests (Files): Likewise.
36821         * modules/strstr-tests (Files): Likewise.
36822         * modules/strtod-tests (Files): Likewise.
36823         * modules/strverscmp-tests (Files): Likewise.
36824         * modules/symlink-tests (Files): Likewise.
36825         * modules/symlinkat-tests (Files): Likewise.
36826         * modules/trunc-tests (Files): Likewise.
36827         * modules/truncf-tests (Files): Likewise.
36828         * modules/truncl-tests (Files): Likewise.
36829         * modules/uname-tests (Files): Likewise.
36830         * modules/unicase/cased-tests (Files): Likewise.
36831         * modules/unicase/ignorable-tests (Files): Likewise.
36832         * modules/unicase/locale-language-tests (Files): Likewise.
36833         * modules/unicase/tolower-tests (Files): Likewise.
36834         * modules/unicase/totitle-tests (Files): Likewise.
36835         * modules/unicase/toupper-tests (Files): Likewise.
36836         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36837         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36838         * modules/unicase/u8-casefold-tests (Files): Likewise.
36839         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36840         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36841         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36842         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36843         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36844         * modules/unicase/u8-tolower-tests (Files): Likewise.
36845         * modules/unicase/u8-totitle-tests (Files): Likewise.
36846         * modules/unicase/u8-toupper-tests (Files): Likewise.
36847         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36848         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36849         * modules/unicase/u16-casefold-tests (Files): Likewise.
36850         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36851         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36852         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36853         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36854         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36855         * modules/unicase/u16-tolower-tests (Files): Likewise.
36856         * modules/unicase/u16-totitle-tests (Files): Likewise.
36857         * modules/unicase/u16-toupper-tests (Files): Likewise.
36858         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36859         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36860         * modules/unicase/u32-casefold-tests (Files): Likewise.
36861         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36862         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36863         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36864         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36865         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36866         * modules/unicase/u32-tolower-tests (Files): Likewise.
36867         * modules/unicase/u32-totitle-tests (Files): Likewise.
36868         * modules/unicase/u32-toupper-tests (Files): Likewise.
36869         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36870         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36871         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36872         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36873         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36874         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36875         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36876         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36877         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36878         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36879         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36880         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36881         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36882         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36883         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36884         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36885         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36886         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36887         * modules/unictype/block-list-tests (Files): Likewise.
36888         * modules/unictype/block-of-tests (Files): Likewise.
36889         * modules/unictype/block-test-tests (Files): Likewise.
36890         * modules/unictype/category-C-tests (Files): Likewise.
36891         * modules/unictype/category-Cc-tests (Files): Likewise.
36892         * modules/unictype/category-Cf-tests (Files): Likewise.
36893         * modules/unictype/category-Cn-tests (Files): Likewise.
36894         * modules/unictype/category-Co-tests (Files): Likewise.
36895         * modules/unictype/category-Cs-tests (Files): Likewise.
36896         * modules/unictype/category-L-tests (Files): Likewise.
36897         * modules/unictype/category-Ll-tests (Files): Likewise.
36898         * modules/unictype/category-Lm-tests (Files): Likewise.
36899         * modules/unictype/category-Lo-tests (Files): Likewise.
36900         * modules/unictype/category-Lt-tests (Files): Likewise.
36901         * modules/unictype/category-Lu-tests (Files): Likewise.
36902         * modules/unictype/category-M-tests (Files): Likewise.
36903         * modules/unictype/category-Mc-tests (Files): Likewise.
36904         * modules/unictype/category-Me-tests (Files): Likewise.
36905         * modules/unictype/category-Mn-tests (Files): Likewise.
36906         * modules/unictype/category-N-tests (Files): Likewise.
36907         * modules/unictype/category-Nd-tests (Files): Likewise.
36908         * modules/unictype/category-Nl-tests (Files): Likewise.
36909         * modules/unictype/category-No-tests (Files): Likewise.
36910         * modules/unictype/category-P-tests (Files): Likewise.
36911         * modules/unictype/category-Pc-tests (Files): Likewise.
36912         * modules/unictype/category-Pd-tests (Files): Likewise.
36913         * modules/unictype/category-Pe-tests (Files): Likewise.
36914         * modules/unictype/category-Pf-tests (Files): Likewise.
36915         * modules/unictype/category-Pi-tests (Files): Likewise.
36916         * modules/unictype/category-Po-tests (Files): Likewise.
36917         * modules/unictype/category-Ps-tests (Files): Likewise.
36918         * modules/unictype/category-S-tests (Files): Likewise.
36919         * modules/unictype/category-Sc-tests (Files): Likewise.
36920         * modules/unictype/category-Sk-tests (Files): Likewise.
36921         * modules/unictype/category-Sm-tests (Files): Likewise.
36922         * modules/unictype/category-So-tests (Files): Likewise.
36923         * modules/unictype/category-Z-tests (Files): Likewise.
36924         * modules/unictype/category-Zl-tests (Files): Likewise.
36925         * modules/unictype/category-Zp-tests (Files): Likewise.
36926         * modules/unictype/category-Zs-tests (Files): Likewise.
36927         * modules/unictype/category-and-not-tests (Files): Likewise.
36928         * modules/unictype/category-and-tests (Files): Likewise.
36929         * modules/unictype/category-byname-tests (Files): Likewise.
36930         * modules/unictype/category-name-tests (Files): Likewise.
36931         * modules/unictype/category-none-tests (Files): Likewise.
36932         * modules/unictype/category-of-tests (Files): Likewise.
36933         * modules/unictype/category-or-tests (Files): Likewise.
36934         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36935         * modules/unictype/combining-class-tests (Files): Likewise.
36936         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36937         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36938         * modules/unictype/ctype-blank-tests (Files): Likewise.
36939         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36940         * modules/unictype/ctype-digit-tests (Files): Likewise.
36941         * modules/unictype/ctype-graph-tests (Files): Likewise.
36942         * modules/unictype/ctype-lower-tests (Files): Likewise.
36943         * modules/unictype/ctype-print-tests (Files): Likewise.
36944         * modules/unictype/ctype-punct-tests (Files): Likewise.
36945         * modules/unictype/ctype-space-tests (Files): Likewise.
36946         * modules/unictype/ctype-upper-tests (Files): Likewise.
36947         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36948         * modules/unictype/decimal-digit-tests (Files): Likewise.
36949         * modules/unictype/digit-tests (Files): Likewise.
36950         * modules/unictype/mirror-tests (Files): Likewise.
36951         * modules/unictype/numeric-tests (Files): Likewise.
36952         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36953         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36954         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36955         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36956         Likewise.
36957         * modules/unictype/property-bidi-block-separator-tests (Files):
36958         Likewise.
36959         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36960         Likewise.
36961         * modules/unictype/property-bidi-common-separator-tests (Files):
36962         Likewise.
36963         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36964         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36965         Likewise.
36966         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36967         Likewise.
36968         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36969         Likewise.
36970         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36971         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36972         Likewise.
36973         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36974         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36975         Likewise.
36976         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36977         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36978         * modules/unictype/property-bidi-segment-separator-tests (Files):
36979         Likewise.
36980         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36981         * modules/unictype/property-byname-tests (Files): Likewise.
36982         * modules/unictype/property-combining-tests (Files): Likewise.
36983         * modules/unictype/property-composite-tests (Files): Likewise.
36984         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36985         * modules/unictype/property-dash-tests (Files): Likewise.
36986         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36987         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36988         Likewise.
36989         * modules/unictype/property-deprecated-tests (Files): Likewise.
36990         * modules/unictype/property-diacritic-tests (Files): Likewise.
36991         * modules/unictype/property-extender-tests (Files): Likewise.
36992         * modules/unictype/property-format-control-tests (Files): Likewise.
36993         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36994         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36995         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36996         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36997         * modules/unictype/property-hyphen-tests (Files): Likewise.
36998         * modules/unictype/property-id-continue-tests (Files): Likewise.
36999         * modules/unictype/property-id-start-tests (Files): Likewise.
37000         * modules/unictype/property-ideographic-tests (Files): Likewise.
37001         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
37002         * modules/unictype/property-ids-trinary-operator-tests (Files):
37003         Likewise.
37004         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
37005         * modules/unictype/property-iso-control-tests (Files): Likewise.
37006         * modules/unictype/property-join-control-tests (Files): Likewise.
37007         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
37008         * modules/unictype/property-line-separator-tests (Files): Likewise.
37009         * modules/unictype/property-logical-order-exception-tests (Files):
37010         Likewise.
37011         * modules/unictype/property-lowercase-tests (Files): Likewise.
37012         * modules/unictype/property-math-tests (Files): Likewise.
37013         * modules/unictype/property-non-break-tests (Files): Likewise.
37014         * modules/unictype/property-not-a-character-tests (Files): Likewise.
37015         * modules/unictype/property-numeric-tests (Files): Likewise.
37016         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
37017         * modules/unictype/property-other-default-ignorable-code-point-tests
37018         (Files): Likewise.
37019         * modules/unictype/property-other-grapheme-extend-tests (Files):
37020         Likewise.
37021         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
37022         * modules/unictype/property-other-id-start-tests (Files): Likewise.
37023         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
37024         * modules/unictype/property-other-math-tests (Files): Likewise.
37025         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
37026         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
37027         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
37028         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
37029         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
37030         * modules/unictype/property-private-use-tests (Files): Likewise.
37031         * modules/unictype/property-punctuation-tests (Files): Likewise.
37032         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
37033         * modules/unictype/property-radical-tests (Files): Likewise.
37034         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
37035         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
37036         * modules/unictype/property-space-tests (Files): Likewise.
37037         * modules/unictype/property-terminal-punctuation-tests (Files):
37038         Likewise.
37039         * modules/unictype/property-test-tests (Files): Likewise.
37040         * modules/unictype/property-titlecase-tests (Files): Likewise.
37041         * modules/unictype/property-unassigned-code-value-tests (Files):
37042         Likewise.
37043         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
37044         * modules/unictype/property-uppercase-tests (Files): Likewise.
37045         * modules/unictype/property-variation-selector-tests (Files): Likewise.
37046         * modules/unictype/property-white-space-tests (Files): Likewise.
37047         * modules/unictype/property-xid-continue-tests (Files): Likewise.
37048         * modules/unictype/property-xid-start-tests (Files): Likewise.
37049         * modules/unictype/property-zero-width-tests (Files): Likewise.
37050         * modules/unictype/scripts-tests (Files): Likewise.
37051         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
37052         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
37053         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
37054         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
37055         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
37056         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
37057         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
37058         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
37059         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
37060         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
37061         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
37062         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
37063         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
37064         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
37065         * modules/uninorm/composition-tests (Files): Likewise.
37066         * modules/uninorm/decomposing-form-tests (Files): Likewise.
37067         * modules/uninorm/decomposition-tests (Files): Likewise.
37068         * modules/uninorm/filter-tests (Files): Likewise.
37069         * modules/uninorm/nfc-tests (Files): Likewise.
37070         * modules/uninorm/nfd-tests (Files): Likewise.
37071         * modules/uninorm/nfkc-tests (Files): Likewise.
37072         * modules/uninorm/nfkd-tests (Files): Likewise.
37073         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
37074         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
37075         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
37076         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
37077         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
37078         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
37079         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
37080         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37081         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
37082         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
37083         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
37084         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
37085         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37086         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
37087         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
37088         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
37089         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
37090         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37091         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
37092         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
37093         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
37094         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
37095         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37096         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
37097         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
37098         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
37099         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
37100         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
37101         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
37102         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
37103         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
37104         * modules/uniwidth/u8-width-tests (Files): Likewise.
37105         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
37106         * modules/uniwidth/u16-width-tests (Files): Likewise.
37107         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
37108         * modules/uniwidth/u32-width-tests (Files): Likewise.
37109         * modules/uniwidth/width-tests (Files): Likewise.
37110         * modules/unlink-tests (Files): Likewise.
37111         * modules/unsetenv-tests (Files): Likewise.
37112         * modules/usleep-tests (Files): Likewise.
37113         * modules/utimens-tests (Files): Likewise.
37114         * modules/utimensat-tests (Files): Likewise.
37115         * modules/vasnprintf-posix-tests (Files): Likewise.
37116         * modules/vasnprintf-tests (Files): Likewise.
37117         * modules/vasprintf-posix-tests (Files): Likewise.
37118         * modules/vasprintf-tests (Files): Likewise.
37119         * modules/vdprintf-posix-tests (Files): Likewise.
37120         * modules/vfprintf-posix-tests (Files): Likewise.
37121         * modules/vprintf-posix-tests (Files): Likewise.
37122         * modules/vsnprintf-posix-tests (Files): Likewise.
37123         * modules/vsnprintf-tests (Files): Likewise.
37124         * modules/vsprintf-posix-tests (Files): Likewise.
37125         * modules/wcrtomb-tests (Files): Likewise.
37126         * modules/wcsnrtombs-tests (Files): Likewise.
37127         * modules/wcsrtombs-tests (Files): Likewise.
37128         * modules/wctype-tests (Files): Likewise.
37129         * modules/wcwidth-tests (Files): Likewise.
37130         * modules/xmemdup0-tests (Files): Likewise.
37131         * modules/xprintf-posix-tests (Files): Likewise.
37132         * modules/xvasprintf-tests (Files): Likewise.
37133
37134 2009-12-24  Eric Blake  <ebb9@byu.net>
37135
37136         test-nanosleep: fix typo
37137         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
37138         patch.
37139         Reported by Bruno Haible.
37140
37141 2009-12-24  Bruno Haible  <bruno@clisp.org>
37142
37143         Reduce namespace pollution on glibc systems.
37144         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
37145         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
37146         systems.
37147         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
37148         <getopt.h> on glibc systems.
37149         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
37150         systems.
37151         * lib/fcntl.c: Include <unistd.h> here instead.
37152
37153 2009-12-24  Bruno Haible  <bruno@clisp.org>
37154
37155         * lib/stdlib.in.h (includes): Fix typo in today's commit.
37156
37157 2009-12-24  Eric Blake  <ebb9@byu.net>
37158
37159         tests: add signature checks
37160         * tests/signature.h (SIGNATURE_CHECK): New file.
37161         * modules/atexit-tests (Files): Use it.
37162         * modules/btowc-tests (Files): Likewise.
37163         * modules/canonicalize-lgpl-tests (Files): Likewise.
37164         * modules/ceilf-tests (Files): Likewise.
37165         * modules/ceill-tests (Files): Likewise.
37166         * modules/chown-tests (Files): Likewise.
37167         * modules/dprintf-posix-tests (Files): Likewise.
37168         * modules/dup2-tests (Files): Likewise.
37169         * modules/dup3-tests (Files): Likewise.
37170         * modules/duplocale-tests (Files): Likewise.
37171         * modules/fchdir-tests (Files): Likewise.
37172         * modules/fcntl-tests (Files): Likewise.
37173         * modules/fdopendir-tests (Files): Likewise.
37174         * modules/fflush-tests (Files): Likewise.
37175         * modules/flock-tests (Files): Likewise.
37176         * modules/floorf-tests (Files): Likewise.
37177         * modules/floorl-tests (Files): Likewise.
37178         * modules/fnmatch-tests (Files): Likewise.
37179         * modules/fopen-tests (Files): Likewise.
37180         * modules/fprintf-posix-tests (Files): Likewise.
37181         * modules/freopen-tests (Files): Likewise.
37182         * modules/frexp-nolibm-tests (Files): Likewise.
37183         * modules/frexp-tests (Files): Likewise.
37184         * modules/frexpl-nolibm-tests (Files): Likewise.
37185         * modules/frexpl-tests (Files): Likewise.
37186         * modules/fseek-tests (Files): Likewise.
37187         * modules/fseeko-tests (Files): Likewise.
37188         * modules/fsync-tests (Files): Likewise.
37189         * modules/ftell-tests (Files): Likewise.
37190         * modules/ftello-tests (Files): Likewise.
37191         * modules/futimens-tests (Files): Likewise.
37192         * modules/getaddrinfo-tests (Files): Likewise.
37193         * modules/getcwd-tests (Files): Likewise.
37194         * modules/getdelim-tests (Files): Likewise.
37195         * modules/getdtablesize-tests (Files): Likewise.
37196         * modules/getgroups-tests (Files): Likewise.
37197         * modules/gethostname-tests (Files): Likewise.
37198         * modules/getline-tests (Files): Likewise.
37199         * modules/getopt-posix-tests (Files): Likewise.
37200         * modules/gettimeofday-tests (Files): Likewise.
37201         * modules/glob-tests (Files): Likewise.
37202         * modules/iconv-tests (Files): Likewise.
37203         * modules/inet_ntop-tests (Files): Likewise.
37204         * modules/inet_pton-tests (Files): Likewise.
37205         * modules/isblank-tests (Files): Likewise.
37206         * modules/lchown-tests (Files): Likewise.
37207         * modules/ldexpl-tests (Files): Likewise.
37208         * modules/link-tests (Files): Likewise.
37209         * modules/linkat-tests (Files): Likewise.
37210         * modules/lseek-tests (Files): Likewise.
37211         * modules/lstat-tests (Files): Likewise.
37212         * modules/mbrtowc-tests (Files): Likewise.
37213         * modules/mbsinit-tests (Files): Likewise.
37214         * modules/mbsnrtowcs-tests (Files): Likewise.
37215         * modules/mbsrtowcs-tests (Files): Likewise.
37216         * modules/memchr-tests (Files): Likewise.
37217         * modules/memcmp-tests (Files): Likewise.
37218         * modules/memmem-tests (Files): Likewise.
37219         * modules/memrchr-tests (Files): Likewise.
37220         * modules/mkdir-tests (Files): Likewise.
37221         * modules/mkfifo-tests (Files): Likewise.
37222         * modules/mkfifoat-tests (Files): Likewise.
37223         * modules/mknod-tests (Files): Likewise.
37224         * modules/nanosleep-tests (Files): Likewise.
37225         * modules/nl_langinfo-tests (Files): Likewise.
37226         * modules/obstack-printf-tests (Files): Likewise.
37227         * modules/open-tests (Files): Likewise.
37228         * modules/openat-tests (Files): Likewise.
37229         * modules/perror-tests (Files): Likewise.
37230         * modules/pipe2-tests (Files): Likewise.
37231         * modules/poll-tests (Files): Likewise.
37232         * modules/popen-tests (Files): Likewise.
37233         * modules/posix_spawn-tests (Files): Likewise.
37234         * modules/posix_spawnp-tests (Files): Likewise.
37235         * modules/pread-tests (Files): Likewise.
37236         * modules/printf-posix-tests (Files): Likewise.
37237         * modules/pty-tests (Files): Likewise.
37238         * modules/random_r-tests (Files): Likewise.
37239         * modules/rawmemchr-tests (Files): Likewise.
37240         * modules/readlink-tests (Files): Likewise.
37241         * modules/remove-tests (Files): Likewise.
37242         * modules/rename-tests (Files): Likewise.
37243         * modules/renameat-tests (Files): Likewise.
37244         * modules/rmdir-tests (Files): Likewise.
37245         * modules/round-tests (Files): Likewise.
37246         * modules/roundf-tests (Files): Likewise.
37247         * modules/roundl-tests (Files): Likewise.
37248         * modules/select-tests (Files): Likewise.
37249         * modules/setenv-tests (Files): Likewise.
37250         * modules/sigaction-tests (Files): Likewise.
37251         * modules/sleep-tests (Files): Likewise.
37252         * modules/snprintf-posix-tests (Files): Likewise.
37253         * modules/snprintf-tests (Files): Likewise.
37254         * modules/sprintf-posix-tests (Files): Likewise.
37255         * modules/stat-tests (Files): Likewise.
37256         * modules/strcasestr-tests (Files): Likewise.
37257         * modules/strchrnul-tests (Files): Likewise.
37258         * modules/strerror-tests (Files): Likewise.
37259         * modules/strsignal-tests (Files): Likewise.
37260         * modules/strstr-tests (Files): Likewise.
37261         * modules/strtod-tests (Files): Likewise.
37262         * modules/strverscmp-tests (Files): Likewise.
37263         * modules/symlink-tests (Files): Likewise.
37264         * modules/symlinkat-tests (Files): Likewise.
37265         * modules/times-tests (Files): Likewise.
37266         * modules/trunc-tests (Files): Likewise.
37267         * modules/truncf-tests (Files): Likewise.
37268         * modules/truncl-tests (Files): Likewise.
37269         * modules/tsearch-tests (Files): Likewise.
37270         * modules/uname-tests (Files): Likewise.
37271         * modules/unlink-tests (Files): Likewise.
37272         * modules/unsetenv-tests (Files): Likewise.
37273         * modules/usleep-tests (Files): Likewise.
37274         * modules/utimensat-tests (Files): Likewise.
37275         * modules/vasprintf-tests (Files): Likewise.
37276         * modules/vdprintf-posix-tests (Files): Likewise.
37277         * modules/vfprintf-posix-tests (Files): Likewise.
37278         * modules/vprintf-posix-tests (Files): Likewise.
37279         * modules/vsnprintf-posix-tests (Files): Likewise.
37280         * modules/vsnprintf-tests (Files): Likewise.
37281         * modules/vsprintf-posix-tests (Files): Likewise.
37282         * modules/wcrtomb-tests (Files): Likewise.
37283         * modules/wcsnrtombs-tests (Files): Likewise.
37284         * modules/wcsrtombs-tests (Files): Likewise.
37285         * modules/wcwidth-tests (Files): Likewise.
37286         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
37287         * tests/test-isinf.c (isinf): Likewise.
37288         * tests/test-isnan.c (isnan): Likewise.
37289         * tests/test-signbit.c (signbit): Likewise.
37290         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
37291         declaration, either as macro or with correct signature.
37292         (select): Ensure function under test is declared with correct
37293         signature in correct header.
37294         * tests/test-atexit.c (atexit): Likewise.
37295         * tests/test-btowc.c (btowc): Likewise.
37296         * tests/test-canonicalize-lgpl.c (realpath)
37297         (canonicalize_file_name): Likewise.
37298         * tests/test-ceilf1.c (ceilf): Likewise.
37299         * tests/test-ceill.c (ceill): Likewise.
37300         * tests/test-chown.c (chown): Likewise.
37301         * tests/test-dprintf-posix.c (dprintf): Likewise.
37302         * tests/test-dup2.c (dup2): Likewise.
37303         * tests/test-dup3.c (dup3): Likewise.
37304         * tests/test-duplocale.c (duplocale): Likewise.
37305         * tests/test-fchdir.c (fchdir): Likewise.
37306         * tests/test-fchownat.c (fchownat): Likewise.
37307         * tests/test-fcntl.c (fcntl): Likewise.
37308         * tests/test-fdopendir.c (fdopendir): Likewise.
37309         * tests/test-fflush.c (fflush): Likewise.
37310         * tests/test-flock.c (flock): Likewise.
37311         * tests/test-floorf1.c (floorf): Likewise.
37312         * tests/test-floorl.c (floorl): Likewise.
37313         * tests/test-fnmatch.c (fnmatch): Likewise.
37314         * tests/test-fopen.c (fopen): Likewise.
37315         * tests/test-fprintf-posix.c (fprintf): Likewise.
37316         * tests/test-freopen.c (freopen): Likewise.
37317         * tests/test-frexp.c (frexp): Likewise.
37318         * tests/test-frexpl.c (frexpl): Likewise.
37319         * tests/test-fseek.c (fseek): Likewise.
37320         * tests/test-fseeko.c (fseeko): Likewise.
37321         * tests/test-fstatat.c (fstatat): Likewise.
37322         * tests/test-fsync.c (fsync): Likewise.
37323         * tests/test-ftell.c (ftell): Likewise.
37324         * tests/test-ftello.c (ftello): Likewise.
37325         * tests/test-futimens.c (futimens): Likewise.
37326         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
37327         (gai_strerror): Likewise.
37328         * tests/test-getcwd.c (getcwd): Likewise.
37329         * tests/test-getdelim.c (getdelim): Likewise.
37330         * tests/test-getdtablesize.c (getdtablesize): Likewise.
37331         * tests/test-getgroups.c (getgroups): Likewise.
37332         * tests/test-gethostname.c (gethostname): Likewise.
37333         * tests/test-getline.c (getline): Likewise.
37334         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
37335         Likewise.
37336         * tests/test-gettimeofday.c (gettimeofday): Likewise.
37337         * tests/test-glob.c (glob, globfree): Likewise.
37338         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
37339         * tests/test-inet_ntop.c (inet_ntop): Likewise.
37340         * tests/test-inet_pton.c (inet_pton): Likewise.
37341         * tests/test-isblank.c (isblank): Likewise.
37342         * tests/test-lchown.c (lchown): Likewise.
37343         * tests/test-ldexpl.c (ldexpl): Likewise.
37344         * tests/test-link.c (link): Likewise.
37345         * tests/test-linkat.c (linkat): Likewise.
37346         * tests/test-lseek.c (lseek): Likewise.
37347         * tests/test-lstat.c (lstat): Likewise.
37348         * tests/test-mbrtowc.c (mbrtowc): Likewise.
37349         * tests/test-mbsinit.c (mbsinit): Likewise.
37350         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
37351         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
37352         * tests/test-memchr.c (memchr): Likewise.
37353         * tests/test-memcmp.c (memcmp): Likewise.
37354         * tests/test-memmem.c (memmem): Likewise.
37355         * tests/test-memrchr.c (memrchr): Likewise.
37356         * tests/test-mkdir.c (mkdir): Likewise.
37357         * tests/test-mkdirat.c (mkdirat): Likewise.
37358         * tests/test-mkfifo.c (mkfifo): Likewise.
37359         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
37360         * tests/test-mknod.c (mknod): Likewise.
37361         * tests/test-nanosleep.c (nanosleep): Likewise.
37362         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
37363         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
37364         Likewise.
37365         * tests/test-open.c (open): Likewise.
37366         * tests/test-openat.c (openat): Likewise.
37367         * tests/test-perror.c (perror): Likewise.
37368         * tests/test-pipe2.c (pipe2): Likewise.
37369         * tests/test-poll.c (poll): Likewise.
37370         * tests/test-popen.c (popen, pclose): Likewise.
37371         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
37372         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
37373         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
37374         (posix_spawn_file_actions_destroy)
37375         (posix_spawn_file_actions_addclose)
37376         (posix_spawn_file_actions_addopen)
37377         (posix_spawn_file_actions_adddup2): Likewise.
37378         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
37379         * tests/test-pread.c (pread): Likewise.
37380         * tests/test-printf-posix.c (printf): Likewise.
37381         * tests/test-pty.c (openpty, forkpty): Likewise.
37382         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
37383         (random_r): Likewise.
37384         * tests/test-rawmemchr.c (rawmemchr): Likewise.
37385         * tests/test-readlink.c (readlink): Likewise.
37386         * tests/test-remove.c (remove): Likewise.
37387         * tests/test-rename.c (rename): Likewise.
37388         * tests/test-renameat.c (renameat): Likewise.
37389         * tests/test-rmdir.c (rmdir): Likewise.
37390         * tests/test-round1.c (round): Likewise.
37391         * tests/test-roundf1.c (roundf): Likewise.
37392         * tests/test-roundl.c (roundl): Likewise.
37393         * tests/test-setenv.c (setenv): Likewise.
37394         * tests/test-sigaction.c (sigaction): Likewise.
37395         * tests/test-sleep.c (sleep): Likewise.
37396         * tests/test-snprintf.c (snprintf): Likewise.
37397         * tests/test-sprintf-posix.c (sprintf): Likewise.
37398         * tests/test-stat.c (stat): Likewise.
37399         * tests/test-stpncpy.c (stpncpy): Likewise.
37400         * tests/test-strcasestr.c (strcasestr): Likewise.
37401         * tests/test-strchrnul.c (strchrnul): Likewise.
37402         * tests/test-strerror.c (strerror): Likewise.
37403         * tests/test-strsignal.c (strsignal): Likewise.
37404         * tests/test-strstr.c (strstr): Likewise.
37405         * tests/test-strtod.c (strtod): Likewise.
37406         * tests/test-strverscmp.c (strverscmp): Likewise.
37407         * tests/test-symlink.c (symlink): Likewise.
37408         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
37409         * tests/test-times.c (times): Likewise.
37410         * tests/test-trunc1.c (trunc): Likewise.
37411         * tests/test-truncf1.c (truncf): Likewise.
37412         * tests/test-truncl.c (truncl): Likewise.
37413         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
37414         Likewise.
37415         * tests/test-uname.c (uname): Likewise.
37416         * tests/test-unlink.c (unlink): Likewise.
37417         * tests/test-unlinkat.c (unlinkat): Likewise.
37418         * tests/test-unsetenv.c (unsetenv): Likewise.
37419         * tests/test-usleep.c (usleep): Likewise.
37420         * tests/test-utimensat.c (utimensat): Likewise.
37421         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
37422         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
37423         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
37424         * tests/test-vprintf-posix.c (vprintf): Likewise.
37425         * tests/test-vsnprintf.c (vsnprintf): Likewise.
37426         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
37427         * tests/test-wcrtomb.c (wcrtomb): Likewise.
37428         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
37429         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
37430         * tests/test-wcwidth.c (wcwidth): Likewise.
37431
37432         build: pull in conditional headers during GNULIB_POSIXCHECK
37433         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
37434         definitions from any conditionally-included headers.
37435         * lib/stdlib.in.h (includes): Likewise.
37436         * lib/unistd.in.h (includes): Likewise.
37437
37438 2009-12-24  Bruno Haible  <bruno@clisp.org>
37439
37440         * tests/test-argv-iter.c: Include header file being tested immediately
37441         after config.h.
37442         * tests/test-base64.c: Likewise.
37443         * tests/test-flock.c: Likewise.
37444         * tests/test-fsync.c: Likewise.
37445         * tests/test-getdate.c: Likewise.
37446         * tests/test-getndelim2.c: Likewise.
37447         * tests/test-isfinite.c: Likewise.
37448         * tests/test-isinf.c: Likewise.
37449         * tests/test-strerror.c: Likewise.
37450         * tests/test-strsignal.c: Likewise.
37451
37452 2009-12-23  Eric Blake  <ebb9@byu.net>
37453
37454         unistd: work around cygwin bug
37455         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
37456         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
37457         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37458
37459 2009-12-23  Bruno Haible  <bruno@clisp.org>
37460
37461         localename: More tests.
37462         * tests/test-localename.c (SIZEOF): New macro.
37463         (categories): New variable.
37464         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
37465         test_locale_name_default): Add test w.r.t. thread locale.
37466         (test_locale_name_thread): New function.
37467         (main): Invoke it.
37468
37469         localename: Make aware of thread locale.
37470         * lib/localename.h (gl_locale_name_thread): New declaration.
37471         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
37472         behaviour with respect to thread locale.
37473         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
37474         <langinfo.h>, glthread/lock.h.
37475         (SIZE_BITS): New macro.
37476         (string_hash): New function.
37477         (struct hash_node): New type.
37478         (HASH_TABLE_SIZE): New macro.
37479         (struniq_hash_table, struniq_lock): New variables.
37480         (struniq): New function.
37481         (gl_locale_name_thread): New function.
37482         (gl_locale_name): Invoke it.
37483         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
37484         * modules/localename (Depends-on): Add lock.
37485         Reported by Mike Gran <spk121@yahoo.com>.
37486
37487 2009-12-23  Eric Blake  <ebb9@byu.net>
37488
37489         va-args: new module
37490         * modules/va-args: New file.
37491         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
37492         * MODULES.html.sh (Core language properties): Mention it.
37493
37494         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
37495         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
37496         named alias for __attribute__((__unused__)).
37497         * lib/chown.c: Update client.
37498         * lib/fchmodat.c: Likewise.
37499         * lib/fts.c: Likewise.
37500         * lib/getdate.y: Likewise.
37501         * lib/getgroups.c: Likewise.
37502         * lib/getopt.c: Likewise.
37503         * lib/getugroups.c: Likewise.
37504         * lib/mkdir.c: Likewise.
37505         * lib/mkfifo.c: Likewise.
37506         * lib/mkfifoat.c: Likewise.
37507         * lib/mknod.c: Likewise.
37508         * lib/mknodat.c: Likewise.
37509         * lib/readlink.c: Likewise.
37510         * lib/se-context.in.h: Likewise.
37511         * lib/se-selinux.in.h: Likewise.
37512         * lib/sockets.c: Likewise.
37513         * lib/symlink.c: Likewise.
37514         * lib/symlinkat.c: Likewise.
37515         * lib/unicodeio.c: Likewise.
37516         * lib/unistr.h: Likewise.
37517         * tests/test-areadlink.c: Likewise.
37518         * tests/test-areadlinkat.c: Likewise.
37519         * tests/test-filenamecat.c: Likewise.
37520         * tests/test-fseeko.c: Likewise.
37521         * tests/test-ftello.c: Likewise.
37522         * tests/test-getdate.c: Likewise.
37523         * tests/test-getgroups.c: Likewise.
37524         * tests/test-gethostname.c: Likewise.
37525         * tests/test-quotearg.c: Likewise.
37526         * tests/test-version-etc.c: Likewise.
37527         * tests/test-xalloc-die.c: Likewise.
37528         * tests/test-xfprintf-posix.c: Likewise.
37529         * tests/test-xprintf-posix.c: Likewise.
37530         * tests/test-xvasprintf.c: Likewise.
37531
37532         tests: avoid compiler warnings
37533         * tests/test-fcntl.c (main): Delete unused parameters.
37534         * tests/test-freopen-safer.c (main): Likewise.
37535         * tests/test-xalloc-die.c (main): Mark unused parameters.
37536         * tests/test-fseeko.c (main): Likewise.
37537         * tests/test-ftello.c (main): Likewise.
37538         * tests/test-nanosleep.c (main): Avoid declaration warning.
37539         * tests/test-sleep.c (main): Likewise.
37540         * tests/test-unsetenv.c (main): Silence warning about string
37541         literal.
37542         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
37543
37544 2009-12-23  Bruno Haible  <bruno@clisp.org>
37545
37546         * tests/test-localename.c (test_locale_name): New function, extracted
37547         from main. Also test mixed situations.
37548         (test_locale_name_posix, test_locale_name_environ,
37549         test_locale_name_default): New functions.
37550         (main): Invoke them all.
37551         * modules/localename-tests (configure.ac): Test for newlocale.
37552
37553 2009-12-23  Bruno Haible  <bruno@clisp.org>
37554
37555         unistd: Ensure getcwd gets declared before being overridden.
37556         * lib/unistd.in.h: Conditionally include <io.h>.
37557
37558 2009-12-22  Bruno Haible  <bruno@clisp.org>
37559
37560         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37561         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37562         (gl_WCHAR_H): Invoke it.
37563         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37564         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37565         Reported by Karl Berry <karl@freefriends.org>.
37566
37567 2009-12-22  Eric Blake  <ebb9@byu.net>
37568
37569         math, unistd: avoid redundant includes
37570         * lib/math.in.h (isnan): No need to re-include <math.h>.
37571         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37572
37573         getsubopt: work around cygwin bug
37574         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37575         avoid conflicting with system getsubopt.
37576         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37577         bug.
37578
37579         getopt: synchronize from glibc
37580         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37581         parameter order.  Adjust all callers.
37582         (_getopt_internal_r, main): Adjust quoting in error messages.
37583         Drop considerations for outdated POSIX 1003.2 error message.
37584         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37585         callers.
37586         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37587
37588         test-getopt: test stderr behavior
37589         * modules/getopt-posix-tests (Depends-on): Add dup2.
37590         * tests/test-getopt.c (ASSERT): Avoid stderr.
37591         (main): Move stderr to a temporary file.
37592         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37593         Instead, add parameter to inform caller if output occurred.
37594         (test_getopt): Adjust all existing tests to expect silence, and
37595         add new tests of leading ":".
37596         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37597         glibc shortcomings with leading "-:" or "+:" in optstring.
37598         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37599         Likewise.
37600         * doc/posix-functions/getopt.texi (getopt): Likewise.
37601
37602         test-getopt: enhance test
37603         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37604         supports optind=0.
37605         * tests/test-getopt.c (OPTIND_MIN): Move...
37606         * tests/test-getopt.h (OPTIND_MIN): ...here.
37607         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37608         Require that optind=0 works, since modern BSD supports it in
37609         addition to optreset, and since coreutils expects it.
37610         (test_getopt_long_only): New test.
37611         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37612         glibc shortcomings with 'W;', and enforcement of optind=0.
37613         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37614         Likewise.
37615
37616 2009-12-21  Bruno Haible  <bruno@clisp.org>
37617
37618         localename: Improvements for MacOS X and Cygwin.
37619         * lib/localename.h (gl_locale_name_environ): New declaration.
37620         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37621         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37622         (gl_locale_name_posix): Invoke it.
37623         (gl_locale_name_default): Add comments. Use Windows native API also on
37624         Cygwin.
37625
37626 2009-12-21  Bruno Haible  <bruno@clisp.org>
37627
37628         Update list of Win32 locale ids.
37629         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37630         (LANG_SAMI): Renamed from LANG_SAAMI.
37631         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37632         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37633         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37634         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37635         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37636         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37637         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37638         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37639         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37640         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37641         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37642         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37643         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37644         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37645         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37646         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37647         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37648         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37649         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37650         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37651         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37652         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37653         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37654         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37655         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37656         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37657         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37658         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37659         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37660         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37661         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37662         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37663         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37664         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37665         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37666         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37667         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37668         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37669         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37670         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37671         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37672         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37673         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37674         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37675         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37676         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37677         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37678         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37679         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37680         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37681         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37682         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37683         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37684         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37685         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37686         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37687         Add more languages and countries for Sami, Sorbian. Add more countries
37688         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37689         for Pashto. Change country for Syriac, Tswana.
37690
37691 2009-12-21  Eric Blake  <ebb9@byu.net>
37692
37693         test-utimens: avoid spurious failure
37694         * tests/test-chown.h (nap): Factor...
37695         * tests/nap.h: ...into new file.
37696         * tests/test-lchown.h (nap): Avoid duplication.
37697         * tests/test-utimens-common.h (nap): Use shared implementation,
37698         necessary on file systems with 1-second resolution.
37699         * modules/chown-tests (Files): Include new file.
37700         * modules/fdutimensat-tests (Files): Likewise.
37701         * modules/futimens-tests (Files): Likewise.
37702         * modules/lchown-tests (Files): Likewise.
37703         * modules/openat-tests (Files): Likewise.
37704         * modules/utimens-tests (Files): Likewise.
37705         * modules/utimensat-tests (Files): Likewise.
37706
37707 2009-12-19  Eric Blake  <ebb9@byu.net>
37708
37709         futimens, utimensat: work around Linux bug
37710         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37711         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37712         * lib/utimensat.c (rpl_utimensat): Work around it.
37713         * lib/futimens.c (rpl_futimens): Adjust comment.
37714
37715         utimens: work around Linux ctime bug
37716         * lib/utimens.c (detect_ctime_bug): New helper function.
37717         (update_timespec): Differentiate between workaround needed for
37718         this bug vs. what is needed for systems that lack utimensat.
37719         (fdutimens, lutimens): Work around bug.
37720
37721         utimens: check for ctime update
37722         * tests/test-utimens-common.h (check_ctime): Define.
37723         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37724         * tests/test-futimens.h (test_futimens): Likewise.
37725         * tests/test-lutimens.h (test_lutimens): Likewise.
37726         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37727         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37728
37729 2009-12-19  Bruno Haible  <bruno@clisp.org>
37730
37731         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37732         * tests/test-dprintf-posix2.sh: New file.
37733         * tests/test-dprintf-posix2.c: New file.
37734         * modules/dprintf-posix-tests (Files): Add them.
37735         (configure.ac): Check for getrlimit and setrlimit.
37736         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37737
37738 2009-12-19  Bruno Haible  <bruno@clisp.org>
37739
37740         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37741         * tests/test-fprintf-posix3.sh: New file.
37742         * tests/test-fprintf-posix3.c: New file.
37743         * modules/fprintf-posix-tests (Files): Add them.
37744         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37745
37746 2009-12-19  Eric Blake  <ebb9@byu.net>
37747
37748         dirfd: fix prototype
37749         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37750         * lib/dirfd.c (dirfd): Likewise.
37751
37752         canonicalize: reduce memory usage
37753         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37754         allocation to size.
37755         Reported by Solar Designer <solar@openwall.com>.
37756
37757 2009-12-19  Bruno Haible  <bruno@clisp.org>
37758
37759         New module attribute 'Applicability'.
37760         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37761         * gnulib-tool: New option --extract-applicability.
37762         (func_usage): Document it.
37763         (sed_extract_prog): Recognize it.
37764         (func_get_applicability): New function.
37765         (func_import): Generalize handling of 'link-warning' module.
37766         * modules/link-warning (Applicability): New section.
37767         * modules/arg-nonnull (Applicability): New section.
37768         Repoted by Simon Josefsson <simon@josefsson.org>.
37769
37770 2009-12-19  Bruno Haible  <bruno@clisp.org>
37771
37772         fflush: tweak
37773         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37774         * lib/fseeko.c (rpl_fseeko): Likewise.
37775
37776 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37777
37778         * lib/gl_list.h: Fix typo in comment.
37779
37780 2009-12-16  Eric Blake  <ebb9@byu.net>
37781
37782         fcntl: use to simplify other modules
37783         * modules/cloexec (Depends-on): Add fcntl.
37784         * modules/fchdir (Depends-on): Likewise.
37785         * modules/fd-safer-flag (Depends-on): Likewise.
37786         * modules/unistd-safer (Depends-on): Likewise.
37787         * modules/dup3 (configure.ac): Set module indicator.
37788         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37789         missing.
37790         * lib/fchdir.c (_gl_register_dup): Fix comment.
37791         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37792         * lib/dup-safer.c (dup_safer): Likewise.
37793         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37794         * lib/dup3.c (dup3): Likewise.
37795         * tests/test-fchdir.c (main): Enhance test.
37796         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
37797
37798         fcntl: port portions of fcntl to mingw
37799         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37800         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37801         replacement for mingw.
37802         * modules/fcntl (Description): Update.
37803         (Depends-on): Add dup2.
37804         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37805         * modules/fcntl-h (Makefile.am): Substitute it.
37806         * lib/fcntl.in.h (fcntl): Update declaration.
37807         (F_DUPFD, F_GETFD): New macros, when needed.
37808         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37809         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37810         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37811         we now guarantee.
37812
37813         fcntl: work around cygwin bug in F_DUPFD
37814         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37815         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37816         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37817         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37818         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37819
37820         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37821         * modules/fcntl (Files): List new files.
37822         (configure.ac): Run a test.
37823         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37824         * lib/fcntl.c (rpl_fcntl): Likewise.
37825         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37826         (gl_FCNTL_H): Always replace fcntl.h.
37827         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37828         * lib/fcntl.in.h (fcntl): Declare replacement.
37829         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37830         needed, plus a witness.
37831         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37832         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37833         * tests/test-fcntl.c: New file.
37834         * modules/fcntl-tests: Likewise.
37835
37836         binary-io: avoid potential compilation warning
37837         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37838         directives.
37839
37840         fflush: avoid compilation error on NetBSD
37841         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37842         between off_t and fpos_t, since the latter is sometimes a struct.
37843         * lib/fseeko.c (rpl_fseeko): Likewise.
37844         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37845
37846 2009-12-15  Eric Blake  <ebb9@byu.net>
37847
37848         fcntl-h, stdio, sys_ioctl: fix declarations
37849         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37850         function must not take arguments.
37851         * lib/sys_ioctl.in.h (ioctl): Likewise.
37852         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37853         (open): Add a link warning.
37854
37855 2009-12-15  Jim Meyering  <meyering@redhat.com>
37856
37857         areadlink, areadlink-with-size: relax license to LGPLv2+
37858         * modules/areadlink (License): Relax to LGPLv2+.
37859         * modules/areadlink-with-size (License): Likewise.
37860
37861 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37862             Bruno Haible  <bruno@clisp.org>
37863
37864         *printf: Fix memory leak.
37865         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37866         * lib/vfprintf.c (vfprintf): Likewise.
37867         * lib/dprintf.c (dprintf): Likewise.
37868         * lib/vdprintf.c (vdprintf): Likewise.
37869
37870 2009-12-14  Eric Blake  <ebb9@byu.net>
37871
37872         accept4: adjust module dependencies
37873         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37874
37875         utimens: one more try at avoiding compiler warning
37876         * lib/utimens.c (lutimens): Lower scope of result.
37877
37878 2009-12-13  Bruno Haible  <bruno@clisp.org>
37879
37880         Move the malloc checking from module 'list' to new module 'xlist'.
37881         * modules/xlist: New file.
37882         * lib/gl_xlist.h: New file.
37883         * lib/gl_xlist.c: New file.
37884         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37885         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37886         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37887         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37888         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37889         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37890         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37891         gl_sortedlist_nx_add): New declarations.
37892         (struct gl_list_implementation): Rename and change methods accordingly.
37893         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37894         (gl_list_nx_create): Renamed from gl_list_create.
37895         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37896         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37897         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37898         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37899         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37900         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37901         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37902         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37903         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37904         gl_list_create_empty.
37905         (gl_list_nx_create): Renamed from gl_list_create.
37906         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37907         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37908         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37909         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37910         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37911         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37912         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37913         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37914         * lib/gl_array_list.c: Don't include xalloc.h.
37915         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37916         NULL upon out-of-memory.
37917         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37918         out-of-memory.
37919         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37920         Change return type to 'int'.
37921         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37922         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37923         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37924         upon out-of-memory.
37925         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37926         upon out-of-memory.
37927         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37928         upon out-of-memory.
37929         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37930         upon out-of-memory.
37931         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37932         out-of-memory.
37933         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37934         Update.
37935         (gl_array_list_implementation): Update.
37936         * lib/gl_carray_list.c: Don't include xalloc.h.
37937         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37938         Return NULL upon out-of-memory.
37939         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37940         out-of-memory.
37941         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37942         Change return type to 'int'.
37943         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37944         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37945         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37946         upon out-of-memory.
37947         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37948         upon out-of-memory.
37949         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37950         out-of-memory.
37951         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37952         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37953         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37954         Update.
37955         (gl_carray_list_implementation): Update.
37956         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37957         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37958         gl_linked_create_empty. Return NULL upon out-of-memory.
37959         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37960         out-of-memory.
37961         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37962         Change return type to 'int'. Return -1 upon out-of-memory.
37963         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37964         out-of-memory.
37965         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37966         upon out-of-memory.
37967         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37968         upon out-of-memory.
37969         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37970         NULL upon out-of-memory.
37971         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37972         upon out-of-memory.
37973         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37974         out-of-memory.
37975         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37976         Update.
37977         * lib/gl_linked_list.c: Don't include xalloc.h.
37978         (gl_linked_list_implementation): Update.
37979         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37980         (add_to_bucket): Change return type to 'int'.
37981         (gl_linkedhash_list_implementation): Update.
37982         * lib/gl_anytree_list1.h (free_subtree): New function.
37983         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37984         gl_tree_create_empty. Return NULL upon out-of-memory.
37985         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37986         Change return type to 'int'. Return -1 upon out-of-memory.
37987         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37988         out-of-memory.
37989         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37990         (gl_tree_remove_node): New function, moved here from
37991         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37992         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37993         Update.
37994         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37995         malloc, not xmalloc. Return NULL upon out-of-memory.
37996         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37997         out-of-memory.
37998         (gl_tree_remove_node_from_tree): New function, extracted from
37999         gl_tree_remove_node.
38000         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38001         upon out-of-memory.
38002         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38003         out-of-memory.
38004         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38005         upon out-of-memory.
38006         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38007         upon out-of-memory.
38008         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38009         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
38010         not xmalloc. Return NULL upon out-of-memory.
38011         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38012         out-of-memory.
38013         (gl_tree_remove_node_from_tree): New function, extracted from
38014         gl_tree_remove_node.
38015         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38016         upon out-of-memory.
38017         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38018         out-of-memory.
38019         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38020         upon out-of-memory.
38021         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38022         upon out-of-memory.
38023         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38024         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
38025         gl_anytree_list1.h before gl_anyavltree_list2.h.
38026         (gl_avltree_list_implementation): Update.
38027         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
38028         gl_anytree_list1.h before gl_anyavltree_list2.h.
38029         (gl_rbtree_list_implementation): Update.
38030         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
38031         Change return type to 'int'. Return -1 upon out-of-memory. Use
38032         __builtin_expect.
38033         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
38034         (gl_avltreehash_list_implementation): Update.
38035         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
38036         (gl_rbtreehash_list_implementation): Update.
38037         * modules/array-list (Depends-on): Remove xalloc.
38038         * modules/carray-list (Depends-on): Likewise.
38039         * modules/linked-list (Depends-on): Likewise.
38040         * modules/linkedhash-list (Depends-on): Likewise.
38041         * modules/avltree-list (Depends-on): Likewise.
38042         * modules/rbtree-list (Depends-on): Likewise.
38043         * modules/avltreehash-list (Depends-on): Likewise.
38044         * modules/rbtreehash-list (Depends-on): Likewise.
38045
38046         * modules/xsublist: New file.
38047         * lib/gl_xsublist.h: New file.
38048         * lib/gl_xsublist.c: New file.
38049         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
38050         (gl_sublist_nx_create): New declaration.
38051         * lib/gl_sublist.c: Don't include xalloc.h.
38052         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
38053         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
38054         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
38055         Change return type to 'int'. Return -1 upon out-of-memory.
38056         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
38057         upon out-of-memory.
38058         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
38059         NULL upon out-of-memory.
38060         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
38061         upon out-of-memory.
38062         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
38063         NULL upon out-of-memory.
38064         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
38065         NULL upon out-of-memory.
38066         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
38067         upon out-of-memory.
38068         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
38069         (gl_sublist_list_implementation): Update.
38070         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
38071         upon out-of-memory.
38072         * modules/sublist (Depends-on): Remove xalloc.
38073
38074         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
38075         * tests/test-carray_list.c: Likewise.
38076         * tests/test-linked_list.c: Likewise.
38077         * tests/test-linkedhash_list.c: Likewise.
38078         * tests/test-avltree_list.c: Likewise.
38079         * tests/test-rbtree_list.c: Likewise.
38080         * tests/test-avltreehash_list.c: Likewise.
38081         * tests/test-rbtreehash_list.c: Likewise.
38082         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
38083         * modules/carray-list-tests (Makefile.am): Likewise.
38084         * modules/linked-list-tests (Makefile.am): Likewise.
38085         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38086         * modules/avltree-list-tests (Makefile.am): Likewise.
38087         * modules/rbtree-list-tests (Makefile.am): Likewise.
38088         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38089         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38090
38091         * NEWS: Mention the changes.
38092
38093         * lib/clean-temp.c: Include gl_xlist.h.
38094         * modules/clean-temp (Depends-on): Add xlist.
38095
38096         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
38097         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
38098
38099         * tests/test-array_oset.c: Include gl_xlist.h.
38100         * modules/array-oset-tests (Depends-on): Add xlist.
38101
38102         Reported by José E. Marchesi <jemarch@gnu.org>.
38103
38104 2009-12-13  Bruno Haible  <bruno@clisp.org>
38105
38106         Move the malloc checking from module 'oset' to new module 'xoset'.
38107         * modules/xoset: New file.
38108         * lib/gl_xoset.h: New file.
38109         * lib/gl_xoset.c: New file.
38110         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
38111         declarations.
38112         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
38113         (struct gl_oset_implementation): Rename and change methods accordingly.
38114         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
38115         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38116         'int'. Mark as __warn_unused_result__.
38117         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
38118         gl_oset_create_empty.
38119         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38120         'int'.
38121         * lib/gl_array_oset.c: Don't include xalloc.h.
38122         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
38123         malloc, not xmalloc.
38124         (grow): Change return type to 'int'. Don't call xalloc_die.
38125         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
38126         to 'int'.
38127         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
38128         'int'.
38129         (gl_array_oset_implementation): Update.
38130         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
38131         gl_tree_create_empty.
38132         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
38133         'int'.
38134         * lib/gl_avltree_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_avltree_oset_implementation): Update.
38142         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
38143         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38144         xmalloc.
38145         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38146         not xmalloc.
38147         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38148         xmalloc.
38149         (gl_rbtree_oset_implementation): Update.
38150         * modules/array-oset (Depends-on): Remove xalloc.
38151         * modules/avltree-oset (Depends-on): Likewise.
38152         * modules/rbtree-oset (Depends-on): Likewise.
38153         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
38154         * tests/test-avltree_oset.c: Likewise.
38155         * tests/test-rbtree_oset.c: Likewise.
38156         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
38157         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
38158         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38159         * NEWS: Mention the change.
38160
38161 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
38162
38163         maint.mk: allow a project to override release-prep commands
38164         * top/maint.mk (alpha, beta, stable): Move release-preparatory
38165         commands into a new rule.
38166         (release-prep): New rule.
38167         (release-prep-hook): New overridable variable.
38168
38169 2009-12-13  Bruno Haible  <bruno@clisp.org>
38170
38171         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
38172
38173 2009-12-13  Jim Meyering  <meyering@redhat.com>
38174
38175         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
38176         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
38177
38178 2009-12-12  Bruno Haible  <bruno@clisp.org>
38179
38180         duplocale: Tweak.
38181         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
38182
38183 2009-12-12  Karl Berry  <karl@gnu.org>
38184
38185         * config/srclist.txt (strtoll.c): tab changes, no more sync.
38186
38187 2009-12-12  Bruno Haible  <bruno@clisp.org>
38188
38189         * m4/po.m4: Undo incorrect untabification.
38190
38191 2009-12-12  Bruno Haible  <bruno@clisp.org>
38192
38193         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
38194         * modules/c-strtod (Depends-on): Add locale.
38195         * modules/c-strtold (Depends-on): Likewise.
38196
38197 2009-12-12  Bruno Haible  <bruno@clisp.org>
38198
38199         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
38200
38201 2009-12-11  Eric Blake  <ebb9@byu.net>
38202
38203         setenv: relax requirement in light of POSIX ruling
38204         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
38205         not NULL.
38206         * tests/test-setenv.c (main): Relax test.
38207         * tests/test-unsetenv.c (main): Likewise.
38208         * doc/posix-functions/setenv.texi (setenv): Document this.
38209         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38210
38211 2009-12-11  Bruno Haible  <bruno@clisp.org>
38212
38213         New module 'fd-safer-flag'.
38214         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
38215         * lib/dup-safer.c (dup_safer_flag): Remove function.
38216         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
38217         * lib/fd-safer.c (fd_safer_flag): Remove function.
38218         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
38219         * modules/cloexec (configure.ac): Drop indicator macro.
38220         * modules/fd-safer-flag: New file.
38221         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
38222         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
38223         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
38224
38225 2009-12-11  Bruno Haible  <bruno@clisp.org>
38226
38227         Tests for module 'nl_langinfo'.
38228         * modules/nl_langinfo-tests: New file.
38229         * tests/test-nl_langinfo.sh: New file.
38230         * tests/test-nl_langinfo.c: New file.
38231
38232         New module 'nl_langinfo'.
38233         * lib/nl_langinfo.c: New file.
38234         * m4/nl_langinfo.m4: New file.
38235         * modules/nl_langinfo: New file.
38236         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
38237
38238 2009-12-11  Bruno Haible  <bruno@clisp.org>
38239
38240         Tests for module 'langinfo'.
38241         * modules/langinfo-tests: New file.
38242         * tests/test-langinfo.c: New file.
38243
38244         New module 'langinfo'.
38245         * lib/langinfo.in.h: New file.
38246         * m4/langinfo_h.m4: New file.
38247         * modules/langinfo: New file.
38248         * doc/posix-headers/langinfo.texi: Mention the new module.
38249
38250 2009-12-11  Bruno Haible  <bruno@clisp.org>
38251
38252         * lib/config.charset: Untabify.
38253
38254 2009-12-11  Bruno Haible  <bruno@clisp.org>
38255
38256         * modules/unistd-safer (configure.ac): Drop indicator macro.
38257
38258 2009-12-11  Bruno Haible  <bruno@clisp.org>
38259
38260         Move pipe2-safer code to its own file.
38261         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
38262         * lib/pipe-safer.c (pipe2_safer): Remove function.
38263         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
38264         (Makefile.am): Add it to lib_SOURCES.
38265
38266 2009-12-10  Bruno Haible  <bruno@clisp.org>
38267
38268         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
38269
38270 2009-12-10  Bruno Haible  <bruno@clisp.org>
38271
38272         Declare which arguments expect non-NULL values, for GCC and clang.
38273         * build-aux/arg-nonnull.h: New file.
38274         * modules/arg-nonnull: New file.
38275         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
38276         (inet_ntop, inet_pton): Use it.
38277         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
38278         (closedir, dirfd, opendir, scandir, alphasort): Use it.
38279         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
38280         (open, openat): Use it.
38281         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
38282         (fnmatch): Use it.
38283         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
38284         (getopt, getopt_long, getopt_long_only): Use it.
38285         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
38286         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
38287         Use it.
38288         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
38289         (iconv_open): Use it.
38290         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
38291         (strtoimax, strtoumax): Use it.
38292         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
38293         (duplocale): Use it.
38294         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
38295         (frexp, frexpl): Use it.
38296         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
38297         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
38298         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
38299         (tsearch, tfind, tdelete, twalk): Use it.
38300         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
38301         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
38302         sigpending): Use it.
38303         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
38304         (posix_spawn, posix_spawnp, posix_spawnattr_init,
38305         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
38306         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
38307         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
38308         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
38309         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
38310         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
38311         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
38312         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
38313         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
38314         Use it.
38315         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
38316         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
38317         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
38318         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
38319         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
38320         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
38321         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
38322         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
38323         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
38324         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
38325         strtoull, unsetenv): Use it.
38326         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
38327         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
38328         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
38329         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
38330         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
38331         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
38332         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
38333         (strcasecmp, strncasecmp): Use it.
38334         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
38335         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
38336         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
38337         rpl_setsockopt): Use it.
38338         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
38339         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
38340         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
38341         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
38342         (gettimeofday): Use it.
38343         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
38344         (times): Use it.
38345         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
38346         (uname): Use it.
38347         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
38348         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
38349         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
38350         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
38351         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
38352         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
38353         unlinkat, write): Use it.
38354         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
38355         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
38356         * lib/argv-iter.h: Include arg-nonnull.h.
38357         (_ATTRIBUTE_NONNULL_): Remove macro.
38358         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
38359         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
38360         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
38361         optimization.
38362         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
38363         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
38364         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
38365         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
38366         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
38367         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
38368         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
38369         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
38370         * modules/arpa_inet (Depends-on): Add arg-nonnull.
38371         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
38372         * modules/dirent (Depends-on): Add arg-nonnull.
38373         (Makefile.am): Insert arg-nonnull.h into dirent.h.
38374         * modules/fcntl-h (Depends-on): Add arg-nonnull.
38375         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
38376         * modules/fnmatch (Depends-on): Add arg-nonnull.
38377         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
38378         * modules/getopt-posix (Depends-on): Add arg-nonnull.
38379         (Makefile.am): Insert arg-nonnull.h into getopt.h.
38380         * modules/glob (Depends-on): Add arg-nonnull.
38381         (Makefile.am): Insert arg-nonnull.h into glob.h.
38382         * modules/iconv_open (Depends-on): Add arg-nonnull.
38383         (Makefile.am): Insert arg-nonnull.h into iconv.h.
38384         * modules/inttypes (Depends-on): Add arg-nonnull.
38385         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
38386         * modules/locale (Depends-on): Add arg-nonnull.
38387         (Makefile.am): Insert arg-nonnull.h into locale.h.
38388         * modules/math (Depends-on): Add arg-nonnull.
38389         (Makefile.am): Insert arg-nonnull.h into math.h.
38390         * modules/netdb (Depends-on): Add arg-nonnull.
38391         (Makefile.am): Insert arg-nonnull.h into netdb.h.
38392         * modules/search (Depends-on): Add arg-nonnull.
38393         (Makefile.am): Insert arg-nonnull.h into search.h.
38394         * modules/signal (Depends-on): Add arg-nonnull.
38395         (Makefile.am): Insert arg-nonnull.h into signal.h.
38396         * modules/spawn (Depends-on): Add arg-nonnull.
38397         (Makefile.am): Insert arg-nonnull.h into spawn.h.
38398         * modules/stdio (Depends-on): Add arg-nonnull.
38399         (Makefile.am): Insert arg-nonnull.h into stdio.h.
38400         * modules/stdlib (Depends-on): Add arg-nonnull.
38401         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
38402         * modules/string (Depends-on): Add arg-nonnull.
38403         (Makefile.am): Insert arg-nonnull.h into string.h.
38404         * modules/strings (Depends-on): Add arg-nonnull.
38405         (Makefile.am): Insert arg-nonnull.h into strings.h.
38406         * modules/sys_socket (Depends-on): Add arg-nonnull.
38407         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
38408         * modules/sys_stat (Depends-on): Add arg-nonnull.
38409         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
38410         * modules/sys_time (Depends-on): Add arg-nonnull.
38411         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
38412         * modules/sys_times (Depends-on): Add arg-nonnull.
38413         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
38414         * modules/sys_utsname (Depends-on): Add arg-nonnull.
38415         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
38416         * modules/time (Depends-on): Add arg-nonnull.
38417         (Makefile.am): Insert arg-nonnull.h into time.h.
38418         * modules/unistd (Depends-on): Add arg-nonnull.
38419         (Makefile.am): Insert arg-nonnull.h into unistd.h.
38420         * modules/wchar (Depends-on): Add arg-nonnull.
38421         (Makefile.am): Insert arg-nonnull.h into wchar.h.
38422         * modules/argv-iter (Depends-on): Add arg-nonnull.
38423         * tests/test-canonicalize.c (null_ptr): New function.
38424         (main): Use it.
38425         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
38426         (main): Use it.
38427         * tests/test-memmem.c (null_ptr): New function.
38428         (main): Use it.
38429         Reported by Jim Meyering.
38430
38431 2009-12-10  Bruno Haible  <bruno@clisp.org>
38432
38433         Use spaces for indentation, not tabs.
38434         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
38435         * m4/*.m4: Untabify.
38436         * build-aux/*.h: Untabify.
38437         * tests/**/*.[hc]: Untabify.
38438         * README: New section "Indent with spaces, not TABs", based on
38439         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
38440         * NEWS: Mention the change.
38441
38442 2009-12-10  Bruno Haible  <bruno@clisp.org>
38443
38444         pty test: Fix link error.
38445         * modules/pty-tests (Makefile.am): Add the default LDADD value to
38446         test_pty_LDADD.
38447
38448 2009-12-07  Simon Josefsson  <simon@josefsson.org>
38449
38450         * modules/pty: New file.
38451         * modules/pty-tests: New file.
38452         * m4/pty.m4: New file.
38453         * tests/test-pty.c: New file.
38454         * doc/glibc-headers/pty.texi: Modified.
38455         * doc/glibc-functions/forkpty.texi: Modified.
38456         * doc/glibc-functions/openpty.texi: Modified.
38457
38458 2009-12-10  Bruno Haible  <bruno@clisp.org>
38459
38460         Avoid syntax error in C++ mode.
38461         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
38462
38463 2009-12-10  Bruno Haible  <bruno@clisp.org>
38464
38465         Use sed with option -e.
38466         * gnulib-tool (func_version, func_emit_copyright_notice,
38467         func_emit_initmacro_end, func_import, func_create_testdir): Pass
38468         option -e to sed.
38469         * modules/link-warning (Makefile.am): Likewise.
38470
38471 2009-12-10  Jim Meyering  <meyering@redhat.com>
38472
38473         mgetgroups: do not write bytes beyond end of malloc'd buffer
38474         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
38475         username, we call getgroups with a one-element-shorter buffer,
38476         but still told it the length was original, max_n_groups.
38477
38478 2009-12-09  Eric Blake  <ebb9@byu.net>
38479
38480         cloexec: relax license
38481         * modules/cloexec (Maintainer): Add myself.
38482         (License): Use LGPL, not GPL.
38483
38484         link-warning: optimize generation
38485         * modules/link-warning (Makefile.am): Reduce process usage.
38486
38487 2009-12-09  Bruno Haible  <bruno@clisp.org>
38488
38489         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
38490         workaround was added on 2009-11-17.
38491
38492 2009-12-09  Jim Meyering  <meyering@redhat.com>
38493             Bruno Haible  <bruno@clisp.org>
38494
38495         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
38496         * modules/link-warning (Makefile.am): Make the comment-removing sed
38497         command more robust in the face of bootstrap-prepended comment lines.
38498
38499 2009-12-09  Bruno Haible  <bruno@clisp.org>
38500
38501         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
38502         most one group.
38503
38504 2009-12-09  Simon Josefsson <simon@josefsson.org>
38505             Bruno Haible  <bruno@clisp.org>
38506
38507         * build-aux/link-warning.h: Add copyright notice.
38508         * modules/link-warning (Makefile.am): Generate link-warning.h from
38509         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
38510         * NEWS: Mention change in link-warning module.
38511         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
38512         * modules/dirent (Makefile.am): Add dependency to dirent.h.
38513         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
38514         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
38515         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
38516         * modules/math (Makefile.am): Add dependency to math.h.
38517         * modules/search (Makefile.am): Add dependency to search.h.
38518         * modules/signal (Makefile.am): Add dependency to signal.h.
38519         * modules/spawn (Makefile.am): Add dependency to spawn.h.
38520         * modules/stdio (Makefile.am): Add dependency to stdio.h.
38521         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
38522         * modules/string (Makefile.am): Add dependency to string.h.
38523         * modules/strings (Makefile.am): Add dependency to strings.h.
38524         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
38525         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
38526         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
38527         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
38528         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
38529         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
38530         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
38531         * modules/unistd (Makefile.am): Add dependency to unistd.h.
38532         * modules/wchar (Makefile.am): Add dependency to wchar.h.
38533
38534 2009-12-09  Bruno Haible  <bruno@clisp.org>
38535
38536         fchdir: Optimize away rpl_fstat when possible.
38537         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
38538         REPLACE_OPEN_DIRECTORY.
38539         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
38540
38541 2009-12-09  Bruno Haible  <bruno@clisp.org>
38542
38543         * lib/fchdir.c: Update comment.
38544
38545 2009-12-09  Bruno Haible  <bruno@clisp.org>
38546
38547         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
38548
38549 2009-12-08  Eric Blake  <ebb9@byu.net>
38550
38551         fchdir: avoid memory leak on re-registration.
38552         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
38553
38554 2009-12-08  Jim Meyering  <meyering@redhat.com>
38555
38556         init.sh: avoid Solaris 10 /bin/sh portability problem
38557         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38558         sourced script:
38559           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38560           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38561           bar
38562         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38563         and two tests used that idiom.
38564         * tests/init.sh: Update suggested usage comments.
38565         (path_prepend_): New function, to be used in place
38566         of the --src-path=DIR option.
38567         (setup_): Move PATH-prepending code into path_prepend_.
38568         * tests/test-pread.sh: Adapt to new usage.
38569         * tests/test-xalloc-die.sh: Likewise.
38570
38571 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38572
38573         * doc/gnulib.texi (Glibc pty.h): Add.
38574         * doc/glibc-functions/forkpty.texi: Add.
38575         * doc/glibc-functions/openpty.texi: Add.
38576         Suggested by Bruno Haible.
38577
38578 2009-12-08  Eric Blake  <ebb9@byu.net>
38579
38580         fchdir: fix logic bugs
38581         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38582         * tests/test-fchdir.c (main): Enhance test.
38583         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38584         is in use.
38585
38586         dup2: fix logic bugs
38587         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38588         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38589         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38590         exists.
38591         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38592
38593 2009-12-07  Eric Blake  <ebb9@byu.net>
38594
38595         unlink: fix m4 detection
38596         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38597
38598         unistd-safer: add unit test
38599         * modules/unistd-safer-tests: New file.
38600         * tests/test-dup-safer.c: Likewise.
38601         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38602         * tests/test-dup2.c (setmode): Likewise.
38603         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38604
38605         cloexec: preserve text vs. binary across dup_cloexec
38606         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38607         mode.
38608         * modules/dup2-tests (Depends-on): Add binary-io.
38609         * modules/cloexec-tests (Depends-on): Likewise.
38610         * tests/test-dup2.c (setmode, is_mode): New helpers.
38611         (main): Add tests that translation mode is preserved.
38612         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38613         Reported by Bruno Haible.
38614
38615         mgetgroups: reduce duplicate listings
38616         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38617         resulting array.
38618         * tests/test-chown.h (test_chown): Simplify client.
38619         * tests/test-lchown.h (test_lchown): Likewise.
38620
38621 2009-12-06  Bruno Haible  <bruno@clisp.org>
38622
38623         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38624         value.
38625
38626 2009-12-06  Bruno Haible  <bruno@clisp.org>
38627
38628         * lib/progname.c: Include stdio.h, stdlib.h.
38629         (set_program_name): Reject a NULL argument.
38630
38631 2009-12-05  Eric Blake  <ebb9@byu.net>
38632
38633         pipe2-safer: new module
38634         * modules/pipe2-safer: New file.
38635         * lib/unistd-safer.h (pipe2_safer): New prototype.
38636         * lib/unistd--.h (pipe2): New wrapper.
38637         * lib/pipe-safer.c (pipe2_safer): New function.
38638         * modules/pipe (Depends-on): Add pipe2-safer.
38639         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38640
38641         stdlib-safer: preserve cloexec flag for mkostemp[s]
38642         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38643         fd_safer_flag.
38644
38645         unistd-safer: allow preservation of cloexec status via flag
38646         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38647         prototypes.
38648         * lib/dup-safer.c (dup_safer_flag): New function.
38649         * lib/fd-safer.c (fd_safer_flag): Likewise.
38650         * modules/cloexec (configure.ac): Set witness.
38651
38652         test-dup2: enhance test
38653         * modules/dup2-tests (Depends-on): Add cloexec.
38654         * tests/test-dup2.c (main): Enhance test.
38655
38656         cloexec: add dup_cloexec
38657         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38658         header and comments.
38659         * lib/cloexec.c (set_cloexec_flag): Add comments.
38660         (dup_cloexec): New function, with mingw implementation borrowed
38661         from...
38662         * lib/w32spawn.h (dup_noinherit): ...here.
38663         * modules/execute (Depends-on): Add cloexec.
38664         * modules/pipe (Depends-on): Likewise.
38665         * modules/cloexec (Depends-on): Add dup2.
38666         * modules/cloexec-tests (Files): New file.
38667         * tests/test-cloexec.c: Likewise.
38668
38669         test-xalloc-die: fix test for mingw
38670         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38671         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38672         directory and .exe suffix off argv[0] output.
38673
38674         test-fseeko: fix test for mingw
38675         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38676         than undefining fseek, so test will pass on mingw.
38677
38678 2009-12-05  Bruno Haible  <bruno@clisp.org>
38679
38680         * lib/progname.h (set_program_name): Clarify specification.
38681         * lib/progname.c (set_program_name): Likewise.
38682         Reported by Jim Meyering.
38683
38684 2009-12-05  Jim Meyering  <meyering@redhat.com>
38685
38686         maint.mk: backslash-escape parens in default regexp
38687         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38688         backslash-escape the literal parentheses.
38689
38690         maint.mk: news-date-check: use grep -E
38691         * top/maint.mk (today): Define a Make variable, not a...
38692         (news-date-check): ...shell variable.
38693         (news-date-regexp): Use the Make variable.
38694         Use grep's -E option.  Change the failing diagnostic to mention
38695         the variable, $(news-date-regexp).
38696
38697 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38698
38699         maintainer-makefile: allow customization of NEWS entry format
38700         * top/maint.mk (news-date-regexp): New overridable variable.
38701         (news-date-check): Use it.
38702
38703 2009-12-04  Eric Blake  <ebb9@byu.net>
38704
38705         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38706         * lib/mgetgroups.h (xgetgroups): New prototype.
38707         * lib/mgetgroups.c (xgetgroups): New wrapper.
38708         (mgetgroups): Handle ENOSYS.
38709         * modules/mgetgroups (Depends-on): Add realloc.
38710         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38711
38712         mgetgroups: avoid argument promotion issues with -1
38713         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38714         for invalid gid_t.
38715         * tests/test-chown.h (getegid, test_chown): Likewise.
38716         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38717
38718 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38719
38720         exclude: Fix header file problems.
38721         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38722
38723 2009-12-01  Jim Meyering  <meyering@redhat.com>
38724
38725         fts: fts_open: do not let an empty string cause immediate failure
38726         This is required in support of GNU rm, for which the command
38727         "rm A '' B" must process and remove both A and B, in spite of
38728         the empty string argument.
38729         * lib/fts.c (fts_open): Do not let the presence of an empty string
38730         cause fts_open to fail immediately.  Most fts-using tools must be
38731         able to process all arguments, in order, and can be expected to
38732         diagnose such arguments themselves.
38733
38734 2009-11-30  Eric Blake  <ebb9@byu.net>
38735
38736         utimens: fix compilation error
38737         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38738         Declare variable at right scope.
38739
38740 2009-11-29  Jim Meyering  <meyering@redhat.com>
38741
38742         bootstrap: handle perl-5.11's changed --version output
38743         * build-aux/bootstrap (get_version): Handle perl separately,
38744         since perl-5.11's --version output is different.
38745
38746 2009-11-28  Jim Meyering  <meyering@redhat.com>
38747
38748         userspec: depend on the inttostr module, too
38749         * modules/userspec (Depends-on): Add inttostr.
38750
38751         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38752         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38753         number of MAXUID when it evaluates to (uid_t) -1.
38754         Likewise for group ID.  Reported by Matt McCutchen in
38755         <http://savannah.gnu.org/bugs/?28113>
38756
38757         userspec: reformat to use spaces, not TABs
38758         * lib/userspec.c: Expand TABs to spaces.
38759         Add Emacs' "indent-tabs-mode: nil" hint.
38760
38761 2009-11-27  Eric Blake  <ebb9@byu.net>
38762
38763         getopt-gnu: flush out another BSD bug
38764         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38765         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38766         flush out BSD bug.
38767         * tests/test-getopt.h (test_getopt): End lists with NULL.
38768         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38769         (test_getopt_long_posix): Enhance test.
38770         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38771         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38772         getopt-gnu.
38773         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38774         Likewise.
38775
38776 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38777
38778         * modules/idpriv-droptemp-tests (Notice): Fix text.
38779
38780 2009-11-27  Jim Meyering  <meyering@redhat.com>
38781
38782         test-xalloc-die: avoid spurious failure due to libtool argv difference
38783         In a libtool-enabled project, this test would fail due to a difference
38784         in the emitted program name, e.g.,
38785         -test-xalloc-die: memory exhausted
38786         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38787         Use program to avoid that.
38788         * modules/xalloc-die-tests (Depends-on): Add progname.
38789         * tests/test-xalloc-die.c: Include progname.h".
38790         (program_name): Remove decl.
38791         (main): Call set_program_name.
38792         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38793
38794 2009-11-26  Richard Jones  <rjones@redhat.com>
38795
38796         w32sock: leave win32 error in place.
38797         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38798
38799 2009-11-26  Eric Blake  <ebb9@byu.net>
38800
38801         init.sh: suggest to use skip_ and fail_ functions in comments
38802         * tests/init.sh: Add a sentence.
38803
38804 2009-11-25  Bruno Haible  <bruno@clisp.org>
38805
38806         init.sh: add documentation in comments
38807         * tests/init.sh: Add some developer and user documentation.
38808
38809 2009-11-26  Jim Meyering  <meyering@redhat.com>
38810
38811         init.sh: accommodate even those who specify bogus srcdir manually
38812         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38813         configure-time tests to be sanitized, so that there is no need to
38814         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38815         (with no double quotes) suffices.  However, since tests may be
38816         invoked manually, and since you may explicitly set srcdir to the
38817         name of a directory containing spaces, do quote its uses here.
38818         * tests/test-pread.sh: Likewise.
38819         Suggested by Bruno Haible.
38820
38821         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38822         * tests/test-pread.sh: Write no data into the pipe, because
38823         test-pread actually reads none.  This avoids a diagnostic,
38824         "bash: echo: write error: Broken pipe", that arises in the unusual
38825         event something is ignoring SIGPIPE, and might be interpreted
38826         as some sort of failure.  Reported by Bruno Haible.
38827
38828 2009-11-25  Jim Meyering  <meyering@redhat.com>
38829
38830         test-pread: cover failure with ESPIPE and EINVAL
38831         * tests/test-pread.c (main): Test for failure, too.
38832         * tests/test-pread.sh: Invoke with stdin on a pipe.
38833         Suggested by Eric Blake.
38834
38835         pread: improvement and fix
38836         * modules/pread (Depends-on): Depend on lseek, for portability to
38837         e.g., mingw.  Suggested by Eric Blake.
38838         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38839
38840         unistd.in.h: correct declaration of pread
38841         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38842         Reported by Richard W.M. Jones.
38843
38844         test-pread.sh: distribute the test script
38845         * modules/pread-tests (Files): Include test-pread.sh.
38846
38847         test-pread.sh: clean up
38848         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38849         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38850         That is unnecessary, since it's always ".".
38851         Suggestion from Eric Blake.
38852
38853         test-pread.sh: make executable
38854         * tests/test-pread.sh: Set executable bit.
38855         Reported by Eric Blake.
38856
38857         correct typo in test-pread.sh
38858         * tests/test-pread.sh: Add #! line.
38859
38860         test pread
38861         * tests/test-pread.c: New file.
38862         * tests/test-pread.sh: Likewise.
38863         * modules/pread-tests: Likewise.
38864
38865         pread: new module
38866         * modules/pread: New file.
38867         * lib/unistd.in.h (pread): Define/declare.
38868         * lib/pread.c (pread): New file.
38869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38870         * modules/unistd (Makefile.am): Substitute witnesses.
38871         * doc/posix-functions/pread.texi (pread): Update.
38872         * MODULES.html.sh: Add pread.
38873
38874 2009-11-25  Jim Meyering  <meyering@redhat.com>
38875
38876         tests/init.sh: new file to be used via most *.sh tests
38877         * tests/init.sh: New file.
38878
38879 2009-11-25  Eric Blake  <ebb9@byu.net>
38880
38881         utimens: work around older Linux failure with symlinks
38882         * lib/utimens.c (lutimensat_works_really): New variable.
38883         (fdutimens, lutimens): Use it to manage kernels that support
38884         nanosecond times on files, but not on symlinks.
38885         Reported by OndÅ™ej Vašík.
38886
38887         utimes: fix configure grammar
38888         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38889
38890 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38891
38892         regex: Fix fastmap for multibyte character ranges.
38893         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38894         characters when a multibyte character range is included.
38895
38896 2009-11-22  Andy Wingo  <wingo@pobox.com>
38897
38898         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38899         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38900
38901 2009-11-24  Bruno Haible  <bruno@clisp.org>
38902
38903         doc: Most *_l functions exist in MacOS X 10.5.
38904         * doc/posix-functions/duplocale.texi: Update platforms list.
38905         * doc/posix-functions/freelocale.texi: Likewise.
38906         * doc/posix-functions/newlocale.texi: Likewise.
38907         * doc/posix-functions/uselocale.texi: Likewise.
38908         * doc/posix-functions/isalnum_l.texi: Likewise.
38909         * doc/posix-functions/isalpha_l.texi: Likewise.
38910         * doc/posix-functions/isblank_l.texi: Likewise.
38911         * doc/posix-functions/iscntrl_l.texi: Likewise.
38912         * doc/posix-functions/isdigit_l.texi: Likewise.
38913         * doc/posix-functions/isgraph_l.texi: Likewise.
38914         * doc/posix-functions/islower_l.texi: Likewise.
38915         * doc/posix-functions/isprint_l.texi: Likewise.
38916         * doc/posix-functions/ispunct_l.texi: Likewise.
38917         * doc/posix-functions/isspace_l.texi: Likewise.
38918         * doc/posix-functions/isupper_l.texi: Likewise.
38919         * doc/posix-functions/iswalnum_l.texi: Likewise.
38920         * doc/posix-functions/iswalpha_l.texi: Likewise.
38921         * doc/posix-functions/iswblank_l.texi: Likewise.
38922         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38923         * doc/posix-functions/iswctype_l.texi: Likewise.
38924         * doc/posix-functions/iswdigit_l.texi: Likewise.
38925         * doc/posix-functions/iswgraph_l.texi: Likewise.
38926         * doc/posix-functions/iswlower_l.texi: Likewise.
38927         * doc/posix-functions/iswprint_l.texi: Likewise.
38928         * doc/posix-functions/iswpunct_l.texi: Likewise.
38929         * doc/posix-functions/iswspace_l.texi: Likewise.
38930         * doc/posix-functions/iswupper_l.texi: Likewise.
38931         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38932         * doc/posix-functions/isxdigit_l.texi: Likewise.
38933         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38934         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38935         * doc/posix-functions/strcoll_l.texi: Likewise.
38936         * doc/posix-functions/strfmon_l.texi: Likewise.
38937         * doc/posix-functions/strftime_l.texi: Likewise.
38938         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38939         * doc/posix-functions/strxfrm_l.texi: Likewise.
38940         * doc/posix-functions/tolower_l.texi: Likewise.
38941         * doc/posix-functions/toupper_l.texi: Likewise.
38942         * doc/posix-functions/towctrans_l.texi: Likewise.
38943         * doc/posix-functions/towlower_l.texi: Likewise.
38944         * doc/posix-functions/towupper_l.texi: Likewise.
38945         * doc/posix-functions/wcscoll_l.texi: Likewise.
38946         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38947         * doc/posix-functions/wctrans_l.texi: Likewise.
38948         * doc/posix-functions/wctype_l.texi: Likewise.
38949         * doc/glibc-functions/strptime_l.texi: Likewise.
38950         * doc/glibc-functions/strtod_l.texi: Likewise.
38951         * doc/glibc-functions/strtof_l.texi: Likewise.
38952         * doc/glibc-functions/strtol_l.texi: Likewise.
38953         * doc/glibc-functions/strtold_l.texi: Likewise.
38954         * doc/glibc-functions/strtoll_l.texi: Likewise.
38955         * doc/glibc-functions/strtoul_l.texi: Likewise.
38956         * doc/glibc-functions/strtoull_l.texi: Likewise.
38957         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38958         * doc/glibc-functions/wcstod_l.texi: Likewise.
38959         * doc/glibc-functions/wcstof_l.texi: Likewise.
38960         * doc/glibc-functions/wcstol_l.texi: Likewise.
38961         * doc/glibc-functions/wcstold_l.texi: Likewise.
38962         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38963         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38964         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38965
38966 2009-11-24  Bruno Haible  <bruno@clisp.org>
38967
38968         duplocale: Fix logic bug.
38969         * lib/duplocale.c: Don't include <langinfo.h>.
38970         (_NL_LOCALE_NAME): Remove macro.
38971         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38972         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38973
38974 2009-11-23  Jim Meyering  <meyering@redhat.com>
38975
38976         test-update-copyright: don't hard-code /usr/bin/perl
38977         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38978         perl to print the current year.  Gilles Espinasse reported that
38979         the replaced use of perl was hard-coded as /usr/bin/perl.
38980
38981 2009-11-23  Bruno Haible  <bruno@clisp.org>
38982
38983         duplocale: Add support for glibc 2.3.x.
38984         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38985
38986 2009-11-22  Bruno Haible  <bruno@clisp.org>
38987
38988         vasnprintf: Tiny optimization.
38989         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38990         MacOS X.
38991
38992 2009-11-22  Bruno Haible  <bruno@clisp.org>
38993
38994         Tests for module 'duplocale'.
38995         * modules/duplocale-tests: New file.
38996         * tests/test-duplocale.c: New file.
38997
38998         New module 'duplocale'.
38999         * m4/duplocale.m4: New file.
39000         * lib/locale.in.h (duplocale): New declaration.
39001         * lib/duplocale.c: New file.
39002         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
39003         gl_LOCALE_H_DEFAULTS): New macros.
39004         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
39005         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
39006         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
39007         REPLACE_DUPLOCALE.
39008         * modules/duplocale: New file.
39009         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
39010
39011 2009-11-22  Bruno Haible  <bruno@clisp.org>
39012
39013         * modules/locale-tests (configure.ac): Test for newlocale function.
39014         * tests/test-locale.c: When the system has extended locale functions,
39015         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
39016
39017         locale: Make locale_t available when possible.
39018         * lib/locale.in.h: Include <xlocale.h> when it exists.
39019         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
39020         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
39021         * modules/locale (Depends-on): Add extensions.
39022         (Makefile.am): Also substitute HAVE_XLOCALE_H.
39023         * doc/posix-headers/locale.texi: Document the problem with locale_t.
39024
39025 2009-11-22  Bruno Haible  <bruno@clisp.org>
39026
39027         Add comments.
39028         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
39029         invocation.
39030         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39031         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39032         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39033
39034 2009-11-22  Bruno Haible  <bruno@clisp.org>
39035
39036         error: account for the possibility of freopen (stdout).
39037         * lib/error.c: Include <unistd.h>.
39038         (flush_stdout): New function, extracted from error and error_at_line.
39039         Determine stdout's fd dynamically.
39040         (error, error_at_line): Invoke flush_stdout.
39041         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
39042         * modules/error (Depends-on): Add unistd.
39043
39044 2009-11-22  Bruno Haible  <bruno@clisp.org>
39045
39046         diffseq: Add comment.
39047         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
39048
39049 2009-11-22  Jim Meyering  <meyering@redhat.com>
39050
39051         c-stack: avoid defining an unused static function
39052         * lib/c-stack.c (find_stack_direction): Do not define this function
39053         when it will not be used.
39054
39055         diffseq: avoid spurious gcc warnings
39056         * lib/diffseq.h (IF_LINT2): Define.
39057         (compareseq): Use it to initialize two members of "part".
39058         This avoids two used-uninitialized warnings.
39059
39060 2009-11-21  Jim Meyering  <meyering@redhat.com>
39061
39062         c-stack: avoid "ignoring return value of `write'" warning
39063         * lib/c-stack.c: Include "ignore-value.h".
39064         (die): Explicitly ignore each write return value.
39065         * modules/c-stack (Depends-on): Add ignore-value.
39066
39067 2009-11-21  Bruno Haible  <bruno@clisp.org>
39068
39069         diffseq: reduce scope of variable 'best'.
39070         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
39071         variable, earlier used for two different purposes.
39072
39073 2009-11-21  Jim Meyering  <meyering@redhat.com>
39074
39075         diffseq: remove useless assignment to "best"
39076         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
39077         assignment.  At that point "best" is already guaranteed to be zero.
39078
39079 2009-11-20  Eric Blake  <ebb9@byu.net>
39080
39081         build: mention ftp redirector in release announcements
39082         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
39083         values that used to come from cfg.mk; mention FTP redirect URL.
39084         * build-aux/announce-gen: Mention the mirror list.
39085         Suggested by Karl Berry.
39086
39087         nanosleep: improve port to mingw
39088         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
39089         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
39090         LIB_NANOSLEEP, but only when needed.
39091         * modules/select (Link): Document LIBSOCKET.
39092         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
39093         enough.
39094
39095         nanosleep: work around cygwin bug
39096         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
39097         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
39098         bug.
39099         (getnow): Delete, not needed.
39100         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
39101         LIB_CLOCK_GETTIME.
39102         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
39103         clock-time, gettime.
39104         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
39105         bug.
39106         * modules/nanosleep-tests: New test.
39107         * tests/test-nanosleep.c: New file.
39108
39109         sleep: work around cygwin bug
39110         * lib/sleep.c (rpl_sleep): Work around the bug.
39111         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
39112         (gl_PREREQ_SLEEP): Delete unused macro.
39113         * modules/sleep (Depends-on): Add verify.
39114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39115         * modules/unistd (Makefile.am): Substitute witness.
39116         * lib/unistd.in.h (sleep): Update prototype.
39117         * doc/posix-functions/sleep.texi (sleep): Document the bug.
39118         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
39119         * modules/sleep-tests (Depends-on): Check for alarm.
39120
39121 2009-11-20  Jim Meyering  <meyering@redhat.com>
39122
39123         maint.mk: improve sc_prohibit_magic_number_exit
39124         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
39125         so it does not match uses like System.exit(1).
39126         Add comments showing how to correct all offenders.
39127
39128 2009-11-19  Eric Blake  <ebb9@byu.net>
39129
39130         xalloc-die-tests: add missing library
39131         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
39132
39133         test-xvasprintf: silence compiler warnings
39134         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
39135         empty string from gcc.
39136
39137 2009-11-19  Jim Meyering  <meyering@redhat.com>
39138
39139         xfreopen: new module, from coreutils
39140         * modules/xfreopen: New module.
39141         * lib/xfreopen.c: New file.
39142         * lib/xfreopen.h: New file.
39143         * MODULES.html.sh (File stream based Input/Output"): Add it.
39144
39145 2009-11-19  Eric Blake  <ebb9@byu.net>
39146
39147         manywarnings: depend on warnings
39148         * modules/manywarnings (Depends-on): Add warnings.
39149
39150         build: avoid compiler warnings
39151         * lib/select.c (rpl_select): Delete unused variable.
39152         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
39153
39154 2009-11-18  Eric Blake  <ebb9@byu.net>
39155
39156         tests: avoid false negative with --with-packager
39157         * tests/test-version-etc.sh: Discard packager information.
39158         * tests/test-argp-version-etc-1.sh: Likewise.
39159         Reported by Mike Frysinger.
39160
39161         utimens: fix regression on Solaris
39162         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
39163         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
39164         can only change fd timestamps via futimesat.  Instead, use an
39165         additional witness macro to avoid BSD bug.
39166         Reported by Jim Meyering.
39167
39168 2009-11-17  Eric Blake  <ebb9@byu.net>
39169
39170         usleep: use it to simplify tests
39171         * modules/stat-time-tests (Depends-on): Add usleep.
39172         (configure.ac): Drop usleep check.
39173         * modules/chown-tests (Depends-on, configure.ac): Likewise.
39174         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
39175         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
39176         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
39177         * modules/openat-tests (Depends-on, configure.ac): Likewise.
39178         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
39179         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
39180         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
39181         Likewise.
39182         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
39183         * tests/test-lchown.h (nap): Likewise.
39184         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
39185         * tests/test-stat-time.c (nap): Likewise.
39186         * tests/test-utimens-common.h (nap): Update comments.
39187
39188         usleep: new module
39189         * modules/usleep: New file.
39190         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
39191         * lib/usleep.c (usleep): Likewise.
39192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39193         * modules/unistd (Makefile.am): Substitute witnesses.
39194         * lib/unistd.in.h (usleep): Add declaration.
39195         * doc/pastposix-functions/usleep.texi (usleep): Document this.
39196         * MODULES.html.sh (Date and time): Likewise.
39197         * modules/usleep-tests (Depends-on): New test.
39198         * tests/test-usleep.c: New file.
39199
39200         chown: work around OpenBSD bug
39201         * lib/chown.c (rpl_chown): Work around the bug.
39202         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
39203         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
39204         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
39205         * modules/chown (Depends-on): Add stdbool.
39206         * modules/lchown (Depends-on): Likewise.
39207         * doc/posix-functions/chown.texi (chown): Document the bug.
39208         * doc/posix-functions/lchown.texi (lchown): Likewise.
39209         * tests/test-lchown.h (test_chown): Relax test.
39210
39211         mkstemp: avoid conflict with C++ keyword template
39212         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
39213         * lib/mkostemp.c (mkostemp): Likewise.
39214         * lib/mkostemps.c (mkostemps): Likewise.
39215         * lib/mkstemp.c (mkstemp): Likewise.
39216         * lib/mkstemps.c (mkstemps): Likewise.
39217
39218         xalloc-die-tests: optimize
39219         * tests/test-xalloc-die.sh: Reduce number of processes.
39220
39221 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39222
39223         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
39224         patch from ludo@gnu.org (Ludovic Courtès).
39225
39226 2009-11-17  Jim Meyering  <meyering@redhat.com>
39227
39228         version-etc: use proper license string
39229         * modules/version-etc (License): Use LGPL, not LGPLv3+.
39230         * modules/version-etc-fsf: Likewise.
39231
39232 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39233
39234         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
39235         printed to stdout.  Deal with EOL differences.
39236
39237 2009-11-17  Eric Blake  <ebb9@byu.net>
39238
39239         unsetenv: work around Solaris bug
39240         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
39241         * lib/unsetenv.c (rpl_unsetenv): Work around it.
39242         Reported by Jim Meyering.
39243
39244         vasnprintf: avoid compiler warnings
39245         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
39246         variables.
39247         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
39248
39249 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39250
39251         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
39252         settings since xalloc-die is no longer the self test,
39253         xalloc-die.sh is.
39254
39255 2009-11-17  Jim Meyering  <meyering@redhat.com>
39256
39257         test-xalloc-die.sh: make the code agree with the commit log
39258         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
39259         at the end, just in case you happen to have a test-xalloc-die
39260         program in some other PATH directory.
39261
39262         test-xalloc-die.sh: fix a portability bug
39263         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
39264         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
39265         Otherwise, argv[0] (as often seen in diagnostics) would be too
39266         system-dependent, sometimes with, and sometimes without the leading "./".
39267
39268         version-etc-fsf: relax license to LGPLv3+
39269         * modules/version-etc-fsf (License): Relax license.
39270
39271 2009-11-16  Eric Blake  <ebb9@byu.net>
39272
39273         xalloc-die-tests: avoid printing null pointer
39274         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
39275         shell script.
39276         * tests/test-xalloc-die.c (program_name): Declare.
39277         * tests/test-xalloc-die.sh (tmpfiles): New file.
39278
39279         setenv, unsetenv: work around various bugs
39280         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
39281         (setenv) [HAVE_SETENV]: Work around bugs.
39282         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
39283         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
39284         for bugs.
39285         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
39286         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
39287         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
39288         * modules/stdlib (Makefile.am): Update substitutions.
39289         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
39290         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
39291         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39292         * modules/setenv-tests: New test.
39293         * modules/unsetenv-tests: Likewise.
39294         * tests/test-setenv.c: New file.
39295         * tests/test-unsetenv.c: Likewise.
39296
39297 2009-11-16  Jim Meyering  <meyering@redhat.com>
39298
39299         version-etc: relax license to LGPLv3+
39300         * modules/version-etc (License): Relax license.
39301
39302         better AC_REQUIRE expanded-before-required-warning avoidance
39303         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
39304         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
39305         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
39306         which is no longer needed.
39307
39308 2009-11-16  Eric Blake  <ebb9@byu.net>
39309
39310         test-freading: clean up temporary file
39311         * tests/test-freading.c (main): Remove file on success, and use
39312         ASSERT more liberally.
39313         Reported by Jim Meyering.
39314
39315 2009-11-16  Jim Meyering  <meyering@redhat.com>
39316
39317         avoid new AC_REQUIRE expanded-before-required warnings
39318         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
39319         merely using it.
39320         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
39321         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
39322
39323 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39324
39325         * tests/test-xalloc-die.c: New file.
39326         * modules/xalloc-die-tests: New file.
39327         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
39328         XFAIL_TESTS so it can be appended by modules.
39329
39330 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39331
39332         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
39333         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
39334
39335 2009-11-14  Eric Blake  <ebb9@byu.net>
39336
39337         fnmatch: avoid compiler warning
39338         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
39339         to silence compiler warning about mismatch signedness in ?:.
39340         Reported by Robert Millan.
39341
39342         intprops: add double-inclusion guard
39343         * lib/intprops.h: Allow idempotent includes.
39344         Suggested by Bruce Korb.
39345
39346         openat: detect Solaris fchownat bug
39347         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
39348         penalizing glibc chownat when only lchownat is broken.
39349         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
39350         trailing slash bugs.
39351         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
39352         * modules/openat-tests (Files): Include more files.
39353         (Depends-on): Add mgetgroups, sleep, stat-time.
39354         (configure.ac): Add additional checks.
39355         (Makefile.am): Build new test.
39356         * tests/test-fchownat.c: New file.
39357
39358         lchown: detect Solaris and FreeBSD bug
39359         * lib/lchown.c (rpl_lchown): Work around bug.
39360         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
39361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39362         * modules/unistd (Makefile.am): Populate it.
39363         * lib/unistd.in.h (lchown): Update declaration.
39364         * doc/posix-functions/lchown.texi (lchown): Document the bug.
39365         * modules/lchown-tests: New file.
39366         * tests/test-lchown.h (test_lchown): Likewise.
39367         * tests/test-lchown.c (main): Likewise.
39368
39369         chown: detect Solaris and FreeBSD bug
39370         * lib/chown.c (rpl_chown): Work around bug.
39371         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
39372         (gl_PREREQ_CHOWN): Delete.
39373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39374         * modules/unistd (Makefile.am): Populate it.
39375         * lib/unistd.in.h (chown): Update declaration.
39376         * lib/lchown.c (chown): Update client.
39377         * modules/lchown (Depends-on): Add lstat.
39378         * doc/posix-functions/chown.texi (chown): Document the bug.
39379         * doc/posix-functions/getgroups.texi (getgroups): Document
39380         getgroups pitfall.
39381         * modules/chown-tests: New file.
39382         * tests/test-chown.h (test_chown): Likewise.
39383         * tests/test-chown.c (main): Likewise.
39384
39385 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
39386
39387         gnulib-tool: correctly detect absence of m4 directories
39388         * gnulib-tool: Avoid extra newline on data passed to wc -l.
39389
39390 2009-11-14  Jim Meyering  <meyering@redhat.com>
39391
39392         maint.mk: Prohibit inclusion of "xalloc.h" without use.
39393         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39394
39395 2009-11-14  John W. Eaton  <jwe@gnu.org>
39396
39397         strftime.h: wrap function declaration in extern "C" block
39398         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
39399
39400 2009-11-13  Eric Blake  <ebb9@byu.net>
39401
39402         getgroups: avoid compiler warning
39403         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
39404
39405         getgroups: work around FreeBSD bug
39406         * lib/getgroups.c (rpl_getgroups): Work around the bug.
39407         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
39408         * doc/posix-functions/getgroups.texi (getgroups): Document it.
39409         * tests/test-getgroups.c (main): Fix buffer overrun.
39410
39411         getgroups: avoid compilation failure
39412         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
39413         * modules/getgroups (Depends-on): Add stdint.
39414
39415 2009-11-13  Jim Meyering  <meyering@redhat.com>
39416
39417         test-getgroups: avoid compilation failure
39418         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
39419
39420 2009-11-13  Eric Blake  <ebb9@byu.net>
39421
39422         mgetgroups: new module, taken from coreutils
39423         * modules/mgetgroups: New file.
39424         * lib/mgetgroups.h: Likewise.
39425         * lib/mgetgroups.c (mgetgroups): Likewise.
39426         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
39427         * MODULES.html.sh (Users and groups): Mention it.
39428
39429         getgroups: don't expose GETGROUPS_T to user
39430         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
39431         an element at a time if GETGROUPS_T is wrong size.
39432         * lib/getugroups.h (getugroups): Change signature.
39433         * lib/unistd.in.h (getgroups): Likewise.
39434         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
39435         signature needs fixing.
39436         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
39437         AC_TYPE_GETGROUPS.
39438         * modules/group-member (Depends-on): Add getgroups.
39439         * lib/group-member.c (group_info, get_group_info): Use gid_t.
39440         (group_member): Rely on getgroups replacement.
39441         * lib/getugroups.c (getugroups): Use gid_t.
39442         * tests/test-getgroups.c (main): Likewise.
39443         * NEWS: Mention the signature change.
39444         * doc/posix-functions/getgroups.texi (getgroups): Mention the
39445         problem with signature.
39446         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
39447         GETGROUPS_T is still useful for setgroups.
39448
39449         getgroups, getugroups: provide stubs for mingw
39450         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
39451         * lib/getugroups.c (getugroups): Likewise.
39452         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
39453         function.  Modernize replacement scheme.
39454         (gl_PREREQ_GETGROUPS): Delete.
39455         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
39456         * modules/getgroups (configure.ac): Declare witness.
39457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39458         * modules/unistd (Depends-on): Substitute witness.
39459         * lib/unistd.in.h (getgroups): Declare replacement.
39460
39461         getgroups: avoid calling exit
39462         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
39463         drop xalloc.
39464         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
39465         dependencies.
39466         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
39467         exiting, in the rare case of malloc failure.
39468
39469         getgroups: fix logic error
39470         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
39471         has more than 20 groups.
39472         * modules/getgroups-tests: New test.
39473         * tests/test-getgroups.c: New file.
39474
39475 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39476
39477         * tests/test-base64.c: Improve.
39478
39479 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39480
39481         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
39482         Blake <ebb9@byu.net>.
39483
39484 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39485
39486         * tests/test-xvasprintf.c: Add %s%s related checks.
39487
39488 2009-11-12  Eric Blake  <ebb9@byu.net>
39489
39490         version-etc: match standards.texi style
39491         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
39492         and use <> only for URLs.
39493
39494 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
39495
39496         fts: do not fail on a submount during traversal
39497         * lib/fts.c (fts_build): Read the stat info again after opening
39498         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
39499         Original report at http://bugzilla.redhat.com/501848.
39500
39501 2009-11-12  Jim Meyering  <meyering@redhat.com>
39502
39503         bootstrap: sync from coreutils
39504         * build-aux/bootstrap (bootstrap_epilogue): New function.
39505         Use git_modules_config in one more place.  This make bootstrap's
39506         --gnulib-srcdir option more useful for testing.
39507
39508         bootstrap: generalize autoheader check
39509         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
39510         AC_CONFIG_HEADERS.
39511
39512 2009-11-11  Eric Blake  <ebb9@byu.net>
39513
39514         mkfifoat: use new modules for Solaris and BSD bugs
39515         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
39516         * lib/mkfifoat.c (mknodat): Split...
39517         * lib/mknodat.c (mknodat): ...into new file.
39518         * modules/mkfifoat (Files): Ship new file.
39519         (Depends-on): Add mkfifo, mknod.
39520         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
39521         (Depends-on): Add symlink.
39522         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
39523         redundant with test_mkfifo.h.
39524         (do_mkfifoat, do_mknodat): New helpers.
39525
39526         mknod: new module
39527         * modules/mknod: New file.
39528         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
39529         * lib/mknod.c (mknod): Likewise.
39530         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39531         defaults.
39532         * modules/sys_stat (Makefile.am): Substitute them.
39533         * lib/sys_stat.in.h (mknod): Declare replacement.
39534         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39535         Document it.
39536         * doc/posix-functions/mknod.texi (mknod): Likewise.
39537         * modules/mknod-tests: New test.
39538         * tests/test-mknod.c: Likewise.
39539
39540         mkfifo: new module
39541         * modules/mkfifo: New file.
39542         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
39543         * lib/mkfifo.c (mkfifo): Likewise.
39544         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39545         defaults.
39546         * modules/sys_stat (Makefile.am): Substitute them.
39547         * lib/sys_stat.in.h (mkfifo): Declare replacement.
39548         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39549         Document it.
39550         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
39551         * modules/mkfifo-tests: New test.
39552         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
39553         from test-mkfifoat.c.
39554         * tests/test-mkfifo.c: New file.
39555
39556         readlink: detect FreeBSD bug
39557         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39558         slash on symlink.
39559         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39560         * tests/test-readlink.h (test_readlink): Enhance test.
39561
39562         symlink: detect FreeBSD bug
39563         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39564         slash on symlink.
39565         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39566         * tests/test-symlink.h (test_symlink): Enhance test.
39567
39568 2009-11-10  Eric Blake  <ebb9@byu.net>
39569
39570         link: detect FreeBSD bug
39571         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39572         symlink.
39573         * doc/posix-functions/link.texi (link): Document the bug.
39574         * tests/test-link.h (test_link): Enhance test.
39575         * tests/test-linkat.c (main): Update caller.
39576
39577         unlink, remove: detect FreeBSD bug
39578         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39579         slash on symlink.
39580         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39581         * doc/posix-functions/remove.texi (remove): Likewise.
39582         * tests/test-unlink.h (test_unlink): Enhance test.
39583         * tests/test-remove.c (main): Likewise.
39584
39585 2009-11-09  Eric Blake  <ebb9@byu.net>
39586
39587         rename: detect FreeBSD bug
39588         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39589         slash on symlink.
39590         * modules/renameat-tests (Depends-on): Add filenamecat.
39591         * tests/test-rename.h (test_rename): Allow one more errno.
39592         * tests/test-renameat.c (main): Likewise.
39593         * doc/posix-functions/rename.texi (rename): Document the bug.
39594
39595         open: detect FreeBSD bug
39596         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39597         symlink.
39598         * doc/posix-functions/open.texi (open): Document the bug.
39599         * doc/posix-functions/utimes.texi (utimes): Likewise.
39600         * tests/test-open.h (test_open): Add parameters, and test symlink
39601         handling.
39602         * tests/test-open.c (main): Adjust caller.
39603         * tests/test-fcntl-safer.c (main): Likewise.
39604         * modules/open-tests (Depends-on): Add stdbool, symlink.
39605         * modules/fcntl-safer-tests (Depends-on): Likewise.
39606         * tests/test-openat.c (main): Add test-open tests.
39607
39608         stat: detect FreeBSD bug
39609         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39610         symlink.
39611         * doc/posix-functions/stat.texi (stat): Document the bug.
39612         * tests/test-stat.h (test_stat_func): Add argument.
39613         * tests/test-stat.c (main): Adjust caller.
39614         * tests/test-fstatat.c (main): Likewise.
39615         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39616         Reported by Jim Meyering.
39617
39618 2009-11-09  James Youngman  <jay@gnu.org>
39619
39620         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39621         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39622
39623 2009-11-08  Jim Meyering  <meyering@redhat.com>
39624
39625         utimens: remove invalid futimesat call
39626         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39627         It used the file descriptor of the target file as the DIR_FD
39628         parameter and NULL as the file name.  That caused failure with
39629         errno == EFAULT on FreeBSD-8.0-rc2
39630
39631 2009-11-07  Eric Blake  <ebb9@byu.net>
39632
39633         fflush, freadseek: use fseeko, not fseek
39634         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39635         (clear_ungetc_buffer): Avoid potential problems on large files.
39636         * lib/freadseek.c (freadseek): Likewise.
39637         * modules/freadseek (Depends-on): Add fseeko.
39638         * modules/fseek (configure.ac): Set a witness.
39639         * tests/test-fflush.c (main): Use fseeko.
39640         * tests/test-fpurge.c (fseek): Disable link warning.
39641         * tests/test-freadable.c (fseek): Likewise.
39642         * tests/test-freading.c (fseek): Likewise.
39643         * tests/test-fseeko.c (fseek): Likewise.
39644         * tests/test-ftell.c (fseek): Likewise.
39645         * tests/test-ftello.c (fseek): Likewise.
39646         * tests/test-fwritable.c (fseek): Likewise.
39647         * tests/test-fwriting.c (fseek): Likewise.
39648
39649 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39650
39651         * modules/memchr (Depends-on): Drop getpagesize dependency.
39652
39653 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39654
39655         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39656         Reported by Ludovic Courtès.
39657         * build-aux/pmccabe2html: Improve example usage.
39658         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39659
39660 2009-11-06  Jim Meyering  <meyering@redhat.com>
39661
39662         do-release-commit-and-tag: New module.
39663         Automate the release-commit and tag process.
39664         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39665         * modules/do-release-commit-and-tag: New file.
39666         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39667
39668 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39669
39670         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39671         because test-select.c uses inet_pton.
39672
39673 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39674
39675         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39676         GETADDRINFO_LIB.  Bump serial number.
39677         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39678         Suggested by Eric Blake <ebb9@byu.net>.
39679
39680 2009-11-05  Eric Blake  <ebb9@byu.net>
39681
39682         strtod: detect darwin bug
39683         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39684         Reported by Leo Davis.
39685
39686         freopen-safer: new module
39687         * modules/freopen-safer: New module.
39688         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39689         * lib/freopen-safer.c (freopen_safer): New file.
39690         * lib/stdio-safer.h (freopen_safer): New declaration.
39691         * lib/stdio--.h (freopen): New override.
39692         * MODULES.html.sh (File stream based Input/Output): Mention it.
39693         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39694         freopen-safer module.
39695         * doc/posix-functions/stderr.texi (stderr): Likewise.
39696         * doc/posix-functions/stdin.texi (stdin): Likewise.
39697         * doc/posix-functions/stdout.texi (stdout): Likewise.
39698         * modules/freopen-safer-tests: New test.
39699         * tests/test-reopen-safer.c: New file.
39700
39701 2009-11-05  Jim Meyering  <meyering@redhat.com>
39702
39703         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39704         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39705
39706 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39707
39708         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39709
39710 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39711
39712         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39713
39714 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39715
39716         Fix link error.
39717         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39718         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39719
39720 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39721
39722         * tests/test-func.c: Also test value of __func__.
39723
39724 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39725
39726         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39727         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39728
39729 2009-11-05  Bruno Haible  <bruno@clisp.org>
39730
39731         Fix link error.
39732         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39733         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39734         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39735
39736 2009-11-05  Bruno Haible  <bruno@clisp.org>
39737
39738         Tests for module 'inet_pton'.
39739         * modules/inet_pton-tests: New file.
39740         * tests/test-inet_pton.c: New file.
39741
39742 2009-11-05  Bruno Haible  <bruno@clisp.org>
39743
39744         Tests for module 'inet_ntop'.
39745         * modules/inet_ntop-tests: New file.
39746         * tests/test-inet_ntop.c: New file.
39747
39748 2009-11-04  Eric Blake  <ebb9@byu.net>
39749
39750         stdlib-safer: wrap all mkstemp variants
39751         * modules/mkostemp (configure.ac): Set witness.
39752         * modules/mkostemps (configure.ac): Likewise.
39753         * modules/mkstemps (configure.ac): Likewise.
39754         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39755         (mkstemps_safer): Wrap more functions.
39756         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39757         wrapping.
39758         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39759         (mkstemps_safer): Implement the wrappers.
39760
39761         mkstemps, mkostemps: new modules
39762         * modules/mkostemps: New module.
39763         * modules/mkstemps: Likewise.
39764         * lib/mkostemps.c (mkostemps): New file.
39765         * lib/mkstemps.c (mkstemps): Likewise.
39766         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39767         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39768         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39769         * modules/stdlib (Makefile.am): Substitute them.
39770         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39771         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39772         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39773         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39774         * MODULES.html.sh (File system functions): Mention them.
39775
39776         tempname: resync from glibc
39777         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39778         same values for __GT_FILE as glibc.  Abort even when assertions
39779         are disabled.
39780         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39781         match its value otherwise.  Allow idempotent inclusion.
39782         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39783         * lib/mkostemp.c (mkostemp): Likewise.
39784         * lib/mkstemp.c (mkstemp): Likewise.
39785         * lib/tmpfile.c (tmpfile): Likewise.
39786         * NEWS: Document this.
39787
39788         utimens: fix use of futimens on older Linux
39789         * lib/utimens.c (fdutimens): Use updated, rather than original,
39790         timespec to avoid bug in older Linux kernel.
39791         Reported by Simon Josefsson.
39792
39793 2009-11-04  Bruno Haible  <bruno@clisp.org>
39794
39795         Make num_processors more flexible and consistent.
39796         * lib/nproc.h (enum nproc_query): New type.
39797         (num_processors): Add a 'query' argument.
39798         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39799         (num_processors): Add a 'query' argument. Test the value of the
39800         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39801         mingw, count the number of CPUs available for the current process.
39802         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39803         Check for sched_getaffinity and sched_getaffinity_np.
39804         * modules/nproc (Depends-on): Add c-ctype, extensions.
39805         * NEWS: Mention the change.
39806
39807 2009-11-03  Bruno Haible  <bruno@clisp.org>
39808
39809         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39810
39811 2009-11-03  Jim Meyering  <meyering@redhat.com>
39812
39813         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39814         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39815         if it is defined.
39816
39817 2009-11-02  Eric Blake  <ebb9@byu.net>
39818
39819         mktime, timegm: share common declaration
39820         * lib/mktime-internal.h: New file.
39821         * lib/mktime.c: Use it rather than open-coding a declaration.
39822         * lib/timegm.c: Likewise.
39823         * modules/mktime (Files): Ship it.
39824         * modules/timegm (Files): Likewise.
39825         Suggested by Bruno Haible.
39826
39827         test-update-copyright: update test to match script changes
39828         * tests/test-update-copyright.sh: Avoid hard-coding perl
39829         location.  Don't update *.bak created by earlier runs.
39830
39831 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39832             Simon Josefsson  <simon@josefsson.org>
39833             Bruno Haible  <bruno@clisp.org>
39834
39835         Fix link error on Solaris 8.
39836         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39837         also in libnsl. Define also INET_PTON_LIB.
39838         * modules/inet_pton (Link): New section.
39839
39840 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39841             Bruno Haible  <bruno@clisp.org>
39842
39843         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39844         * modules/inet_ntop (Link): New section.
39845         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39846
39847 2009-11-02  Eric Blake  <ebb9@byu.net>
39848
39849         maint: avoid compiler warnings in m4 macros
39850         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39851         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39852
39853 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39854
39855         * m4/pmccabe2html.m4: Remove file.
39856         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39857         function.  Change maintainer.
39858         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39859         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39860         Courtès).
39861
39862 2009-10-31  Eric Blake  <ebb9@byu.net>
39863
39864         fseeko: fix m4 regression
39865         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39866         regression from 2009-10-27.
39867         Reported by Ralf Wildenhues.
39868
39869 2009-10-31  Jim Meyering  <meyering@redhat.com>
39870
39871         inttostr: aesthetics and improved (compile-time) safety
39872         Define inttype_is_signed rather than inttype_is_unsigned,
39873         since the sole use is via "#if inttype_is_signed".
39874         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39875         inttype_is_unsigned.
39876         * lib/offtostr.c (inttype_is_signed): Likewise.
39877         * lib/uinttostr.c (inttype_is_signed): Likewise.
39878         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39879         * lib/inttostr.c (inttostr): Use verify to cross-check the
39880         inttype_is_signed value and the signedness of the actual type.
39881         * modules/inttostr (Depends-on): Add verify.
39882
39883 2009-10-30  Eric Blake  <ebb9@byu.net>
39884
39885         build: avoid compiler warnings
39886         * lib/fchmodat.c (lchmod): Mark unused variables.
39887         * lib/getopt.c (_getopt_initialize): Likewise.
39888         * lib/mktime.c (__mktime_internal): Provide prototype.
39889         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39890         older gcc that do not understand #pragma GCC diagnostic.
39891         * lib/uinttostr.c (inttype_is_unsigned): Define.
39892         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39893
39894 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39895
39896         stat: fix compilation on AIX
39897         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39898         only see struct stat64.
39899
39900 2009-10-30  Eric Blake  <ebb9@byu.net>
39901
39902         exclude: make more robust
39903         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39904         rather than masking a coding bug.
39905         Suggested by Bruno Haible.
39906
39907 2009-10-30  Jim Meyering  <meyering@redhat.com>
39908
39909         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39910         Rather than putting #!/usr/bin/perl on the first line,
39911         start with a variant of what's recommended by "man perlrun" that
39912         invokes the first "perl" program from your shell's search path.
39913         * build-aux/gitlog-to-changelog: Replace #!... as above.
39914         Add a "Local Variables" perl mode setting.
39915         Prompted by a patch from Ludovic Courtès.
39916         Improved by Eric Blake.
39917         * build-aux/useless-if-before-free: Likewise.
39918         * build-aux/announce-gen: Likewise.
39919         * build-aux/update-copyright: Likewise.
39920
39921 2009-10-29  Eric Blake  <ebb9@byu.net>
39922
39923         filenamecat-lgpl: adjust clients
39924         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39925         filenamecat.
39926         * modules/renameat (Depends-on): Likewise.
39927
39928         filenamecat: split into filenamecat-lgpl
39929         * modules/filenamecat-lgpl: New module.
39930         * modules/filenamecat (Files): Move library-safe files into
39931         filenamecat-lgpl.
39932         (Depends-on): Add filenamecat-lgpl.
39933         (configure.ac): Declare witness.
39934         * lib/filenamecat.h (file_name_concat): Only declare when using
39935         GPL module.
39936         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39937         Move...
39938         * lib/filenamecat-lgpl.c: ...into new file.
39939         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39940         (gl_FILE_NAME_CONCAT): Use it.
39941         * MODULES.html.sh (File system functions): Mention new module.
39942
39943         argp: avoid memory leak
39944         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39945         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39946         base_name, since the latter malloc()s and can call exit().
39947         Leak introduced 2006-07-03.
39948
39949         dirname-lgpl: adjust clients that don't need full dirname
39950         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39951         * modules/filenamecat (Depends-on): Likewise.
39952         * modules/linkat (Depends-on): Likewise.
39953         * modules/mkancesdirs (Depends-on): Likewise.
39954         * modules/mkdir (Depends-on): Likewise.
39955         * modules/openat (Depends-on): Likewise.
39956         * modules/savewd (Depends-on): Likewise.
39957         * modules/rename (Depends-on): Likewise.
39958         (License): Relax license.
39959         * modules/mkdir-tests (Depends-on): Drop progname.
39960         (Makefile.am): Delete unneeded LDADD.
39961         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39962
39963         dirname: split into dirname-lgpl
39964         * modules/dirname-lgpl: New module.
39965         * modules/dirname (Files): Move library-safe files into
39966         dirname-lgpl.
39967         (Depends-on): Add dirname-lgpl.
39968         (configure.ac): Declare witness.
39969         * modules/double-slash-root (License): Relax license.
39970         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39971         module.
39972         * lib/dirname.c (dir_len, mdir_name): Move...
39973         * lib/dirname-lgpl.c: ...into new file.
39974         * lib/basename.c (last_component, base_len): Move...
39975         * lib/basename-lgpl.c: ...into new file.
39976         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39977         (gl_DIRNAME): Use it.
39978         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39979         Mention new module.
39980         * modules/dirname-tests (Depends-on): Add progname.
39981         * tests/test-dirname.c (program_name): Delete.
39982
39983         mkdir: make safe for libraries
39984         * modules/mkdir (Depends-on): Drop xalloc.
39985         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39986         exit.
39987
39988         tests: avoid some compiler warnings
39989         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39990         literals.
39991         * tests/test-memchr.c (main): Avoid type mismatch.
39992         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39993         * tests/test-base64.c (main): Likewise.
39994         * tests/test-getdelim.c (main): Likewise.
39995         * tests/test-gethostname.c (main): Likewise.
39996         * tests/test-getline.c (main): Likewise.
39997         * tests/test-netinet_in.c (main): Likewise.
39998         * tests/test-select.c (open_server_socket, main): Likewise.
39999         * tests/test-select-stdin.c (main): Likewise.
40000         * tests/test-sockets.c (main): Likewise.
40001         * tests/test-strsignal.c (main): Likewise.
40002         * tests/test-sys_select.c (main): Likewise.
40003         * tests/test-sys_socket.c (main): Likewise.
40004         * tests/test-u64.c (main): Likewise.
40005         * tests/test-xfprintf-posix.c (main): Likewise.
40006         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
40007
40008         sockets: avoid compiler warning
40009         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
40010
40011         maint: detect usage(1) and other suspicious exits
40012         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
40013
40014 2009-10-29  Jim Meyering  <meyering@redhat.com>
40015
40016         timespec: long-to-int truncation could make timespec_cmp malfunction
40017         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
40018         a multiple of 2^32 nanoseconds as no difference.
40019
40020 2009-10-28  Jim Meyering  <meyering@redhat.com>
40021
40022         fprintftime: wrap macro code argument in "do {...} while(0)"
40023         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
40024         cpy macro must be a statement that can be followed by a semicolon.
40025         Now that the else clause contains a comment and is hence longer
40026         than one line, I require curly braces.  That in turn requires
40027         that we wrap this code block in the standard do...while(0).
40028
40029         fprintftime: remove stray semicolon from previous change
40030         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
40031
40032         fprintftime: avoid a warning about ignored fwrite return value
40033         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
40034         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
40035         that is unsafe.
40036         * modules/fprintftime (Depends-on): Add ignore-value.
40037
40038         exclude: avoid an unwarranted warning
40039         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
40040
40041 2009-10-27  Eric Blake  <ebb9@byu.net>
40042
40043         fseek: avoid compilation failure when fflush is replaced
40044         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
40045         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
40046         module is in use.
40047         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
40048         module is not in use; since REPLACE_FSEEK worked otherwise.
40049         (GNULIB_FTELLO): Likewise for ftell.
40050         Reported by Ian Beckwith and others.
40051
40052 2009-10-27  Bruno Haible  <bruno@clisp.org>
40053
40054         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
40055         Reported by Jim Meyering.
40056
40057 2009-10-27  Jim Meyering  <jim@meyering.net>
40058             Bruno Haible  <bruno@clisp.org>
40059
40060         Avoid warning despite dropping the return value of fwrite.
40061         * lib/unicodeio.c: Include ignore-value.h.
40062         (fwrite_success_callback): Explicitly ignore fwrite's return value.
40063         * modules/unicodeio (Depends-on): Add ignore-value.
40064
40065 2009-10-26  Eric Blake  <ebb9@byu.net>
40066
40067         areadlinkat: fix fallback path
40068         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
40069         pointer and zero.
40070
40071 2009-10-22  Pádraig Brady  <P@draigBrady.com>
40072
40073         Use a better IO block size for modern systems
40074         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
40075         * lib/md2.c: Likewise.
40076         * lib/md4.c: Likewise.
40077         * lib/md5.c: Likewise.
40078         * lib/sha1.c: Likewise.
40079         * lib/sha256.c: Likewise.
40080         * lib/sha512.c: Likewise.
40081
40082 2009-10-22  Eric Blake  <ebb9@byu.net>
40083
40084         tests: avoid several compiler warnings
40085         * tests/test-getcwd.c (main): Avoid buffer underflow.
40086         * tests/test-getdate.c (main): String literals are not safe with
40087         putenv, so use setenv.  Declare unused argument.
40088         * modules/getdate-tests (Depends-on): Add setenv.
40089         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
40090         problems with string literals in char *.
40091         * tests/test-hash.c (main): Avoid shadowing declaration.
40092         (insert_new): Treat string literals as char const *.
40093         * tests/test-getopt.h (test_getopt): Likewise.
40094         (getopt_loop): Alter types to minimize casting elsewhere.
40095         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
40096         (test_getopt_long_posix): Likewise.
40097         (do_getopt_long): Add wrapper to minimize casting.
40098         * tests/test-atexit.c (clear_temp_file): Use void.
40099         * tests/test-areadlink-with-size.c (main): Declare unused
40100         arguments.
40101         * tests/test-areadlink.c (main): Likewise.
40102         * tests/test-areadlinkat-with-size.c (main): Likewise.
40103         * tests/test-areadlinkat.c (main): Likewise.
40104         * tests/test-canonicalize-lgpl.c (main): Likewise.
40105         * tests/test-canonicalize.c (main): Likewise.
40106         * tests/test-dirent-safer.c (main): Likewise.
40107         * tests/test-dirname.c (main): Likewise.
40108         * tests/test-dup2.c (main): Likewise.
40109         * tests/test-fchdir.c (main): Likewise.
40110         * tests/test-fcntl-h.c (main): Likewise.
40111         * tests/test-fcntl-safer.c (main): Likewise.
40112         * tests/test-fdopendir.c (main): Likewise.
40113         * tests/test-fdutimensat.c (main): Likewise.
40114         * tests/test-fflush.c (main): Likewise.
40115         * tests/test-filenamecat.c (main): Likewise.
40116         * tests/test-filevercmp.c (main): Likewise.
40117         * tests/test-fopen-safer.c (main): Likewise.
40118         * tests/test-fopen.c (main): Likewise.
40119         * tests/test-fpending.c (main): Likewise.
40120         * tests/test-fpurge.c (main): Likewise.
40121         * tests/test-freading.c (main): Likewise.
40122         * tests/test-fstatat.c (main): Likewise.
40123         * tests/test-fsync.c (main): Likewise.
40124         * tests/test-futimens.c (main): Likewise.
40125         * tests/test-getndelim2.c (main): Likewise.
40126         * tests/test-gettimeofday.c (main): Likewise.
40127         * tests/test-getopt.c (main): Likewise.
40128         * tests/test-i-ring.c (main): Likewise.
40129         * tests/test-inttypes.c (main): Likewise.
40130         * tests/test-link.c (main): Likewise.
40131         * tests/test-lstat.c (main): Likewise.
40132         * tests/test-math.c (main): Likewise.
40133         * tests/test-md5.c (main): Likewise.
40134         * tests/test-memchr2.c (main): Likewise.
40135         * tests/test-memrchr.c (main): Likewise.
40136         * tests/test-mkdir.c (main): Likewise.
40137         * tests/test-mkdirat.c (main): Likewise.
40138         * tests/test-mkfifoat.c (main): Likewise.
40139         * tests/test-open.c (main): Likewise.
40140         * tests/test-openat-safer.c (main): Likewise.
40141         * tests/test-openat.c (main): Likewise.
40142         * tests/test-quotearg.c (main): Likewise.
40143         * tests/test-rawmemchr.c (main): Likewise.
40144         * tests/test-readlink.c (main): Likewise.
40145         * tests/test-remove.c (main): Likewise.
40146         * tests/test-rename.c (main): Likewise.
40147         * tests/test-renameat.c (main): Likewise.
40148         * tests/test-rmdir.c (main): Likewise.
40149         * tests/test-sha1.c (main): Likewise.
40150         * tests/test-signal.c (main): Likewise.
40151         * tests/test-sigaction.c (main): Likewise.
40152         * tests/test-stat.c (main): Likewise.
40153         * tests/test-stat-time.c (main): Likewise.
40154         * tests/test-stddef.c (main): Likewise.
40155         * tests/test-stdint.c (main): Likewise.
40156         * tests/test-stdio.c (main): Likewise.
40157         * tests/test-stdlib.c (main): Likewise.
40158         * tests/test-strchrnul.c (main): Likewise.
40159         * tests/test-strerror.c (main): Likewise.
40160         * tests/test-string.c (main): Likewise.
40161         * tests/test-strtod.c (main): Likewise.
40162         * tests/test-strverscmp.c (main): Likewise.
40163         * tests/test-symlink.c (main): Likewise.
40164         * tests/test-symlinkat.c (main): Likewise.
40165         * tests/test-sys_stat.c (main): Likewise.
40166         * tests/test-sys_time.c (main): Likewise.
40167         * tests/test-time.c (main): Likewise.
40168         * tests/test-unistd.c (main): Likewise.
40169         * tests/test-unlink.c (main): Likewise.
40170         * tests/test-unlinkat.c (main): Likewise.
40171         * tests/test-utimens.c (main): Likewise.
40172         * tests/test-utimensat.c (main): Likewise.
40173         * tests/test-version-etc.c (main): Likewise.
40174         * tests/test-wchar.c (main): Likewise.
40175         * tests/test-wctype.c (main): Likewise.
40176         * tests/test-xprintf-posix.c (main): Likewise.
40177         * tests/test-posixtm.c (main): Likewise.
40178         (STREQ): Delete unused macro.
40179         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
40180         shadowed variables.
40181         * tests/test-memchr.c (main): Likewise.
40182
40183 2009-10-21  Eric Blake  <ebb9@byu.net>
40184
40185         areadlinkat: avoid failure on older glibc
40186         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
40187         rather than mis-comparing 0 against FUNC_RESULT of char*.
40188
40189 2009-10-21  Bruno Haible  <bruno@clisp.org>
40190
40191         * modules/stpncpy (License): Relicense under LGPLv2+.
40192         Reported by David Lutterkort <lutter@redhat.com>.
40193
40194 2009-10-20  Eric Blake  <ebb9@byu.net>
40195
40196         utimensat: work around Solaris 9 bug
40197         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
40198         has trailing slash bugs.
40199         * tests/test-lutimens.h (test_lutimens): Enhance test.
40200         * tests/test-utimens.h (test_utimens): Likewise.
40201         * doc/posix-functions/utime.texi (utime): Enhance documentation.
40202         * doc/posix-functions/utimes.texi (utimes): Likewise.
40203         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40204         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
40205         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
40206         * doc/posix-functions/futimens.texi (futimens): Likewise.
40207
40208         fdutimensat: new module
40209         * modules/fdutimensat: New file.
40210         * lib/fdutimensat.c (fdutimensat): Likewise.
40211         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
40212         * MODULES.html.sh (File system functions): Mention module.
40213         * modules/fdutimensat-tests: New test.
40214         * tests/test-fdutimensat.c: Likewise.
40215
40216         doc: regenerate INSTALL
40217         * doc/INSTALL: Reflect recent autoconf update.
40218         * doc/INSTALL.ISO: Likewise.
40219         * doc/INSTALL.UTF-8: Likewise.
40220
40221 2009-10-20  Pádraig Brady  <P@draigBrady.com>
40222
40223         acl: warn if ACL support is not detected
40224         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
40225
40226 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
40227
40228         * lib/nproc.h: Add extern "C" block for C++.
40229
40230 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
40231             Bruno Haible  <bruno@clisp.org>
40232
40233         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
40234         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
40235         * doc/posix-functions/isalpha.texi: Likewise.
40236         * doc/posix-functions/isblank.texi: Likewise.
40237         * doc/posix-functions/iscntrl.texi: Likewise.
40238         * doc/posix-functions/isdigit.texi: Likewise.
40239         * doc/posix-functions/isgraph.texi: Likewise.
40240         * doc/posix-functions/islower.texi: Likewise.
40241         * doc/posix-functions/isprint.texi: Likewise.
40242         * doc/posix-functions/ispunct.texi: Likewise.
40243         * doc/posix-functions/isspace.texi: Likewise.
40244         * doc/posix-functions/isupper.texi: Likewise.
40245         * doc/posix-functions/isxdigit.texi: Likewise.
40246
40247 2009-10-18  Bruno Haible  <bruno@clisp.org>
40248
40249         Tests for module 'isblank'.
40250         * modules/isblank-tests: New file.
40251         * tests/test-isblank.c: New file.
40252
40253         New module 'isblank'.
40254         * lib/isblank.c: New file.
40255         * m4/isblank.m4: New file.
40256         * modules/isblank: New file.
40257         * doc/posix-functions/isblank.texi: Mention the new module.
40258
40259 2009-10-18  Bruno Haible  <bruno@clisp.org>
40260
40261         New module 'ctype'.
40262         * lib/ctype.in.h: New file.
40263         * m4/ctype.m4: New file.
40264         * modules/ctype: New file.
40265         * doc/posix-headers/ctype.texi: Mention the new module.
40266
40267 2009-10-18  Jim Meyering  <meyering@redhat.com>
40268
40269         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
40270         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
40271         right after its initialization, rather than farther down.
40272         Keeping these in close proximity makes it easier to ensure
40273         that each such variable is initialized.  E.g.,
40274
40275             LIB_CLOCK_GETTIME=
40276             AC_SUBST([LIB_CLOCK_GETTIME])
40277
40278         This change also increments these serial numbers.
40279         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
40280         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40281         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40282
40283 2009-10-18  Bruno Haible  <bruno@clisp.org>
40284
40285         Don't let environment variables perturb build.
40286         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
40287         (gl_PREREQ_GETHRXTIME): ... not here.
40288
40289 2009-10-18  Bruno Haible  <bruno@clisp.org>
40290
40291         Avoid symlink attack in localcharset module.
40292         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
40293         (O_NOFOLLOW): Define fallback.
40294         (get_charset_aliases): Don't open the file if it is a symbolic link.
40295         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
40296         gl_FCNTL_H.
40297         (gl_FCNTL_H): Require it.
40298         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
40299         * modules/localcharset (Files): Add m4/fcntl_h.m4.
40300         Reported by Fergal Glynn <fglynn@veracode.com>.
40301
40302 2009-10-18  Bruno Haible  <bruno@clisp.org>
40303
40304         Implement nproc for mingw.
40305         * lib/nproc.c: Include <windows.h>
40306         (num_processors): On native Windows platforms, try GetSystemInfo.
40307
40308 2009-10-18  Bruno Haible  <bruno@clisp.org>
40309
40310         Implement nproc for IRIX.
40311         * lib/nproc.c: Include <sys/sysmp.h>.
40312         (num_processors): On IRIX systems, try sysmp.
40313         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
40314
40315 2009-10-18  Bruno Haible  <bruno@clisp.org>
40316
40317         Implement nproc for HP-UX.
40318         * lib/nproc.c: Include <sys/pstat.h>
40319         (num_processors): On HP-UX systems, try pstat_getdynamic.
40320         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
40321         pstat_getdynamic.
40322
40323 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
40324             Bruno Haible  <bruno@clisp.org>
40325
40326         Implement nproc for NetBSD, OpenBSD.
40327         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
40328         (ARRAY_SIZE): New macro.
40329         (num_processors): On BSD systems, try sysctl of HW_NCPU.
40330         * m4/nproc.m4: New file.
40331         * modules/nproc (Files): Add m4/nproc.m4.
40332         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
40333         (Makefile.am): Instead, augment lib_SOURCES.
40334
40335 2009-10-18  Bruno Haible  <bruno@clisp.org>
40336
40337         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
40338         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
40339         sys/param.h.
40340
40341 2009-10-16  Eric Blake  <ebb9@byu.net>
40342
40343         utimensat: new module
40344         * modules/utimensat: New file.
40345         * lib/utimensat.c (utimensat): Likewise.
40346         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40347         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
40348         so we can work around Linux bugs.
40349         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40350         * modules/sys_stat (Makefile.am): Substitute them.
40351         * lib/sys_stat.in.h (utimensat): Declare it.
40352         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40353         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40354         * modules/utimensat-tests: New test.
40355         * tests/test-utimensat.c: Likewise.
40356
40357         utimens: let lutimens work on non-symlinks
40358         * lib/utimens.c (lutimens): Fall back to utimens rather than
40359         failing with ENOSYS, when file is not a symlink.
40360         (utimens): Reduce redirection.
40361         * tests/test-lutimens.h (test_lutimens): Update test to cover
40362         non-symlinks.
40363         * tests/test-utimens.h (test_utimens): Update test to cover
40364         symlinks.
40365         * tests/test-utimens.c (main): Update caller.
40366
40367         utimens: cache whether utimensat syscall works
40368         * lib/utimens.c (utimensat_works_really): New cache variable.
40369         (fdutimens, lutimens): Use it to avoid failing syscall.
40370
40371         test-stat-time, test-utimens: improve portability
40372         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
40373         ext4 on alpha, and for cygwin.
40374         * tests/test-utimens-common.h: New file.
40375         (nap): Factor delays into single function.
40376         * tests/test-lutimens.h (test_lutimens): Use new header.
40377         * tests/test-futimens.h (test_futimens): Likewise.
40378         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
40379         timestamps to occur from same machine, as was done previously for
40380         test_utimens.
40381         * modules/utimens-tests (Files): Ship new file.
40382         * modules/futimens-tests (Files): Likewise.
40383         Reported in part by Jim Meyering.
40384
40385         sys_stat: sort replacement declarations
40386         * lib/sys_stat.in.h: Sort declarations.
40387         * lib/futimens.c (futimens): Fix typo.
40388
40389 2009-10-15  Jim Meyering  <meyering@redhat.com>
40390
40391         don't let environment settings perturb build
40392         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
40393         could cause a configure-time and/or build-time malfunction.
40394         Typically, a configure-time function-in-library test is performed
40395         via code like this:
40396
40397           LIB_VAR=
40398           AC_SUBST([LIB_VAR])
40399           prefix_saved_LIBS=$LIBS
40400             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
40401                        [test "$ac_cv_search_FUNC" = "none required" ||
40402                         LIB_VAR=$ac_cv_search_FUNC])
40403           LIBS=$prefix_saved_LIBS
40404
40405         However, in each of the files affected by this change, the LIB_VAR=
40406         initialization was omitted.  Thus, when set in the environment, its
40407         value would propagate into generated Makefiles when FUNC is not found
40408         in LIB_NAME.
40409         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
40410         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40411         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40412
40413 2009-10-14  Eric Blake  <ebb9@byu.net>
40414
40415         fchdir: avoid infinite recursion in mingw
40416         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
40417         recursing.
40418
40419         test-stat-time: port to mingw
40420         * tests/test-stat-time.c (force_unlink): Return a value.
40421         (test_ctime) [W32]: Fix compilation error.
40422         (nap): Don't call usleep with too large an argument.  Use
40423         force_unlink.
40424         * doc/pastposix-functions/usleep.texi (usleep): Document the
40425         portability issue.
40426
40427 2009-10-13  Jim Meyering  <meyering@redhat.com>
40428
40429         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
40430         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
40431         * modules/pipe-filter-ii: Likewise.
40432         * modules/sys_socket-tests: Likewise.
40433         * modules/tsearch-tests: Likewise.
40434         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
40435         (check): Depend on it.
40436
40437 2009-10-12  Eric Blake  <ebb9@byu.net>
40438
40439         utimens-tests: port to NFS file systems
40440         * tests/test-utimens.h (test_utimens): Refactor utimecmp
40441         comparisons to avoid spurious failures from timestamp drift
40442         between NFS machines.
40443
40444 2009-10-12  Eric Blake  <ebb9@byu.net>
40445
40446         stat-time-tests: minor cleanups
40447         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
40448         * tests/test-stat-time.c (nap): Separate assignment from call.
40449         Suggested by Paolo Bonzini and Bruno Haible.
40450
40451         sys_stat: guarantee struct timespec
40452         * lib/sys_stat.in.h (includes): Always include <time.h>
40453         * modules/sys_stat (Depends-on): Add time.
40454         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
40455         mode_t permission values.
40456         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
40457         get at subsecond timestamps.
40458
40459 2009-10-10  Eric Blake  <ebb9@byu.net>
40460
40461         futimens: new module
40462         * modules/futimens: New file.
40463         * lib/futimens.c (futimens): Likewise.
40464         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
40465         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
40466         we can work around Linux bugs.
40467         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40468         * modules/sys_stat (Makefile.am): Substitute them.
40469         * lib/sys_stat.in.h (futimens): Declare it.
40470         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40471         * doc/posix-functions/futimens.texi (futimens): Likewise.
40472         * modules/futimens-tests: New test.
40473         * tests/test-futimens.c: Likewise.
40474
40475         utimens: introduce fdutimens
40476         * lib/utimens.h (fdutimens): New prototype.
40477         * lib/utimens.c (gl_futimens): Move guts...
40478         (fdutimens): ...to new interface.
40479         * tests/test-utimens.c (do_fdutimens): Use it.
40480
40481         utimens: add UTIME_NOW and UTIME_OMIT support
40482         * lib/utimens.c (validate_timespec, update_timespec): New helper
40483         functions.
40484         (gl_futimens, lutimens): Use them.
40485         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
40486         stdbool, sys_stat.
40487         (Link): Mention resulting library dependency.
40488         * modules/utimecmp (Link): Likewise.
40489         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
40490         (Makefile.am): Pick up library dependency.
40491         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
40492         definition.
40493         * tests/test-sys_stat.c: Test the definitions.
40494         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
40495         * NEWS: Document library dependency.
40496
40497         utimecmp: support symlink timestamps
40498         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
40499         hashing when possible.  Use pathconf when available.
40500         (SYSCALL_RESOLUTION): Recognize tighter resolution.
40501         * modules/utimecmp (Depends-on): Add lstat.
40502
40503         utimens: add lutimens interface
40504         * lib/utimens.c (lutimens): New function.
40505         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
40506         * lib/utimens.h (lutimens): Declare new interface.
40507         * tests/test-utimens.c (main): Enhance test.
40508         * tests/test-lutimens.h (test_lutimens): New file.
40509         * modules/utimens-tests (Files): Distribute it.
40510         (Depends-on): Add symlink.
40511         (configure.ac): Check for usleep.
40512
40513         utimens: validate futimens usage
40514         * lib/utimens.c (gl_futimens): Require valid fd up front, using
40515         fewer syscalls on failure later on.  Avoid compiler warning on
40516         mingw.
40517         * modules/utimens (Depends-on): Add dup2.
40518
40519         utimens: add test
40520         * modules/utimens-tests: New test.
40521         * tests/test-utimens.h: New file.
40522         * tests/test-futimens.h: Likewise.
40523         * tests/test-utimens.c: Likewise.
40524
40525         doc: mention timestamp portability issues
40526         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
40527         instead.
40528         * doc/posix-functions/utime.texi (utime): Likewise.
40529         * doc/posix-functions/utimes.texi (utimes): Likewise.
40530         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
40531         instead.
40532         * doc/posix-functions/futimens.texi (futimens): Mention utimens
40533         module.
40534         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40535         Mention weakness with symlink timestamps.
40536         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
40537         to utimensat/futimens instead.
40538         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
40539
40540         test-dup2: enhance test
40541         * tests/test-dup2.c (main): Also check AT_FDCWD.
40542
40543         test-stat-time: avoid more spurious failures
40544         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
40545         xfs; and avoid race if the two timestamps cross quantization edge.
40546
40547         relocatable: prefer 'file system' over 'filesystem'
40548         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
40549         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
40550         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
40551         * doc/relocatable.texi (Enabling Relocatability): Likewise.
40552         * lib/relocatable.c (compute_curr_prefix): Likewise.
40553
40554 2009-10-10  Jim Meyering  <meyering@redhat.com>
40555
40556         stat-time-tests: check for the usleep function
40557         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40558
40559 2009-10-10  Bruno Haible  <bruno@clisp.org>
40560
40561         * modules/xnanosleep: Put the Link section after the Include section.
40562
40563 2009-10-09  Eric Blake  <ebb9@byu.net>
40564
40565         dup2: work around FreeBSD 6.1 bug
40566         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40567         * doc/posix-functions/dup2.texi (dup2): Document it.
40568         Reported by Nelson H. F. Beebe and Jim Meyering.
40569
40570         test-stat-time: port to buggy NFS clients
40571         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40572         (test_ctime): Also skip test if mtime and ctime are skewed.
40573
40574         maint: prefer 'file system' over 'filesystem'
40575         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40576         * doc/posix-functions/lstat.texi (lstat): Likewise.
40577         * lib/file-has-acl.c (file_has_acl): Likewise.
40578         * lib/fwriteerror.c [TEST]: Likewise.
40579         * tests/test-areadlink.h (test_areadlink): Likewise.
40580         * tests/test-areadlinkat-with-size.c (main): Likewise.
40581         * tests/test-areadlinkat.c (main): Likewise.
40582         * tests/test-canonicalize-lgpl.c (main): Likewise.
40583         * tests/test-canonicalize.c (main): Likewise.
40584         * tests/test-fstatat.c (main): Likewise.
40585         * tests/test-linkat.c (main): Likewise.
40586         * tests/test-lstat.h (test_lstat_func): Likewise.
40587         * tests/test-mkdir.h (test_mkdir): Likewise.
40588         * tests/test-readlink.h (test_readlink): Likewise.
40589         * tests/test-remove.c (main): Likewise.
40590         * tests/test-rename.h (test_rename): Likewise.
40591         * tests/test-renameat.c (main): Likewise.
40592         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40593         * tests/test-symlink.h (test_symlink): Likewise.
40594         * tests/test-symlinkat.c (main): Likewise.
40595         * tests/test-unlink.h (test_unlink_func): Likewise.
40596         * tests/test-unlinkat.c (main): Likewise.
40597
40598         maint: make realtime library usage explicit
40599         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40600         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40601         * modules/settime (Link): Likewise.
40602         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40603
40604         test-stat-time: speed up execution
40605         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40606         warning on mingw.
40607         (nap): New helper function.
40608         (prepare_test): Use it to reduce sleep time.
40609         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40610         execution.
40611         * modules/stat-time-tests (configure.ac): Check for usleep.
40612
40613 2009-10-09  Jim Meyering  <meyering@redhat.com>
40614
40615         selinux-h: always use getfilecon wrappers
40616         * lib/getfilecon.c: New file.
40617         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40618         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40619         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40620         (fgetfilecon): Provide a stub.
40621         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40622         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40623         file unconditionally.
40624         When <selinux/selinux.h> is found, arrange to use wrappers.
40625         * modules/selinux-h (Files): Add getfilecon.c.
40626         (Makefile.am): Substitute include-next-related bits
40627         into the now-always-generated selinux/selinux.h file.
40628         * doc/glibc-functions/lgetfilecon.texi: New file.
40629         * doc/glibc-functions/fgetfilecon.texi: New file.
40630         * doc/glibc-functions/getfilecon.texi: New file.
40631         * doc/glibc-functions/getfilecon-desc.texi: New file.
40632         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40633         which to pull in the new files.
40634         * MODULES.html.sh (Misc): Add selinux-h.
40635
40636 2009-10-08  Jim Meyering  <meyering@redhat.com>
40637
40638         unistd: fix comment typo
40639         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40640
40641 2009-10-08  Eric Blake  <ebb9@byu.net>
40642
40643         areadlink: use SIZE_MAX consistently
40644         * modules/areadlink (Depends-on): Add stdint.
40645         * modules/areadlink-with-size (Depends-on): Likewise.
40646         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40647         gives NULL; drop sys/types, since unistd gives size_t; and add
40648         stdint for SIZE_MAX.
40649         (SIZE_MAX): Rely on headers.
40650         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40651         and add stdint.
40652         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40653         (SIZE_MAX): Likewise.
40654         (INITIAL_BUF_SIZE): Turn into enum.
40655         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40656
40657 2009-10-08  Jim Meyering  <meyering@redhat.com>
40658
40659         areadlinkat: avoid compilation failure
40660         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40661         Fix typo in comment.
40662
40663 2009-10-07  Eric Blake  <ebb9@byu.net>
40664
40665         areadlinkat-with-size: new module
40666         * modules/areadlinkat-with-size: New module.
40667         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40668         * lib/areadlink.h (areadlinkat): Declare it.
40669         * MODULES.html.sh (File system functions): Mention it.
40670         * modules/areadlinkat-with-size-tests: New test.
40671         * tests/test-areadlinkat-with-size.c: New file.
40672
40673         xreadlinkat: new module
40674         * modules/xreadlinkat: New module.
40675         * lib/xreadlinkat.c (xreadlinkat): New file.
40676         * lib/xreadlink.h (xreadlinkat): Declare it.
40677         * MODULES.html.sh (File system functions): Mention it.
40678
40679         areadlinkat: new module
40680         * lib/at-func.c (FUNC_FAIL): New define.
40681         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40682         * modules/areadlinkat: New module.
40683         * lib/linkat.c (areadlinkat): Move...
40684         * lib/areadlinkat.c (areadlinkat): ...to new file.
40685         * lib/areadlink.h (areadlinkat): Declare it.
40686         * modules/linkat (Depends-on): Add areadlinkat.
40687         * MODULES.html.sh (File system functions): Mention it.
40688         * modules/areadlinkat-tests: New test.
40689         * tests/test-areadlinkat.c: New file.
40690
40691         areadlink, areadlink-with-size: add tests
40692         * modules/areadlink-tests: New test.
40693         * modules/areadlink-with-size-tests: Likewise.
40694         * tests/test-areadlink.h: New file.
40695         * tests/test-areadlink.c: Likewise.
40696         * tests/test-areadlink-with-size.c: Likewise.
40697
40698         maint: minor cleanups
40699         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40700         _UNUSED_PARAMETER_ instead.
40701         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40702         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40703         * modules/linkat-tests (Files): Distribute test-link.h.
40704
40705         openat, utimens: whitespace cleanup
40706         * lib/openat.c: Prefer space throughout, rather than mix of 8
40707         spaces vs. tabs.
40708         * lib/at-func.c: Likewise.
40709         * lib/utimens.c: Likewise.
40710
40711         openat: avoid using wrong fd
40712         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40713         working directory chooses same fd.
40714         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40715
40716         mkdir, mkdirat: fix cygwin 1.5.x bug
40717         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40718         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40719         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40720         bug.
40721         (gl_PREREQ_MKDIR): Delete unused macro.
40722         * modules/mkdir (Files): Track file rename.
40723         (configure.ac): Update macro name.
40724         * modules/openat (Depends-on): Add mkdir.
40725         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40726
40727         mkdir, mkdirat: add tests
40728         * modules/mkdir-tests: New test.
40729         * tests/test-mkdir.h: New file.
40730         * tests/test-mkdir.c: Likewise.
40731         * tests/test-mkdirat.c: Likewise.
40732         * modules/openat-tests (Files): Add new files.
40733         (Makefile.am): Run new test.
40734
40735 2009-10-06  Eric Blake  <ebb9@byu.net>
40736
40737         doc: tweak *at function documentation
40738         * doc/posix-functions/faccessat.texi (faccessat): Mention
40739         known issue with replacement.
40740         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40741         * doc/posix-functions/linkat.texi (linkat): Likewise.
40742         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40743         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40744         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40745         * doc/posix-functions/renameat.texi (renameat): Likewise.
40746         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40747
40748         openat: fix GNU/Hurd bug in unlinkat
40749         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40750         broken.
40751         * doc/posix-functions/unlink.texi (unlink): Document this.
40752         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40753
40754         fdopendir: fix GNU/Hurd bug
40755         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40756         allowing non-directory fds.
40757         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40758         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40759         * modules/dirent (Makefile.am): Substitute it.
40760         * lib/dirent.in.h (fdopendir): Declare replacement.
40761         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40762         * tests/test-fdopendir.c (main): Test something other than
40763         /dev/null, since on Hurd that behaves like a directory.
40764
40765         test-symlink: port to GNU/Hurd
40766         * tests/test-symlink.h (test_symlink): Relax expected errno.
40767
40768         doc: tweak more cygwin information
40769         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40770         now compatible with glibc.
40771         * doc/posix-functions/getopt.texi (getopt): Likewise.
40772
40773         getopt-gnu: add another test
40774         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40775         guarantee behavior relied on by m4.
40776         * tests/test-getopt.c (main): Use it.
40777         * modules/getopt-posix-tests (Depends-on): Add setenv.
40778         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40779
40780         getopt: fix compilation on darwin
40781         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40782         include.
40783         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40784         Reported by Ludovic Courtès.
40785
40786 2009-10-06  Bruno Haible  <bruno@clisp.org>
40787
40788         * modules/size_max (Description): Discourage its use.
40789         Reported by Simon Josefsson.
40790
40791 2009-10-06  Jim Meyering  <meyering@redhat.com>
40792
40793         linkat: avoid compilation failure
40794         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40795
40796 2009-10-05  Eric Blake  <ebb9@byu.net>
40797
40798         linkat: support Linux 2.6.17
40799         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40800         linkat on Linux, but allow cache variable override.
40801         * lib/linkat.c (rpl_linkat): Define override.
40802         * modules/linkat (Depends-on): Add symlinkat.
40803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40804         * modules/unistd (Makefile.am): Substitute it.
40805         * lib/unistd.in.h (linkat): Declare replacement.
40806         Reported by Pádraig Brady.
40807
40808         quotearg: port test to systems with C.UTF-8 locale
40809         * tests/test-quotearg.c (struct result_strings): Add another
40810         member, differentiating between C.ASCII and C.UTF-8 handling.
40811         (compare_strings): Add parameter.
40812         (main): Adjust all callers.
40813
40814         getopt: avoid clash with FreeBSD _getopt_internal
40815         * lib/getopt.in.h (_getopt_internal): Override the name.
40816         * lib/getopt_int.h (includes): Pick up any overrides.
40817         Reported by Reuben Thomas.
40818
40819         hash: allow C89 compilation
40820         * lib/hash.c (check_tuning): Move declaration before statement.
40821         Reported by Reuben Thomas.
40822
40823 2009-10-05  Karl Berry  <karl@gnu.org>
40824
40825         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40826
40827 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40828             Bruno Haible  <bruno@clisp.org>
40829
40830         * lib/uname.c (uname): Use a table-driven algorithm to compute
40831         Windows NT versions.
40832
40833 2009-10-04  Bruno Haible  <bruno@clisp.org>
40834
40835         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40836         program_invocation_short_name.
40837         * modules/progname (configure.ac): Test for presence of
40838         program_invocation_short_name.
40839         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40840
40841 2009-10-04  Bruno Haible  <bruno@clisp.org>
40842
40843         * lib/progname.c (set_program_name): Fix comment.
40844         Reported by Jim Meyering.
40845
40846 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40847             Bruno Haible  <bruno@clisp.org>
40848
40849         * lib/uname.c: Include <string.h>.
40850         (uname): Do only one call to GetVersionEx in the common case.
40851
40852 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40853             Bruno Haible  <bruno@clisp.org>
40854
40855         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40856         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40857         (uname): Add support for Windows CE and various non-x86 CPU types.
40858
40859 2009-10-03  Bruno Haible  <bruno@clisp.org>
40860
40861         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40862         invocation to tests/configure.ac.
40863         Reported by Ian Beckwith <ianb@erislabs.net>.
40864
40865 2009-10-02  Eric Blake  <ebb9@byu.net>
40866
40867         fchdir: avoid compiler warning
40868         * lib/fchdir.c (canonicalize_file_name)
40869         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40870
40871         test-open: support mingw errno values
40872         * tests/test-open.h (test_open): Relax test.
40873         * tests/test-fopen.h (test_fopen): Likewise.
40874         * tests/test-openat-safer.c (main): Likewise.
40875
40876         open: fix opening directory on mingw
40877         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40878
40879         test-open: on GNU/Hurd, /dev/null is a directory
40880         * tests/test-fopen.h (main): Rename...
40881         (test_fopen): ...to this.  Use a guaranteed non-directory when
40882         confirming open behavior on trailing slash.
40883         * tests/test-openat-safer.c (main): Likewise.
40884         * tests/test-open.h (main): Likewise....
40885         (test_open): ...to this.
40886         * tests/test-fopen.c (main): Adjust caller.
40887         * tests/test-fopen-safer.c (main): Likewise.
40888         * tests/test-open.c (main): Likewise.
40889         * tests/test-fcntl-safer.c (main): Likewise.
40890         Reported by Samuel Thibault.
40891
40892         rename, fchdir: don't ignore chdir failure
40893         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40894         * lib/rename.c (rpl_rename) [W32]: Likewise.
40895         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40896         an empty destination directory if source cannot be renamed,
40897         although there is still possibility for failure.
40898         * doc/posix-functions/rename.texi (rename): Document the race.
40899         Reported by Jim Meyering.
40900
40901         maint: cleanup whitespace in recent commits
40902         * lib/rename.c (rpl_rename): Remove tabs.
40903         * tests/test-link.h (test_link): Likewise.
40904         * lib/fchdir.c (get_name): Likewise.
40905         Reported by Jim Meyering.
40906
40907 2009-10-02  Ben Pfaff  <blp@gnu.org>
40908
40909         relocatable-prog-wrapper: Add missing dependency on
40910         double-slash-root.
40911         * modules/relocatable-prog-wrapper: Add dependency.
40912         Reported by Ian Beckwith <ianb@erislabs.net>.
40913
40914 2009-10-02  Eric Blake  <ebb9@byu.net>
40915
40916         renameat: fix Solaris bugs
40917         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40918         needed fixing.
40919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40920         * modules/stdio (Makefile.am): Substitute it.
40921         * lib/stdio.in.h (renameat): Declare replacement.
40922         * lib/renameat.c (rpl_renameat): Implement fix.
40923
40924         renameat: new module
40925         * modules/renameat: New file.
40926         * lib/renameat.c (renameat): Likewise.
40927         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40929         * modules/stdio (Makefile.am): Substitute them.
40930         * lib/stdio.in.h (renameat): Declare it.
40931         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40932         * doc/posix-functions/renameat.texi (renameat): Likewise.
40933         * modules/renameat-tests: New test.
40934         * tests/test-renameat.c: Likewise.
40935
40936         rename: fix mingw bugs
40937         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40938         directory overwrite bugs.
40939
40940         rename: fix another cygwin 1.5 bug
40941         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40942         checks.
40943         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40944         unnecessary cygwin workarounds.  Also work around bug with moving
40945         full directory onto an empty one.
40946         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40947
40948         rename-dest-slash: merge into rename module
40949         * modules/rename-dest-slash (Status): Mark obsolete.
40950         (Depends-on): Add rename.
40951         (Files): Let rename do it all.
40952         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40953         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40954         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40955         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40956         * lib/rename.c (rpl_rename): Update comments.
40957
40958         rename: fix cygwin 1.5.x bugs
40959         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40960         * lib/rename.c (rpl_rename): Work around them.
40961         * modules/rename (Depends-on): Add same-inode.
40962
40963         rename: fix Solaris 10 bug
40964         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40965         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40966         was the only bug.
40967
40968         rename: fix Solaris 9 bug
40969         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40970         on non-directory.  Avoid calling exit.
40971         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40972         strdup.
40973         * modules/rename-tests (Depends-on): Drop lstat.
40974         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40975         (gl_PREREQ_RENAME): Delete unused macro.
40976
40977         rename-dest-slash: fix NetBSD bug
40978         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40979         links.
40980         * modules/rename-dest-slash (Depends-on): Add same-inode.
40981
40982         rename-tests: new test, exposes several platform bugs
40983         * modules/rename-tests: New file.
40984         * tests/test-rename.h: Likewise.
40985         * tests/test-rename.c: Likewise.
40986         * doc/posix-functions/rename.texi (rename): Improve documentation,
40987         including bugs that will eventually be fixed in gnulib.
40988
40989 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40990
40991         * lib/uname.c: Include <stdlib.h>
40992         (uname): Assume version info is available.
40993
40994 2009-10-02  Jim Meyering  <meyering@redhat.com>
40995
40996         gnu-web-doc-update: correct --help output
40997         * build-aux/gnu-web-doc-update: Make --help output relevant.
40998
40999         gnu-web-doc-update: add standard options
41000         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
41001
41002         gnu-web-doc-update: New module.
41003         Use this script to automatically update the on-line web documentation
41004         for your GNU project at http://www.gnu.org/software/$pkg/manual/
41005         * modules/gnu-web-doc-update: New file, from coreutils.
41006         * build-aux/gnu-web-doc-update: New script.
41007
41008 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
41009
41010         link: LoadLibrary is not needed.
41011         * lib/link.c: Use GetModuleHandle.
41012
41013 2009-10-01  Eric Blake  <ebb9@byu.net>
41014
41015         getopt: bump serial number
41016         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
41017         change.
41018
41019         tests: tighten link, rmdir, and remove tests
41020         * tests/test-link.h (includes): No need to use <config.h> here.
41021         Clean up if directory hard link was created, otherwise test for
41022         trailing '.'.
41023         * tests/test-linkat.c (main): Simplify.
41024         * tests/test-remove.c (main): Enhance test for trailing '.'.
41025         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41026
41027 2009-10-01  Jim Meyering  <meyering@redhat.com>
41028
41029         maint.mk: requiring "make major" was annoying, for a "minor" release.
41030         What is intended is "stable", to contrast with alpha and beta,
41031         so require "make stable", not "make major".
41032         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
41033         (get_tool_versions): Likewise.
41034         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
41035
41036 2009-09-30  Ben Pfaff  <blp@gnu.org>
41037
41038         Fix broken build of replacement for Windows tmpfile().
41039         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
41040         flags argument added along with the 'mkostemp' module.
41041
41042 2009-09-28  Bruno Haible  <bruno@clisp.org>
41043
41044         Avoid identifier clash with POSIX function 'remove' defined as a macro.
41045         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
41046         to 'remove_elt'.
41047         (gl_list_remove): Update.
41048         * lib/gl_list.c (gl_list_remove): Update.
41049         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
41050         to 'remove_elt'.
41051         (gl_oset_remove): Update.
41052         * lib/gl_list.c (gl_oset_remove): Update.
41053         Reported by Eric Blake.
41054
41055 2009-09-28  Eric Blake  <ebb9@byu.net>
41056
41057         doc: mention yet more cygwin 1.7 status
41058         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
41059         cygwin.
41060         * doc/glibc-functions/execvpe.texi (execvpe): New file.
41061         * doc/gnulib.texi (Glibc unistd.h): Mention it.
41062
41063         argp: fix test failure
41064         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
41065         that are not upper-case.  Pass correct range to tolower.
41066
41067 2009-09-27  Jim Meyering  <meyering@redhat.com>
41068
41069         test-yesno: work around sparc-dash here-document infelicity
41070         Without this change, the literal \177 byte in a here document
41071         would make dash 0.5.5.1-3 access uninitialized memory.
41072         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
41073         Instead, use a marker, "@", and filter through tr to create the desired
41074         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
41075
41076 2009-09-27  Bruno Haible  <bruno@clisp.org>
41077
41078         Disable untested support for new flavours of ACLs on AIX.
41079         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
41080         progress.
41081         * lib/set-mode-acl.c (qset_acl): Likewise.
41082
41083 2008-12-07  Bruno Haible  <bruno@clisp.org>
41084
41085         Add support for new flavours of ACLs on AIX. (Untested.)
41086         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
41087         (file_has_acl): Add support for newer AIX.
41088         * lib/set-mode-acl.c (qset_acl): Likewise.
41089         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
41090         Rainer Tammer <tammer@tammer.net>.
41091
41092 2009-09-26  Eric Blake  <ebb9@byu.net>
41093
41094         argp: fix compilation of getopt
41095         * lib/getopt.in.h (includes): Use different guard than glibc.
41096         Reported by Sergey Poznyakoff.
41097
41098         doc: mention more cygwin 1.7 status
41099         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
41100         bug.
41101         * doc/posix-functions/execl.texi (execl): Likewise.
41102         * doc/posix-functions/execle.texi (execle): Likewise.
41103         * doc/posix-functions/execlp.texi (execlp): Likewise.
41104         * doc/posix-functions/execv.texi (execv): Likewise.
41105         * doc/posix-functions/execve.texi (execve): Likewise.
41106         * doc/posix-functions/execvp.texi (execvp): Likewise.
41107         * doc/glibc-functions/canonicalize_file_name.texi
41108         (canonicalize_file_name): Cygwin 1.7 now provides this.
41109         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
41110         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
41111         on AT_SYMLINK_NOFOLLOW.
41112
41113 2009-09-24  Eric Blake  <ebb9@byu.net>
41114
41115         test-linkat: make test more robust
41116         * tests/test-linkat.c (main): Avoid collision with EEXIST.
41117
41118         getopt: fix inclusion guards for cygwin
41119         * modules/getopt-posix (Depends-on): Add include-next.
41120         (Makefile.am): Substitute more items in replacement header.
41121         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
41122         <getopt.h>.
41123         * lib/getopt.in.h (includes): Use split inclusion guard, and
41124         prefer <getopt.h> over include <unistd.h> when one is present.
41125         (option): Also override name of 'struct option'.
41126
41127         same-inode: revert prior change; it is not yet ready
41128         * NEWS: Undo mention of this change.
41129         * lib/same-inode.h (same-inode.h): Undo tri-state change.
41130         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41131         * lib/cycle-check.c (cycle_check): Likewise.
41132         * lib/same.c (same_name): Likewise.
41133         * lib/at-func2.c (at_func2): Likewise.
41134
41135 2009-09-23  Eric Blake  <ebb9@byu.net>
41136
41137         linkat: new module
41138         * modules/linkat: New file.
41139         * lib/at-func2.c (at_func2): Likewise.
41140         * lib/linkat.c (linkat): Likewise.
41141         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
41142         * lib/openat-priv.h (at_func2): Add declaration.
41143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41144         * modules/unistd (Makefile.am): Substitute them.
41145         * lib/unistd.in.h (linkat): Declare it.
41146         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41147         * doc/posix-functions/linkat.texi (linkat): Likewise.
41148         * doc/posix-functions/link.texi (link): Tweak wording.
41149         * tests/test-link.c (main): Move guts...
41150         * tests/test-link.h (test_link): ...into new file.
41151         * modules/linkat-tests: New test.
41152         * tests/test-linkat.c: Likewise.
41153         * modules/link-tests (Files): Ship new file.
41154         (Depends-on): Add stdbool.
41155
41156         dirname: add library-safe mdir_name
41157         * lib/dirname.h (mdir_name): New prototype.
41158         * lib/dirname.c (dir_name): Move guts...
41159         (mdir_name): ...to new function that avoids xalloc_die.
41160
41161         fchdir: another mingw fix
41162         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
41163         * lib/fchdir.c (get_name): New helper method; skips canonicalize
41164         on mingw (where it has not yet been ported), and make it optional
41165         elsewhere.
41166         (_gl_register_fd): Use it.
41167
41168         same-inode: make SAME_INODE tri-state, to port to mingw
41169         * NEWS: Mention this change.
41170         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
41171         st_ino always being 0.
41172         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41173         * lib/cycle-check.c (cycle_check): Likewise.
41174         * lib/same.c (same_name): Likewise.
41175
41176         lstat: avoid mingw compilation error
41177         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
41178         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
41179         lstat ourselves.
41180         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
41181         was adequate.
41182         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
41183         the checks for lstat.
41184         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
41185
41186         link: fix test failure on Solaris 9
41187         * lib/link.c (rpl_link): Don't assume link will catch bogus
41188         trailing slash on source.
41189
41190         test-symlinkat: enhance test
41191         * tests/test-readlink.c (main): Move guts...
41192         * tests/test-readlink.h (test_readlink): ...into new file.
41193         * tests/test-symlink.c (main): Move guts...
41194         * tests/test-symlink.h (test_symlink): ...into new file.
41195         * tests/test-symlinkat.c (main): Use new files for further
41196         coverage.
41197         (do_symlink, do_readlink): New helper functions.
41198         * modules/symlink-tests (Files): Ship new file.
41199         (Depends-on): Add stdbool.
41200         * modules/readlink-tests (Files): Ship new file.
41201         (Depends-on): Add stdbool.
41202         * modules/symlinkat-tests (Files): Use new files.
41203
41204 2009-09-23  Eric Blake  <ebb9@byu.net>
41205
41206         readlink: document portability issue with symlink length
41207         * doc/posix-functions/lstat.texi (lstat): Mention that some file
41208         systems have bogus st_size on symlinks, and mention the
41209         areadlink-with-size module.
41210         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41211         * doc/posix-functions/readlink.texi (readlink): Mention the
41212         areadlink module, and ERANGE failure.
41213         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41214         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
41215
41216         readlink: fix Solaris 9 bug with trailing slash
41217         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
41218         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
41219         * doc/posix-functions/readlink.texi (readlink): Document this.
41220         * modules/readlink-tests: New test.
41221         * tests/test-readlink.c: Likewise.
41222
41223         readlink: fix cygwin 1.5.x bug with return type
41224         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
41225         * lib/unistd.in.h (readlink): Use ssize_t.
41226         * lib/readlink.c (readlink): Likewise.
41227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41228         * modules/unistd (Makefile.am): Substitute it.
41229         * lib/unistd.in.h (readlink): Declare replacement.
41230         * doc/posix-functions/readlink.texi (readlink): Document this.
41231
41232         symlink: use throughout gnulib
41233         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
41234         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
41235         symlink is not used.
41236         * modules/symlinkat (Depends-on): Add symlink.
41237         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41238         * modules/canonicalize-tests (Depends-on): Likewise.
41239         * modules/lstat-tests (Depends-on): Likewise.
41240         * modules/openat-tests (Depends-on): Likewise.
41241         * modules/remove-tests (Depends-on): Likewise.
41242         * modules/rmdir-tests (Depends-on): Likewise.
41243         * modules/unlink-tests (Depends-on): Likewise.
41244         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
41245         * tests/test-canonicalize.c (symlink): Likewise.
41246         * tests/test-fstatat.c (symlink): Likewise.
41247         * tests/test-lstat.c (symlink): Likewise.
41248         * tests/test-remove.c (symlink): Likewise.
41249         * tests/test-rmdir.c (symlink): Likewise.
41250         * tests/test-unlink.c (symlink): Likewise.
41251         * tests/test-unlinkat.c (symlink): Likewise.
41252
41253         symlink: new module, for Solaris 9 bug
41254         * modules/symlink: New file.
41255         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41256         * lib/symlink.c: Likewise.
41257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41258         * modules/unistd (Makefile.am): Substitute them.
41259         * lib/unistd.in.h (symlink): Declare replacement.
41260         * MODULES.html.sh (File system functions): Mention it.
41261         * doc/posix-functions/symlink.texi (symlink): Likewise.
41262         * modules/symlink-tests: New test.
41263         * tests/test-symlink.c: Likewise.
41264
41265 2009-09-23  Bruno Haible  <bruno@clisp.org>
41266
41267         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
41268         when needed.
41269         Test case: gnulib-tool --import --with-tests atexit inttypes.
41270         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
41271
41272 2009-09-23  Bruno Haible  <bruno@clisp.org>
41273
41274         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
41275         subcommand, not in a subshell.
41276
41277 2009-09-22  Eric Blake  <ebb9@byu.net>
41278
41279         unistd: sort replacement declarations
41280         * lib/unistd.in.h: Sort declarations.
41281
41282         open, openat: minor optimization
41283         * lib/open.c (open): If open succeeded, len is non-zero.
41284         * lib/openat.c (rpl_openat): Likewise.
41285
41286         link-follow: ensure correct result
41287         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
41288         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
41289         distinguish between possible failures.
41290
41291 2009-09-21  Eric Blake  <ebb9@byu.net>
41292
41293         fts: avoid compiler warning
41294         * lib/fts.c (dirent_inode_sort_may_be_useful)
41295         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
41296
41297 2009-09-19  Bruno Haible  <bruno@clisp.org>
41298
41299         * lib/progreloc.c (canonicalize_file_name): New declaration.
41300
41301 2009-09-19  Eric Blake  <ebb9@byu.net>
41302
41303         link: fix quoting
41304         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
41305
41306         openat: fix openat bugs on Solaris 9
41307         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
41308         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
41309         * modules/openat (Depends-on): Add open.
41310         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
41311         * modules/fcntl-h (Makefile.am): Substitute it.
41312         * lib/fcntl.in.h (openat): Declare replacement.
41313         * doc/posix-functions/openat.texi (openat): Document this.
41314
41315         openat: move fstatat and unlinkat into correct files
41316         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
41317         compiled.
41318         * lib/openat.c (fstatat, unlinkat): Move...
41319         * lib/fstatat.c (fstatat): ...into correct files.
41320         * lib/unlinkat.c (unlinkat): Likewise.
41321
41322         openat: fix unlinkat bugs on Solaris 9
41323         * lib/unlinkat.c (unlinkat): New file.
41324         * modules/openat (Depends-on): Add unlink.
41325         (Files): Distribute it.
41326         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
41327         trailing slash behavior is broken.
41328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41329         * modules/unistd (Makefile.am): Substitute it.
41330         * lib/unistd.in.h (unlinkat): Declare replacement.
41331         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
41332
41333         openat: fix fstatat bugs on Solaris 9
41334         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
41335         stat.
41336         * doc/posix-functions/fstatat.texi (fstatat): Document this.
41337
41338         test-unlinkat: enhance test, to expose Solaris 9 bug
41339         * tests/test-unlink.c (main): Factor guts...
41340         * tests/test-unlink.h (test_rmdir_func): ...into new file.
41341         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
41342         * tests/test-rmdir.c (main): Adjust caller.
41343         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
41344         (unlinker): New helper function.
41345         (rmdirat): Enhance check.
41346         * modules/rmdir-tests (Depends-on): Add stdbool.
41347         * modules/unlink-tests (Depends-on): Likewise.
41348         (Files): Add test-unlink.h.
41349         * modules/openat-tests (Files): Likewise.
41350         (Depends-on): Add unlinkdir.
41351
41352         test-fstatat: new test, to expose Solaris 9 bugs
41353         * tests/test-stat.c (main): Factor guts...
41354         * tests/test-stat.h (test_stat_func): ...into new file.
41355         * tests/test-lstat.c (main): Factor guts...
41356         * tests/test-lstat.h (test_lstat_func): ...into new file.
41357         * tests/test-fstatat.c: New file.
41358         * modules/stat-tests (Files): Add test-stat.h.
41359         * modules/lstat-tests (Files): Add test-lstat.h.
41360         (Depends-on): Add stdbool.
41361         * modules/openat-tests (Depends-on): Add pathmax.
41362         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
41363         (Makefile.am): Run new test.
41364
41365         remove: new module, for mingw and Solaris 9 bugs
41366         * modules/remove: New file.
41367         * lib/remove.c: Likewise.
41368         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
41369         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41370         * modules/stdio (Makefile.am): Use them.
41371         * lib/stdio.in.h (remove): Declare replacement.
41372         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41373         * doc/posix-functions/remove.texi (remove): Likewise.
41374         * modules/remove-tests: New test.
41375         * tests/test-remove.c: Likewise.
41376
41377         unlink: new module, for Solaris 9 bug
41378         * modules/unlink: New file.
41379         * lib/unlink.c: Likewise.
41380         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
41381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41382         * modules/unistd (Makefile.am): Use them.
41383         * lib/unistd.in.h (stat): Declare replacement.
41384         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41385         * doc/posix-functions/unlink.texi (unlink): Likewise.
41386         * modules/unlink-tests: New test.
41387         * tests/test-unlink.c: Likewise.
41388
41389         lstat: fix Solaris 9 bug
41390         * lib/lstat.c (lstat): Also check for trailing slash on
41391         non-symlink, non-directories.  Use stat module to simplify logic.
41392         * doc/posix-functions/lstat.texi (lstat): Document it.
41393         * modules/lstat-tests (Depends-on): Add errno, same-inode.
41394         (configure.ac): Check for symlink.
41395         * tests/test-lstat.c (main): Add more tests.
41396
41397         stat: add as dependency to other modules
41398         * modules/chown (Depends-on): Add stat.
41399         * modules/euidaccess (Depends-on): Likewise.
41400         * modules/fchdir (Depends-on): Likewise.
41401         * modules/isdir (Depends-on): Likewise.
41402         * modules/link (Depends-on): Likewise.
41403         * modules/lstat (Depends-on): Likewise.
41404         * modules/mkdir-p (Depends-on): Likewise.
41405         * modules/modechange (Depends-on): Likewise.
41406         * modules/open (Depends-on): Likewise.
41407         * modules/readlink (Depends-on): Likewise.
41408         * modules/same (Depends-on): Likewise.
41409
41410         stat: fix Solaris 9 bug
41411         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
41412         slash.
41413         * lib/stat.c (rpl_stat): Work around it.
41414         * doc/posix-functions/stat.texi (stat): Update documentation.
41415
41416         stat: new module, for mingw bug
41417         * modules/stat: New file.
41418         * lib/stat.c: Likewise.
41419         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
41420         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41421         * modules/sys_stat (Makefile.am): Use them.
41422         * lib/sys_stat.in.h (stat): Declare replacement.
41423         * lib/openat.c (fstatat): Deal with lstat and stat being function
41424         macros.
41425         * modules/openat (Depends-on): Add inline.
41426         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41427         * doc/posix-functions/stat.texi (stat): Likewise.
41428         * modules/stat-tests: New test.
41429         * tests/test-stat.c: Likewise.
41430
41431 2009-09-19  Jim Meyering  <meyering@redhat.com>
41432
41433         syntax-check: detect unnecessary inclusion of canonicalize.h
41434         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
41435
41436 2009-09-19  Eric Blake  <ebb9@byu.net>
41437
41438         canonicalize-lgpl: adjust clients to use correct header
41439         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41440         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
41441         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
41442         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
41443         * lib/progreloc.c (includes): Likewise.
41444
41445 2009-09-19  Jim Meyering  <meyering@redhat.com>
41446
41447         test-posixtm.c: correct a comment
41448         * tests/test-posixtm.c: Correct first-line comment.
41449         Spotted by Eric Blake.
41450
41451 2009-09-16  Jim Meyering  <meyering@redhat.com>
41452
41453         posixtm-tests: make T const-correct; add a test case
41454         * tests/test-posixtm.c (T): Declare const.
41455         Add a test for -(2^31+1).
41456         Remove useless can-succeed-only-in-2002 test.
41457
41458         posixtm-tests: adjust the sole failing test
41459         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
41460         expected output matches what mktime now produces.  Cross-checked via
41461         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
41462
41463         posixtm: move #ifdef'd tests into a new module
41464         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
41465         * tests/test-posixtm.c: ... this new file.
41466         * modules/posixtm-tests: New module.
41467
41468 2009-09-19  Eric Blake  <ebb9@byu.net>
41469
41470         openat: simplify use of at-func.c
41471         * lib/at-func.c (includes): Include prerequisites here, to
41472         simplify requirements on client files.
41473         * lib/openat-priv.h: Add double-inclusion guard.
41474         * lib/faccessat.c (includes): Simplify.
41475         * lib/fchmodat.c (includes): Likewise.
41476         * lib/fchownat.c (includes): Likewise.
41477         * lib/mkdirat.c (includes): Likewise.
41478         * lib/mkfifoat.c (includes): Likewise.
41479         * lib/symlinkat.c (includes): Likewise.
41480
41481         openat: allow return of fd 0
41482         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
41483         * modules/save-cwd (Depends-on): Replace fcntl-safer with
41484         unistd-safer.
41485         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
41486         <fcntl.h>; this module does not leak fds.
41487         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
41488         must be allowed to return 0, leaving openat_safer to add the
41489         safety.
41490         (openat_permissive): Avoid writing to just-opened fd 2 if
41491         restoring the current directory fails.
41492         * lib/openat-die.c (openat_restore_fail): Add comment.
41493         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
41494         (save_cwd): Guarantee safe fd, but without use of open_safer.
41495         * tests/test-openat.c: New test.
41496         * modules/openat-tests (Files, Makefile.am): Distribute and build
41497         new file.
41498
41499         relocatable-prog-wrapper: fix build
41500         * modules/relocatable-prog-wrapper (Files): Update name of
41501         canonicalize m4 file, broken on 2009-09-17.
41502         Reported by emad hajjar <aleppos@hotmail.com>.
41503
41504 2009-09-19  Bruno Haible  <bruno@clisp.org>
41505
41506         * lib/safe-alloc.h: Use the standard header with GPL copyright.
41507         * lib/safe-alloc.c: Likewise.
41508         Reported by Ian Beckwith <ianb@erislabs.net>.
41509
41510 2009-09-18  Bruno Haible  <bruno@clisp.org>
41511
41512         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
41513         Reported by <erobles@sensacd.com.mx>.
41514
41515 2009-09-17  Eric Blake  <ebb9@byu.net>
41516
41517         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
41518         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
41519         slashes when checking if last component is missing.
41520         * tests/test-canonicalize.c (main): Test this.
41521
41522         canonicalize, canonicalize-lgpl: honor // if distinct from /
41523         * modules/canonicalize (Files): Add double-slash-root.m4.
41524         * modules/canonicalize-lgpl (Files): Likewise.
41525         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41526         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
41527         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
41528         fallback definition.
41529         (canonicalize_filename_mode): Use it to protect //.
41530         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
41531         (__realpath): Likewise.
41532         * tests/test-canonicalize.c (main): Test this.
41533         * tests/test-canonicalize-lgpl.c (main): Likewise.
41534         * modules/canonicalize-tests (Depends-on): Add same-inode.
41535         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41536
41537         canonicalize-lgpl: fix glibc bug with trailing slash
41538         * m4/canonicalize-lgpl.m4: Move contents...
41539         * m4/canonicalize.m4: ...here.
41540         (gl_CANONICALIZE_LGPL): Factor realpath check...
41541         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
41542         glibc 2.3.5 bug, fixed 2005-04-27.
41543         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
41544         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
41545         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
41546         * modules/canonicalize-lgpl (Files): Manage file rename.
41547         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41548         * modules/stdlib (Makefile.am): Substitute witness.
41549         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
41550         is needed.
41551         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
41552         replacement is required.
41553         * lib/canonicalize.c (canonicalize_file_name): Likewise.
41554         * doc/glibc-functions/canonicalize_file_name.texi
41555         (canonicalize_file_name): Document this.
41556         * doc/posix-functions/realpath.texi (realpath): Likewise.
41557
41558         canonicalize-lgpl: reject non-directory with trailing slash
41559         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41560         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41561         catches failures in glibc 2.3.5.
41562         * tests/test-canonicalize.c (main): Likewise.
41563
41564         canonicalize-lgpl: use native realpath if it works
41565         * lib/canonicalize-lgpl.c (realpath): Guard with
41566         FUNC_REALPATH_WORKS.
41567         * lib/stdlib.in.h (realpath): Make declaration optional based on
41568         HAVE_REALPATH.
41569         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41570         native realpath works.
41571         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41572         * modules/stdlib (Makefile.am): Substitute witness.
41573
41574         canonicalize, canonicalize-lgpl: use <stdlib.h>
41575         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41576         (Include): Mention <stdlib.h>.
41577         (configure.ac): Mention functions we provide.
41578         * modules/canonicalize (configure.ac): Likewise.
41579         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41580         realpath if canonicalize_file_name is missing.
41581         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41582         * modules/stdlib (Makefile.am): Substitute witnesses.
41583         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41584         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41585         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41586         * NEWS: Document this.
41587         * doc/glibc-functions/canonicalize_file_name.texi
41588         (canonicalize_file_name): Likewise.
41589         * doc/posix-functions/realpath.texi (realpath): Likewise.
41590         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41591
41592         test-canonicalize: consolidate into single C program
41593         * tests/test-canonicalize.sh: Delete; move setup into...
41594         * tests/test-canonicalize.c (main): ...the program, making it
41595         easier to run in debugger.  Add some tests.
41596         * modules/canonicalize-tests (Files): Remove unused file.
41597         (Depends-on): Add progname.
41598         (configure.ac, Makefile.am): Simplify.
41599
41600         test-canonicalize-lgpl: consolidate into single C program
41601         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41602         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41603         easier to run in debugger.  Add some tests.
41604         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41605         (configure.ac, Makefile.am): Simplify.
41606
41607         canonicalize: avoid resolvepath
41608         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41609         unnecessary checks.
41610         * lib/canonicalize.c (includes): Simplify.
41611         (canonicalize_file_name): Drop resolvepath implementation.
41612         * modules/canonicalize (Depends-on): Drop filenamecat.
41613
41614         canonicalize: don't lose errno
41615         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41616         over calls to free.
41617
41618         canonicalize: simplify errno handling
41619         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41620         assignment.
41621
41622         canonicalize, canonicalize-lgpl: update module dependencies
41623         * modules/canonicalize (Depends-on): Add extensions, lstat,
41624         pathmax, stdlib.
41625         (Files): Drop pathmax.h.
41626         (configure.ac): Adjust macro name.
41627         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41628         lstat, stdlib, sys_stat.
41629         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41630         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41631         extensions.
41632         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41633         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41634         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41635         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41636         declaration, if available.
41637         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41638         we can rely on the readlink module.
41639         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41640         (includes): Use <unistd.h> unconditionally.
41641
41642 2009-09-17  Eric Blake  <ebb9@byu.net>
41643
41644         maint: make Include sections of modules consistent
41645         * modules/alloca: Use only header name; no need to list #include.
41646         * modules/alloca-opt: Likewise.
41647         * modules/arpa_inet: Likewise.
41648         * modules/canon-host: Likewise.
41649         * modules/configmake: Likewise.
41650         * modules/dirent: Likewise.
41651         * modules/eealloc: Likewise.
41652         * modules/environ: Likewise.
41653         * modules/fchdir: Likewise.
41654         * modules/fcntl: Likewise.
41655         * modules/fcntl-h: Likewise.
41656         * modules/gethrxtime: Likewise.
41657         * modules/gettime: Likewise.
41658         * modules/ignore-value: Likewise.
41659         * modules/inet_ntop: Likewise.
41660         * modules/inet_pton: Likewise.
41661         * modules/inttypes: Likewise.
41662         * modules/isnand-nolibm: Likewise.
41663         * modules/isnanf-nolibm: Likewise.
41664         * modules/mbchar: Likewise.
41665         * modules/mbfile: Likewise.
41666         * modules/mbiter: Likewise.
41667         * modules/mbuiter: Likewise.
41668         * modules/netdb: Likewise.
41669         * modules/netinet_in: Likewise.
41670         * modules/nproc: Likewise.
41671         * modules/pagealign_alloc: Likewise.
41672         * modules/poll: Likewise.
41673         * modules/printf-frexp: Likewise.
41674         * modules/pthread: Likewise.
41675         * modules/putenv: Likewise.
41676         * modules/random_r: Likewise.
41677         * modules/relocatable-prog: Likewise.
41678         * modules/search: Likewise.
41679         * modules/select: Likewise.
41680         * modules/selinux-h: Likewise.
41681         * modules/settime: Likewise.
41682         * modules/signal: Likewise.
41683         * modules/size_max: Likewise.
41684         * modules/socklen: Likewise.
41685         * modules/ssize_t: Likewise.
41686         * modules/stdarg: Likewise.
41687         * modules/stdbool: Likewise.
41688         * modules/stddef: Likewise.
41689         * modules/stdint: Likewise.
41690         * modules/stdio: Likewise.
41691         * modules/stdlib: Likewise.
41692         * modules/string: Likewise.
41693         * modules/strings: Likewise.
41694         * modules/sys_file: Likewise.
41695         * modules/sys_ioctl: Likewise.
41696         * modules/sys_select: Likewise.
41697         * modules/sys_socket: Likewise.
41698         * modules/sys_stat: Likewise.
41699         * modules/sys_time: Likewise.
41700         * modules/sys_times: Likewise.
41701         * modules/sys_utsname: Likewise.
41702         * modules/sys_wait: Likewise.
41703         * modules/sysexits: Likewise.
41704         * modules/time: Likewise.
41705         * modules/times: Likewise.
41706         * modules/tmpfile: Likewise.
41707         * modules/trim: Likewise.
41708         * modules/unistd: Likewise.
41709         * modules/wchar: Likewise.
41710         * modules/wctype: Likewise.
41711
41712 2009-09-17  Bruno Haible  <bruno@clisp.org>
41713
41714         Make getdate.y compile on QNX and NetBSD 5 / i386.
41715         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41716         TIME_T_FITS_IN_LONG_INT.
41717         * lib/getdate.y (long_time_t): New type.
41718         (relative_time): Change type of 'seconds' field to long_time_t.
41719         (get_date): Update types of local variables. Check against overflow
41720         during conversion from long_time_t to time_t.
41721         Reported by Matt Kraai <kraai@ftbfs.org>
41722         and Hasso Tepper <hasso@netbsd.org>.
41723
41724 2009-09-17  Bruno Haible  <bruno@clisp.org>
41725
41726         * modules/COPYING: Update copyright years.
41727         * modules/README: Likeiwse.
41728         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41729         Reported by Ian Beckwith <ianb@erislabs.net>.
41730
41731 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41732
41733         * users.txt: Update references for gnuit package.
41734
41735 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41736
41737         * m4/getdelim.m4: Fix typo in copyright line.
41738
41739 2009-09-17  Bruno Haible  <bruno@clisp.org>
41740
41741         * lib/atoll.c: Use the standard header with GPL copyright.
41742         * lib/argz.in.h: Likewise.
41743         * lib/glob.c: Likewise.
41744         * lib/glob-libc.h: Likewise.
41745         * lib/random_r.c: Likewise.
41746         * lib/siglist.h: Likewise.
41747         * lib/strsignal.c: Likewise.
41748         Reported by Ian Beckwith <ianb@erislabs.net>.
41749
41750 2009-09-17  Eric Blake  <ebb9@byu.net>
41751
41752         rmdir: ensure correct dependency order
41753         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41754
41755 2009-09-17  Bruno Haible  <bruno@clisp.org>
41756
41757         Disable assertion that fails on NetBSD 5 / i386.
41758         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41759         Reported by Sam Steingold <sds@gnu.org>
41760         and Hasso Tepper <hasso@netbsd.org>.
41761
41762 2009-09-16  Eric Blake  <ebb9@byu.net>
41763
41764         unlinkdir: port to mingw
41765         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41766         on which no one can unlink a directory.
41767
41768         stdlib: sort witness names
41769         * modules/stdlib (Makefile.am): Sort replacements.
41770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41771         * lib/stdlib.in.h: Likewise.
41772
41773         parse-duration-tests: avoid link failure
41774         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41775         LIBINTL.
41776         Reported by Tom G. Christensen.
41777
41778         openat-tests: ensure unlinkat behaves like rmdir
41779         * tests/test-rmdir.c (main): Factor guts...
41780         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41781         * modules/rmdir-tests (Files): Ship new file.
41782         * modules/openat-tests: New test.
41783         * tests/test-unlinkat.c: Likewise.
41784
41785         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41786         * modules/rmdir-errno (Status, Notice): Now obsolete.
41787
41788         rmdir: work around cygwin 1.5.x and mingw bugs
41789         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41790         * lib/rmdir.c (rmdir): Work around it.
41791         * modules/rmdir (Status, Notice): No longer obsolete.
41792         (Files): Add dos.m4.
41793         (Depends-on): Add unistd.
41794         (configure.ac): Set witnesses.
41795         (License): Relax to LGPLv2+.
41796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41797         * modules/unistd (Makefile.am): Substitute witnesses.
41798         * lib/unistd.in.h (rmdir): Declare replacement.
41799         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41800         * modules/rmdir-tests: New tests.
41801         * tests/test-rmdir.c: Likewise.
41802
41803 2009-09-15  Eric Blake  <ebb9@byu.net>
41804
41805         fchdir: improve use of replacement functions
41806         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41807         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41808         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41809         REPLACE_CLOSEDIR.
41810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41811         * modules/sys_stat (Makefile.am): Substitute correct witness.
41812         * modules/dirent (Makefile.am): Likewise.
41813         * modules/unistd (Makefile.am): Likewise.
41814         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41815         * lib/unistd.in.h (dup): Likewise.
41816         * lib/sys_stat.in.h (fstat): Likewise.
41817
41818         maint: ignore gnulib-tool temp files
41819         * .gitignore: Ignore files created during gnulib-tool --test.
41820
41821 2009-09-13  Jim Meyering  <meyering@redhat.com>
41822
41823         posixtm: don't reject a time that specify "60" as the number of seconds
41824         * lib/posixtm.c (posixtime): The code to reject invalid dates
41825         would also reject a time specified with the .60 suffix.
41826         But POSIX allows that, in order to accommodate leap seconds.
41827         So don't reject it.
41828         (main): Adjust tests accordingly.
41829         * modules/posixtm (Depends-on): Add stpcpy.
41830
41831 2009-09-11  Jim Meyering  <meyering@redhat.com>
41832
41833         announce-gen: include [$release_type] in emitted Subject:
41834         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41835         e.g., [stable] in the emitted Subject: line.
41836
41837 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41838
41839         Remove obsolete macros from several modules.
41840         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41841         obsolete Autoconf macros with their modern counterparts.
41842         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41843         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41844         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41845         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41846         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41847         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41848         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41849         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41850         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41851         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41852         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41853         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41854         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41855         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41856         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41857         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41858         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41859         * m4/time_r.m4 (gl_TIME_R): Likewise.
41860         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41861         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41862         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41863
41864         Fix copyright header in build-aux scripts.
41865         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41866         recommendation.
41867         * build-aux/ncftpput-ftp: Likewise.
41868         * build-aux/update-copyright: Likewise.
41869
41870 2009-09-09  Eric Blake  <ebb9@byu.net>
41871
41872         test-link: allow Linux choice of errno
41873         * tests/test-link.c (main): Relax test for alternate error.
41874
41875         strndup: fix improper m4 caching
41876         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41877         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41878         (gl_PREREQ_STRNDUP): Delete.
41879         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41880         * modules/string (Makefile.am): Substitute it.
41881         * lib/string.in.h (strndup): Modernize prototype.
41882
41883         getcwd: port to mingw
41884         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41885         different from the POSIX assumptions made throughout the getcwd
41886         module; fortunately, the mingw getcwd does not need replacement.
41887         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41888         * modules/getcwd-tests: New test.
41889         * tests/test-getcwd.c: Likewise.
41890
41891         link: fix platform bugs
41892         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41893         * lib/link.c (link): Work around them.  Fix related mingw bug.
41894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41895         * modules/unistd (Makefile.am): Substitute it.
41896         * lib/unistd.in.h (link): Declare replacement.
41897         * doc/posix-functions/link.texi (link): Document this.
41898         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41899
41900         test-link: consolidate into single C program, test more cases
41901         * tests/test-link.sh: Delete.
41902         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41903         at least Cygwin and Solaris.
41904         * modules/link-tests (Files): Remove unused file.
41905         (Depends-on): Add errno, sys_stat.
41906         (Makefile.am): Simplify.
41907
41908 2009-09-08  Bruno Haible  <bruno@clisp.org>
41909
41910         Work around towlower, towupper bug on mingw.
41911         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41912         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41913         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41914         * doc/posix-functions/towupper.texi: Likewise.
41915         Reported by Eric Blake.
41916
41917 2009-09-08  Jim Meyering  <meyering@redhat.com>
41918
41919         build: don't try to run autoheader if we don't use it
41920         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41921         is not used in configure.ac.
41922
41923 2009-09-08  Eric Blake  <ebb9@byu.net>
41924
41925         euidaccess: fix compilation error
41926         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41927
41928         rawmemchr: relax license
41929         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41930         okay.
41931         Reported by Jim Meyering.
41932
41933         mkfifoat: new module
41934         * modules/mkfifoat: New file.
41935         * lib/mkfifoat.c: Likewise.
41936         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41937         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41938         * modules/sys_stat (Makefile.am): Use them.
41939         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41940         * MODULES.html.sh (File system functions): Mention module.
41941         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41942         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41943         * modules/mkfifoat-tests: New test.
41944         * tests/test-mkfifoat.c: Likewise.
41945
41946         strchrnul: relax license
41947         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41948         okay.
41949         Reported by Jim Meyering.
41950
41951 2009-09-08  Eric Blake  <ebb9@byu.net>
41952
41953         fstatat: fix compilation on Solaris
41954         * lib/fstatat.c (includes): Add fcntl.h.
41955         Reported by Pádraig Brady.
41956
41957 2009-09-07  Eric Blake  <ebb9@byu.net>
41958
41959         rename: modernize replacement
41960         * modules/rename (Depends-on): Add stdio.
41961         (configure.ac): Declare witness.
41962         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41963         stdio take care of replacement.
41964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41965         * modules/stdio (Makefile.am): Substitute them.
41966         * lib/stdio.in.h (rename): Declare replacement.
41967         * lib/rename.c (includes): Allow cross-compilation to non-windows
41968         machines.
41969         * doc/posix-functions/rename.texi (rename): Improve
41970         documentation.
41971
41972         stdio: sort witness names
41973         * modules/stdio (Makefile.am): Sort replacements.
41974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41975         * lib/stdio.in.h: Likewise.
41976
41977         getcwd: minor cleanups
41978         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41979         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41980
41981         openat: provide more convenience names
41982         * modules/faccessat (configure.ac): Add C witness.
41983         * lib/unistd.in.h (readlinkat): Fix typo.
41984         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41985         convenience wrappers.
41986         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41987         wrappers in syntax checks.
41988
41989 2009-09-06  Eric Blake  <ebb9@byu.net>
41990
41991         doc: fix comments in recent patches
41992         * lib/faccessat.c: Mention correct function.
41993         * lib/fchmodat.c: Likewise.
41994         * lib/fchownat.c: Likewise.
41995         * lib/symlinkat.c: Likewise.
41996         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41997         constants.
41998
41999         faccessat, symlinkat: continue cleanup of previous patch
42000         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
42001         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42002         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
42003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
42004         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
42005         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
42006         set.
42007
42008 2009-09-06  Bruno Haible  <bruno@clisp.org>
42009
42010         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
42011         (fstatat): Declare if GNULIB_FSTATAT is set.
42012         (mkdirat): Declare if GNULIB_MKDIRAT is set.
42013         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
42014         (unlinkat): Declare if GNULIB_UNLINKAT is set.
42015         * modules/fcntl-h (Files): Remove m4/openat.m4.
42016         * modules/sys_stat (Files): Remove m4/openat.m4.
42017         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
42018         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
42019         * modules/unistd (Files): Remove m4/openat.m4.
42020         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
42021         GNULIB_OPENAT.
42022         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
42023         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
42024         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
42025         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
42026         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
42027         gl_OPENAT_DEFAULTS.
42028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
42029         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
42030         Don't require gl_OPENAT_DEFAULTS.
42031         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
42032         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
42033         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
42034         (gl_OPENAT_DEFAULTS): Remove macro.
42035
42036 2009-09-06  Bruno Haible  <bruno@clisp.org>
42037
42038         * modules/openat (configure.ac): Remove unneeded witness.
42039
42040 2009-09-06  Bruno Haible  <bruno@clisp.org>
42041
42042         Set errno to ENOSYS when a function is entirely unsupported.
42043         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
42044         EOPNOTSUPP.
42045         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42046         * modules/chown (Depends-on): Remove errno.
42047
42048 2009-09-06  Bruno Haible  <bruno@clisp.org>
42049
42050         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
42051
42052 2009-09-06  Bruno Haible  <bruno@clisp.org>
42053
42054         * lib/sys_stat.in.h: Fix preprocessor command indentation.
42055
42056 2009-09-06  Ben Pfaff  <blp@gnu.org>
42057             Bruno Haible  <bruno@clisp.org>
42058
42059         Work around a glibc bug in strtok_r.
42060         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
42061         Undefine if UNDEFINE_STRTOK_R is set.
42062         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
42063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42064         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
42065         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
42066         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
42067         UNDEFINE_STRTOK_R.
42068         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
42069
42070 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
42071
42072         exclude: minor fix
42073         * lib/exclude.c: Include wctype.h
42074
42075 2009-09-06  Akim Demaille  <demaille@gostai.com>
42076
42077         bootstrap: improve error message
42078         * build-aux/bootstrap (find_tool): Upon failure, report the list
42079         of candidates.
42080         Honor the initial value of the envvar.
42081
42082 2009-09-05  Eric Blake  <ebb9@byu.net>
42083
42084         symlinkat: new module
42085         * modules/symlinkat: New file.
42086         * lib/symlinkat.c: Likewise.
42087         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
42088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42089         * modules/unistd (Makefile.am): Use them.
42090         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
42091         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
42092         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
42093         * MODULES.html.sh (File system functions): Mention module.
42094         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42095         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42096         * modules/symlinkat-tests: New test.
42097         * tests/test-symlinkat.c: Likewise.
42098
42099         test-openat-safer: add more checks
42100         * tests/test-openat-safer.c (main): Check more code paths.
42101
42102 2009-09-05  Jim Meyering  <meyering@redhat.com>
42103
42104         syntax-check: detect unnecessary inclusion of openat.h
42105         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
42106
42107 2009-09-05  Bruno Haible  <bruno@clisp.org>
42108
42109         Support towlower, towupper.
42110         * doc/posix-functions/towlower.texi: Mention module wctype.
42111         * doc/posix-functions/towupper.texi: Likewise.
42112         * lib/wctype.in.h (towlower, towupper): New functions.
42113         * tests/test-wctype.c: Include stdio.h, stdlib.h.
42114         (ASSERT): New macro.
42115         (e): New variable.
42116         (main): Test also towlower, towupper. Test WEOF argument.
42117         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42118
42119 2009-09-05  Bruno Haible  <bruno@clisp.org>
42120
42121         Fix conversion behaviour when the input is invalid.
42122         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
42123         mark occurring in first pass of indirect conversion.
42124         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
42125         input.
42126         Found by clang's static analyzer.
42127
42128 2009-09-05  Bruno Haible  <bruno@clisp.org>
42129
42130         * tests/test-striconveh.c (main): Test indirect conversion on platforms
42131         where direct conversion is possible.
42132
42133 2009-09-04  Eric Blake  <ebb9@byu.net>
42134
42135         openat: fail with ENOENT on empty name
42136         * lib/openat-proc.c (openat_proc_name): Special-case the empty
42137         buffer.
42138
42139         link-follow: fix logic bug in prior patch
42140         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
42141         reversed sense of yes and no in prior patch.  Avoid confusing
42142         compilation failure with desired semantics.
42143
42144         link-follow: accommodate mingw and cross-compilation
42145         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
42146         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
42147         cross-compilation results to -1, to make linkat easier to
42148         implement when cross-compiling.  Trivially support mingw.
42149         * modules/link-follow (configure.ac): Call new name.
42150         * NEWS: Mention this.
42151
42152 2009-09-03  Eric Blake  <ebb9@byu.net>
42153
42154         faccessat: compile replacement
42155         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
42156         needed.
42157
42158         fts: fix compilation error
42159         * lib/fts.c (includes): Re-add "openat.h", for
42160         openat_needs_fchdir.
42161
42162         faccessat: new module
42163         * modules/faccessat: New file.
42164         * lib/faccessat.c: Likewise.
42165         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42167         * modules/unistd (Makefile.am): Use it.
42168         * lib/unistd.in.h (faccessat): Declare it.
42169         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
42170         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
42171         * MODULES.html.sh (File system functions): Mention it.
42172         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
42173         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42174
42175         euidaccess: prefer POSIX over non-standard implementation
42176         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
42177         * lib/euidaccess.c (euidaccess): Use it if available.
42178
42179         openat: make template easier to use
42180         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
42181         AT_FUNC_F2 to be undefined.
42182         (VALIDATE_FLAG): New macro; use it to reject bad flags.
42183         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
42184         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
42185         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
42186         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
42187         Likewise.
42188         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
42189         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
42190         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
42191         Likewise.
42192
42193         openat: declare in POSIX headers
42194         * NEWS: Mention this.
42195         * modules/openat (configure.ac): Declare witnesses.
42196         (Depends-on): Add fcntl-h, sys_stat, unistd.
42197         (Include): Mention correct headers.
42198         * modules/fcntl-h (Depends-on): Add link-warning.
42199         (Files): Add openat.m4.
42200         (Makefile.am): Substitute witnesses.
42201         * modules/sys_stat (Files, Makefile.am): Likewise.
42202         * modules/unistd (Files, Makefile.am): Likewise.
42203         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
42204         (gl_OPENAT_DEFAULTS): New macro.
42205         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
42206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
42207         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
42208         (SYS_STAT_H): Remove unused variable.
42209         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
42210         * lib/fcntl--.h (includes): Remove unneeded header.
42211         * lib/openat-safer.c (includes): Likewise.
42212         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
42213         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
42214         appropriate headers.
42215         (__OPENAT_PREFIX): Delete.
42216         * lib/fcntl.in.h (openat): Provide declaration.
42217         (AT_FDCWD): Fix Solaris bug.
42218         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
42219         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
42220         * lib/fchmodat.c (includes):  Adjust to find declaration.
42221         * lib/fchownat.c (includes): Likewise.
42222         * lib/mkdirat.c (includes): Likewise.
42223         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
42224         still visible.
42225
42226 2009-09-02  Eric Blake  <ebb9@byu.net>
42227
42228         errno: use consistently
42229         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
42230         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
42231         * lib/canonicalize.c (ELOOP): Likewise.
42232         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
42233         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
42234         * lib/lchown.c (EOPNOTSUPP): Likewise.
42235         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
42236         * lib/savewd.c (ESTALE): Likewise.
42237         * lib/settime.c (ENOSYS): Likewise.
42238         * lib/utimens.c (ENOSYS): Likewise.
42239         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
42240         * lib/chdir-safer.c (ELOOP): Likewise.
42241         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
42242         * modules/c-stack (Depends-on): Add errno.
42243         * modules/canonicalize (Depends-on): Likewise.
42244         * modules/chdir-safer (Depends-on): Likewise.
42245         * modules/fdopendir (Depends-on): Likewise.
42246         * modules/inet_ntop (Depends-on): Likewise.
42247         * modules/inet_pton (Depends-on): Likewise.
42248         * modules/lchown (Depends-on): Likewise.
42249         * modules/openat (Depends-on): Likewise.
42250         * modules/savewd (Depends-on): Likewise.
42251         * modules/settime (Depends-on): Likewise.
42252         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
42253
42254         fts: avoid leaking fds
42255         * modules/fts (Depends-on): Add cloexec.
42256         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
42257         flag.
42258
42259         fts: make directory fds more robust
42260         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
42261         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
42262
42263         backupfile, chdir-long, fts, savedir: make safer
42264         * lib/backupfile.c (includes): Use "dirent--.h", since
42265         numbered_backup can write to stderr during readdir.
42266         * lib/savedir.c (includes): Likewise.
42267         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
42268         emulation can write to stderr on failure.
42269         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
42270         * lib/getcwd.c: Document why opendir_safer is unused.
42271         * lib/glob.c: Likewise.
42272         * lib/scandir.c: Likewise.
42273         * lib/openat-proc.c: Likewise, for open_safer.
42274         * modules/backupfile (Depends-on): Add dirent-safer.
42275         * modules/savedir (Depends-on): Likewise.
42276         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
42277         * modules/chdir-long (Depends-on): Add openat-safer.
42278
42279         openat-safer: new module
42280         * modules/openat-safer: New file.
42281         * lib/openat-safer.c: Likewise.
42282         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
42283         * lib/fcntl-safer.h (openat_safer): Declare.
42284         * lib/fcntl--.h (openat): Override.
42285         * MODULES.html.sh (File descriptor based I/O): Mention it.
42286         * lib/openat.h: Add double-inclusion guards.
42287         * lib/openat.c (includes): Only include "fcntl-safer.h", not
42288         "fcntl--.h", so we can implement openat.
42289         * modules/openat-safer-tests: New test.
42290         * tests/test-openat-safer.c: New file.
42291
42292         dirent-safer: new module
42293         * modules/dirent-safer: New file.
42294         * lib/dirent--.h: Likewise.
42295         * lib/dirent-safer.h: Likewise.
42296         * lib/opendir-safer.c: Likewise.
42297         * m4/dirent-safer.m4: Likewise.
42298         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
42299         * modules/dirent-safer-tests: New test.
42300         * tests/test-dirent-safer.c: New file.
42301         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
42302
42303         fdopendir: optimize on mingw
42304         * lib/unistd.in.h (_gl_directory_name): New prototype.
42305         * lib/fchdir.c (_gl_directory_name): Implement it.
42306         (fchdir): Use it to simplify implementation.
42307         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
42308         fchdir, when available, to avoid calling [f]chdir().
42309
42310         fdopendir: split into its own module
42311         * lib/openat.c (fdopendir): Move...
42312         * lib/fdopendir.c: ...into new file.
42313         * modules/fdopendir: New module.
42314         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
42315         * modules/openat (Depends-on): Add fdopendir.
42316         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
42317         fdopendir here.
42318         * modules/savedir (Depends-on): Only need fdopendir, not full
42319         openat.
42320         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
42321         * lib/openat.h (fdopendir): Drop prototype.
42322         * lib/dirent.in.h (fdopendir): Provide prototype.
42323         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
42324         * modules/dirent (Makefile.am): Substitute them.
42325         * MODULES.html.sh (File system functions): Mention it.
42326         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
42327         * modules/fdopendir-tests: New file.
42328         * tests/test-fdopendir.c: Likewise.
42329
42330         fchdir: use more consistent macro convention
42331         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
42332         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
42333         REPLACE_FCHDIR, rather than relying on config.h macros.
42334         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
42335         inside a single make-time REPLACE_FCHDIR block, rather than using
42336         the config.h FCHDIR_REPLACEMENT.
42337         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
42338         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
42339         Manage fstat replacement.
42340         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
42341         REPLACE_FCHDIR.
42342         * modules/sys_stat (Files): Add m4/unistd_h.m4.
42343         (Makefile.am): Substitute REPLACE_FCHDIR.
42344         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
42345         FCHDIR_REPLACEMENT.
42346         * lib/dup-safer.c (dup_safer): Likewise.
42347         * lib/dup2.c (rpl_dup2): Likewise.
42348         * lib/dup3.c (rpl_dup3): Likewise.
42349         * lib/open.c (rpl_open): Likewise.
42350
42351         fchdir: simplify error handling, and support dup3
42352         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
42353         stdbool, malloc-posix, realloc-posix.
42354         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
42355         (ensure_dirs_slot): Return false on allocation failure.
42356         (rpl_dup2): Delete.
42357         (_gl_register_dup): New function.
42358         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
42359         (_gl_register_fd): Close fd on allocation failure.
42360         * lib/fcntl.in.h (_gl_register_fd): Update signature.
42361         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
42362         prototype.
42363         (rpl_dup2_fchdir): Delete prototype.
42364         * lib/open.c (open): Update caller.
42365         * lib/dup2.c (dup2): Track fchdir metadata.
42366         * lib/dup3.c (dup3): Likewise.
42367         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
42368         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
42369
42370 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42371
42372         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
42373         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
42374         don't pass arguments to AC_OUTPUT.
42375
42376 2009-09-02  Bruno Haible  <bruno@clisp.org>
42377
42378         * modules/mkdtemp (License): Relicense under LGPLv2+.
42379         Reported by Paolo Bonzini.
42380
42381 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42382
42383         Replace uses of obsolete autoconf macros in Jim's modules.
42384         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
42385         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
42386         can evoke a warning from autoconf when run with -Wobsolete
42387         enabled.  They were declared obsolete for good reasons (see
42388         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
42389         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
42390         should not continue using the deprecated macros.
42391         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
42392         obsolete Autoconf macros with modern counterparts.
42393         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42394         * m4/dos.m4 (gl_AC_DOS): Likewise.
42395         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
42396         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
42397         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
42398         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
42399         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
42400         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
42401         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
42402         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
42403         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42404         Likewise.
42405         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
42406         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
42407         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
42408         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
42409         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
42410         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
42411
42412 2009-09-01  Eric Blake  <ebb9@byu.net>
42413
42414         fchdir: fix off-by-one bug in previous patch
42415         * lib/fchdir.c (rpl_fstat): Use correct bounds.
42416         (_gl_unregister_fd): Delete useless if.
42417
42418 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
42419
42420         maint.mk: sort the list of syntax-check rules
42421         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
42422         easier to get a sense of progress when the rules are run sequentially
42423         and take a long time.
42424
42425 2009-09-01  Simon Josefsson  <simon@josefsson.org>
42426
42427         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
42428         * modules/netinet_in: Likewise.
42429         * modules/sys_file: Likewise.
42430         * modules/sys_ioctl: Likewise.
42431         * modules/sys_select: Likewise.
42432         * modules/sys_socket: Likewise.
42433         * modules/sys_stat: Likewise.
42434         * modules/sys_time: Likewise.
42435         * modules/sys_times: Likewise.
42436         * modules/sys_utsname: Likewise.
42437         * modules/sys_wait: Likewise.
42438
42439 2009-09-01  Jim Meyering  <meyering@redhat.com>
42440
42441         fts: help ensure that return values are not ignored
42442         * lib/fts_.h (__GNUC_PREREQ): Define.
42443         (__attribute_warn_unused_result__): Define.
42444         (fts_children, fts_close, fts_open, fts_read): Declare with
42445         __attribute_warn_unused_result__.
42446
42447         fts: fts_close now fails also when closing a dir file descriptor fails
42448         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
42449         and propagate to caller, along with errno.
42450
42451         announce-gen: correct formatting in --help output
42452         * build-aux/announce-gen (usage): Move the one-line description in
42453         --help output "up", to where it belongs, just after Usage:.
42454
42455 2009-08-31  Eric Blake  <ebb9@byu.net>
42456
42457         fchdir: port to mingw
42458         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
42459         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
42460         opened, then use a substitute.
42461         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
42462         replacement.
42463         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
42464         (_gl_register_fd): No need to check stat if open already filters
42465         all directories.
42466         (fchdir): Fix error condition to match POSIX.
42467         * modules/fchdir (Depends-on): Add sys_stat.
42468         * doc/posix-functions/open.texi (open): Document the limitation.
42469         * modules/fchdir-tests: New file.
42470         * tests/test-fchdir.c: Likewise.
42471
42472         canonicalize: allow cross-testing from cygwin to mingw
42473         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
42474         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
42475         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
42476         Likewise.
42477         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
42478         target does not support symlinks.
42479         * tests/test-canonicalize-lgpl.sh: Likewise.
42480
42481         chown: avoid compilation warning on mingw
42482         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
42483         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
42484         mingw.
42485         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42486         * modules/chown (Depends-on): Add errno.
42487
42488 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42489
42490         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
42491         command.
42492
42493 2009-08-31  Jim Meyering  <meyering@redhat.com>
42494
42495         canonicalize: remove useless initialization
42496         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
42497         initialization of local, "end".
42498
42499 2009-08-30  Bruno Haible  <bruno@clisp.org>
42500
42501         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
42502         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
42503         ENOSYS.
42504
42505 2009-08-30  Bruno Haible  <bruno@clisp.org>
42506
42507         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
42508         /usr/xpg4/bin/tr when it exists.
42509         * tests/test-pipe-filter-gi1.sh: Likewise.
42510
42511 2009-08-30  Bruno Haible  <bruno@clisp.org>
42512
42513         Work around deficient /usr/bin/id program on Solaris.
42514         * tests/test-file-has-acl.sh (ID): New variable.
42515         * tests/test-set-mode-acl.sh (ID): Likewise.
42516         * tests/test-copy-acl.sh (ID): Likewise.
42517         * tests/test-copy-file.sh (ID): Likewise.
42518
42519 2009-08-30  Bruno Haible  <bruno@clisp.org>
42520
42521         New module 'xstriconveh'.
42522         * lib/xstriconveh.h: New file.
42523         * lib/xstriconveh.c: New file.
42524         * modules/xstriconveh: New file.
42525
42526 2009-08-30  Bruno Haible  <bruno@clisp.org>
42527
42528         Make it easier to use mem_cd_iconveh.
42529         * lib/striconveh.h (iconveh_t): New type.
42530         (iconveh_open, iconveh_close): New declarations.
42531         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42532         with a single 'const iconveh_t *' argument.
42533         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
42534         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42535         with a single 'const iconveh_t *' argument.
42536         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
42537         * tests/test-striconveh.c (main): Update.
42538         * NEWS: Mention the change.
42539
42540 2009-08-30  Bruno Haible  <bruno@clisp.org>
42541
42542         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
42543         problem.
42544
42545 2009-08-30  Bruno Haible  <bruno@clisp.org>
42546
42547         Work around iconv_open problem on Solaris.
42548         * lib/iconv_open-solaris.gperf: New file.
42549         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
42550         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
42551         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
42552         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
42553         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
42554         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
42555
42556 2009-08-29  Jim Meyering  <meyering@redhat.com>
42557
42558         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42559         * top/maint.mk (cvs-check): Remove target; it was just an alias
42560         to the better-named vc-diff-check.
42561         (maintainer-distcheck): Remove rule.  It was used only from
42562         the (alpha/beta/major) target, and all of its commands but one
42563         were coreutils-specific.
42564         (vc-dist): Remove rule.
42565         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42566         Run vc-diff-check, not vc-dist.
42567         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42568
42569 2009-08-27  Bruno Haible  <bruno@clisp.org>
42570
42571         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42572         of 0.
42573
42574 2009-08-27  Bruno Haible  <bruno@clisp.org>
42575
42576         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42577         compilers.
42578         * doc/func.texi: Document the SunPRO C bug.
42579
42580 2009-08-27  Bruno Haible  <bruno@clisp.org>
42581
42582         Fix link error on Solaris.
42583         * tests/test-parse-duration.c (xstrdup): Remove function.
42584
42585 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42586
42587         ignore-value: handle pointer types, too
42588         * lib/ignore-value.h (__attribute__): Remove definition.
42589         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42590         of a more concise and more-often effective "(void) i" statement.
42591         (ignore_ptr): New function to suppress warnings from functions that
42592         return pointers, and to make it explicit that one function doesn't
42593         handle all cases.
42594
42595 2009-08-25  Bruno Haible  <bruno@clisp.org>
42596
42597         dup2: work around a Linux bug.
42598         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42599         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42600         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42601         Reported by Simon Josefsson.
42602
42603 2009-08-25  Jim Meyering  <meyering@redhat.com>
42604
42605         libguestfs uses gnulib
42606         * users.txt: Add libguestfs.
42607
42608 2009-08-24  Eric Blake  <ebb9@byu.net>
42609
42610         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42611         * lib/pipe2.c (includes): Add binary-io.h.
42612         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42613
42614 2009-08-24  Bruno Haible  <bruno@clisp.org>
42615
42616         Tolerate declared but missing accept4 syscall.
42617         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42618         available.
42619         * lib/sys_socket.in.h (accept4): If the function is already present,
42620         override it.
42621         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42622         * modules/accept4 (Makefile.am): Compile accept4.c always.
42623         Reported by Paolo Bonzini and Eric Blake.
42624
42625 2009-08-23  Bruno Haible  <bruno@clisp.org>
42626
42627         New module 'accept4'.
42628         * lib/sys_socket.in.h (accept4): New declaration.
42629         * lib/accept4.c: New file.
42630         * m4/accept4.m4: New file.
42631         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42632         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42633         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42634         HAVE_ACCEPT4.
42635         * modules/accept4: New file.
42636         * doc/glibc-functions/accept4.texi: Mention the new module.
42637
42638 2009-08-24  Jim Meyering  <meyering@redhat.com>
42639
42640         progname: also set global program_invocation_name, when possible
42641         Before this change, a libtool-enabled program that calls glibc's
42642         error function would report the program name as
42643         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42644         * modules/progname (configure.ac): Check for a declaration of
42645         program_invocation_name.
42646         * lib/progname.c:  Include <errno.h>.
42647         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42648         Set program_invocation_name.
42649
42650 2009-08-23  Bruno Haible  <bruno@clisp.org>
42651
42652         * lib/dup3.c: Include <string.h>.
42653
42654 2009-08-23  Bruno Haible  <bruno@clisp.org>
42655
42656         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42657         * lib/pipe2.c (pipe2): Likewise.
42658         Suggested by Eric Blake.
42659
42660 2009-08-23  Bruno Haible  <bruno@clisp.org>
42661
42662         Tolerate declared but missing dup3 syscall.
42663         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42664         * lib/unistd.in.h (dup3): If the function is already present,
42665         override it.
42666         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42667         * modules/dup3 (Makefile.am): Compile dup3.c always.
42668         Reported by Paolo Bonzini.
42669
42670 2009-08-23  Bruno Haible  <bruno@clisp.org>
42671
42672         Tolerate declared but missing pipe2 syscall.
42673         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42674         available.
42675         * lib/unistd.in.h (pipe2): If the function is already present,
42676         override it.
42677         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42678         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42679         Reported by Paolo Bonzini.
42680
42681 2009-08-23  Bruno Haible  <bruno@clisp.org>
42682
42683         * lib/pipe2.c (pipe2): Move #ifs inside function.
42684
42685 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42686
42687         quotearg: document limitations of quote_these_too
42688         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42689         those limitations are created.
42690         * lib/quotearg.h (set_char_quoting): Document that digits and
42691         letters that are special after backslash are not permitted.
42692         (quotearg_char): Cross-reference set_char_quoting documentation.
42693
42694 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42695
42696         quotearg: implement custom_quoting_style
42697         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42698         right_quote fields.
42699         (set_custom_quoting): New public function.
42700         (quotearg_buffer_restyled): Add left_quote and right_quote
42701         arguments, handle them very much like locale quoting, and update
42702         all uses.
42703         (quotearg_n_custom): New public function.
42704         (quotearg_n_custom_mem): New public function.
42705         (quotearg_custom): New public function.
42706         (quotearg_custom_mem): New public function.
42707         * lib/quotearg.h: Prototype and document new public functions.
42708         (enum quoting_style): For escape_quoting_style and
42709         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42710         ignored even though they're otherwise like c_quoting_style.
42711         Add custom_quoting_style member and document with comparison to
42712         clocale_quoting_style.
42713         * tests/test-quotearg.c (custom_quotes): New array.
42714         (custom_results): New array.
42715         (main): Extend to test custom quoting.
42716
42717 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42718
42719         quotearg: fix right quote escaping when it's in quote_these_too
42720         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42721         quote, be sure to prepend only one backslash.
42722         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42723         (main): Test it.
42724
42725 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42726
42727         quotearg-tests: test escaping of embedded locale quotes
42728         * tests/test-quotearg.c (struct result_strings): Add member for
42729         new input.
42730         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42731         (inputs): Add new input.
42732         (results_g): Add expected results.
42733         (flag_results): Likewise.
42734         (locale_results): Likewise.
42735         (compare_strings): Check those.
42736
42737 2009-08-23  Bruno Haible  <bruno@clisp.org>
42738
42739         Tests for module 'dup3'.
42740         * modules/dup3-tests: New file.
42741         * tests/test-dup3.c: New file.
42742
42743         New module 'dup3'.
42744         * lib/unistd.in.h (dup3): New declaration.
42745         * lib/dup3.c: New file.
42746         * m4/dup3.m4: New file.
42747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42748         HAVE_DUP3.
42749         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42750         * modules/dup3: New file.
42751         * doc/glibc-functions/dup3.texi: Mention the new module.
42752
42753 2009-08-23  Bruno Haible  <bruno@clisp.org>
42754
42755         Tweak the dup2 test.
42756         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42757         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42758         the test file is still empty. Fix argument order of lseek.
42759
42760 2009-08-23  Bruno Haible  <bruno@clisp.org>
42761
42762         Avoid test link errors when the modules getopt-gnu, gettext are used.
42763         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42764         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42765
42766 2009-08-23  Bruno Haible  <bruno@clisp.org>
42767
42768         Fix getdtablesize() on mingw.
42769         * lib/getdtablesize.c (getdtablesize): Implement differently.
42770         * lib/unistd.in.h (getdtablesize): Improve comment.
42771
42772 2009-08-23  Bruno Haible  <bruno@clisp.org>
42773
42774         New module 'mkostemp'.
42775         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42776         * lib/stdlib.in.h (mksotemp): New declaration.
42777         * lib/mkostemp.c: New file, from glibc with modifications.
42778         * lib/tempname.h (GT_FILE): Remove outdated comment.
42779         (gen_tempname): Add flags argument.
42780         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42781         (__GT_FILE): Map to 1.
42782         (small_open, large_open): Remove macros.
42783         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42784         * lib/mkstemp.c (mkstemp): Update.
42785         * lib/mkdtemp.c (mkdtemp): Likewise.
42786         * m4/mkostemp.m4: New file.
42787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42788         HAVE_MKOSTEMP.
42789         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42790         HAVE_MKOSTEMP.
42791         * modules/mkostemp: New file, based on modules/mkstemp.
42792         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42793         * NEWS: Mention the change.
42794
42795 2009-08-23  Bruno Haible  <bruno@clisp.org>
42796
42797         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42798         Reported by Eric Blake.
42799
42800 2009-08-23  Bruno Haible  <bruno@clisp.org>
42801
42802         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42803         Reported by Eric Blake.
42804
42805 2009-08-23  Bruno Haible  <bruno@clisp.org>
42806
42807         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42808         * modules/pipe2 (Depends-on): Likewise.
42809
42810 2009-08-23  Eric Blake  <ebb9@byu.net>
42811
42812         fcntl-h: add O_TTY_INIT support
42813         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42814         * tests/test-fcntl-h.c (o): Test it.
42815         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42816
42817         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42818         * modules/fcntl: Move <fcntl.h> header replacement...
42819         * modules/fcntl-h: ...to new name, so as not to collide with
42820         like-named function.
42821         * tests/test-fcntl.c: Rename...
42822         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42823         * modules/fcntl-tests: Rename...
42824         * modules/fcntl-h-tests: ...to this.  Update test file name.
42825         * modules/chdir-long (Depends-on): Update clients.
42826         * modules/chdir-safer (Depends-on): Likewise.
42827         * modules/fcntl-safer (Depends-on): Likewise.
42828         * modules/fts (Depends-on): Likewise.
42829         * modules/mkancesdirs (Depends-on): Likewise.
42830         * modules/mkdir-p (Depends-on): Likewise.
42831         * modules/open (Depends-on): Likewise.
42832         * modules/savewd (Depends-on): Likewise.
42833         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42834         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42835
42836 2009-08-22  Bruno Haible  <bruno@clisp.org>
42837
42838         * modules/binary-io (License): Relicense under LGPL.
42839         * modules/pipe2 (License): Likewise.
42840
42841 2009-08-22  Bruno Haible  <bruno@clisp.org>
42842
42843         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42844         return value.
42845         * lib/pipe-filter-gi.c (filter_init): Likewise.
42846         Reported by Eric Blake.
42847
42848 2009-08-22  Bruno Haible  <bruno@clisp.org>
42849
42850         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42851         * modules/pipe (Depends-on): Add pipe2.
42852
42853 2009-08-22  Bruno Haible  <bruno@clisp.org>
42854
42855         Tests for module 'pipe2'.
42856         * modules/pipe2-tests: New file.
42857         * tests/test-pipe2.c: New file.
42858
42859         New module 'pipe2'.
42860         * lib/unistd.in.h (pipe2): New declaration.
42861         * lib/pipe2.c: New file.
42862         * m4/pipe2.m4: New file.
42863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42864         HAVE_PIPE2.
42865         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42866         * modules/pipe2: New file.
42867         * doc/glibc-functions/pipe2.texi: Mention the new module.
42868
42869 2009-08-22  Bruno Haible  <bruno@clisp.org>
42870
42871         Reference some new glibc functions.
42872         * doc/glibc-functions/accept4.texi: New file.
42873         * doc/glibc-functions/dup3.texi: New file.
42874         * doc/glibc-functions/mkostemp.texi: New file.
42875         * doc/glibc-functions/pipe2.texi: New file.
42876         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42877         (Glibc sys/socket.h): Refer to accept4.
42878         (Glibc unistd.h): Refer to dup3, pipe2.
42879         Reported by Eric Blake.
42880
42881 2009-08-22  Jim Meyering  <meyering@redhat.com>
42882             Bruno Haible  <bruno@clisp.org>
42883
42884         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42885         This makes it so packages using automake-1.11's silent-rules option
42886         can print e.g., a single "GEN    configmake.h" line, rather than
42887         the 30+ statements that perform the job.  If you want to see the
42888         actual commands, you can still run "make V=1".
42889         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42890         so that make output is abbreviated when those variables are defined
42891         appropriately.
42892         * modules/argz: Likewise.
42893         * modules/arpa_inet: Likewise.
42894         * modules/byteswap: Likewise.
42895         * modules/configmake: Likewise.
42896         * modules/dirent: Likewise.
42897         * modules/errno: Likewise.
42898         * modules/fcntl: Likewise.
42899         * modules/float: Likewise.
42900         * modules/fnmatch: Likewise.
42901         * modules/getopt-posix: Likewise.
42902         * modules/glob: Likewise.
42903         * modules/iconv_open: Likewise.
42904         * modules/inttypes: Likewise.
42905         * modules/localcharset: Likewise.
42906         * modules/locale: Likewise.
42907         * modules/math: Likewise.
42908         * modules/netdb: Likewise.
42909         * modules/netinet_in: Likewise.
42910         * modules/poll: Likewise.
42911         * modules/posix_spawnp-tests: Likewise.
42912         * modules/sched: Likewise.
42913         * modules/search: Likewise.
42914         * modules/selinux-h: Likewise.
42915         * modules/signal: Likewise.
42916         * modules/spawn: Likewise.
42917         * modules/stdarg: Likewise.
42918         * modules/stdbool: Likewise.
42919         * modules/stddef: Likewise.
42920         * modules/stdint: Likewise.
42921         * modules/stdio: Likewise.
42922         * modules/stdlib: Likewise.
42923         * modules/string: Likewise.
42924         * modules/strings: Likewise.
42925         * modules/sys_file: Likewise.
42926         * modules/sys_ioctl: Likewise.
42927         * modules/sys_select: Likewise.
42928         * modules/sys_socket: Likewise.
42929         * modules/sys_stat: Likewise.
42930         * modules/sys_time: Likewise.
42931         * modules/sys_times: Likewise.
42932         * modules/sys_utsname: Likewise.
42933         * modules/sys_wait: Likewise.
42934         * modules/sysexits: Likewise.
42935         * modules/time: Likewise.
42936         * modules/unistd: Likewise.
42937         * modules/wchar: Likewise.
42938         * modules/wctype: Likewise.
42939
42940 2009-08-22  Jim Meyering  <meyering@redhat.com>
42941
42942         announce-gen: detect write failure
42943         * build-aux/announce-gen: Add Coda at end.
42944         Remove equivalent-but-more-verbose block at top.
42945
42946 2009-08-19  Akim Demaille  <demaille@gostai.com>
42947
42948         bootstrap: --help to stdout.
42949         * bootstrap (usage): Don't send --help to stderr.
42950         Use a here doc instead of a long string.
42951
42952 2009-08-21  Eric Blake  <ebb9@byu.net>
42953
42954         test-popen-safer: split from test-popen
42955         * tests/test-popen.c (main): Move...
42956         * tests/test-popen.h: ...into new file.
42957         * tests/test-popen-safer2.c: New file.
42958         * modules/popen-tests (Files): Add test-popen.h.
42959         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42960         Suggested by Bruno Haible.
42961
42962         test-fcntl-safer: split from test-open
42963         * tests/test-open.c (main): Move...
42964         * tests/test-open.h: ...into new file.
42965         * tests/test-fcntl-safer.c: New file.
42966         * modules/open-tests (Files): Add test-open.h.
42967         * modules/fcntl-safer-tests: New file.
42968         Suggested by Bruno Haible.
42969
42970         test-fopen-safer: split from test-fopen
42971         * tests/test-fopen.c (main): Move...
42972         * tests/test-fopen.h: ...into new file.
42973         * tests/test-fopen-safer.c: New file.
42974         * modules/fopen-tests (Files): Add test-fopen.h.
42975         * modules/fopen-safer-tests: New file.
42976         Suggested by Bruno Haible.
42977
42978 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42979
42980         popen-safer: test O_CLOEXEC at run-time.
42981         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42982
42983 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42984
42985         fcntl: move more flags to the header
42986         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42987         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42988         * lib/fcntl.in.h: Do both things here.
42989
42990 2009-08-21  Jim Meyering  <meyering@redhat.com>
42991
42992         consistently remove $@-t before redirecting to it
42993         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42994         * modules/alloca-opt: Likewise.
42995         * modules/byteswap: Likewise.
42996         * modules/fnmatch: Likewise.
42997         * modules/getopt-posix: Likewise.
42998         * modules/glob: Likewise.
42999         * modules/poll: Likewise.
43000         * modules/posix_spawnp-tests: Likewise.
43001         * modules/sys_socket: Likewise.
43002         * modules/sysexits: Likewise.
43003
43004 2009-08-21  Eric Blake  <ebb9@byu.net>
43005
43006         popen: simplify access to original popen
43007         * lib/popen.c (rpl_popen): No need to worry about popen being a
43008         macro.
43009         Reported by Bruno Haible.
43010
43011 2009-08-20  Eric Blake  <ebb9@byu.net>
43012
43013         build: avoid some compiler warnings
43014         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
43015         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
43016         type.
43017         (new_exclude_segment, excluded_file_pattern_p)
43018         (excluded_file_name_p): Reduce scope.
43019         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
43020         old-style declaration.
43021
43022 2009-08-20  Simon Josefsson  <simon@josefsson.org>
43023
43024         * tests/test-exclude1.sh: Handle Windows EOL.
43025         * tests/test-exclude2.sh: Likewise.
43026         * tests/test-exclude3.sh: Likewise.
43027         * tests/test-exclude4.sh: Likewise.
43028         * tests/test-exclude5.sh: Likewise.
43029         * tests/test-exclude6.sh: Likewise.
43030         * tests/test-exclude7.sh: Likewise.
43031
43032 2009-08-19  Akim Demaille  <demaille@gostai.com>
43033
43034         bootstrap: find sha1sum when named gsha1sum.
43035         * bootstrap (find_tool): New.
43036         ($SHA1SUM): New.
43037         Use it.
43038
43039 2009-08-20  Jim Meyering  <meyering@redhat.com>
43040
43041         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
43042         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
43043         expression that converts "." in a file name to "\." in the resulting
43044         regexp.  Start with a dummy statement, so that prior shell variable
43045         definitions are expanded portably.  Reported by Simon Josefsson.
43046
43047 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
43048
43049         Fix polling for writeability of a screen buffer.
43050         * lib/poll.c: Distinguish input and screen buffers for the
43051         Win32 implementation.
43052         * lib/select.c: Likewise.
43053
43054 2009-08-19  Eric Blake  <ebb9@byu.net>
43055
43056         popen-safer: prevent popen from clobbering std descriptors
43057         * modules/popen-safer: New file.
43058         * lib/popen-safer.c: Likewise.
43059         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
43060         * lib/stdio--.h (popen): Provide override.
43061         * lib/stdio-safer.h (popen_safer): Provide declaration.
43062         * tests/test-popen.c (includes): Partially test this.
43063         * modules/popen-safer-tests: New file, for more tests.
43064         * tests/test-popen-safer.c: Likewise.
43065         * MODULES.html.sh (file stream based Input/Output): Mention it.
43066
43067         tests: test some of the *-safer modules
43068         * modules/fopen-safer (Depends-on): Add fopen.
43069         * modules/fcntl-safer (Depends-on): Add fcntl.
43070         * modules/stdlib-safer (Depends-on): Add stdlib.
43071         (configure.ac): Set indicator.
43072         * modules/unistd-safer (configure.ac): Likewise.
43073         * modules/tmpfile-safer (configure.ac): Likewise.
43074         (Depends-on): Add tmpfile.
43075         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
43076         active.
43077         * tests/test-fopen.c (includes): Test safer versions when they are
43078         in use.
43079         * tests/test-open.c (includes): Likewise.
43080
43081         popen: fix cygwin 1.5 bug when stdin closed
43082         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
43083         * modules/popen: New file.
43084         * modules/popen-tests: Likewise.
43085         * tests/test-popen.c: Likewise.
43086         * m4/popen.m4: Likewise.
43087         * lib/popen.c: Likewise.
43088         * lib/stdio.in.h (popen): New declaration.
43089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
43090         * modules/stdio (Makefile.am): Likewise.
43091         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
43092
43093 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
43094
43095         maint.mk: give full control over update-copyright exclusions
43096         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
43097         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
43098         (update-copyright): Don't force inclusion of top-level
43099         ChangeLog.  Don't force exclusion of all COPYING files, but make
43100         them the default exclusion instead.
43101
43102 2009-08-16  Bruno Haible  <bruno@clisp.org>
43103
43104         Fix test failures on Solaris 10.
43105         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
43106         tests when Solaris iconv() is used.
43107         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43108         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43109         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43110         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43111         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43112
43113 2009-08-16  Bruno Haible  <bruno@clisp.org>
43114
43115         Fix test failures on Solaris 10.
43116         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
43117         'tr' program and pass it as first argument.
43118         * tests/test-pipe-filter-gi1.sh: Likewise.
43119         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
43120         program as first argument.
43121         * tests/test-pipe-filter-gi1.c (main): Likewise.
43122
43123 2009-08-16  Eric Blake  <ebb9@byu.net>
43124
43125         fpurge: fix previous commits
43126         * modules/fpurge (Makefile.am): Make replacement conditional,
43127         partially reverting 2007-04-29 change; missed in previous
43128         attempt.
43129         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
43130         is missing.
43131
43132 2009-08-16  Bruno Haible  <bruno@clisp.org>
43133
43134         Clarify fpurge's effect on the file position.
43135         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
43136         * tests/test-fpurge.c (main): Make a second pass for checking the file
43137         position.
43138
43139 2009-08-16  Bruno Haible  <bruno@clisp.org>
43140
43141         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
43142         declaration of fpurge is missing.
43143         * tests/test-fpurge.c (main): Check that the file has not more contents
43144         than expected. Close the file before removing it.
43145
43146 2009-08-15  Eric Blake  <ebb9@byu.net>
43147
43148         fpurge: don't wrap working cygwin implementation
43149         * lib/fpurge.c (fpurge): Fix comment typo.
43150         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
43151         1.7 to avoid replacement.
43152         * tests/test-fpurge.c (main): Enhance test.
43153
43154 2009-08-15  Eric Blake  <ebb9@byu.net>
43155         and Jim Meyering  <meyering@redhat.com>
43156
43157         test-update-copyright: skip if perl is insufficient
43158         * tests/test-update-copyright.sh: Failure to run maintainer tool
43159         should not cause testsuite failure on cygwin 1.5.
43160
43161 2009-08-14  Eric Blake  <ebb9@byu.net>
43162
43163         doc: mention more functions added in cygwin 1.7.0
43164         * doc/posix-headers/limits.texi (limits.h): Update for recent
43165         cygwin additions.
43166         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
43167         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
43168         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
43169         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
43170         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
43171
43172 2009-08-14  Eric Blake  <ebb9@byu.net>
43173
43174         maint.mk: simplify update-copyright rule
43175         * top/maint.mk (update-copyright-local): Delete, and document how
43176         to do it in cfg.mk instead.
43177         (update-copyright-exclude-regexp): Delete, and document how to do
43178         it in .x-update-copyright instead.
43179         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
43180         exclude ChangeLog.
43181
43182 2009-08-14  Bruno Haible  <bruno@clisp.org>
43183
43184         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
43185
43186 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43187
43188         maint.mk: support update-copyright-env
43189         * top/maint.mk (update-copyright-env): Define place-holder.
43190         (update-copyright): Expand $(update-copyright-env) before
43191         invoking update-copyright.
43192
43193 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43194
43195         update-copyright: implement forced reformatting
43196         * build-aux/update-copyright: Implement and document
43197         UPDATE_COPYRIGHT_FORCE.
43198         * tests/test-update-copyright.sh: Test it.
43199
43200 2009-08-14  Eric Blake  <ebb9@byu.net>
43201         and Bruno Haible  <bruno@clisp.org>
43202
43203         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
43204         * tests/test-locale.c: Revert previous patch related to NULL.
43205         * tests/test-stdio.c: Likewise.
43206         * tests/test-stdlib.c: Likewise.
43207         * tests/test-string.c: Likewise.
43208         * tests/test-unistd.c: Likewise.
43209         * modules/time-tests (Depends-on): Add verify.
43210         * modules/wchar-tests (Depends-on): Likewise.
43211         * tests/test-time.c: Test for NULL compliance.
43212         * tests/test-wchar.c: Likewise.
43213         * modules/locale (Depends-on): Add stddef.
43214         * modules/stdio (Depends-on): Likewise.
43215         * modules/stdlib (Depends-on): Likewise.
43216         * modules/string (Depends-on): Likewise.
43217         * modules/time (Depends-on): Likewise.
43218         * modules/unistd (Depends-on): Likewise.
43219         * modules/wchar (Depends-on): Likewise.
43220         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
43221         * lib/stdlib.in.h (includes): Likewise.
43222         * lib/string.in.h (includes): Likewise.
43223         * lib/time.in.h (includes): Likewise.
43224         * lib/unistd.in.h (includes): Likewise.
43225         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
43226         replaced.
43227         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43228         * m4/stddef_h.m4: New file.
43229         * modules/stddef: Likewise.
43230         * lib/stddef.in.h: Likewise.
43231         * modules/stddef-tests: Likewise.
43232         * tests/test-stddef.c: Likewise.
43233         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
43234         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
43235         * doc/posix-headers/locale.texi (locale.h): Likewise.
43236         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
43237         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43238         * doc/posix-headers/string.texi (string.h): Likewise.
43239         * doc/posix-headers/time.texi (time.h): Likewise.
43240         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
43241         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
43242
43243 2009-08-14  Eric Blake  <ebb9@byu.net>
43244
43245         doc: improve git diff of texinfo files
43246         * .gitattributes: Add rule for *.texi files, with hint on how to
43247         use it.
43248         Copied from m4, and based on a report by Bruno Haible.
43249
43250 2009-08-14  Bruno Haible  <bruno@clisp.org>
43251
43252         Disable multithread support by default on Cygwin 1.5.x for real.
43253         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
43254
43255 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43256
43257         update-copyright: much ado about intervals
43258         * build-aux/update-copyright: Implement and document
43259         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
43260         of copyright year intervals.
43261         Also, document UPDATE_COPYRIGHT_YEAR.
43262         * tests/test-update-copyright.sh: Test it.
43263
43264         update-copyright: convert 2-digit to 4-digit years
43265         * build-aux/update-copyright: Implement and document.
43266         * tests/test-update-copyright.sh: Update.
43267
43268 2009-08-14  Jim Meyering  <meyering@redhat.com>
43269
43270         test-exclude: avoid coreutils "make check" failure
43271         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
43272         just as in test-argmatch.c.
43273
43274 2009-08-13  Eric Blake  <ebb9@byu.net>
43275
43276         test-dup2: fix bad assumption
43277         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
43278         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
43279
43280         test-version-etc: fix CRLF portability issue
43281         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
43282         recognize \r.
43283         * tests/test-argp-version-etc-1.sh: Likewise.
43284
43285         getopt: update client modules
43286         * modules/argp (Depends-on): Use getopt-gnu.
43287         * modules/git-merge-changelog (Depends-on): Likewise.
43288         * modules/long-options (Depends-on): Likewise.
43289         * modules/xstrtol (Depends-on): 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.  Don't fail on CRLF differences.  Rewrite to use
43295         multiple -e instead of multiple sed forks, suggested by Eric Blake
43296         <ebb9@byu.net>.
43297         * tests/test-argp-version-etc-1.sh: Likewise.
43298
43299 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43300
43301         * tests/test-version-etc.sh: Don't fail on different
43302         project/version.
43303
43304 2009-08-12  Bruno Haible  <bruno@clisp.org>
43305
43306         Tests for modules 'getopt-posix', 'getopt-gnu'.
43307         * modules/getopt-posix-tests: New file.
43308         * tests/test-getopt.c: New file.
43309         * tests/test-getopt.h: New file.
43310         * tests/test-getopt_long.h: New file.
43311
43312         New modules 'getopt-posix', 'getopt-gnu'.
43313         * modules/getopt-gnu: New file, renamed from modules/getopt.
43314         * modules/getopt-posix: New file.
43315         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
43316         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
43317         (gl_GETOPT): Remove macro.
43318         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
43319         Disable the test against BSD systems that declare optreset. Test
43320         against mingw bug. Test against lack of support of optional arguments
43321         on many platforms.
43322         * doc/glibc-headers/getopt.texi: Update module name and list of
43323         relevant platforms.
43324         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
43325         'getopt-gnu' and more portability problems.
43326         * NEWS: Mention the changes.
43327
43328 2009-08-12  Bruno Haible  <bruno@clisp.org>
43329
43330         Ensure that optarg etc. get declared by <unistd.h>.
43331         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
43332         AC_USE_SYSTEM_EXTENSIONS.
43333         * modules/getopt (Depends-on): Add 'extensions'.
43334
43335 2009-08-12  Bruno Haible  <bruno@clisp.org>
43336
43337         Avoid test link errors.
43338         * modules/pipe-filter-ii-tests (Makefile.am): Define
43339         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
43340         * modules/pipe-filter-gi-tests (Makefile.am): Define
43341         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
43342         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43343
43344 2009-08-12  Bruno Haible  <bruno@clisp.org>
43345
43346         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
43347         gl_GETOPT_SUBSTITUTE before.
43348         (gl_GETOPT): Use it.
43349         * m4/argp.m4 (gl_ARGP): Update.
43350         Reported by Sergey Poznyakoff.
43351
43352         * m4/getopt.m4: Reorder macros.
43353         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
43354         (gl_GETOPT_SUBSTITUTE): Remove macro.
43355
43356 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43357
43358         Minor improvement in gitlog-to-changelog
43359
43360         * build-aux/gitlog-to-changelog: New option `--format' makes
43361         output format string configurable.
43362
43363 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43364
43365         Optimize exclude: use hash tables for non-wildcard patterns.
43366
43367         * lib/exclude.c: Include hash.h and mbuiter.h
43368         (struct exclude_pattern, exclude_segment): New data types.
43369         (struct exclude): Rewrite.
43370         (fnmatch_pattern_has_wildcards): New function.
43371         (new_exclude_segment, free_exclude_segment): New functions.
43372         (excluded_file_pattern_p, excluded_file_name_p): New functions.
43373         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
43374         * lib/exclude.h (is_fnmatch_pattern): New prototype.
43375         * modules/exclude: Depend on hash and mbuiter.
43376
43377         * modules/exclude-tests: New file.
43378         * tests/test-exclude.c: New file.
43379         * tests/test-exclude1.sh: New file.
43380         * tests/test-exclude2.sh: New file.
43381         * tests/test-exclude3.sh: New file.
43382         * tests/test-exclude4.sh: New file.
43383         * tests/test-exclude5.sh: New file.
43384         * tests/test-exclude6.sh: New file.
43385         * tests/test-exclude7.sh: New file.
43386
43387 2009-08-12  Bruno Haible  <bruno@clisp.org>
43388
43389         Ensure that getopt() gets declared by <unistd.h>.
43390         * lib/unistd.in.h: Conditionally include getopt.h.
43391         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
43392         Set GNULIB_UNISTD_H_GETOPT.
43393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43394         GNULIB_UNISTD_H_GETOPT.
43395         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
43396
43397 2009-08-12  Bruno Haible  <bruno@clisp.org>
43398
43399         Clarify logic.
43400         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
43401         gl_replace_getopt instead of GETOPT_H.
43402
43403 2009-08-12  Bruno Haible  <bruno@clisp.org>
43404
43405         * m4/getopt.m4: Add comments.
43406
43407 2009-08-12  Bruno Haible  <bruno@clisp.org>
43408
43409         Disable multithread support by default on Cygwin 1.5.x.
43410         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
43411         set gl_use_threads=no if not specified otherwise.
43412
43413 2009-08-11  Bruno Haible  <bruno@clisp.org>
43414
43415         Avoid compilation error on NetBSD 5.0.
43416         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
43417         * tests/test-stdio.c: Likewise.
43418         * tests/test-stdlib.c: Likewise.
43419         * tests/test-string.c: Likewise.
43420         * tests/test-unistd.c: Likewise.
43421         Reported by Greg Troxel <gdt@ir.bbn.com>
43422         at <https://savannah.gnu.org/support/?106973>.
43423
43424 2009-08-11  Bruno Haible  <bruno@clisp.org>
43425
43426         * modules/dup2-tests (Depends-on): Remove close.
43427
43428         Undo 2009-07-19 commit.
43429         * modules/acl-tests (Depends-on): Remove close.
43430         * modules/binary-io-tests (Depends-on): Likewise.
43431         * modules/closein-tests (Depends-on): Likewise.
43432         * modules/flock-tests (Depends-on): Likewise.
43433         * modules/fsync-tests (Depends-on): Likewise.
43434         * modules/lseek-tests (Depends-on): Likewise.
43435         * modules/pipe-tests (Depends-on): Likewise.
43436         * modules/posix_spawn-tests (Depends-on): Likewise.
43437         * modules/posix_spawnp-tests (Depends-on): Likewise.
43438         * modules/stat-time-tests (Depends-on): Likewise.
43439         * modules/yesno-tests (Depends-on): Likewise.
43440
43441 2009-08-10  Bruno Haible  <bruno@clisp.org>
43442
43443         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
43444
43445 2009-08-10  Bruno Haible  <bruno@clisp.org>
43446
43447         Fix a gcc warning.
43448         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
43449
43450 2009-08-10  Bruno Haible  <bruno@clisp.org>
43451
43452         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
43453         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
43454         not only the first time.
43455         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
43456         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
43457         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
43458         is 1, not only the the first time.
43459
43460 2009-08-10  Bruno Haible  <bruno@clisp.org>
43461
43462         Make it possible to use module 'gethostname' without module 'close'.
43463         * lib/unistd.in.h (close): Evoke a link error only if
43464         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43466         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43467         * modules/unistd (Makefile.am): Substitute
43468         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43469         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
43470         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43471         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
43472         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43473         * modules/sys_ioctl (Makefile.am): Substitute
43474         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43475         * modules/socket (configure.ac): On native Windows, set
43476         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
43477         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43478         Reported by Sam Steingold <sds@gnu.org>.
43479
43480 2009-08-10  Bruno Haible  <bruno@clisp.org>
43481
43482         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
43483         * modules/ioctl (configure.ac): Likewise.
43484
43485 2009-08-10  Bruno Haible  <bruno@clisp.org>
43486
43487         Avoid collision between gnulib wrapper and libintl wrapper.
43488         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
43489         already defined in intl/printf.c.
43490         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
43491         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
43492
43493 2009-08-09  Bruno Haible  <bruno@clisp.org>
43494
43495         Make <sys/select.h> really self-contained, also on Solaris 10.
43496         * lib/sys_select.in.h: Include <string.h>.
43497         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
43498         Solaris 10 problem.
43499         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
43500         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
43501         Reported by Jim Meyering.
43502
43503 2009-08-09  Bruno Haible  <bruno@clisp.org>
43504
43505         Avoid warnings from 'aclocal' that are due to a use of macro name
43506         AM_XGETTEXT_OPTION that is not defined in automake.
43507         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
43508         automake.
43509         * modules/error (configure.ac): Likewise.
43510         * modules/propername (configure.ac): Likewise.
43511         * modules/vasprintf (configure.ac): Likewise.
43512         * modules/verror (configure.ac): Likewise.
43513         * modules/xprintf (configure.ac): Likewise.
43514         * modules/xvasprintf (configure.ac): Likewise.
43515
43516 2009-08-08  Bruno Haible  <bruno@clisp.org>
43517
43518         Avoid compilation error in C++ mode.
43519         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
43520         Reported by Sam Steingold <sds@gnu.org>.
43521
43522 2009-08-08  Bruno Haible  <bruno@clisp.org>
43523
43524         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
43525         for the various Unix platforms.
43526         * doc/posix-headers/limits.texi: Update platforms list regarding
43527         HOST_NAME_MAX.
43528         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43529
43530 2009-08-07  Jim Meyering  <meyering@redhat.com>
43531
43532         selinux-at: fix typo in a comment
43533         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
43534         Spotted by Paolo Bonzini.
43535
43536         selinux-at: remove redundant m4 code, add documentation
43537         * modules/selinux-at (configure.ac): Remove redundant code.
43538         LIB_SELINUX is already set via the dependent module, selinux-h.
43539         (Include): Add quotes around selinux-at.h.
43540         * lib/selinux-at.h: Add documentation.
43541         Reported by Bruno Haible in
43542         http://marc.info/?l=gnulib-bug&m=124958988300749
43543
43544 2009-08-07  Bruno Haible  <bruno@clisp.org>
43545
43546         Avoid link error on MacOS X 10.3 and 10.4.
43547         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
43548         on non-ELF systems.
43549         * lib/argp-pv.c (argp_program_version): Likewise.
43550         Reported by Simon Josefsson.
43551
43552 2009-08-07  Simon Josefsson  <simon@josefsson.org>
43553
43554         * tests/test-version-etc.sh: Use $EXEEXT.
43555
43556 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43557
43558         update-copyright: update documentation to point to maint.mk
43559         * build-aux/update-copyright: Here.
43560
43561 2009-08-06  Jim Meyering  <meyering@redhat.com>
43562
43563         maint.mk: support update-copyright-local
43564         * top/maint.mk (update-copyright-local): Define place-holder.
43565         (update-copyright): Depend on $(update-copyright-local).
43566
43567 2009-08-06  Jim Meyering  <meyering@redhat.com>
43568
43569         selinux-at: new module
43570         Initially written for coreutils, this module will soon be
43571         used by findutils, too.
43572         * MODULES.html.sh [Misc]: Add selinux-at.
43573         * lib/selinux-at.h: New file, from coreutils.
43574         * lib/selinux-at.c: Likewise.
43575         * modules/selinux-at: Likewise.
43576         (License): Change from LGPL to GPL, since it depends
43577         on the GPL'd openat module.
43578
43579         doc: update README
43580         * README: Remove references to cogito.
43581         Remove cvs-repo-updating instructions from 2007.
43582         Don't imply that CVS is better if you have limited disk space.
43583
43584 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43585
43586         update-copyright: support C-style comments
43587         * build-aux/update-copyright: Implement and document.
43588         * tests/test-update-copyright.sh: Test.
43589
43590 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43591
43592         update-copyright: support omitted "(C)"
43593         * build-aux/update-copyright: Implement and document.  Also,
43594         allow variable whitespace before "(C)".
43595         * tests/test-update-copyright.sh: Test.
43596
43597 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43598
43599         update-copyright: don't trip on non-FSF copyright statements
43600         * build-aux/update-copyright: Fix so that the first correctly
43601         formatted FSF copyright statement is recognized no matter what
43602         appears before it.  Update documentation.
43603         * tests/test-update-copyright.sh: Test that.
43604
43605 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43606
43607         update-copyright: clean up code a little
43608         * build-aux/update-copyright: Append "_re" to the name of any
43609         variable holding a regular expression.
43610         Replace "old" and "new" with "stmt" in variable names.
43611         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43612         handled correctly.
43613         Format code more consistently.
43614
43615 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43616
43617         update-copyright-tests: improve portability
43618         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43619         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43620
43621 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43622
43623         update-copyright: support @copyright{} and &copy;
43624         * build-aux/update-copyright: Implement and document.
43625         * tests/test-update-copyright.sh: Test.
43626
43627 2009-08-04  Jim Meyering  <meyering@redhat.com>
43628
43629         update-copyright-tests: correctly test EOL=\r\n handling
43630         * tests/test-update-copyright.sh: Put \r at the end of some lines
43631         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43632
43633         maint.mk: make update-copyright exclusion list more configurable
43634         * top/maint.mk (update-copyright): Default to excluding COPYING,
43635         but allow an override, in case someone does want to update that file.
43636
43637         maint.mk: don't update copyright date in COPYING
43638         * top/maint.mk (update-copyright): Exclude COPYING.
43639
43640         maint.mk: add a copyright-updating rule
43641         * top/maint.mk (update-copyright): New rule.
43642         Derived from coreutils/Makefile.am.
43643
43644         update-copyright: rename some variables
43645         * build-aux/update-copyright: Rename a few variables for clarity.
43646         Tweak syntax.  List Joel E. Denny as coauthor.
43647
43648 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43649
43650         update-copyright: fix bug for 2-digit last year and add tests
43651         * build-aux/update-copyright: Fix bug.
43652         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43653         specified.
43654         * modules/update-copyright-tests: New
43655         * tests/test-update-copyright.sh: New.
43656
43657 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43658
43659         update-copyright: handle leading tabs in line prefix
43660         * build-aux/update-copyright: Count leading tabs as 8 spaces
43661         when computing margin.  This helps with the formatting of
43662         ChangeLogs, for example.
43663         Fix documentation a little.
43664
43665 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43666
43667         update-copyright: support EOL=\r\n
43668         * build-aux/update-copyright: Implement that.
43669
43670 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43671
43672         update-copyright: automatically format copyright statements
43673         * build-aux/update-copyright: Implement that.
43674         Also, be a little more predictable and safer by always failing
43675         when the full copyright format is not perfectly recognized as an
43676         unbroken whole.  Discussed at
43677         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43678         Rewrite documentation.
43679
43680 2009-08-03  Bruno Haible  <bruno@clisp.org>
43681
43682         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43683
43684 2009-08-02  Bruno Haible  <bruno@clisp.org>
43685
43686         Tests for module 'uname'.
43687         * modules/uname-tests: New file.
43688         * tests/test-uname.c: New file.
43689
43690         New module 'uname'.
43691         * lib/uname.c: New file.
43692         * m4/uname.m4: New file.
43693         * modules/uname: New file.
43694         * doc/posix-functions/uname.texi: Mention the new module.
43695
43696 2009-08-02  Bruno Haible  <bruno@clisp.org>
43697
43698         Tests for module 'sys_utsname'.
43699         * modules/sys_utsname-tests: New file.
43700         * tests/test-sys_utsname.c: New file.
43701
43702         New module 'sys_utsname'.
43703         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43704         * m4/sys_utsname_h.m4: New file.
43705         * modules/sys_utsname: New file.
43706         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43707
43708 2009-08-02  Bruno Haible  <bruno@clisp.org>
43709
43710         Implicitly initialize the sockets library.
43711         * lib/gethostname.c: Include sockets.h.
43712         (rpl_gethostname): Invoke gl_sockets_startup.
43713         * lib/socket.c: Include sockets.h.
43714         (rpl_socket): Invoke gl_sockets_startup.
43715         * modules/gethostname (Depends-on): Add sockets.
43716         * modules/socket (Depends-on): Likewise.
43717         * tests/test-poll.c: Don't include sockets.h.
43718         (main): Don't invoke gl_sockets_startup.
43719         * tests/test-select.c: Don't include sockets.h.
43720         (main): Don't invoke gl_sockets_startup.
43721
43722 2009-08-02  Bruno Haible  <bruno@clisp.org>
43723
43724         Allow multiple calls to gl_sockets_startup.
43725         * lib/sockets.c (initialized_sockets_version): New variable.
43726         (gl_sockets_startup): Do nothing if already called for this or a higher
43727         version.
43728         (gl_sockets_cleanup): Reset initialized_sockets_version.
43729
43730 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43731
43732         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43733         different project/version.
43734
43735 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43736             Bruno Haible  <bruno@clisp.org>
43737
43738         Tests for module 'pipe-filter-gi'.
43739         * modules/pipe-filter-gi-tests: New file.
43740         * tests/test-pipe-filter-gi1.sh: New file.
43741         * tests/test-pipe-filter-gi1.c: New file.
43742         * tests/test-pipe-filter-gi2.sh: New file.
43743         * tests/test-pipe-filter-gi2-main.c: New file.
43744         * tests/test-pipe-filter-gi2-child.c: New file.
43745
43746         New module 'pipe-filter-gi'.
43747         * lib/pipe-filter-gi.c: New file.
43748         * modules/pipe-filter-gi: New file.
43749
43750 2009-08-02  Bruno Haible  <bruno@clisp.org>
43751             Paolo Bonzini  <bonzini@gnu.org>
43752
43753         Tests for module 'pipe-filter-ii'.
43754         * modules/pipe-filter-ii-tests: New file.
43755         * tests/test-pipe-filter-ii1.sh: New file.
43756         * tests/test-pipe-filter-ii1.c: New file.
43757         * tests/test-pipe-filter-ii2.sh: New file.
43758         * tests/test-pipe-filter-ii2-main.c: New file.
43759         * tests/test-pipe-filter-ii2-child.c: New file.
43760
43761         New module 'pipe-filter-ii'.
43762         * lib/pipe-filter.h: New file.
43763         * lib/pipe-filter-ii.c: New file.
43764         * lib/pipe-filter-aux.h: New file.
43765         * modules/pipe-filter-ii: New file.
43766
43767 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43768
43769         * lib/gc-libgcrypt.c: Change copyright to FSF.
43770         * lib/gc-gnulib.c: Likewise.
43771
43772 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43773
43774         * lib/gethostname.c: Include limits.h.
43775
43776 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43777             Bruno Haible  <bruno@clisp.org>
43778
43779         Ensure HOST_NAME_MAX as part of the gethostname module.
43780         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43781         define also HOST_NAME_MAX.
43782         * tests/test-gethostname.c: Include <limits.h>.
43783         (main): Check also HOST_NAME_MAX.
43784         * doc/posix-headers/limits.texi: Document the mingw problem.
43785
43786 2009-08-02  Bruno Haible  <bruno@clisp.org>
43787
43788         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43789         Add comments.
43790
43791 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43792
43793         * lib/gethostname.c: Add Windows wrapper.
43794         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43795         * modules/gethostname: Depend on sys_socket & errno, for also
43796         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43797         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43798
43799 2009-07-31  Jim Meyering  <meyering@redhat.com>
43800
43801         getloadavg: fix symbol name in comment
43802         * lib/getloadavg.c: Correct a typo I introduced when adding
43803         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43804         Matt Kraai spotted the problem.
43805
43806 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43807
43808         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43809         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43810         code also if ! defined N_NAME_POINTER.
43811         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43812         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43813         but the n_name member is a 12-byte array.
43814
43815 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43816
43817         update-copyright: generalize comment handling
43818         * build-aux/update-copyright: Handle copyright statements
43819         within more comment styles.
43820         Document usage.
43821         Report any file with an external copyright holder or parse failure.
43822
43823 2009-07-29  Jim Meyering  <meyering@redhat.com>
43824
43825         mktime: correct setting of REPLACE_MKTIME
43826         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43827
43828         update-copyright: new module
43829         * modules/update-copyright: New file.
43830         * build-aux/update-copyright: New file.
43831         * MODULES.html.sh (maint+release support): Add update-copyright.
43832
43833 2009-07-27  Bruno Haible  <bruno@clisp.org>
43834
43835         Fix compilation error when <ctime> is used and mktime is replaced.
43836         * lib/time.in.h (mktime): New declaration.
43837         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43838         REPLACE_MKTIME instead of defining mktime in config.h.
43839         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43840         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43841         Reported by Ross McFarland <rwmcfa1@neces.com>.
43842
43843 2009-07-27  Bruno Haible  <bruno@clisp.org>
43844
43845         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43846         Reported by Matt Kraai <mkraai@beckman.com>.
43847
43848 2009-07-25  Jim Meyering  <meyering@redhat.com>
43849
43850         maint.mk: avoid warnings about missing files
43851         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43852         diagnostic when .prev-version does not exist.
43853         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43854         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43855         nonexistent cfg.mk.
43856         Suggestions from Simon Josefsson.
43857
43858 2009-07-25  Bruno Haible  <bruno@clisp.org>
43859
43860         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43861         defined as macros. Needed on QNX 6.4.1.
43862         Reported by Matt Kraai <mkraai@beckman.com>.
43863
43864 2009-07-23  Jim Meyering  <meyering@redhat.com>
43865
43866         maint.mk: invoke "make dist" with a working value of XZ_OPT
43867         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43868
43869 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43870
43871         Make fseeko.c compile on QNX.
43872         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43873
43874 2009-07-22  Peter Simons  <simons@cryp.to>
43875
43876         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43877         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43878         * lib/md4.h: Likewise.
43879         * lib/md5.h: Likewise.
43880         * lib/sha1.h: Likewise.
43881         * lib/sha256.h: Likewise.
43882         * lib/sha512.h: Likewise.
43883
43884         tests-sha1: don't assign literal string to 'char *' variable
43885         * tests/test-sha1.c (main): Declare locals with "const" to match
43886         attributes of the right hand side.
43887
43888 2009-07-21  Eric Blake  <ebb9@byu.net>
43889
43890         dup2: fix more mingw problems
43891         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43892         fd to itself.
43893         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43894         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43895         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43896         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43897         care of mingw bugs.
43898
43899 2009-07-21  Jim Meyering  <meyering@redhat.com>
43900
43901         vc-list-files: avoid failure when /bin/sh is dash
43902         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43903         On some Debian based systems, /bin/sh is a symlink to dash, and running
43904         this command would omit the "/" following each 'tests' prefix:
43905           dash -x build-aux/vc-list-files -C . tests
43906         That is because bash and dash work differently:
43907           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43908           bash ok
43909           dash odd
43910
43911 2009-07-21  Eric Blake  <ebb9@byu.net>
43912
43913         dup2-tests: test previous patch
43914         * modules/dup2-tests: New file.
43915         * tests/test-dup2.c: Likewise.
43916         * tests/test-open.c (main): Avoid unspecified behavior.
43917         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43918         test.
43919
43920         dup2: work around mingw and cygwin 1.5 bug
43921         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43923         * modules/unistd (Makefile.am): Substitute it.
43924         * lib/unistd.in.h (dup2): Declare the replacement.
43925         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43926         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43927         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43928         * modules/execute (Depends-on): Add dup2.
43929         * modules/fseterr (Depends-on): Likewise.
43930         * modules/pipe (Depends-on): Likewise.
43931         * modules/posix_spawn-internal (Depends-on): Likewise.
43932
43933 2009-07-21  Bruno Haible  <bruno@clisp.org>
43934
43935         * modules/.gitattributes: New file.
43936
43937 2009-07-20  Bruno Haible  <bruno@clisp.org>
43938
43939         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43940         (main): Use it.
43941
43942 2009-07-20  Eric Blake  <ebb9@byu.net>
43943
43944         test-pipe: make a bit more robust.
43945         * tests/test-pipe.c (myerr): Allow error messages regardless of
43946         what we do to stderr.
43947         (test_pipe): Rearrange to avoid deadlock.
43948         (child_main): Try a larger read, to ensure we avoided deadlock.
43949         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43950         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43951         if misused.
43952
43953 2009-07-19  Jim Meyering  <meyering@redhat.com>
43954
43955         fts: avoid false-positive cycle-detection
43956         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43957         for each new command line argument.
43958
43959 2009-07-19  Bruno Haible  <bruno@clisp.org>
43960
43961         Fix build error on mingw with the modules sys_select and unistd.
43962         * modules/acl-tests (Depends-on): Add close.
43963         * modules/binary-io-tests (Depends-on): Likewise.
43964         * modules/closein-tests (Depends-on): Likewise.
43965         * modules/flock-tests (Depends-on): Likewise.
43966         * modules/fsync-tests (Depends-on): Likewise.
43967         * modules/lseek-tests (Depends-on): Likewise.
43968         * modules/pipe-tests (Depends-on): Likewise.
43969         * modules/posix_spawn-tests (Depends-on): Likewise.
43970         * modules/posix_spawnp-tests (Depends-on): Likewise.
43971         * modules/stat-time-tests (Depends-on): Likewise.
43972         * modules/yesno-tests (Depends-on): Likewise.
43973
43974 2009-07-19  Bruno Haible  <bruno@clisp.org>
43975
43976         Unify conditionals.
43977         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43978         macros, not at the compiler macros.
43979         * lib/pipe.c: Likewise.
43980         * lib/execute.c: Likewise.
43981         * lib/spawni.c: Likewise.
43982
43983 2009-07-19  Bruno Haible  <bruno@clisp.org>
43984
43985         Fix handling of closed stdin/stdout/stderr on mingw.
43986         * lib/w32spawn.h: Include unistd.h.
43987         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43988         file descriptor with O_NOINHERIT flag.
43989         (fd_safer_noinherit): New function, based on fd-safer.c.
43990         (dup_safer_noinherit): New function, based on dup-safer.c.
43991         (undup_safer_noinherit): New function.
43992         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43993         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43994         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43995         instead of fd_safer.
43996         * tests/test-pipe.c: Include <windows.h>.
43997         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43998         result.
43999
44000         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
44001         from main.
44002         (test_pipe): Pass an extra argument for disambiguation.
44003         (main): Invoke parent_main or child_main.
44004
44005         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
44006         consistently.
44007
44008 2009-07-18  Eric Blake  <ebb9@byu.net>
44009
44010         test-pipe: fix mingw build
44011         * tests/test-pipe.c (main): Avoid fcntl on mingw.
44012
44013 2009-07-18  Bruno Haible  <bruno@clisp.org>
44014
44015         * modules/pipe-tests (Makefile.am): Fix typo.
44016
44017 2009-07-18  Eric Blake  <ebb9@byu.net>
44018
44019         error: fix mingw build
44020         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
44021         Reported by Bruno Haible.
44022
44023         error: avoid undefined use of stdout
44024         * lib/error.c (error, error_at_line): Check that fd 1 is open
44025         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
44026         is handling faults and the close_stdout module wants to report the
44027         detection of closed stdout as an error.
44028
44029 2009-07-17  Eric Blake  <ebb9@byu.net>
44030
44031         pipe: be robust in face of closed fds
44032         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
44033         should cause child to misbehave.
44034         * modules/pipe-tests: New module.
44035         * tests/test-pipe.c: New file.
44036         * tests/test-pipe.sh: New file.
44037         Reported by Akim Demaille.
44038
44039 2009-07-14  Bruno Haible  <bruno@clisp.org>
44040
44041         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
44042         Reported by anonymous kc.
44043
44044 2009-07-07  Jim Meyering  <meyering@redhat.com>
44045
44046         maint.mk: don't look for translatable strings in *.m4 or *.mk
44047         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
44048         when searching for translatable strings.
44049
44050 2009-07-05  Jim Meyering  <meyering@redhat.com>
44051
44052         remove superfluous parentheses in STREQ definition
44053         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
44054         * lib/getugroups.c (STREQ): Likewise.
44055         * lib/fnmatch.c (STREQ): Likewise.
44056         Spotted by Bruno Haible.
44057
44058 2009-07-04  Jim Meyering  <meyering@redhat.com>
44059
44060         argv-iter: new module
44061         * MODULES.html.sh: Add argv-iter.
44062         * lib/argv-iter.c, lib/argv-iter.h: New files.
44063         * modules/argv-iter: New file.
44064         * modules/argv-iter-tests: New file.
44065         * tests/test-argv-iter.c: Test it.
44066
44067 2009-07-04  Bruno Haible  <bruno@clisp.org>
44068
44069         Fix assertion.
44070         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
44071         contains more exact copies of a given entry than file2, leave the extra
44072         copies unpaired rather than aborting.
44073         Reported by Eric Blake.
44074
44075 2009-07-02  Bruno Haible  <bruno@clisp.org>
44076
44077         Speedup git-merge-changelog for git cherry-pick.
44078         * lib/git-merge-changelog.c (struct entries_mapping): New type.
44079         (entries_mapping_get): New function, extracted from compute_mapping.
44080         (entries_mapping_reverse_get): New function.
44081         (compute_mapping): Add a 'full' argument. Return the result in a
44082         'struct entries_mapping'.
44083         (main): Update. Access the mappings through entries_mapping_get.
44084         Reported by Eric Blake.
44085
44086 2009-07-02  Bruno Haible  <bruno@clisp.org>
44087
44088         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
44089         best_i.
44090
44091 2009-07-02  Bruno Haible  <bruno@clisp.org>
44092
44093         Speed up approximate search for matching ChangeLog entries.
44094         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
44095         argument. Call fstrcmp_bounded instead of fstrcmp.
44096         (compute_mapping, try_split_merged_entry, main): Update callers.
44097
44098 2009-07-02  Bruno Haible  <bruno@clisp.org>
44099
44100         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
44101
44102 2009-06-30  Bruno Haible  <bruno@clisp.org>
44103
44104         Reduce the number of uc_is_cased calls.
44105         * lib/unicase.h (casing_suffix_context_t): Add
44106         'first_char_except_ignorable' field.
44107         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
44108         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
44109         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
44110         Update initializer.
44111         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
44112         case-ignorable characters.
44113         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
44114         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
44115         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
44116         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
44117         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
44118
44119 2009-06-30  Bruno Haible  <bruno@clisp.org>
44120
44121         Tests for module 'unicase/ignorable'.
44122         * modules/unicase/ignorable-tests: New file.
44123         * tests/unicase/test-ignorable.c: New file, generated by
44124         gen-uni-tables.
44125
44126         Tests for module 'unicase/cased'.
44127         * modules/unicase/cased-tests: New file.
44128         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
44129         * tests/unicase/test-predicate-part1.h: New file, derived from
44130         tests/unictype/test-predicate-part1.h.
44131         * tests/unicase/test-predicate-part2.h: New file, same as
44132         tests/unictype/test-predicate-part2.h.
44133
44134         Fix evaluation of "Before C" condition of FINAL_SIGMA.
44135         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
44136         (output_casing_properties): New function.
44137         (main): Call it.
44138         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
44139         * lib/unicase/cased.c: Include unictype/bitmap.h.
44140         (uc_is_cased): Define through a bitmap lookup.
44141         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
44142         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
44143         (uc_is_case_ignorable): Define through a bitmap lookup.
44144         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
44145         lib/unictype/bitmap.h.
44146         (Depends-on): Add inline. Clean up.
44147         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
44148         lib/unictype/bitmap.h.
44149         (Depends-on): Add inline. Clean up.
44150         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
44151         recognition.
44152         * tests/unicase/test-u16-tolower.c (main): Likewise.
44153         * tests/unicase/test-u32-tolower.c (main): Likewise.
44154
44155 2009-06-30  Bruno Haible  <bruno@clisp.org>
44156
44157         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
44158         * lib/unicase/u16-casemap.c: Likewise.
44159         * lib/unicase/u32-casemap.c: Likewise.
44160
44161 2009-06-29  Bruno Haible  <bruno@clisp.org>
44162
44163         Define u32_casefold as a wrapper around u32_ct_casefold.
44164         * lib/unicase/u32-casefold.c: Update.
44165         * modules/unicase/u32-casefold (Depends-on): Add
44166         unicase/u32-ct-casefold, unicase/empty-prefix-context,
44167         unicase/empty-suffix-context. Clean up.
44168
44169         Define u16_casefold as a wrapper around u16_ct_casefold.
44170         * lib/unicase/u16-casefold.c: Update.
44171         * modules/unicase/u16-casefold (Depends-on): Add
44172         unicase/u16-ct-casefold, unicase/empty-prefix-context,
44173         unicase/empty-suffix-context. Clean up.
44174
44175         Define u8_casefold as a wrapper around u8_ct_casefold.
44176         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
44177         * lib/unicase/u8-casefold.c: Update.
44178         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
44179         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44180
44181         Define u32_totitle as a wrapper around u32_ct_totitle.
44182         * lib/unicase/u32-totitle.c: Update.
44183         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
44184         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44185
44186         Define u16_totitle as a wrapper around u16_ct_totitle.
44187         * lib/unicase/u16-totitle.c: Update.
44188         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
44189         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44190
44191         Define u8_totitle as a wrapper around u8_ct_totitle.
44192         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
44193         functions.
44194         (FUNC): Delegate to U_CT_TOTITLE.
44195         * lib/unicase/u8-totitle.c: Update.
44196         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
44197         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44198
44199         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
44200         invocation.
44201         * modules/unicase/u32-tolower (Depends-on): Add
44202         unicase/empty-prefix-context, unicase/empty-suffix-context.
44203
44204         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
44205         invocation.
44206         * modules/unicase/u16-tolower (Depends-on): Add
44207         unicase/empty-prefix-context, unicase/empty-suffix-context.
44208
44209         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
44210         * modules/unicase/u8-tolower (Depends-on): Add
44211         unicase/empty-prefix-context, unicase/empty-suffix-context.
44212
44213         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
44214         invocation.
44215         * modules/unicase/u32-toupper (Depends-on): Add
44216         unicase/empty-prefix-context, unicase/empty-suffix-context.
44217
44218         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
44219         invocation.
44220         * modules/unicase/u16-toupper (Depends-on): Add
44221         unicase/empty-prefix-context, unicase/empty-suffix-context.
44222
44223         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
44224         * modules/unicase/u8-toupper (Depends-on): Add
44225         unicase/empty-prefix-context, unicase/empty-suffix-context.
44226
44227         New module 'unicase/u32-ct-casefold'.
44228         * lib/unicase/u32-ct-casefold.c: New file.
44229         * modules/unicase/u32-ct-casefold: New file.
44230
44231         New module 'unicase/u16-ct-casefold'.
44232         * lib/unicase/u16-ct-casefold.c: New file.
44233         * modules/unicase/u16-ct-casefold: New file.
44234
44235         New module 'unicase/u8-ct-casefold'.
44236         * lib/unicase/u8-ct-casefold.c: New file.
44237         * lib/unicase/u-ct-casefold.h: New file, derived from
44238         lib/unicase/u-casefold.h.
44239         * modules/unicase/u8-ct-casefold: New file.
44240
44241         New module 'unicase/u32-ct-totitle'.
44242         * lib/unicase/u32-ct-totitle.c: New file.
44243         * modules/unicase/u32-ct-totitle: New file.
44244
44245         New module 'unicase/u16-ct-totitle'.
44246         * lib/unicase/u16-ct-totitle.c: New file.
44247         * modules/unicase/u16-ct-totitle: New file.
44248
44249         New module 'unicase/u8-ct-totitle'.
44250         * lib/unicase/u8-ct-totitle.c: New file.
44251         * lib/unicase/u-ct-totitle.h: New file, derived from
44252         lib/unicase/u-totitle.h.
44253         * modules/unicase/u8-ct-totitle: New file.
44254
44255         New module 'unicase/u32-ct-tolower'.
44256         * lib/unicase/u32-ct-tolower.c: New file.
44257         * modules/unicase/u32-ct-tolower: New file.
44258
44259         New module 'unicase/u16-ct-tolower'.
44260         * lib/unicase/u16-ct-tolower.c: New file.
44261         * modules/unicase/u16-ct-tolower: New file.
44262
44263         New module 'unicase/u8-ct-tolower'.
44264         * lib/unicase/u8-ct-tolower.c: New file.
44265         * modules/unicase/u8-ct-tolower: New file.
44266
44267         New module 'unicase/u32-ct-toupper'.
44268         * lib/unicase/u32-ct-toupper.c: New file.
44269         * modules/unicase/u32-ct-toupper: New file.
44270
44271         New module 'unicase/u16-ct-toupper'.
44272         * lib/unicase/u16-ct-toupper.c: New file.
44273         * modules/unicase/u16-ct-toupper: New file.
44274
44275         New module 'unicase/u8-ct-toupper'.
44276         * lib/unicase/u8-ct-toupper.c: New file.
44277         * modules/unicase/u8-ct-toupper: New file.
44278
44279         Add context arguments to u*_casemap functions.
44280         * lib/unicase/unicasemap.h: Include unicase.h.
44281         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
44282         suffix_context arguments.
44283         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
44284         functions.
44285         (FUNC): Add prefix_context and suffix_context arguments. Use
44286         uc_is_cased and uc_is_case_ignorable.
44287         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
44288         * lib/unicase/u16-casemap.c: Likewise.
44289         * lib/unicase/u32-casemap.c: Likewise.
44290         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
44291         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44292         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
44293         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44294         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
44295         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44296
44297         New module 'unicase/u32-suffix-context'.
44298         * lib/unicase/u32-suffix-context.c: New file.
44299         * modules/unicase/u32-suffix-context: New file.
44300
44301         New module 'unicase/u16-suffix-context'.
44302         * lib/unicase/u16-suffix-context.c: New file.
44303         * modules/unicase/u16-suffix-context: New file.
44304
44305         New module 'unicase/u8-suffix-context'.
44306         * lib/unicase/u8-suffix-context.c: New file.
44307         * lib/unicase/u-suffix-context.h: New file.
44308         * modules/unicase/u8-suffix-context: New file.
44309
44310         New module 'unicase/empty-suffix-context'.
44311         * lib/unicase/empty-suffix-context.c: New file.
44312         * modules/unicase/empty-suffix-context: New file.
44313
44314         New module 'unicase/u32-prefix-context'.
44315         * lib/unicase/u32-prefix-context.c: New file.
44316         * modules/unicase/u32-prefix-context: New file.
44317
44318         New module 'unicase/u16-prefix-context'.
44319         * lib/unicase/u16-prefix-context.c: New file.
44320         * modules/unicase/u16-prefix-context: New file.
44321
44322         New module 'unicase/u8-prefix-context'.
44323         * lib/unicase/u8-prefix-context.c: New file.
44324         * lib/unicase/u-prefix-context.h: New file.
44325         * lib/unicase/context.h: New file.
44326         * modules/unicase/u8-prefix-context: New file.
44327
44328         New module 'unicase/empty-prefix-context'.
44329         * lib/unicase/empty-prefix-context.c: New file.
44330         * modules/unicase/empty-prefix-context: New file.
44331
44332         New module 'unicase/ignorable'.
44333         * lib/unicase/ignorable.c: New file.
44334         * modules/unicase/ignorable: New file.
44335
44336         New module 'unicase/cased'.
44337         * lib/unicase/caseprop.h: New file.
44338         * lib/unicase/cased.c: New file.
44339         * modules/unicase/cased: New file.
44340
44341         New functions for case mapping of substrings.
44342         * lib/unicase.h (casing_prefix_context_t): New type.
44343         (unicase_empty_prefix_context): New variable.
44344         (u8_casing_prefix_context, u16_casing_prefix_context,
44345         u32_casing_prefix_context, u8_casing_prefixes_context,
44346         u16_casing_prefixes_context, u32_casing_prefixes_context): New
44347         declarations.
44348         (casing_suffix_context_t): New type.
44349         (unicase_empty_suffix_context): New variable.
44350         (u8_casing_suffix_context, u16_casing_suffix_context,
44351         u32_casing_suffix_context, u8_casing_suffixes_context,
44352         u16_casing_suffixes_context, u32_casing_suffixes_context,
44353         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
44354         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
44355         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
44356         declarations.
44357
44358 2009-06-28  Jim Meyering  <meyering@redhat.com>
44359
44360         boostrap: indent only with spaces
44361         * build-aux/bootstrap: Indent only with spaces, never TABs.
44362
44363         bootstrap: split long lines
44364         * build-aux/bootstrap: Keep line length < 80.
44365
44366         bootstrap: sync from coreutils
44367         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
44368         just as autoreconf does.  Verify a list of prerequisite
44369         package-name,version-number pairs if defined in bootstrap.conf.
44370         Refer to README-prereq, if prerequisites are not satisfied.
44371
44372 2009-06-27  Eric Blake  <ebb9@byu.net>
44373
44374         tests: add test for bogus NULL definition
44375         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
44376         * tests/test-stdlib.c: Likewise.
44377         * tests/test-string.c: Likewise.
44378         * tests/test-locale.c: Likewise.
44379         * tests/test-unistd.c: Likewise.
44380         * modules/stdio-tests (Depends-on): Add verify.
44381         * modules/stdlib-tests (Depends-on): Likewise.
44382         * modules/string-tests (Depends-on): Likewise.
44383         * modules/locale-tests (Depends-on): Likewise.
44384         * modules/unistd-tests (Depends-on): Likewise.
44385
44386 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
44387
44388         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
44389         self-explaining comment.
44390         * m4/selinux-selinux-h: Update serial.
44391         (gl_LIBSELINUX): New macro, adding a warning for missing development
44392         packages to code extracted from...
44393         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
44394         Add warning for missing development packages here, too.
44395
44396 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
44397
44398         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
44399
44400 2009-06-25  Eric Blake  <ebb9@byu.net>
44401
44402         version-etc: fix regression
44403         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
44404         gcc.
44405         (version_etc): Use it, to catch bugs with trailing NULL.
44406         * lib/version-etc.c (version_etc_arn): Delete unused argument.
44407         (version_etc_va): Fix logic bug.
44408         * modules/version-etc-tests: Add test.
44409         * tests/test-version-etc.c: New file.
44410         * tests/test-version-etc.sh: Likewise.
44411
44412 2009-06-25  Sam Steingold  <sds@gnu.org>
44413
44414         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
44415         mbtowc declaration.
44416
44417 2009-06-25  Eric Blake  <ebb9@byu.net>
44418
44419         fpurge: migrate into <stdio.h>
44420         * lib/fpurge.h: Delete...
44421         * lib/stdio.in.h (fpurge): ...and declare here, instead.
44422         * lib/fpurge.c (fpurge): Change declaring header.
44423         * modules/fpurge (Files): Drop deleted file.
44424         (Depends-on): Add stdio.
44425         (configure.ac): Set witness.
44426         * modules/stdio (Makefile.am): Support fpurge macros.
44427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44428         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
44429         * lib/fflush.c: Update client.
44430         * tests/test-fpurge.c: Likewise.
44431         * NEWS: Mention the change.
44432
44433 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44434
44435         * lib/argp-version-etc.c (program_authors): Add const
44436         qualifier.
44437         * lib/version-etc.c: Fix typos in the comments.
44438         * modules/argp-version-etc: Depends on version-etc.
44439
44440 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44441
44442         argp-version-etc: new module.
44443
44444         * lib/argp-version-etc.c: New file.
44445         * lib/argp-version-etc.h: New file.
44446         * modules/argp-version-etc: New file.
44447         * modules/argp-version-etc-tests: New file.
44448         * tests/test-argp-version-etc.c: New test.
44449         * tests/test-argp-version-etc-1.sh: New test.
44450
44451 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44452
44453         Provide additional interfaces and documentation for version-etc
44454         module.
44455
44456         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
44457         interfaces.
44458         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
44459         prototypes.
44460
44461 2009-06-24  Bruno Haible  <bruno@clisp.org>
44462
44463         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
44464         HAVE_LIB${NAME} macro.
44465         Reported by Sam Steingold <sds@gnu.org>.
44466
44467 2009-06-23  Simon Josefsson  <simon@josefsson.org>
44468
44469         * modules/hash-tests (test_hash_LDADD): Link to libintl when
44470         needed.
44471
44472 2009-06-21  Bruno Haible  <bruno@clisp.org>
44473
44474         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
44475         work.
44476         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
44477         together with LIB${NAME}, LTLIB${NAME}.
44478         Reported by Sam Steingold <sds@gnu.org>.
44479
44480 2009-06-20  Jim Meyering  <meyering@redhat.com>
44481
44482         tests: make sc_require_test_exit_idiom more generic
44483         * top/maint.mk (Exit_witness_file): New overridable variable.
44484         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
44485         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
44486
44487 2009-06-19  Jim Meyering  <meyering@redhat.com>
44488
44489         hash: reverse order of src/dst parameters in an internal interface
44490         * lib/hash.c (transfer_entries): Reverse order of parameters to
44491         put DST before SRC.  Adjust callers.
44492
44493         tests: test-hash: avoid wholesale duplication
44494         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
44495         Instead, use a loop and add a single conditional.
44496
44497         tests: test-hash: allow seed selection via a command line argument
44498         * tests/test-hash.c (get_seed): New function.
44499         (main): Use it.
44500
44501 2009-06-19  Eric Blake  <ebb9@byu.net>
44502
44503         hash: avoid memory leak on allocation failure
44504         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
44505         failure.  Factor repeated algorithm...
44506         (transfer_entries): ...into new helper routine.
44507         (hash_delete): React to hash_rehash return value.
44508
44509         hash: reduce memory pressure in hash_rehash no-op case
44510         * lib/hash.c (next_prime): Avoid overflow.
44511         (hash_initialize): Factor bucket size computation...
44512         (compute_bucket_size): ...into new helper function.
44513         (hash_rehash): Use new function and open coding to reduce memory
44514         pressure, and avoid a memory leak in USE_OBSTACK code.
44515         Reported by Jim Meyering.
44516
44517 2009-06-18  Eric Blake  <ebb9@byu.net>
44518
44519         hash: make rotation more obvious
44520         * modules/hash (Depends-on): Add bitrotate and stdint.
44521         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
44522         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
44523         (SIZE_MAX): Rely on headers for definition.
44524         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
44525         (raw_hasher): Use rotr_sz.
44526         Suggested by Jim Meyering.
44527
44528         hash: fix memory leak in last patch
44529         * lib/hash.c (hash_rehash): Avoid memory leak.
44530
44531         hash: avoid no-op rehashing
44532         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
44533
44534         hash: provide default callback functions
44535         * lib/hash.c (raw_hasher, raw_comparator): New functions.
44536         (hash_initialize): Use them as defaults.
44537         * tests/test-hash.c (main): Test this.
44538
44539         hash: minor optimization
44540         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
44541         when possible.
44542         (hash_initialize): Document this promise.
44543         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
44544         * tests/test-hash.c (hash_compare_strings): Test this.
44545
44546 2009-06-18  Bruno Haible  <bruno@clisp.org>
44547
44548         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
44549         going to be replaced anyway.
44550
44551 2009-06-18  Bruno Haible  <bruno@clisp.org>
44552
44553         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
44554         in one place.
44555         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
44556         be replaced anyway.
44557
44558 2009-06-18  Eric Blake  <ebb9@byu.net>
44559
44560         hash: check for resize before insertion
44561         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44562         threshold before insertion, so that a pathological hash_rehash
44563         that fills every bucket can still trigger another rehash.
44564
44565 2009-06-18  Jim Meyering  <meyering@redhat.com>
44566
44567         hash-tests: add a loop around the small tests
44568         * tests/test-hash.c (main): Repeat small tests with selected
44569         small initial table sizes.
44570
44571 2009-06-17  Eric Blake  <ebb9@byu.net>
44572
44573         hash: minor cleanups
44574         * lib/hash.h (hash_entry): Make opaque, by moving...
44575         * lib/hash.c (hash_entry): ...here.
44576         (hash_insert): Clarify restrictions on what can be inserted.
44577         (hash_get_next): Clarify when it is safe to remove an element
44578         during traversal.
44579         (check_tuning): Skip verification when tuning is known safe.
44580         (hash_initialize): Clarify restrictions on tuning.
44581
44582 2009-06-17  Jim Meyering  <jim@meyering.net>
44583         and Eric Blake  <ebb9@byu.net>
44584
44585         hash-tests: new module
44586         * modules/hash-tests: New file.
44587         * tests/test-hash.c: New file.
44588
44589 2009-06-17  Eric Blake  <ebb9@byu.net>
44590
44591         strstr-simple: document new module
44592         * MODULES.html.sh: Document new module.
44593
44594         strstr, strcasestr: replace on platforms with broken memchr
44595         * modules/strstr: Split into...
44596         * modules/strstr-simple: ...new module that does not care about
44597         performance, but does care about glibc bug.
44598         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44599         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44600         if platform memchr is broken, per Debian bug 521737.
44601         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44602         memchr.
44603         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44604         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44605         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44606         * modules/mountlist (Depends-on): Add strstr-simple.
44607         * modules/gen-uni-tables (Depends-on): Likewise.
44608         * modules/argz (Depends-on): Add strstr.
44609
44610 2009-06-17  Bruno Haible  <bruno@clisp.org>
44611
44612         * modules/posix_spawn-internal (Depends-on): Add errno.
44613
44614 2009-06-17  Bruno Haible  <bruno@clisp.org>
44615
44616         Define missing ESTALE on Interix 3.5.
44617         * lib/errno.in.h (ESTALE): Assign a value if missing.
44618         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44619         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44620         missing.
44621         * doc/posix-headers/errno.texi: Mention the Interix bug.
44622         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44623
44624 2009-06-15  Eric Blake  <ebb9@byu.net>
44625
44626         memchr, memchr2: add valgrind exception
44627         * lib/memchr.valgrind: New file.
44628         * lib/memchr2.valgrind: New file.
44629         * modules/memchr (Files): Distribute valgrind file.
44630         * modules/memchr2 (Files): Likewise.
44631
44632         docs: memchr is no longer obsolete
44633         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44634         * lib/string.in.h (memchr): Simplify logic.
44635
44636 2009-06-14  Jim Meyering  <meyering@redhat.com>
44637
44638         link-follow: fix the "checking..." message to not mention trailing slash
44639         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44640         never considered trailing slashes.
44641
44642 2009-06-14  Bruno Haible  <bruno@clisp.org>
44643
44644         * m4/memchr.m4: Mention also the bug on IA-64.
44645         * doc/posix-functions/memchr.texi: Likewise.
44646
44647 2009-06-12  Eric Blake  <ebb9@byu.net>
44648
44649         memchr: detect broken x86_64 and alpha implementations
44650         * modules/memchr-tests (Depends-on): Move mmap detection...
44651         * modules/memchr (Depends-on): ...here.
44652         (configure.ac): Set indicator.
44653         * lib/string.in.h (memchr): Declare replacement.
44654         * modules/string (Makefile.am): Trigger replacement.
44655         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44656         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44657         bugs.
44658         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44659         * modules/getpagesize (License): Relax license.
44660
44661 2009-06-11  Bruno Haible  <bruno@clisp.org>
44662
44663         * lib/idpriv.h: Add more references.
44664
44665 2009-06-08  Bruno Haible  <bruno@clisp.org>
44666
44667         Tests for module 'idpriv-droptemp'.
44668         * modules/idpriv-droptemp-tests: New file.
44669         * tests/test-idpriv-droptemp.sh: New file.
44670         * tests/test-idpriv-droptemp.su.sh: New file.
44671         * tests/test-idpriv-droptemp.c: New file.
44672
44673         New module 'idpriv-droptemp'.
44674         * lib/idpriv-droptemp.c: New file.
44675         * modules/idpriv-droptemp: New file.
44676
44677 2009-06-08  Bruno Haible  <bruno@clisp.org>
44678
44679         Tests for module 'idpriv-drop'.
44680         * modules/idpriv-drop-tests: New file.
44681         * tests/test-idpriv-drop.sh: New file.
44682         * tests/test-idpriv-drop.su.sh: New file.
44683         * tests/test-idpriv-drop.c: New file.
44684
44685         New module 'idpriv-drop'.
44686         * lib/idpriv.h: New file.
44687         * lib-idpriv-drop.c: New file.
44688         * m4/idpriv.m4: New file.
44689         * modules/idpriv-drop: New file.
44690
44691 2009-06-08  Bruno Haible  <bruno@clisp.org>
44692
44693         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44694         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44695         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44696         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44697         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44698         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44699         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44700
44701 2009-06-08  Eric Blake  <ebb9@byu.net>
44702
44703         test-strstr: use memory fence, when possible
44704         * tests/test-strstr.c (main): Use memory fence, in order to be
44705         more likely to trigger Debian bug 521737.
44706         * modules/strstr-tests (Files): Pull in additional files.
44707
44708         memchr: no longer obsolete, for wider field testing
44709         * modules/memchr (Status, Notice): Delete, this module is no
44710         longer obsolete.
44711         * modules/vasnprintf (Depends-on): Add memchr.
44712
44713 2009-06-07  Jim Meyering  <meyering@redhat.com>
44714
44715         hash: declare some functions with the warn_unused_result attribute
44716         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44717
44718 2009-06-07  Bruno Haible  <bruno@clisp.org>
44719
44720         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44721         Reported by Eric Blake.
44722
44723 2009-06-06  Eric Blake  <ebb9@byu.net>
44724
44725         test-alignof: fix typo with long double
44726         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44727         compiler error.
44728
44729 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44730
44731         Escape non-texinfo { and }s.
44732         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44733         markup error.
44734
44735 2009-06-04  Jim Meyering  <meyering@redhat.com>
44736
44737         gitlog-to-changelog: don't infloop on an empty commit log
44738         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44739         Reported by Boris Petersen <transacid@centerim.org>.
44740
44741 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44742
44743         version-etc: extend for packagers
44744         Add three new configure options, intended for packagers:
44745           --with-packager="packager name"
44746           --with-packager-version="packager-specific version"
44747           --with-packager-bug-reports="packager bug reporting"
44748         An example with coreutils:
44749           $ ./configure \
44750             --with-packager=Gentoo \
44751             --with-packager-bug-report=http://bugs.gentoo.org/ \
44752             --with-packager-version="patchset 1.6"
44753           $ ./src/ls --version | head -n2
44754           ls (GNU coreutils) 7.1-dirty
44755           Packaged by Gentoo (patchset 1.6)
44756         Note that the bug reporting info via --help doesn't show up because
44757         coreutils uses its own custom emit_bug_reporting_address() implementation
44758         in src/system.h.  If it didn't, it'd look like:
44759           $ ./src/ls --help | tail -n4
44760           Report bugs to <bug-coreutils@gnu.org>.
44761           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44762           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44763           General help using GNU software: <http://www.gnu.org/gethelp/>.
44764         * lib/version-etc.c: Print new information, if provided.
44765         * m4/version-etc.m4: New file.
44766         * modules/version-etc (Files): Add m4/version-etc.m4.
44767         (configure.ac): Add gl_VERSION_ETC.
44768
44769 2009-05-31  Bruno Haible  <bruno@clisp.org>
44770
44771         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44772         and 'int64_t'.
44773         * modules/alignof-tests (Dependencies): Add stdint.
44774         Reported by Eric Blake.
44775
44776 2009-05-31  Bruno Haible  <bruno@clisp.org>
44777
44778         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44779         restriction due to compiler bugs.
44780         Reported by Eric Blake.
44781
44782 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44783             Bruno Haible  <bruno@clisp.org>
44784
44785         Fix test-alignof failure.
44786         * lib/alignof.h (alignof_slot): New macro.
44787         (alignof_type): New macro, with the same semantics as the previous
44788         'alignof'.
44789         (alignof): Alias to alignof_slot.
44790         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44791         check that the results are usable as constant expressions.
44792
44793 2009-05-31  Bruno Haible  <bruno@clisp.org>
44794
44795         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44796         * tests/test-memchr.c (main): Check that memchr does not read past the
44797         first occurrence of the byte.
44798         * tests/test-strstr.c (main): Update comment.
44799         Suggested by Eric Blake.
44800
44801 2009-05-30  Bruno Haible  <bruno@clisp.org>
44802
44803         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44804         detail how to use dumpbin.
44805         Reported by David Byron <dbyron@dbyron.com>.
44806
44807 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44808
44809         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44810
44811 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44812
44813         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44814
44815 2009-05-28  Bruno Haible  <bruno@clisp.org>
44816
44817         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44818         build-aux/ files.
44819
44820 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44821
44822         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44823
44824 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44825
44826         * gnulib-tool (sed_transform_main_lib_file)
44827         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44828         regexps.
44829
44830 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44831
44832         * tests/test-strstr.c: Add another self-test.
44833         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44834         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44835
44836 2009-05-23  Bruno Haible  <bruno@clisp.org>
44837
44838         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44839         change.
44840
44841 2009-05-21  Bruno Haible  <bruno@clisp.org>
44842
44843         Simplify use of mode_t varargs.
44844         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44845         uses 'mode_t' or 'int'.
44846         * lib/openat.c (openat): Likewise.
44847         * lib/open-safer.c (open_safer): Likewise.
44848         * m4/mode_t.m4: New file.
44849         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44850         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44851         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44852         * modules/open (Files): Add m4/mode_t.m4.
44853         * modules/openat (Files): Likewise.
44854         * modules/fcntl-safer (Files): Likewise.
44855         Suggested by Eric Blake.
44856
44857 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44858
44859         * doc/glibc-functions/fallocate.texi: New file.
44860         * doc/gnulib.texi: Include it.
44861
44862 2009-05-21  Eric Blake  <ebb9@byu.net>
44863             Bruno Haible  <bruno@clisp.org>
44864
44865         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44866         invocations.
44867         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44868
44869 2009-05-21  Eric Blake  <ebb9@byu.net>
44870             Bruno Haible  <bruno@clisp.org>
44871
44872         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44873         include_next. Fix of 2008-11-20 commit.
44874         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44875         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44876         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44877         NEXT_MATH_H.
44878         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44879         instead of NEXT_MATH_H.
44880
44881 2009-05-21  Bruno Haible  <bruno@clisp.org>
44882
44883         Avoid redefinition warnings for SIZE_MAX.
44884         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44885         Reported by Simon Josefsson.
44886
44887 2009-05-21  Bruno Haible  <bruno@clisp.org>
44888
44889         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44890         AC_CACHE_VAL.
44891
44892 2009-05-20  Bruno Haible  <bruno@clisp.org>
44893
44894         Make zeroptr.h work on mingw.
44895         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44896         mprotect.
44897         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44898         * modules/memchr2-tests (configure.ac): Likewise.
44899         * modules/memcmp-tests (configure.ac): Likewise.
44900         * modules/memmem-tests (configure.ac): Likewise.
44901         * modules/memrchr-tests (configure.ac): Likewise.
44902         Reported by Simon Josefsson.
44903
44904 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44905
44906         * tests/test-glob.c: Include string.h for strcmp prototype.
44907
44908 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44909
44910         * modules/getdelim (Depends-on): Add explicit stdint, although it
44911         was implicitly already pulled in via realloc-posix.
44912         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44913
44914 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44915
44916         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44917         G. Christensen" <tgc@jupiterrise.com>.
44918         * m4/sys_socket_h.m4: Check for sa_family_t.
44919         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44920         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44921         * tests/test-sys_socket.c: Check that sa_family_t works.
44922
44923 2009-05-18  Eric Blake  <ebb9@byu.net>
44924
44925         maint.mk: allow gnulib_dir in VPATH build
44926         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44927
44928 2009-05-15  Jim Meyering  <meyering@redhat.com>
44929
44930         maint.mk: Give gnulib_dir a default definition.
44931         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44932         Thus, most packages no longer need to specify this variable in cfg.mk
44933
44934 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44935
44936         rename.m4: fix typos that would make non-mingw cross-configure fail
44937         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44938
44939 2009-05-13  Eric Blake  <ebb9@byu.net>
44940
44941         mmap-anon: avoid out-of-order autoconf expansion
44942         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44943         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44944         * modules/memchr-tests (Depends-on): Add extensions.
44945         * modules/memchr2-tests (Depends-on): Add extensions.
44946         * modules/memcmp-tests (Depends-on): Add extensions.
44947         * modules/memmem-tests (Depends-on): Add extensions.
44948         * modules/memrchr-tests (Depends-on): Add extensions.
44949
44950 2009-05-13  Bruno Haible  <bruno@clisp.org>
44951
44952         Make some tests ISO C 99 compliant.
44953         * tests/zerosize-ptr.h: New file.
44954         * tests/test-memchr.c: Include zerosize-ptr.h.
44955         (main): Use a zero-size object pointer instead of NULL.
44956         * tests/test-memchr2.c: Include zerosize-ptr.h.
44957         (main): Use a zero-size object pointer instead of NULL.
44958         * tests/test-memcmp.c: Include zerosize-ptr.h.
44959         (main): Use a zero-size object pointer instead of NULL.
44960         * tests/test-memmem.c: Include zerosize-ptr.h.
44961         (main): Use a zero-size object pointer instead of NULL.
44962         * tests/test-memrchr.c: Include zerosize-ptr.h.
44963         (main): Use a zero-size object pointer instead of NULL.
44964         * modules/memchr-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/memchr2-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/memcmp-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         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44977         m4/mmap-anon.m4.
44978         (Depends-on): Add getpagesize.
44979         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44980         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44981         m4/mmap-anon.m4.
44982         (Depends-on): Add getpagesize.
44983         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44984
44985 2009-05-12  Bruno Haible  <bruno@clisp.org>
44986
44987         Tests for module 'alignof'.
44988         * modules/alignof-tests: New file.
44989         * tests/test-alignof.c: New file.
44990
44991 2009-05-12  Bruno Haible  <bruno@clisp.org>
44992
44993         Fix alignof macro.
44994         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44995         vendor compilers that are always correct.
44996
44997 2009-05-12  Bruno Haible  <bruno@clisp.org>
44998
44999         Make the MAP_ANONYMOUS detection work on HP-UX 11.
45000         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
45001         not whether its fully works.
45002
45003 2009-05-12  Bruno Haible  <bruno@clisp.org>
45004
45005         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
45006
45007 2009-05-12  Jim Meyering  <meyering@redhat.com>
45008
45009         * top/maint.mk: Adjust backslash alignment.
45010
45011 2009-05-11  Simon Josefsson  <simon@josefsson.org>
45012
45013         * top/maint.mk: Make $(srcdir)/build-aux configurable.
45014
45015 2009-05-11  Eric Blake  <ebb9@byu.net>
45016
45017         argp: avoid undefined behavior
45018         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
45019         macros.
45020
45021 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45022
45023         * tests/test-vc-list-files-git.sh: Do git config of user.email and
45024         user.name to prevent git commit from complaining.
45025
45026 2009-05-10  Bruno Haible  <bruno@clisp.org>
45027
45028         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
45029         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
45030         it rewrites every file name only once.
45031         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
45032
45033 2009-05-08  Bruno Haible  <bruno@clisp.org>
45034
45035         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
45036         instead of 'max'.
45037
45038 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45039
45040         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
45041         sockaddr_storage test.
45042
45043 2009-05-07  Simon Josefsson  <simon@josefsson.org>
45044
45045         * modules/sys_socket (Makefile.am): Substitute
45046         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
45047         * m4/sys_socket_h.m4: Check for sockaddr_storage.
45048         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
45049         * tests/test-sys_socket.c: Check sockaddr_storage.
45050
45051 2009-05-08  Bruno Haible  <bruno@clisp.org>
45052
45053         New module 'alignof'.
45054         * lib/alignof.h: New file.
45055         * modules/alignof: New file.
45056
45057 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45058             Bruno Haible  <bruno@clisp.org>
45059
45060         Fix test-file-has-acl on FreeBSD.
45061         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
45062         mask is implicitly added.
45063         * tests/test-file-has-acl.c: Include <signal.h>.
45064         (main): Terminate the test after 5 seconds.
45065         * modules/acl-tests (configure.ac): Check for alarm function.
45066
45067 2009-05-04  Bruno Haible  <bruno@clisp.org>
45068
45069         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
45070         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
45071         * modules/errno (configure.ac): Drop AC_REQUIRE.
45072         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
45073         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
45074
45075 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45076
45077         * modules/glob-tests: New module.
45078         * tests/test-glob.c: Add.
45079
45080 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45081
45082         * modules/fnmatch-tests: New module.
45083         * tests/test-fnmatch.c: Add.
45084
45085 2009-05-04  Eric Blake  <ebb9@byu.net>
45086
45087         maint: make the new no-submodule-changes rule VPATH-safe
45088         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
45089
45090 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45091             Bruno Haible  <bruno@clisp.org>
45092
45093         acl: Fix infinite loop on FreeBSD.
45094         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
45095         of return value from acl_get_entry.
45096         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
45097         Likewise.
45098
45099 2009-05-03  Bruno Haible  <bruno@clisp.org>
45100
45101         * lib/acl-internal.h (acl_entries): Clarify return value.
45102         * lib/acl_entries.c (acl_entries): Likewise.
45103
45104 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45105
45106         Bug fix in acl module.
45107         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
45108
45109 2009-05-03  Bruno Haible  <bruno@clisp.org>
45110
45111         Create gperf-generated file in the source dir, not in the build dir.
45112         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
45113         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
45114         * modules/unicase/locale-language (unicase/locale-languages.h):
45115         Likewise.
45116         * modules/unicase/special-casing (unicase/special-casing-table.h):
45117         Likewise.
45118         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
45119         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
45120         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
45121         Reported by Ralf Wildenhues.
45122
45123 2009-05-03  Bruno Haible  <bruno@clisp.org>
45124
45125         * modules/fnmatch (Description, configure.ac): Taken from
45126         fnmatch-posix.
45127         * modules/fnmatch-posix: Turn into a symbolic reference to the
45128         'fnmatch' module, and deprecate.
45129         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
45130
45131 2009-05-03  Bruno Haible  <bruno@clisp.org>
45132
45133         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
45134         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
45135         Reported by Ralf Wildenhues.
45136
45137 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45138
45139         * m4/fnmatch.m4: Fix fnmatch re-define.
45140
45141 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45142
45143         priv-set: new module and tests; adapt write-any-file
45144         * lib/priv-set.c: New file.
45145         * lib/priv-set.h: New file.
45146         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
45147         * lib/write-any-file.c: Simplify by using priv-set module.
45148         * m4/priv-set.m4: New file.
45149         * modules/priv-set: New file.
45150         * modules/unlinkdir: Add dependency on priv-set module.
45151         * modules/write-any-file: Likewise.
45152
45153         Tests for module 'priv-set'.
45154         * modules/priv-set-tests: New file.
45155         * tests/test-priv-set.c: New file.
45156
45157 2009-05-03  Jim Meyering  <meyering@redhat.com>
45158             Bruno Haible  <bruno@clisp.org>
45159
45160         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
45161         use the converted UTF-8 variant of the name instead.
45162
45163 2009-05-03  Jim Meyering  <meyering@redhat.com>
45164
45165         tests: tighten some getdate tests
45166         * tests/test-getdate.c (main): Tighten tests: require equality,
45167         not just greater than.  Set TZ envvar to UTC0.
45168
45169 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
45170
45171         getdate: correctly interpret "next monday" when run on a Monday
45172         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
45173         that e.g., "next tues" (when run on a tuesday) results in a date
45174         that is one week in the future, and not today's date.
45175         I.e., add a week when the wday is the same as the current one.
45176         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
45177         and earlier by Martin Bernreuther and Jan Minář.
45178         * tests/test-getdate.c (main): Check that "next DAY" is always in
45179         the future and that "last DAY" is always in the past.
45180
45181 2009-05-02  Jim Meyering  <meyering@redhat.com>
45182
45183         build: ensure that a release build fails when a submodule is unclean
45184         * top/maint.mk (no-submodule-changes): New rule.
45185         (alpha beta major): Depend on it.
45186
45187 2009-05-02  Bruno Haible  <bruno@clisp.org>
45188
45189         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
45190         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
45191         shell variable gl_fnmatch_required to detect which variant is
45192         requested.
45193         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
45194         gl_FUNC_FNMATCH_POSIX.
45195         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
45196         exclude fnmatch-posix.
45197
45198 2009-05-02  Bruno Haible  <bruno@clisp.org>
45199
45200         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
45201         * modules/mbsrtowcs (License): Change to LGPLv2+.
45202         * modules/strnlen1 (License): Likewise.
45203         Reported by Simon Josefsson.
45204
45205 2009-05-02  Bruno Haible  <bruno@clisp.org>
45206
45207         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
45208         "cross".
45209         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
45210         gnulib-tool was called with option --source-base=lib.
45211
45212 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45213
45214         Use automake *-local hooks without commands, for extensibility.
45215         * modules/localcharset (Makefile.am): Rename install-exec-local
45216         rule to install-exec-localcharset, and make it a prerequisite of
45217         install-exec-local.  Likewise, rename the uninstall-local rule to
45218         uninstall-localcharset, and make it a prerequisite of the former.
45219
45220 2009-05-01  Bruno Haible  <bruno@clisp.org>
45221
45222         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
45223         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45224         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
45225         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
45226         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
45227         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45228         m4/locale-zh.m4, m4/codeset.m4.
45229
45230         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45231         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
45232         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45233         m4/locale-zh.m4.
45234
45235         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
45236         REPLACE_WCRTOMB if mbstate_t must be replaced.
45237         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
45238         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
45239
45240 2009-05-01  Bruno Haible  <bruno@clisp.org>
45241
45242         Avoid compiler warnings when redefining macros defined by <libintl.h>.
45243         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
45244         dngettext, dcngettext, textdomain, bindtextdomain,
45245         bind_textdomain_codeset): Undefine before redefining.
45246
45247 2009-04-30  Bruno Haible  <bruno@clisp.org>
45248
45249         Fix bug introduced on 2009-04-25.
45250         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
45251         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
45252         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
45253         is defined.
45254         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
45255         is defined.
45256         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
45257         is defined.
45258         Reported by Elbert_Pol <elbert.pol@gmail.com>.
45259
45260 2009-04-28  Bruno Haible  <bruno@clisp.org>
45261
45262         Comment tweaks.
45263         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
45264         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
45265         * lib/unicase.h (u*_casexfrm): Likewise.
45266         Reported by Paolo Bonzini.
45267
45268 2009-04-28  Bruno Haible  <bruno@clisp.org>
45269
45270         Fix a compilation error.
45271         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
45272         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45273         Reported by Jim Meyering.
45274
45275 2009-04-27  Bruno Haible  <bruno@clisp.org>
45276
45277         New module 'libunistring'.
45278         * modules/libunistring: New file.
45279         * m4/libunistring.m4: New file.
45280         * MODULES.html.sh (Unicode string functions): Add it.
45281
45282 2009-04-27  Eric Blake  <ebb9@byu.net>
45283
45284         maint.mk: allow package-specific header to provide <config.h>
45285         * top/maint.mk (sc_require_config_h): New variable.
45286         (sc_require_config_h, sc_require_config_h_first): Use it.
45287
45288 2009-04-27  Simon Josefsson  <simon@josefsson.org>
45289
45290         * top/maint.mk (sc_avoid_if_before_free): Except
45291         useless-if-before-free script.
45292
45293 2009-04-27  Eric Blake  <ebb9@byu.net>
45294
45295         maintainer-makefile: depend on all required helper scripts
45296         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
45297         useless-if-before-free.
45298         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
45299         version, rather than assuming gnulib checkout is available.
45300         Reported by Simen Josefsson.
45301
45302 2009-04-26  Bruno Haible  <bruno@clisp.org>
45303
45304         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
45305         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
45306         "../" or "..".
45307
45308 2009-04-26  Bruno Haible  <bruno@clisp.org>
45309
45310         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
45311         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
45312         AC_LIB_HAVE_LINKFLAGS.
45313
45314 2009-04-26  Bruno Haible  <bruno@clisp.org>
45315
45316         Simplify calling convention of u*_conv_from_encoding.
45317         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
45318         u32_conv_from_encoding): Expect a resultbuf argument and return the
45319         result directly as a pointer.
45320         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
45321         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
45322         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
45323         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
45324         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
45325         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45326         Update.
45327         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
45328         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
45329         * lib/vasnprintf.c (VASNPRINTF): Update.
45330         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
45331         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
45332         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
45333         * NEWS: Mention the change.
45334
45335 2009-04-26  Bruno Haible  <bruno@clisp.org>
45336
45337         Simplify calling convention of u*_conv_to_encoding.
45338         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45339         u32_conv_to_encoding): Expect a resultbuf argument and return the
45340         result directly as a pointer.
45341         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45342         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
45343         freeing scaled_offsets if mem_iconveha failed.
45344         * lib/unicase/u-casexfrm.h (FUNC): Update.
45345         * lib/uninorm/u-normxfrm.h (FUNC): Update.
45346         * lib/vasnprintf.c (VASNPRINTF): Update.
45347         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
45348         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
45349         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
45350         * NEWS: Mention the change.
45351
45352 2009-04-26  Bruno Haible  <bruno@clisp.org>
45353
45354         Avoid test failures on AIX and OSF/1.
45355         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
45356         malloc(0).
45357         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45358         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45359         Likewise.
45360         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
45361         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
45362         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
45363         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
45364         * doc/posix-functions/malloc.texi: Document the portability problem
45365         related to malloc(0).
45366
45367 2009-04-26  Bruno Haible  <bruno@clisp.org>
45368
45369         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
45370         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
45371         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
45372
45373 2009-04-25  Bruno Haible  <bruno@clisp.org>
45374
45375         Avoid link error when creating a namespace clean library.
45376         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
45377         as macro with arguments if already defined as an alias.
45378         * lib/signbitf.c (gl_signbitf): Don't undefine.
45379         * lib/signbitd.c (gl_signbitd): Don't undefine.
45380         * lib/signbitl.c (gl_signbitl): Don't undefine.
45381
45382 2009-04-25  Jim Meyering  <meyering@redhat.com>
45383
45384         vc-list-files: fix another quoting bug
45385         * build-aux/vc-list-files: Avoid sed backslash expansion
45386         of pathological directory names.
45387
45388 2009-04-25  Eric Blake  <ebb9@byu.net>
45389
45390         vc-list-files: fix shell quoting error
45391         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
45392         timestamp.
45393
45394 2009-04-25  Jim Meyering  <meyering@redhat.com>
45395
45396         vc-list-files: restore lost functionality with subdir argument
45397         * build-aux/vc-list-files: When given a non-"." sub-directory
45398         argument, substitute the $dir/ prefix back onto each resulting name.
45399         Otherwise, coreutils' root_tests check would fail.
45400
45401 2009-04-24  Eric Blake  <ebb9@byu.net>
45402
45403         vc-list-files: ignore git symlinks
45404         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
45405         than ls-files, to ignore git symlinks.
45406
45407         maint.mk: import improvements from m4
45408         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
45409         (move_if_change): Delete unused macro.
45410         (news-date-check, vc-diff-check): Support VPATH builds.
45411         (announcement): Likewise.  Split --bootstrap-tools list...
45412         (boostrap-tools): ...into separate list, which can be overridden
45413         in cfg.mk.
45414         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
45415         requiring dependency on useless-if-before-free module.
45416         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
45417         Support VPATH builds.
45418
45419 2009-04-24  Jim Meyering  <meyering@redhat.com>
45420
45421         maint.mk: remove coreutils-specific rules and variables
45422         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
45423         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
45424         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
45425
45426         maint.mk: remove obsolete rule
45427         * top/maint.mk (rel-check): Remove rule.
45428         (WGET, WGETFLAGS): Remove now-unused variables.
45429
45430 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45431
45432         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
45433         consistency.
45434
45435         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
45436         '$(PATH_SEPARATOR)' instead of ':'.
45437
45438 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45439
45440         * lib/getopt1.c (main): Use 'const' for static array.
45441
45442 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45443
45444         * top/maint.mk: Sync with coreutils.
45445         * NEWS: Explain incompatibilities.
45446
45447 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45448             Bruno Haible  <bruno@clisp.org>
45449
45450         Fix cross-compilation results.
45451         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
45452         statement, as third argument of AC_TRY_RUN.
45453         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45454         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
45455         Likewise.
45456         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45457         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
45458         Likewise.
45459         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45460         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
45461         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
45462
45463 2009-04-20  Bruno Haible  <bruno@clisp.org>
45464
45465         Avoid test failure on mingw.
45466         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
45467
45468 2009-04-20  Bruno Haible  <bruno@clisp.org>
45469
45470         Avoid compilation error on mingw.
45471         * modules/localename-tests (Depends-on): Add locale.
45472
45473 2009-04-19  Bruno Haible  <bruno@clisp.org>
45474
45475         Support for building a shared library on Windows platforms.
45476         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
45477         (main): Test the presence of UNINORM_NFC here.
45478         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
45479         (main): Test the presence of UNINORM_NFD here.
45480         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
45481         (main): Test the presence of UNINORM_NFKC here.
45482         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
45483         (main): Test the presence of UNINORM_NFKD here.
45484
45485 2009-04-19  Bruno Haible  <bruno@clisp.org>
45486
45487         Avoid a compiler warning.
45488         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
45489         Change type of variable 'sequence'.
45490
45491 2009-04-19  Bruno Haible  <bruno@clisp.org>
45492
45493         * modules/configmake (Makefile.am): When the contents of configmake.h
45494         does not change, arrange to preserve its modification time.
45495
45496 2009-04-17  Simon Josefsson  <simon@josefsson.org>
45497
45498         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
45499         gettext domain.
45500
45501 2009-04-16  Jim Meyering  <meyering@redhat.com>
45502
45503         useless-if-before-free: improve conversion code
45504         * build-aux/useless-if-before-free: Adjust code-in-comment to match
45505         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
45506
45507 2009-04-14  Bruno Haible  <bruno@clisp.org>
45508
45509         * modules/fcntl (Depends-on): Add extensions.
45510         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
45511
45512 2009-04-12  Ben Pfaff  <blp@gnu.org>
45513
45514         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
45515         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
45516
45517 2009-03-20  Ben Pfaff  <blp@gnu.org>
45518
45519         Make rename replace existing destinations on Windows.
45520         * m4/rename.m4: Add test for Mingw.
45521         * lib/rename.c: Add rename replacement that uses MoveFileEx with
45522         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
45523         * doc/posix-functions/rename.texi: Document.
45524
45525 2009-04-10  Bruno Haible  <bruno@clisp.org>
45526
45527         New include file "iconveh.h".
45528         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
45529         * lib/striconveh.h: Include it.
45530         (enum iconv_ilseq_handler): Remove definition.
45531         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
45532         striconveh.h.
45533         * lib/striconveha.c: Include striconveh.h.
45534         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
45535         * modules/striconveh (Files): Add lib/iconveh.h.
45536         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
45537         lib/striconveh.h.
45538
45539 2009-04-10  Bruno Haible  <bruno@clisp.org>
45540
45541         * lib/uniconv.h: Update comment.
45542
45543 2009-04-10  Bruno Haible  <bruno@clisp.org>
45544
45545         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
45546         always.
45547         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45548         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45549         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45550         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
45551         "unistring-notinline.h", so that the function gets defined always.
45552         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45553         * lib/unistr/u8-uctomb.c: Likewise.
45554         * lib/unistr/u16-mbtouc.c: Likewise.
45555         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45556         * lib/unistr/u16-uctomb.c: Likewise.
45557         * lib/unistr/u32-mbtouc.c: Likewise.
45558         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45559         * lib/unistr/u32-uctomb.c: Likewise.
45560
45561 2009-04-10  Bruno Haible  <bruno@clisp.org>
45562
45563         Mark 'utime' obsolete.
45564         * modules/utime (Status, Notice): New sections.
45565         Suggested by Jim Meyering.
45566
45567         Fix cross-compile guess for utime test.
45568         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45569         autoconf.
45570         * doc/posix-functions/utime.texi: Give more precisions.
45571         Reported by Jan <ipif@ymail.com>.
45572
45573 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45574
45575         filevercmp: correct today's change
45576         * lib/filevercmp.c: Also handle coreutils' test inputs.
45577         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45578
45579         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45580         for reporting it.
45581         * lib/filevercmp.c: Special handle for "", "." and "..".
45582         * tests/test-filevercmp.c: Enlarge the set suite.
45583
45584 2009-04-07  Jim Meyering  <meyering@redhat.com>
45585
45586         useless-if-before-free: show how to remove braced useless free, too
45587         * build-aux/useless-if-before-free: still only in a comment, though.
45588
45589 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45590
45591         maint.mk: import changes to syntax-check macros from coreutils
45592         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45593         Use them in the relevant macros.
45594
45595 2009-04-06  Bruno Haible  <bruno@clisp.org>
45596
45597         Fix unportable use of bit-fields.
45598         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45599         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45600         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45601
45602 2009-04-06  Bruno Haible  <bruno@clisp.org>
45603
45604         Avoid test failures on AIX and OSF/1.
45605         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45606         that malloc(0) = NULL.
45607         * tests/unicase/test-u8-tolower.c (check): Likewise.
45608         * tests/unicase/test-u8-totitle.c (check): Likewise.
45609         * tests/unicase/test-u8-toupper.c (check): Likewise.
45610         * tests/unicase/test-u16-casefold.c (check): Likewise.
45611         * tests/unicase/test-u16-tolower.c (check): Likewise.
45612         * tests/unicase/test-u16-totitle.c (check): Likewise.
45613         * tests/unicase/test-u16-toupper.c (check): Likewise.
45614         * tests/unicase/test-u32-casefold.c (check): Likewise.
45615         * tests/unicase/test-u32-tolower.c (check): Likewise.
45616         * tests/unicase/test-u32-totitle.c (check): Likewise.
45617         * tests/unicase/test-u32-toupper.c (check): Likewise.
45618         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45619         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45620         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45621         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45622         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45623         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45624         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45625         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45626         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45627         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45628         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45629         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45630
45631 2009-04-05  Bruno Haible  <bruno@clisp.org>
45632
45633         Work around an autoconf limitation.
45634         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45635         comment line if it would be longer than 3 KB.
45636
45637 2009-04-05  Bruno Haible  <bruno@clisp.org>
45638
45639         Avoid test failure with libiconv-1.13.
45640         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45641         of the expected test results.
45642
45643 2009-04-05  Bruno Haible  <bruno@clisp.org>
45644
45645         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45646         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45647         that it should be installed.
45648
45649 2009-04-05  Bruno Haible  <bruno@clisp.org>
45650
45651         * gnulib-tool: New option --copy-file.
45652         (func_usage): Document it.
45653         (func_dest_tmpfilename): Moved out of func_import.
45654         (func_add_file, func_update_file): New functions, extracted from
45655         func_import.
45656         (func_import): Update.
45657
45658 2009-04-05  Karl Berry  <karl@gnu.org>
45659
45660         * README: prominently mention gnulib-tool.
45661         Rearrange sections so getting the code is near the top.
45662
45663 2009-04-05  Bruno Haible  <bruno@clisp.org>
45664
45665         * lib/unicase.h: Mention u*_cmp2.
45666         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45667         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45668         * lib/unicase/ulc-casecmp.c: Likewise.
45669         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45670         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45671         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45672         unistr/u8-cmp.
45673         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45674         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45675         unistr/u16-cmp.
45676         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45677         unistr/u32-cmp.
45678
45679         * lib/uninorm.h: Mention u*_cmp2.
45680         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45681         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45682         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45683         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45684         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45685         unistr/u8-cmp.
45686         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45687         unistr/u16-cmp.
45688         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45689         unistr/u32-cmp.
45690
45691         New module 'unistr/u32-cmp2'.
45692         * lib/unistr/u32-cmp2.c: New file.
45693         * modules/unistr/u32-cmp2: New file.
45694
45695         New module 'unistr/u16-cmp2'.
45696         * lib/unistr/u16-cmp2.c: New file.
45697         * modules/unistr/u16-cmp2: New file.
45698
45699         New module 'unistr/u8-cmp2'.
45700         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45701         * lib/unistr/u8-cmp2.c: New file.
45702         * lib/unistr/u-cmp2.h: New file.
45703         * modules/unistr/u8-cmp2: New file.
45704
45705 2009-04-05  Bruno Haible  <bruno@clisp.org>
45706
45707         * lib/unictype.h (uc_property_is_valid): New macro.
45708         * tests/unictype/test-pr_byname.c (main): Use it.
45709
45710         * lib/unistr.h: Doc fixes.
45711         * lib/uniconv.h: Doc fixes.
45712         * lib/unictype.h: Doc fixes.
45713
45714 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45715
45716         Port coreutils 7.2 to Solaris 8.
45717
45718         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45719         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45720         for Solaris 8.  This is a bit of a hack, as it means it's the
45721         caller's responsibility to add -lnsl if needed, but most likely it
45722         won't be needed since only getaddrinfo uses this and getaddrinfo
45723         isn't needed on Solaris 8.
45724
45725         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45726         problem to Solaris 8 encountered with coreutils 7.2, which
45727         resulted in a message "fnmatch.c:292: warning: passing argument 4
45728         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45729         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45730
45731 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45732
45733         * m4/ld-version-script.m4: Add FIXME comment.
45734
45735 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45736
45737         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45738         SOVERSION variable.
45739
45740 2009-04-02  Bruno Haible  <bruno@clisp.org>
45741
45742         * Makefile (info, html, dvi, pdf): Combine the rules.
45743         Suggested by Jim Meyering.
45744
45745 2009-04-01  Bruno Haible  <bruno@clisp.org>
45746
45747         * Makefile (info, html, dvi, pdf): New targets.
45748         Reported by Reuben Thomas <rrt@sc3d.org>.
45749
45750 2009-04-01  Bruno Haible  <bruno@clisp.org>
45751
45752         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45753         can be put into PATH.
45754         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45755
45756 2009-04-01  Bruno Haible  <bruno@clisp.org>
45757
45758         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45759
45760 2009-04-01  Bruno Haible  <bruno@clisp.org>
45761
45762         Rename module 'visibility'.
45763         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45764         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45765         * doc/gnulib.texi: Update.
45766         * MODULES.html.sh (Misc): Update.
45767         * NEWS: Mention the change.
45768
45769 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45770
45771         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45772         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45773         Eric Blake <ebb9@byu.net> for review.
45774         * MODULES.html.sh: Add lib-msvc-compat.
45775         * doc/gnulib.texi: Link to new section.
45776         * m4/ld-output-def.m4: New file.
45777         * doc/ld-output-def.texi: New file.
45778
45779 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45780
45781         Rename ld-version-script to lib-symbol-versions.  Suggested by
45782         Bruno Haible <bruno@clisp.org>.
45783         * modules/ld-version-script: Renamed to lib-symbol-versions.
45784         * doc/ld-version-script.texi: Fix module name.
45785         * MODULES.html.sh: Add lib-symbol-versions.
45786
45787 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45788
45789         * modules/u64-tests: New file.
45790         * tests/test-u64.c: New file.
45791
45792 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45793
45794         * MODULES.html.sh: Mention u64.
45795         * modules/u64: New module.
45796         * modules/crypto/sha512: Depend on u64 module instead of providing
45797         u64.h.
45798
45799 2009-03-27  Eric Blake  <ebb9@byu.net>
45800
45801         test-strerror: make debugging EAI_SYSTEM easier
45802         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45803         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45804         failure was EAI_SYSTEM.
45805
45806 2009-03-25  Bruno Haible  <bruno@clisp.org>
45807
45808         Fix a problem with --enable-relocatable on Solaris 7.
45809         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45810         since 2008-02-24.
45811
45812 2009-03-25  Eric Blake  <ebb9@byu.net>
45813
45814         test-sockets: avoid gcc warning
45815         * tests/test-sockets.c (main): Silence compiler warning.
45816
45817 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45818
45819         New modules nproc, pthread, contributed by Glen Lenker.
45820
45821         * MODULES.html.sh: Add pthread, nproc.
45822         * lib/nproc.c: New file.
45823         * lib/nproc.h: New file.
45824         * lib/pthread.in.h: New file.
45825         * m4/pthread.m4: New file.
45826         * modules/nproc: New file.
45827         * modules/pthread: New file.
45828
45829 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45830
45831         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45832         New variable.
45833
45834 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45835
45836         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45837         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45838         * tests/test-filevercmp.c: Add tests for backup suffixes.
45839
45840 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45841
45842         * modules/stdlib (Depends-on): Add stdint, needed when defining
45843         struct random_data on, for example, HP-UX 10.20.  Reported by
45844         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45845
45846 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45847
45848         * lib/readline.c (readline): Call fflush on stdout after printing
45849         prompt.
45850
45851 2009-03-20  Bruno Haible  <bruno@clisp.org>
45852
45853         Remove dependency from 'close' module to -lws2_32 on native Windows.
45854         * lib/close-hook.h: New file.
45855         * lib/close-hook.c: New file.
45856         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45857         w32sock.h.
45858         (_gl_close_fd_maybe_socket): Remove function.
45859         (rpl_close): Invoke execute_all_close_hooks instead of
45860         _gl_close_fd_maybe_socket.
45861         * lib/sockets.c: Include close-hook.h, w32sock.h.
45862         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45863         (close_sockets_hook): New variable.
45864         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45865         (gl_sockets_cleanup): Unregister it.
45866         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45867         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45868         * modules/close-hook: New file.
45869         * modules/close (Files): Remove lib/w32sock.h.
45870         (Depends-on): Add close-hook.
45871         (Link): Remove section.
45872         * modules/sockets (Files): Add lib/w32sock.h.
45873         (Depends-on): Add close-hook.
45874         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45875         invocation.
45876         * NEWS: Mention that LIB_CLOSE is gone.
45877
45878 2009-03-23  Eric Blake  <ebb9@byu.net>
45879
45880         signal-tests: test previous patch
45881         * tests/test-signal.c: New file.
45882         * modules/signal-tests: Likewise.
45883
45884         signal.h: always support 'volatile sig_atomic_t'
45885         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45886         (gl_SIGNAL_H_DEFAULTS): Add a default.
45887         * modules/signal (Makefile.am): Substitute if needed.
45888         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45889         users can blindly add volatile.
45890         * doc/posix-headers/signal.texi (signal.h): Document it.
45891         Reported by Matthew Woehlke.
45892
45893 2009-03-23  Jim Meyering  <meyering@redhat.com>
45894
45895         pathmax: PATH_MAX: use pathconf only when available
45896         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45897         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45898         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45899         This avoids a link failure in a PSP cross-compilation environment
45900         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45901
45902         * lib/vasnprintf.c (divide): Fix typo in comment.
45903
45904 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45905
45906         * gnulib-tool (func_filter_filelist): Fix comment.
45907
45908 2009-03-20  Bruno Haible  <bruno@clisp.org>
45909
45910         Make sockets.h self-contained.
45911         * lib/sockets.c: Include sockets.h first.
45912         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45913
45914 2009-03-19  Eric Blake  <ebb9@byu.net>
45915
45916         doc: mention more functions added in cygwin 1.7.0
45917         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45918         addition.
45919         * doc/posix-functions/log2f.texi: Likewise.
45920
45921 2009-03-19  Jim Meyering  <meyering@redhat.com>
45922
45923         fsusage: avoid syntax error due to statement-before-declaration
45924         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45925         after all declarations.  Reported by Matthew Woehlke in
45926         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45927
45928 2009-03-18  Eric Blake  <ebb9@byu.net>
45929
45930         build-aux/compile: sync from automake
45931         * build-aux/compile: New file, from automake.
45932         * config/srclist.txt: Mention build-aux/compile.
45933
45934 2009-03-17  Bruno Haible  <bruno@clisp.org>
45935
45936         * lib/git-merge-changelog.c: Fix typo in comment.
45937         Reported by Reuben Thomas <rrt@sc3d.org>.
45938
45939 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45940
45941         * m4/regex.m4: update and improve help for
45942         --without-included-regex.
45943
45944 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45945
45946         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45947         failure on missing include files.
45948
45949 2009-03-17  Eric Blake  <ebb9@byu.net>
45950
45951         doc: mention more functions added in cygwin 1.7.0
45952         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45953         addition.
45954         * doc/posix-functions/fwscanf.texi: Likewise.
45955         * doc/posix-functions/swprintf.texi: Likewise.
45956         * doc/posix-functions/swscanf.texi: Likewise.
45957         * doc/posix-functions/vfwprintf.texi: Likewise.
45958         * doc/posix-functions/vfwscanf.texi: Likewise.
45959         * doc/posix-functions/vswprintf.texi: Likewise.
45960         * doc/posix-functions/vswscanf.texi: Likewise.
45961         * doc/posix-functions/vwprintf.texi: Likewise.
45962         * doc/posix-functions/vwscanf.texi: Likewise.
45963         * doc/posix-functions/wcscasecmp.texi: Likewise.
45964         * doc/posix-functions/wcsdup.texi: Likewise.
45965         * doc/posix-functions/wcsftime.texi: Likewise.
45966         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45967         * doc/posix-functions/wprintf.texi: Likewise.
45968         * doc/posix-functions/wscanf.texi: Likewise.
45969         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45970
45971 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45972
45973         maint.mk: really add $(AM_MAKEFLAGS)
45974         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45975         was inadvertently omitted in the last commit.
45976         Spotted by Bruno Haible.
45977
45978         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45979         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45980         $(AM_MAKEFLAGS)' rather than plain `make'.
45981
45982         gnulib-tool: execute $MAKE not make
45983         * gnulib-tool: Default $MAKE to 'make'.
45984         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45985         than make.  Initialize $MAKE in the do-autobuild script.
45986
45987         gnulib-tool: use $MAKE not make in generated files
45988         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45989         make, in generated files.  Initialize $MAKE in the do-autobuild
45990         script.
45991
45992         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45993
45994         GNUmakefile: disable parallelism only for multiple, recursive targets
45995         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45996         additions in the Makefile.
45997         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45998         by Automake.
45999         (.NOTPARALLEL): Only disable parallel builds if multiple targets
46000         are listed on the command line and at least one of them is
46001         listed in $(ALL_RECURSIVE_TARGETS).
46002
46003 2009-03-14  Bruno Haible  <bruno@clisp.org>
46004
46005         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
46006         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
46007         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
46008         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
46009         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
46010         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
46011         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
46012         unistr/u8-uctomb.
46013         * modules/unistr/u8-strchr (Depends-on): Likewise.
46014         * modules/unistr/u8-strrchr (Depends-on): Likewise.
46015         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
46016         unistr/u16-uctomb.
46017         * modules/unistr/u16-strchr (Depends-on): Likewise.
46018         * modules/unistr/u16-strrchr (Depends-on): Likewise.
46019
46020 2009-03-12  Bruno Haible  <bruno@clisp.org>
46021
46022         Work around select() bug on Interix 3.5.
46023         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
46024         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
46025         * m4/select.m4: New file.
46026         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
46027         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
46028         * modules/select (Files): Add m4/select.m4.
46029         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
46030         * modules/nanosleep (Depends-on): Add select.
46031         * modules/poll (Depends-on): Likewise.
46032         * doc/posix-functions/select.texi: Mention the Interix bug.
46033         Reported by Markus Duft <mduft@gentoo.org>.
46034
46035         * lib/select.c: Renamed from lib/winsock-select.c.
46036         * modules/select (Files): Add lib/select.c, remove
46037         lib/winsock-select.c.
46038         (configure.ac): Update.
46039
46040 2009-03-12  Jim Meyering  <meyering@redhat.com>
46041
46042         avoid gcc warnings about unused macro definitions
46043         * lib/readtokens.c (STREQ): Remove unused definition.
46044         * lib/xmalloc.c (SIZE_MAX): Likewise.
46045         * lib/openat-die.c (N_): Likewise.
46046         * lib/mountlist.c (SIZE_MAX): Remove definition.
46047         Instead, include <stdint.h>.
46048         * lib/readutmp.c: Likewise.
46049         * modules/readutmp (Depends-on): Add stdint.
46050         * modules/mountlist (Depends-on): Add stdint.
46051         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
46052
46053 2009-03-10  Bruno Haible  <bruno@clisp.org>
46054
46055         Tests for module 'mbmemcasecoll'.
46056         * modules/mbmemcasecoll-tests: New file.
46057         * tests/test-mbmemcasecoll1.sh: New file.
46058         * tests/test-mbmemcasecoll2.sh: New file.
46059         * tests/test-mbmemcasecoll3.sh: New file.
46060         * tests/test-mbmemcasecoll.c: New file.
46061
46062         New module 'mbmemcasecoll'.
46063         * lib/mbmemcasecoll.h: New file.
46064         * lib/mbmemcasecoll.c: New file.
46065         * modules/mbmemcasecoll: New file.
46066
46067         * tests/test-mbmemcasecmp.h: New file, extracted from
46068         tests/test-mbmemcasecmp.c.
46069         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
46070         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
46071         (main): Update.
46072         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
46073
46074 2009-03-09  Bruno Haible  <bruno@clisp.org>
46075
46076         Tests for module 'mbmemcasecmp'.
46077         * modules/mbmemcasecmp-tests: New file.
46078         * tests/test-mbmemcasecmp1.sh: New file.
46079         * tests/test-mbmemcasecmp2.sh: New file.
46080         * tests/test-mbmemcasecmp3.sh: New file.
46081         * tests/test-mbmemcasecmp.c: New file.
46082
46083         New module 'mbmemcasecmp'.
46084         * lib/mbmemcasecmp.h: New file.
46085         * lib/mbmemcasecmp.c: New file.
46086         * modules/mbmemcasecmp: New file.
46087
46088 2009-03-09  Bruno Haible  <bruno@clisp.org>
46089
46090         Tests for module 'unicase/ulc-casecoll'.
46091         * modules/unicase/ulc-casecoll-tests: New file.
46092         * tests/unicase/test-ulc-casecoll1.sh: New file.
46093         * tests/unicase/test-ulc-casecoll2.sh: New file.
46094         * tests/unicase/test-ulc-casecoll.c: New file.
46095
46096         New module 'unicase/ulc-casecoll'.
46097         * lib/unicase.h (ulc_casecoll): New declaration.
46098         * lib/unicase/ulc-casecoll.c: New file.
46099         * modules/unicase/ulc-casecoll: New file.
46100
46101         New module 'unicase/ulc-casexfrm'.
46102         * lib/unicase.h (ulc_casexfrm): New declaration.
46103         * lib/unicase/ulc-casexfrm.c: New file.
46104         * modules/unicase/ulc-casexfrm: New file.
46105
46106 2009-03-09  Bruno Haible  <bruno@clisp.org>
46107
46108         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
46109         invocations.
46110
46111         * m4/mbscasecmp.m4: Remove file.
46112         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
46113         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
46114
46115         * m4/mbscasestr.m4: Remove file.
46116         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
46117         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
46118
46119         * m4/mbschr.m4: Remove file.
46120         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
46121         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
46122
46123         * m4/mbscspn.m4: Remove file.
46124         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
46125         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
46126
46127         * m4/mbslen.m4: Remove file.
46128         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
46129         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
46130
46131         * m4/mbsncasecmp.m4: Remove file.
46132         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
46133         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
46134
46135         * m4/mbsnlen.m4: Remove file.
46136         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
46137         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
46138
46139         * m4/mbspbrk.m4: Remove file.
46140         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
46141         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
46142
46143         * m4/mbspcasecmp.m4: Remove file.
46144         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
46145         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
46146
46147         * m4/mbsrchr.m4: Remove file.
46148         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
46149         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
46150
46151         * m4/mbssep.m4: Remove file.
46152         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
46153         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
46154
46155         * m4/mbsspn.m4: Remove file.
46156         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
46157         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
46158
46159         * m4/mbsstr.m4: Remove file.
46160         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
46161         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
46162
46163         * m4/mbstok_r.m4: Remove file.
46164         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
46165         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
46166
46167         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
46168
46169         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
46170         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
46171
46172         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
46173
46174 2009-03-08  Bruno Haible  <bruno@clisp.org>
46175
46176         Tests for module 'unicase/ulc-casecmp'.
46177         * modules/unicase/ulc-casecmp-tests: New file.
46178         * tests/unicase/test-ulc-casecmp1.sh: New file.
46179         * tests/unicase/test-ulc-casecmp2.sh: New file.
46180         * tests/unicase/test-ulc-casecmp.c: New file.
46181
46182         New module 'unicase/ulc-casecmp'.
46183         * lib/unicase.h (ulc_casecmp): New declaration.
46184         * lib/unicase/ulc-casecmp.c: New file.
46185         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
46186         'const SRC_UNIT *'.
46187         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
46188         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
46189         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
46190         * modules/unicase/ulc-casecmp: New file.
46191
46192         Tests for module 'unicase/u32-is-cased'.
46193         * modules/unicase/u32-is-cased-tests: New file.
46194         * tests/unicase/test-u32-is-cased.c: New file.
46195
46196         Tests for module 'unicase/u16-is-cased'.
46197         * modules/unicase/u16-is-cased-tests: New file.
46198         * tests/unicase/test-u16-is-cased.c: New file.
46199
46200         Tests for module 'unicase/u8-is-cased'.
46201         * modules/unicase/u8-is-cased-tests: New file.
46202         * tests/unicase/test-u8-is-cased.c: New file.
46203         * tests/unicase/test-is-cased.h: New file.
46204
46205         New module 'unicase/u32-is-cased'.
46206         * lib/unicase/u32-is-cased.c: New file.
46207         * modules/unicase/u32-is-cased: New file.
46208
46209         New module 'unicase/u16-is-cased'.
46210         * lib/unicase/u16-is-cased.c: New file.
46211         * modules/unicase/u16-is-cased: New file.
46212
46213         New module 'unicase/u8-is-cased'.
46214         * lib/unicase/u8-is-cased.c: New file.
46215         * lib/unicase/u-is-cased.h: New file.
46216         * modules/unicase/u8-is-cased: New file.
46217
46218         Tests for module 'unicase/u32-is-casefolded'.
46219         * modules/unicase/u32-is-casefolded-tests: New file.
46220         * tests/unicase/test-u32-is-casefolded.c: New file.
46221
46222         Tests for module 'unicase/u16-is-casefolded'.
46223         * modules/unicase/u16-is-casefolded-tests: New file.
46224         * tests/unicase/test-u16-is-casefolded.c: New file.
46225
46226         Tests for module 'unicase/u8-is-casefolded'.
46227         * modules/unicase/u8-is-casefolded-tests: New file.
46228         * tests/unicase/test-u8-is-casefolded.c: New file.
46229         * tests/unicase/test-is-casefolded.h: New file.
46230
46231         New module 'unicase/u32-is-casefolded'.
46232         * lib/unicase/u32-is-casefolded.c: New file.
46233         * modules/unicase/u32-is-casefolded: New file.
46234
46235         New module 'unicase/u16-is-casefolded'.
46236         * lib/unicase/u16-is-casefolded.c: New file.
46237         * modules/unicase/u16-is-casefolded: New file.
46238
46239         New module 'unicase/u8-is-casefolded'.
46240         * lib/unicase/u8-is-casefolded.c: New file.
46241         * modules/unicase/u8-is-casefolded: New file.
46242
46243         Tests for module 'unicase/u32-is-titlecase'.
46244         * modules/unicase/u32-is-titlecase-tests: New file.
46245         * tests/unicase/test-u32-is-titlecase.c: New file.
46246
46247         Tests for module 'unicase/u16-is-titlecase'.
46248         * modules/unicase/u16-is-titlecase-tests: New file.
46249         * tests/unicase/test-u16-is-titlecase.c: New file.
46250
46251         Tests for module 'unicase/u8-is-titlecase'.
46252         * modules/unicase/u8-is-titlecase-tests: New file.
46253         * tests/unicase/test-u8-is-titlecase.c: New file.
46254         * tests/unicase/test-is-titlecase.h: New file.
46255
46256         New module 'unicase/u32-is-titlecase'.
46257         * lib/unicase/u32-is-titlecase.c: New file.
46258         * modules/unicase/u32-is-titlecase: New file.
46259
46260         New module 'unicase/u16-is-titlecase'.
46261         * lib/unicase/u16-is-titlecase.c: New file.
46262         * modules/unicase/u16-is-titlecase: New file.
46263
46264         New module 'unicase/u8-is-titlecase'.
46265         * lib/unicase/u8-is-titlecase.c: New file.
46266         * modules/unicase/u8-is-titlecase: New file.
46267
46268         Tests for module 'unicase/u32-is-lowercase'.
46269         * modules/unicase/u32-is-lowercase-tests: New file.
46270         * tests/unicase/test-u32-is-lowercase.c: New file.
46271
46272         Tests for module 'unicase/u16-is-lowercase'.
46273         * modules/unicase/u16-is-lowercase-tests: New file.
46274         * tests/unicase/test-u16-is-lowercase.c: New file.
46275
46276         Tests for module 'unicase/u8-is-lowercase'.
46277         * modules/unicase/u8-is-lowercase-tests: New file.
46278         * tests/unicase/test-u8-is-lowercase.c: New file.
46279         * tests/unicase/test-is-lowercase.h: New file.
46280
46281         New module 'unicase/u32-is-lowercase'.
46282         * lib/unicase/u32-is-lowercase.c: New file.
46283         * modules/unicase/u32-is-lowercase: New file.
46284
46285         New module 'unicase/u16-is-lowercase'.
46286         * lib/unicase/u16-is-lowercase.c: New file.
46287         * modules/unicase/u16-is-lowercase: New file.
46288
46289         New module 'unicase/u8-is-lowercase'.
46290         * lib/unicase/u8-is-lowercase.c: New file.
46291         * modules/unicase/u8-is-lowercase: New file.
46292
46293         Tests for module 'unicase/u32-is-uppercase'.
46294         * modules/unicase/u32-is-uppercase-tests: New file.
46295         * tests/unicase/test-u32-is-uppercase.c: New file.
46296
46297         Tests for module 'unicase/u16-is-uppercase'.
46298         * modules/unicase/u16-is-uppercase-tests: New file.
46299         * tests/unicase/test-u16-is-uppercase.c: New file.
46300
46301         Tests for module 'unicase/u8-is-uppercase'.
46302         * modules/unicase/u8-is-uppercase-tests: New file.
46303         * tests/unicase/test-u8-is-uppercase.c: New file.
46304         * tests/unicase/test-is-uppercase.h: New file.
46305
46306         New module 'unicase/u32-is-uppercase'.
46307         * lib/unicase/u32-is-uppercase.c: New file.
46308         * modules/unicase/u32-is-uppercase: New file.
46309
46310         New module 'unicase/u16-is-uppercase'.
46311         * lib/unicase/u16-is-uppercase.c: New file.
46312         * modules/unicase/u16-is-uppercase: New file.
46313
46314         New module 'unicase/u8-is-uppercase'.
46315         * lib/unicase/u8-is-uppercase.c: New file.
46316         * modules/unicase/u8-is-uppercase: New file.
46317
46318         New module 'unicase/u32-is-invariant'.
46319         * lib/unicase/u32-is-invariant.c: New file.
46320         * modules/unicase/u32-is-invariant: New file.
46321
46322         New module 'unicase/u16-is-invariant'.
46323         * lib/unicase/u16-is-invariant.c: New file.
46324         * modules/unicase/u16-is-invariant: New file.
46325
46326         New module 'unicase/u8-is-invariant'.
46327         * lib/unicase/u8-is-invariant.c: New file.
46328         * lib/unicase/invariant.h: New file.
46329         * lib/unicase/u-is-invariant.h: New file.
46330         * modules/unicase/u8-is-invariant: New file.
46331
46332         Tests for module 'unicase/u32-casecoll'.
46333         * modules/unicase/u32-casecoll-tests: New file.
46334         * tests/unicase/test-u32-casecoll.c: New file.
46335
46336         Tests for module 'unicase/u16-casecoll'.
46337         * modules/unicase/u16-casecoll-tests: New file.
46338         * tests/unicase/test-u16-casecoll.c: New file.
46339
46340         Tests for module 'unicase/u8-casecoll'.
46341         * modules/unicase/u8-casecoll-tests: New file.
46342         * tests/unicase/test-u8-casecoll.c: New file.
46343
46344         New module 'unicase/u32-casecoll'.
46345         * lib/unicase/u32-casecoll.c: New file.
46346         * modules/unicase/u32-casecoll: New file.
46347
46348         New module 'unicase/u16-casecoll'.
46349         * lib/unicase/u16-casecoll.c: New file.
46350         * modules/unicase/u16-casecoll: New file.
46351
46352         New module 'unicase/u8-casecoll'.
46353         * lib/unicase/u8-casecoll.c: New file.
46354         * lib/unicase/u-casecoll.h: New file.
46355         * modules/unicase/u8-casecoll: New file.
46356
46357         New module 'unicase/u32-casexfrm'.
46358         * lib/unicase/u32-casexfrm.c: New file.
46359         * modules/unicase/u32-casexfrm: New file.
46360
46361         New module 'unicase/u16-casexfrm'.
46362         * lib/unicase/u16-casexfrm.c: New file.
46363         * modules/unicase/u16-casexfrm: New file.
46364
46365         New module 'unicase/u8-casexfrm'.
46366         * lib/unicase/u8-casexfrm.c: New file.
46367         * lib/unicase/u-casexfrm.h: New file.
46368         * modules/unicase/u8-casexfrm: New file.
46369
46370         Tests for module 'unicase/u32-casecmp'.
46371         * modules/unicase/u32-casecmp-tests: New file.
46372         * tests/unicase/test-u32-casecmp.c: New file.
46373
46374         Tests for module 'unicase/u16-casecmp'.
46375         * modules/unicase/u16-casecmp-tests: New file.
46376         * tests/unicase/test-u16-casecmp.c: New file.
46377
46378         Tests for module 'unicase/u8-casecmp'.
46379         * modules/unicase/u8-casecmp-tests: New file.
46380         * tests/unicase/test-u8-casecmp.c: New file.
46381         * tests/unicase/test-casecmp.h: New file.
46382
46383         New module 'unicase/u32-casecmp'.
46384         * lib/unicase/u32-casecmp.c: New file.
46385         * modules/unicase/u32-casecmp: New file.
46386
46387         New module 'unicase/u16-casecmp'.
46388         * lib/unicase/u16-casecmp.c: New file.
46389         * modules/unicase/u16-casecmp: New file.
46390
46391         New module 'unicase/u8-casecmp'.
46392         * lib/unicase/u8-casecmp.c: New file.
46393         * lib/unicase/u-casecmp.h: New file.
46394         * modules/unicase/u8-casecmp: New file.
46395
46396         Tests for module 'unicase/u32-casefold'.
46397         * modules/unicase/u32-casefold-tests: New file.
46398         * tests/unicase/test-u32-casefold.c: New file.
46399
46400         Tests for module 'unicase/u16-casefold'.
46401         * modules/unicase/u16-casefold-tests: New file.
46402         * tests/unicase/test-u16-casefold.c: New file.
46403
46404         Tests for module 'unicase/u8-casefold'.
46405         * modules/unicase/u8-casefold-tests: New file.
46406         * tests/unicase/test-u8-casefold.c: New file.
46407
46408         New module 'unicase/u32-casefold'.
46409         * lib/unicase/u32-casefold.c: New file.
46410         * modules/unicase/u32-casefold: New file.
46411
46412         New module 'unicase/u16-casefold'.
46413         * lib/unicase/u16-casefold.c: New file.
46414         * modules/unicase/u16-casefold: New file.
46415
46416         New module 'unicase/u8-casefold'.
46417         * lib/unicase/u8-casefold.c: New file.
46418         * lib/unicase/u-casefold.h: New file.
46419         * modules/unicase/u8-casefold: New file.
46420
46421         New module 'unicase/tocasefold'.
46422         * lib/unicase/casefold.h: New file.
46423         * lib/unicase/tocasefold.c: New file.
46424         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
46425         * modules/unicase/tocasefold: New file.
46426
46427         Tests for module 'unicase/u32-totitle'.
46428         * modules/unicase/u32-totitle-tests: New file.
46429         * tests/unicase/test-u32-totitle.c: New file.
46430
46431         Tests for module 'unicase/u16-totitle'.
46432         * modules/unicase/u16-totitle-tests: New file.
46433         * tests/unicase/test-u16-totitle.c: New file.
46434
46435         Tests for module 'unicase/u8-totitle'.
46436         * modules/unicase/u8-totitle-tests: New file.
46437         * tests/unicase/test-u8-totitle.c: New file.
46438
46439         New module 'unicase/u32-totitle'.
46440         * lib/unicase/u32-totitle.c: New file.
46441         * modules/unicase/u32-totitle: New file.
46442
46443         New module 'unicase/u16-totitle'.
46444         * lib/unicase/u16-totitle.c: New file.
46445         * modules/unicase/u16-totitle: New file.
46446
46447         New module 'unicase/u8-totitle'.
46448         * lib/unicase/u8-totitle.c: New file.
46449         * lib/unicase/u-totitle.h: New file.
46450         * modules/unicase/u8-totitle: New file.
46451
46452         Tests for module 'unicase/u32-tolower'.
46453         * modules/unicase/u32-tolower-tests: New file.
46454         * tests/unicase/test-u32-tolower.c: New file.
46455
46456         Tests for module 'unicase/u16-tolower'.
46457         * modules/unicase/u16-tolower-tests: New file.
46458         * tests/unicase/test-u16-tolower.c: New file.
46459
46460         Tests for module 'unicase/u8-tolower'.
46461         * modules/unicase/u8-tolower-tests: New file.
46462         * tests/unicase/test-u8-tolower.c: New file.
46463
46464         New module 'unicase/u32-tolower'.
46465         * lib/unicase/u32-tolower.c: New file.
46466         * modules/unicase/u32-tolower: New file.
46467
46468         New module 'unicase/u16-tolower'.
46469         * lib/unicase/u16-tolower.c: New file.
46470         * modules/unicase/u16-tolower: New file.
46471
46472         New module 'unicase/u8-tolower'.
46473         * lib/unicase/u8-tolower.c: New file.
46474         * modules/unicase/u8-tolower: New file.
46475
46476         Tests for module 'unicase/u32-toupper'.
46477         * modules/unicase/u32-toupper-tests: New file.
46478         * tests/unicase/test-u32-toupper.c: New file.
46479
46480         Tests for module 'unicase/u16-toupper'.
46481         * modules/unicase/u16-toupper-tests: New file.
46482         * tests/unicase/test-u16-toupper.c: New file.
46483
46484         Tests for module 'unicase/u8-toupper'.
46485         * modules/unicase/u8-toupper-tests: New file.
46486         * tests/unicase/test-u8-toupper.c: New file.
46487
46488         New module 'unicase/u32-toupper'.
46489         * lib/unicase/u32-toupper.c: New file.
46490         * modules/unicase/u32-toupper: New file.
46491
46492         New module 'unicase/u16-toupper'.
46493         * lib/unicase/u16-toupper.c: New file.
46494         * modules/unicase/u16-toupper: New file.
46495
46496         New module 'unicase/u8-toupper'.
46497         * lib/unicase/u8-toupper.c: New file.
46498         * modules/unicase/u8-toupper: New file.
46499
46500         New module 'unicase/u32-casemap'.
46501         * lib/unicase/u32-casemap.c: New file.
46502         * modules/unicase/u32-casemap: New file.
46503
46504         New module 'unicase/u16-casemap'.
46505         * lib/unicase/u16-casemap.c: New file.
46506         * modules/unicase/u16-casemap: New file.
46507
46508         New module 'unicase/u8-casemap'.
46509         * lib/unicase/unicasemap.h: New file.
46510         * lib/unicase/u8-casemap.c: New file.
46511         * lib/unicase/u-casemap.h: New file.
46512         * modules/unicase/u8-casemap: New file.
46513
46514         New module 'unicase/special-casing'.
46515         * lib/unicase/special-casing.h: New file.
46516         * lib/unicase/special-casing.c: New file.
46517         * lib/unicase/special-casing-table.gperf: New file, generated by
46518         gen-uni-tables.c.
46519         * modules/unicase/special-casing: New file.
46520
46521         Tests for module 'unicase/locale-language'.
46522         * modules/unicase/locale-language-tests: New file.
46523         * tests/unicase/test-locale-language.sh: New file.
46524         * tests/unicase/test-locale-language.c: New file.
46525
46526         New module 'unicase/locale-language'.
46527         * lib/unicase/locale-language.c: New file.
46528         * lib/unicase/locale-languages.gperf: New file.
46529         * modules/unicase/locale-language: New file.
46530
46531         Generate more tables for case conversion and case folding.
46532         * lib/gen-uni-tables.c (SCC_*): New enum items.
46533         (struct special_casing_rule): New type.
46534         (casing_rules, num_casing_rules, allocated_casing_rules): New
46535         variables.
46536         (add_casing_rule, fill_casing_rules): New functions.
46537         (struct casefold_rule): New type.
46538         (casefolding_rules, num_casefolding_rules,
46539         allocated_casefolding_rules): New variables.
46540         (fill_casefolding_rules): New function.
46541         (unicode_casefold): New variable.
46542         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
46543         sort_casing_rules, output_casing_rules): New functions.
46544         (main): Accept to more arguments: SpecialCasing.txt and
46545         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
46546         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
46547         Output mapping for casefolding.
46548
46549         * lib/unicase.h: Include stdbool.h, uninorm.h.
46550         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
46551         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
46552         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
46553         arguments.
46554         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
46555         resultp arguments.
46556         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46557         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46558         resultp arguments.
46559         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46560         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46561         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46562         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46563         declarations.
46564         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46565
46566 2009-03-08  Bruno Haible  <bruno@clisp.org>
46567
46568         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46569         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46570         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46571         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46572
46573 2009-03-07  Bruno Haible  <bruno@clisp.org>
46574
46575         Adjust u*_normcmp, u*_normcoll API.
46576         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46577         u16_normcoll, u32_normcoll): Change failure conventions.
46578         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46579         errno and return -1.
46580         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46581
46582 2009-03-07  Bruno Haible  <bruno@clisp.org>
46583
46584         Tests for module 'uninorm/u32-normcoll'.
46585         * modules/uninorm/u32-normcoll-tests: New file.
46586         * tests/uninorm/test-u32-normcoll.c: New file.
46587
46588         Tests for module 'uninorm/u16-normcoll'.
46589         * modules/uninorm/u16-normcoll-tests: New file.
46590         * tests/uninorm/test-u16-normcoll.c: New file.
46591
46592         Tests for module 'uninorm/u8-normcoll'.
46593         * modules/uninorm/u8-normcoll-tests: New file.
46594         * tests/uninorm/test-u8-normcoll.c: New file.
46595
46596 2009-03-07  Bruno Haible  <bruno@clisp.org>
46597
46598         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46599         tests/uninorm/test-u32-normcmp.c.
46600         * tests/uninorm/test-u32-normcmp.c: Include it.
46601         (test_nonascii): New function, extracted from main. Add some more
46602         tests.
46603         (main): Invoke test_ascii and test_nonascii.
46604         * modules/uninorm/u32-normcmp-tests (Files): Add
46605         tests/uninorm/test-u32-normcmp.h.
46606         (Depends-on): Remove uninorm/u32-normcmp.
46607
46608         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46609         tests/uninorm/test-u16-normcmp.c.
46610         * tests/uninorm/test-u16-normcmp.c: Include it.
46611         (test_nonascii): New function, extracted from main. Add some more
46612         tests.
46613         (main): Invoke test_ascii and test_nonascii.
46614         * modules/uninorm/u16-normcmp-tests (Files): Add
46615         tests/uninorm/test-u16-normcmp.h.
46616         (Depends-on): Remove uninorm/u16-normcmp.
46617
46618         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46619         tests/uninorm/test-u8-normcmp.c.
46620         * tests/uninorm/test-u8-normcmp.c: Include it.
46621         (test_nonascii): New function, extracted from main. Add some more
46622         tests.
46623         (main): Invoke test_ascii and test_nonascii.
46624         * modules/uninorm/u8-normcmp-tests (Files): Add
46625         tests/uninorm/test-u8-normcmp.h.
46626         (Depends-on): Remove uninorm/u8-normcmp.
46627
46628 2009-03-07  Bruno Haible  <bruno@clisp.org>
46629
46630         New module 'uninorm/u32-normcoll'.
46631         * lib/uninorm/u32-normcoll.c: New file.
46632         * modules/uninorm/u32-normcoll: New file.
46633
46634         New module 'uninorm/u16-normcoll'.
46635         * lib/uninorm/u16-normcoll.c: New file.
46636         * modules/uninorm/u16-normcoll: New file.
46637
46638         New module 'uninorm/u8-normcoll'.
46639         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46640         declarations.
46641         * lib/uninorm/u8-normcoll.c: New file.
46642         * lib/uninorm/u-normcoll.h: New file.
46643         * modules/uninorm/u8-normcoll: New file.
46644
46645         New module 'uninorm/u32-normxfrm'.
46646         * lib/uninorm/u32-normxfrm.c: New file.
46647         * modules/uninorm/u32-normxfrm: New file.
46648
46649         New module 'uninorm/u16-normxfrm'.
46650         * lib/uninorm/u16-normxfrm.c: New file.
46651         * modules/uninorm/u16-normxfrm: New file.
46652
46653         New module 'uninorm/u8-normxfrm'.
46654         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46655         declarations.
46656         * lib/uninorm/u8-normxfrm.c: New file.
46657         * lib/uninorm/u-normxfrm.h: New file.
46658         * modules/uninorm/u8-normxfrm: New file.
46659
46660 2009-03-07  Bruno Haible  <bruno@clisp.org>
46661
46662         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46663         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46664         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46665
46666 2009-03-07  Bruno Haible  <bruno@clisp.org>
46667
46668         New module 'memxfrm'.
46669         * lib/memxfrm.h: New file.
46670         * lib/memxfrm.c: New file.
46671         * modules/memxfrm: New file.
46672
46673 2009-03-07  Bruno Haible  <bruno@clisp.org>
46674
46675         New module 'memcmp2'.
46676         * lib/memcmp2.h: New file.
46677         * lib/memcmp2.c: New file.
46678         * modules/memcmp2: New file.
46679
46680 2009-03-07  Bruno Haible  <bruno@clisp.org>
46681
46682         Tests for module 'uninorm/decomposing-form'.
46683         * modules/uninorm/decomposing-form-tests: New file.
46684         * tests/uninorm/test-decomposing-form.c: New file.
46685
46686         New module 'uninorm/decomposing-form'.
46687         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46688         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46689         Add 'decomposing_variant' field.
46690         * lib/uninorm/decomposing-form.c: New file.
46691         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46692         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46693         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46694         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46695         * modules/uninorm/decomposing-form: New file.
46696         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46697         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46698
46699 2009-03-07  Bruno Haible  <bruno@clisp.org>
46700
46701         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46702         strings.
46703
46704 2009-03-06  Bruno Haible  <bruno@clisp.org>
46705
46706         Tests for module 'uninorm/u32-normcmp'.
46707         * tests/uninorm/test-u32-normcmp.c: New file.
46708         * modules/uninorm/u32-normcmp-tests: New file.
46709
46710         Tests for module 'uninorm/u16-normcmp'.
46711         * tests/uninorm/test-u16-normcmp.c: New file.
46712         * modules/uninorm/u16-normcmp-tests: New file.
46713
46714         Tests for module 'uninorm/u8-normcmp'.
46715         * tests/uninorm/test-u8-normcmp.c: New file.
46716         * modules/uninorm/u8-normcmp-tests: New file.
46717
46718         New module 'uninorm/u32-normcmp'.
46719         * lib/uninorm/u32-normcmp.c: New file.
46720         * modules/uninorm/u32-normcmp: New file.
46721
46722         New module 'uninorm/u16-normcmp'.
46723         * lib/uninorm/u16-normcmp.c: New file.
46724         * modules/uninorm/u16-normcmp: New file.
46725
46726         New module 'uninorm/u8-normcmp'.
46727         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46728         declarations.
46729         * lib/uninorm/u8-normcmp.c: New file.
46730         * lib/uninorm/u-normcmp.h: New file.
46731         * modules/uninorm/u8-normcmp: New file.
46732
46733 2009-03-06  Bruno Haible  <bruno@clisp.org>
46734
46735         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46736         Reported by Eric Blake.
46737
46738 2009-03-06  Eric Blake  <ebb9@byu.net>
46739             Bruno Haible  <bruno@clisp.org>
46740
46741         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46742         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46743         condition.
46744         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46745         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46746         condition.
46747         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46748
46749 2009-03-06  Eric Blake  <ebb9@byu.net>
46750
46751         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46752         to avoid compiler warnings.
46753         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46754
46755 2009-03-05  Bruno Haible  <bruno@clisp.org>
46756
46757         * tests/test-ftell.c (main): Disable test beyond end of file on
46758         FreeMiNT.
46759         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46760
46761 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46762
46763         * lib/filevercmp.c: Move hidden files up in ordering.
46764         * tests/test-filevercmp.c: Add tests for hidden files.
46765
46766 2009-03-04  Bruno Haible  <bruno@clisp.org>
46767
46768         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46769         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46770         AM_CFLAGS.
46771         Reported by Simon Josefsson.
46772
46773 2009-03-03  Bruno Haible  <bruno@clisp.org>
46774
46775         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46776         Reported by Simon Josefsson.
46777
46778         * doc/ld-version-script.texi: Update node reference.
46779
46780 2009-03-03  Bruno Haible  <bruno@clisp.org>
46781
46782         * modules/visibility (License): Change to 'unlimited'.
46783         Suggested by Simon Josefsson.
46784
46785 2009-03-03  Jim Meyering  <meyering@redhat.com>
46786
46787         unlinkdir: cannot_unlink_dir may modify process state
46788         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46789         it's neither thread-safe nor appropriate for use in a library.
46790
46791 2009-03-03  Eric Blake  <ebb9@byu.net>
46792
46793         test-closein: silence test under Darwin
46794         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46795         care if it dies from EPIPE or EBADF.
46796
46797 2009-03-03  Bruno Haible  <bruno@clisp.org>
46798
46799         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46800         earlier.
46801         * doc/visibility.texi: Fix @node and @section.
46802
46803 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46804
46805         * doc/gnulib.texi: Link to sections for ld version script and
46806         visibility.
46807         * doc/visibility.texi: Add @node and @section.
46808         * modules/ld-version-script: New module.
46809         * m4/ld-version-script.m4: New file.
46810         * doc/ld-version-script.texi: New file.
46811
46812 2009-03-02  David Lutterkort  <lutter@redhat.com>
46813
46814         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46815         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46816
46817 2009-03-02  Bruno Haible  <bruno@clisp.org>
46818
46819         * doc/visibility.texi: Mention libtool's -export-symbols option.
46820
46821 2009-03-02  Jim Meyering  <meyering@redhat.com>
46822
46823         announce-gen: new option: --no-print-checksums
46824         * build-aux/announce-gen (usage): Describe it.
46825         (print_checksums): Print a newline here, not in the [*] footnote.
46826         (main): Honor it.
46827
46828 2009-03-01  Bruno Haible  <bruno@clisp.org>
46829
46830         Use socklen_t in the native Windows replacements prototypes.
46831         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46832         instead of 'int'.
46833         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46834         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46835         * modules/getsockopt (Depends-on): Add socklen.
46836         * modules/setsockopt (Depends-on): Add socklen.
46837
46838 2009-03-01  Bruno Haible  <bruno@clisp.org>
46839
46840         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46841         least 4.2.
46842
46843 2009-03-01  Eric Blake  <ebb9@byu.net>
46844             Bruno Haible  <bruno@clisp.org>
46845
46846         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46847         error messages.
46848         * lib/wait-process.c (wait_subprocess): Omit error message about
46849         deadly signal sent to the child of termsigp != NULL.
46850
46851 2009-03-01  Eric Blake  <ebb9@byu.net>
46852
46853         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46854
46855 2009-03-01  Bruno Haible  <bruno@clisp.org>
46856
46857         Avoid a gcc warning.
46858         * tests/test-sched.c (b): Make global.
46859         Reported by Eric Blake.
46860
46861 2009-01-19  Martin Lambers  <marlam@marlam.de>
46862
46863         Provide POSIX semantics for socket timeout options on W32.
46864         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46865         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46866         * modules/setsockopt: Depend on sys_time module for struct timeval.
46867         * modules/getsockopt: Depend on sys_time module for struct timeval.
46868
46869 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46870
46871         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46872         __USE_GNU, for consistency with netdb.in.h.
46873         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46874
46875 2009-03-01  Bruno Haible  <bruno@clisp.org>
46876
46877         More support for FreeMiNT.
46878         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46879         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46880
46881 2009-03-01  Bruno Haible  <bruno@clisp.org>
46882
46883         More support for FreeMiNT.
46884         * lib/fpurge.c (fpurge): Correct last commit.
46885         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46886
46887 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46888
46889         Fix unportable awk script in vc-list-files.
46890         * build-aux/vc-list-files: In the replacement awk script, use
46891         substr with a second argument of 1, not zero.
46892         Report by Simon Josefsson.
46893
46894 2009-02-28  Bruno Haible  <bruno@clisp.org>
46895
46896         More support for FreeMiNT.
46897         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46898         to FreeMiNT today.
46899         * lib/fwriting.c (fwriting): Likewise.
46900         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46901
46902 2009-02-28  Bruno Haible  <bruno@clisp.org>
46903
46904         * tests/test-freadseek.c (main): Disable test beyond end of file on
46905         FreeMiNT.
46906         * tests/test-ftello.c (main): Likewise.
46907         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46908
46909 2009-02-28  Bruno Haible  <bruno@clisp.org>
46910
46911         Add tentative support for FreeMiNT.
46912         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46913         * lib/fpurge.c (fpurge): Likewise.
46914         * lib/freadable.c (freadable): Likewise.
46915         * lib/freading.c (freading): Likewise.
46916         * lib/freadptr.c (freadptr): Likewise.
46917         * lib/freadseek.c (freadptrinc): Likewise.
46918         * lib/fseeko.c (rpl_fseeko): Likewise.
46919         * lib/fseterr.c (fseterr): Likewise.
46920         * lib/fwritable.c (fwritable): Likewise.
46921         * lib/fwriting.c (fwriting): Likewise.
46922         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46923         Hourihane.
46924         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46925
46926 2009-02-28  Bruno Haible  <bruno@clisp.org>
46927
46928         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46929         SIGCHLD.
46930         Reported by Jim Meyering.
46931
46932 2009-02-28  Bruno Haible  <bruno@clisp.org>
46933
46934         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46935         Mention the results of these tests on various platforms.
46936         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46937         order.
46938         * doc/posix-functions/printf.texi: Likewise.
46939         * doc/posix-functions/snprintf.texi: Likewise.
46940         * doc/posix-functions/sprintf.texi: Likewise.
46941         * doc/posix-functions/vfprintf.texi: Likewise.
46942         * doc/posix-functions/vprintf.texi: Likewise.
46943         * doc/posix-functions/vsnprintf.texi: Likewise.
46944         * doc/posix-functions/vsprintf.texi: Likewise.
46945         * doc/glibc-functions/obstack_printf.texi: Likewise.
46946         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46947
46948 2009-02-28  Bruno Haible  <bruno@clisp.org>
46949
46950         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46951         Reported by Loïc Minier <lool@dooz.org>.
46952
46953 2009-02-27  Bruno Haible  <bruno@clisp.org>
46954
46955         * gnulib-tool (func_import): Make the sed expression used to create the
46956         sed script for updating the .gitignore file POSIX compliant.
46957         Reported by Eric Blake.
46958
46959 2009-02-27  Bruno Haible  <bruno@clisp.org>
46960
46961         * gnulib-tool (sed): Don't alias as "sed --posix".
46962         Reported by Eric Blake.
46963
46964 2009-02-27  Bruno Haible  <bruno@clisp.org>
46965
46966         Avoid test link errors.
46967         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46968         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46969         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46970         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46971         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46972
46973 2009-02-27  Bruno Haible  <bruno@clisp.org>
46974
46975         Avoid spurious "(cached)" in configure output.
46976         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46977         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46978         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46979         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46980         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46981         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46982         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46983         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46984         Reported by Eric Blake.
46985
46986 2009-02-27  Eric Blake  <ebb9@byu.net>
46987
46988         printf: fix regression in previous patch
46989         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46990
46991 2009-02-27  Bruno Haible  <bruno@clisp.org>
46992
46993         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46994         value.
46995         * lib/stdint.in.h: Likewise.
46996         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46997
46998 2009-02-27  Eric Blake  <ebb9@byu.net>
46999
47000         doc: mention more functions added in cygwin 1.7.0
47001         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
47002         addition.
47003         * doc/posix-functions/open_wmemstream.texi: Likewise.
47004         * doc/posix-functions/wcsnlen.texi: Likewise.
47005         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47006         * doc/posix-functions/wcstod.texi: Likewise.
47007         * doc/posix-functions/wcstof.texi: Likewise.
47008         * doc/posix-functions/wcstoimax.texi: Likewise.
47009         * doc/posix-functions/wcstok.texi: Likewise.
47010         * doc/posix-functions/wcstoumax.texi: Likewise.
47011
47012         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
47013         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
47014         * doc/posix-functions/fprintf.texi: Update.
47015         * doc/posix-functions/printf.texi: Update.
47016         * doc/posix-functions/snprintf.texi: Update.
47017         * doc/posix-functions/sprintf.texi: Update.
47018         * doc/posix-functions/vfprintf.texi: Update.
47019         * doc/posix-functions/vprintf.texi: Update.
47020         * doc/posix-functions/vsnprintf.texi: Update.
47021         * doc/posix-functions/vsprintf.texi: Update.
47022         * doc/glibc-functions/obstack_printf.texi: Update.
47023         * doc/glibc-functions/obstack_vprintf.texi: Update.
47024
47025 2009-02-26  Eric Blake  <ebb9@byu.net>
47026
47027         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
47028         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
47029         compilation bug by using runtime conversion.
47030         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47031         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
47032         * modules/ceill-tests (Files): Use nan.h.
47033         * modules/floorl-tests (Files): Likewise.
47034         * modules/frexpl-tests (Files): Likewise.
47035         * modules/isnanl-tests (Files): Likewise.
47036         * modules/ldexpl-tests (Files): Likewise.
47037         * modules/roundl-tests (Files): Likewise.
47038         * modules/truncl-tests (Files): Likewise.
47039         * tests/test-ceill.c (main): Use a working NaN.
47040         * tests/test-floorl.c (main): Likewise.
47041         * tests/test-frexpl.c (main): Likewise.
47042         * tests/test-isnan.c (test_long_double): Likewise.
47043         * tests/test-isnanl.h (main): Likewise.
47044         * tests/test-ldexpl.h (main): Likewise.
47045         * tests/test-roundl.h (main): Likewise.
47046         * tests/test-truncl.h (main): Likewise.
47047         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
47048
47049 2009-02-26  Eric Blake  <ebb9@byu.net>
47050             Bruno Haible  <bruno@clisp.org>
47051
47052         Work around a *printf bug with %ls on Solaris.
47053         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
47054         precision is specified, sprintf stops converting the wide string
47055         argument when the number of bytes that have been produced by this
47056         conversion equals or exceeds the precision.
47057         * doc/posix-functions/fprintf.texi: Update.
47058         * doc/posix-functions/printf.texi: Update.
47059         * doc/posix-functions/snprintf.texi: Update.
47060         * doc/posix-functions/sprintf.texi: Update.
47061         * doc/posix-functions/vfprintf.texi: Update.
47062         * doc/posix-functions/vprintf.texi: Update.
47063         * doc/posix-functions/vsnprintf.texi: Update.
47064         * doc/posix-functions/vsprintf.texi: Update.
47065         * doc/glibc-functions/obstack_printf.texi: Update.
47066         * doc/glibc-functions/obstack_vprintf.texi: Update.
47067
47068 2009-02-26  Eric Blake  <ebb9@byu.net>
47069
47070         stdlib: favor compiler check of random.h
47071         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
47072         to avoid an ObjC random.h installed by Swarm.
47073
47074 2009-02-26  Bruno Haible  <bruno@clisp.org>
47075
47076         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
47077         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
47078         Reported by Gary V. Vaughan <gary@gnu.org>.
47079
47080 2009-02-26  Bruno Haible  <bruno@clisp.org>
47081
47082         Fix *printf behaviour regarding the %ls directive.
47083         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
47084         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
47085         NEED_PRINTF_DIRECTIVE_LS.
47086         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
47087         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47088         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47089         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
47090         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
47091         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
47092         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47093         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47094         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47095         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47096         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47097         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
47098         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47099         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47100         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47101         * doc/posix-functions/fprintf.texi: Update.
47102         * doc/posix-functions/printf.texi: Update.
47103         * doc/posix-functions/snprintf.texi: Update.
47104         * doc/posix-functions/sprintf.texi: Update.
47105         * doc/posix-functions/vfprintf.texi: Update.
47106         * doc/posix-functions/vprintf.texi: Update.
47107         * doc/posix-functions/vsnprintf.texi: Update.
47108         * doc/posix-functions/vsprintf.texi: Update.
47109         * doc/glibc-functions/obstack_printf.texi: Update.
47110         * doc/glibc-functions/obstack_vprintf.texi: Update.
47111         Reported by Eric Blake.
47112
47113 2009-02-25  Bruno Haible  <bruno@clisp.org>
47114
47115         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
47116         with known value.
47117         Reported by Gary V. Vaughan <gary@gnu.org>.
47118
47119 2009-02-25  Bruno Haible  <bruno@clisp.org>
47120
47121         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
47122         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
47123         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
47124         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
47125         Reported by Gary V. Vaughan <gary@gnu.org>.
47126
47127 2009-02-25  Bruno Haible  <bruno@clisp.org>
47128
47129         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
47130         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
47131         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
47132         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
47133         Reported by Gary V. Vaughan <gary@gnu.org>.
47134
47135 2009-02-25  Eric Blake  <ebb9@byu.net>
47136
47137         tests: skip fseek/ftell tests if ungetc is broken
47138         * m4/ungetc.m4: New file.
47139         * modules/fseek-tests: Split test, so ungetc dependency is
47140         separate from rest of test.
47141         * modules/fseeko-tests: Likewise.
47142         * modules/ftell-tests: Likewise.
47143         * modules/ftello-tests: Likewise.
47144         * tests/test-fseek.c (main): Isolate ungetc dependency.
47145         * tests/test-fseeko.c (main): Likewise.
47146         * tests/test-ftell.c (main): Likewise.
47147         * tests/test-ftello.c (main): Likewise.
47148         * tests/test-fseek2.sh: New file.
47149         * tests/test-fseeko2.sh: Likewise.
47150         * tests/test-ftell2.sh: Likewise.
47151         * tests/test-ftello2.sh: Likewise.
47152
47153 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
47154
47155         test-getaddrinfo: fix usage of skip return code 77
47156         * tests/test-gettaddrinfo.c: Return skip code 77 only
47157         for first occurrence of skip (4x77 is not 77)
47158
47159 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
47160
47161         strtod: avoid C99 decl-after-statement
47162         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
47163
47164 2009-02-24  Eric Blake  <ebb9@byu.net>
47165
47166         strtod: detect HP-UX 11.31 bug
47167         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
47168         Reported by Gary V. Vaughan.
47169
47170 2009-02-23  Bruno Haible  <bruno@clisp.org>
47171
47172         Fix invalid read past end of memory block.
47173         * lib/vasnprintf.c (DCHAR_SET): Define.
47174         (local_wcslen): Define only when needed.
47175         (local_strnlen, local_wcsnlen): New functions.
47176         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
47177         directives that involve a conversion ourselves.
47178         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
47179         wcsnlen, mbrtowc, wcrtomb.
47180         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
47181         * tests/test-vasprintf-posix.c (test_function): Likewise.
47182         * tests/test-snprintf-posix.h (test_function): Likewise.
47183         * tests/test-sprintf-posix.h (test_function): Likewise.
47184         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47185
47186 2009-02-22  Bruno Haible  <bruno@clisp.org>
47187
47188         Implement new clarified decomposition of Hangul syllables.
47189         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
47190         of type LTV, return only a pairwise decomposition.
47191         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
47192         Likewise.
47193         * tests/uninorm/test-decomposition.c (main): Updated expected result.
47194         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
47195         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
47196
47197 2009-02-22  Bruno Haible  <bruno@clisp.org>
47198
47199         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
47200         zero-length results and shrink excess allocated memory.
47201         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
47202         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
47203         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
47204         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
47205         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
47206         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
47207         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
47208         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
47209         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
47210         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
47211         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
47212         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
47213
47214 2009-02-21  Bruno Haible  <bruno@clisp.org>
47215
47216         * doc/gnulib.texi: Include safe-alloc.texi earlier.
47217         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
47218         spaces after a period. Put a space between a macro name and its
47219         argument list. Trivial rewordings.
47220         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
47221         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
47222         (main): Return 0 explicitly.
47223
47224 2009-02-21  Bruno Haible  <bruno@clisp.org>
47225
47226         Tests for module 'uninorm/filter'.
47227         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
47228         * modules/uninorm/filter-tests: New file.
47229
47230         New module 'uninorm/filter'.
47231         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
47232         uninorm_filter_flush, uninorm_filter_free): New declarations.
47233         * lib/uninorm/uninorm-filter.c: New file.
47234         * modules/uninorm/filter: New file.
47235
47236 2009-02-21  Bruno Haible  <bruno@clisp.org>
47237
47238         Tests for module 'uninorm/nfkc'.
47239         * tests/uninorm/test-nfkc.c: New file.
47240         * tests/uninorm/test-u8-nfkc.c: New file.
47241         * tests/uninorm/test-u16-nfkc.c: New file.
47242         * tests/uninorm/test-u32-nfkc.c: New file.
47243         * tests/uninorm/test-u32-nfkc-big.sh: New file.
47244         * tests/uninorm/test-u32-nfkc-big.c: New file.
47245         * modules/uninorm/nfkc-tests: New file.
47246
47247         New module 'uninorm/nfkc'.
47248         * lib/uninorm/nfkc.c: New file.
47249         * modules/uninorm/nfkc: New file.
47250
47251         Tests for module 'uninorm/nfkd'.
47252         * tests/uninorm/test-nfkd.c: New file.
47253         * tests/uninorm/test-u8-nfkd.c: New file.
47254         * tests/uninorm/test-u16-nfkd.c: New file.
47255         * tests/uninorm/test-u32-nfkd.c: New file.
47256         * tests/uninorm/test-u32-nfkd-big.sh: New file.
47257         * tests/uninorm/test-u32-nfkd-big.c: New file.
47258         * modules/uninorm/nfkd-tests: New file.
47259
47260         New module 'uninorm/nfkd'.
47261         * lib/uninorm/nfkd.c: New file.
47262         * modules/uninorm/nfkd: New file.
47263
47264         Tests for module 'uninorm/nfc'.
47265         * tests/uninorm/test-nfc.c: New file.
47266         * tests/uninorm/test-u8-nfc.c: New file.
47267         * tests/uninorm/test-u16-nfc.c: New file.
47268         * tests/uninorm/test-u32-nfc.c: New file.
47269         * tests/uninorm/test-u32-nfc-big.sh: New file.
47270         * tests/uninorm/test-u32-nfc-big.c: New file.
47271         * modules/uninorm/nfc-tests: New file.
47272
47273         New module 'uninorm/nfc'.
47274         * lib/uninorm/nfc.c: New file.
47275         * modules/uninorm/nfc: New file.
47276
47277         Tests for module 'uninorm/nfd'.
47278         * tests/uninorm/test-nfd.c: New file.
47279         * tests/uninorm/test-u8-nfd.c: New file.
47280         * tests/uninorm/test-u16-nfd.c: New file.
47281         * tests/uninorm/test-u32-nfd.c: New file.
47282         * tests/uninorm/test-u32-nfd-big.sh: New file.
47283         * tests/uninorm/test-u32-nfd-big.c: New file.
47284         * tests/uninorm/test-u32-normalize-big.h: New file.
47285         * tests/uninorm/test-u32-normalize-big.c: New file.
47286         * tests/uninorm/NormalizationTest.txt: New file, created from
47287         Unicode 5.1.0 NormalizationTest.txt.
47288         * modules/uninorm/nfd-tests: New file.
47289
47290         New module 'uninorm/nfd'.
47291         * lib/uninorm/nfd.c: New file.
47292         * modules/uninorm/nfd: New file.
47293
47294         New module 'uninorm/u32-normalize'.
47295         * lib/uninorm/u32-normalize.c: New file.
47296         * modules/uninorm/u32-normalize: New file.
47297
47298         New module 'uninorm/u16-normalize'.
47299         * lib/uninorm/u16-normalize.c: New file.
47300         * modules/uninorm/u16-normalize: New file.
47301
47302         New module 'uninorm/u8-normalize'.
47303         * lib/uninorm/u8-normalize.c: New file.
47304         * lib/uninorm/normalize-internal.h: New file.
47305         * lib/uninorm/u-normalize-internal.h: New file.
47306         * modules/uninorm/u8-normalize: New file.
47307
47308         New module 'uninorm/decompose-internal'.
47309         * lib/uninorm/decompose-internal.c: New file.
47310         * modules/uninorm/decompose-internal: New file.
47311
47312         Tests for module 'uninorm/composition'.
47313         * tests/uninorm/test-composition.c: New file.
47314         * modules/uninorm/composition-tests: New file.
47315
47316         New module 'uninorm/composition'.
47317         * lib/uninorm/composition.c: New file.
47318         * lib/uninorm/composition-table.gperf: New file, generated by
47319         gen-uni-tables.
47320         * modules/uninorm/composition: New file.
47321
47322         Tests for module 'uninorm/compat-decomposition'.
47323         * tests/uninorm/test-compat-decomposition.c: New file.
47324         * modules/uninorm/compat-decomposition-tests: New file.
47325
47326         New module 'uninorm/compat-decomposition'.
47327         * lib/uninorm/decompose-internal.h: New file.
47328         * lib/uninorm/compat-decomposition.c: New file.
47329         * modules/uninorm/compat-decomposition: New file.
47330
47331         Tests for module 'uninorm/canonical-decomposition'.
47332         * tests/uninorm/test-canonical-decomposition.c: New file.
47333         * modules/uninorm/canonical-decomposition-tests: New file.
47334
47335         New module 'uninorm/canonical-decomposition'.
47336         * lib/uninorm/canonical-decomposition.c: New file.
47337         * modules/uninorm/canonical-decomposition: New file.
47338
47339         Tests for module 'uninorm/decomposition'.
47340         * tests/uninorm/test-decomposition.c: New file.
47341         * modules/uninorm/decomposition-tests: New file.
47342
47343         New module 'uninorm/decomposition'.
47344         * lib/uninorm/decomposition.c: New file.
47345         * modules/uninorm/decomposition: New file.
47346
47347         New module 'uninorm/decomposition-table'.
47348         * lib/uninorm/decomposition-table.h: New file.
47349         * lib/uninorm/decomposition-table.c: New file.
47350         * lib/uninorm/decomposition-table1.h: New file, generated by
47351         gen-uni-tables.
47352         * lib/uninorm/decomposition-table2.h: New file, generated by
47353         gen-uni-tables.
47354         * modules/uninorm/decomposition-table: New file.
47355
47356         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
47357         (UC_DECOMP_*): New enumeration items.
47358         (get_decomposition): New function.
47359         (struct decomp_table): New type.
47360         (output_decomposition, output_decomposition_tables): New functions.
47361         (unicode_composition_exclusions): New variable.
47362         (fill_composition_exclusions, debug_output_composition_tables): New
47363         functions.
47364         (main): Accept one more argument. Invoke fill_composition_exclusions.
47365         Output decomposition and composition tables.
47366
47367         New module 'uninorm/base'.
47368         * lib/uninorm.h: New file.
47369         * lib/unictype.h: Update comment.
47370         * modules/uninorm/base: New file.
47371
47372 2009-02-21  David Lutterkort  <lutter@redhat.com>
47373
47374         Tests for module 'safe-alloc'.
47375         * tests/test-safe-alloc.c: New file.
47376         * modules/safe-alloc-tests: New file.
47377
47378         New module 'safe-alloc'.
47379         * lib/safe-alloc.h: New file.
47380         * lib/safe-alloc.c: New file.
47381         * m4/safe-alloc.m4: New file.
47382         * modules/safe-alloc: New file.
47383         * doc/safe-alloc.texi: New file.
47384         * doc/gnulib.texi: Include it.
47385         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
47386         safe-alloc.
47387
47388 2009-02-18  Bruno Haible  <bruno@clisp.org>
47389
47390         Fix link error on non-glibc systems.
47391         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
47392         variable.
47393         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47394
47395 2009-02-18  Jim Meyering  <meyering@redhat.com>
47396
47397         fts: avoid used-uninitialized error due to recent change
47398         * lib/fts.c (fts_read): Guard uses of the new member,
47399         parent->fts_n_dirs_remaining, since it's not relevant for
47400         the parent of a directory specified on the command-line.
47401
47402 2009-02-17  James Youngman  <jay@gnu.org>
47403             Bruno Haible  <bruno@clisp.org>
47404
47405         * m4/include_next.m4: Reformulate comment.
47406
47407 2009-02-16  Jim Meyering  <meyering@redhat.com>
47408
47409         fts: add #if guards so that the fts_lgpl module still builds
47410         * lib/fts.c: Guard just-added hash-table-using parts with
47411         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
47412         Reported by Simon Josefsson.
47413
47414 2009-02-15  Bruno Haible  <bruno@clisp.org>
47415
47416         * modules/array-mergesort-tests: New file.
47417         * tests/test-array-mergesort.c: New file.
47418
47419         New module 'array-mergesort'.
47420         * modules/array-mergesort: New file.
47421         * lib/array-mergesort.h: New file.
47422
47423 2009-02-15  Bruno Haible  <bruno@clisp.org>
47424
47425         Fix 2009-02-07 commit.
47426         * lib/gen-uni-tables.c (output_predicate, output_category,
47427         output_combclass, output_bidi_category, output_decimal_digit,
47428         output_digit, output_numeric, output_mirror, output_scripts,
47429         output_ident_category, output_simple_mapping): Fix format directives.
47430         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
47431
47432 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
47433
47434         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
47435         fixes are available from IBM.
47436
47437 2009-02-13  Jim Meyering  <meyering@redhat.com>
47438
47439         fts: arrange not to stat non-directories in more cases
47440         This makes GNU find (when it doesn't need to stat each file)
47441         *much* more efficient at traversing reiserfs file systems.
47442         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
47443         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
47444         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
47445         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
47446         (leaf_optimization_applies): New function.
47447         (LCO_hash, LCO_compare): New helper functions.
47448         (link_count_optimize_ok): New function.
47449         (fts_stat): Initialize new member (if dir).
47450         (fts_read): Decrement parent's fts_n_dirs_remaining count if
47451         we've just stat'ed a directory.  Skip the stat call when possible.
47452         ---
47453         Note this AFS-related exchange:
47454         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
47455         and note find's pioctl call in find/fstype.c.
47456         But that is necessary only if you want to enable the
47457         optimization for AFS, and for now, I don't.
47458
47459         fts: move a function definition "up" (no semantic change)
47460         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
47461         "up" to precede upcoming use of a related function.
47462
47463 2009-02-11  Jim Meyering  <meyering@redhat.com>
47464
47465         fts: correct internal computation of nlinks (optimization-related)
47466         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
47467         whether the current entry is a directory, so don't test it.
47468
47469 2009-02-10  Bruno Haible  <bruno@clisp.org>
47470
47471         Tests for module 'uniwbrk/ulc-wordbreaks'.
47472         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
47473         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
47474         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
47475
47476         Tests for module 'uniwbrk/u32-wordbreaks'.
47477         * modules/uniwbrk/u32-wordbreaks-tests: New file.
47478         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
47479
47480         Tests for module 'uniwbrk/u16-wordbreaks'.
47481         * modules/uniwbrk/u16-wordbreaks-tests: New file.
47482         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
47483
47484         Tests for module 'uniwbrk/u8-wordbreaks'.
47485         * modules/uniwbrk/u8-wordbreaks-tests: New file.
47486         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
47487
47488 2009-02-10  Bruno Haible  <bruno@clisp.org>
47489
47490         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
47491         property.
47492         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
47493         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
47494         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
47495
47496 2009-02-10  Simon Josefsson  <simon@josefsson.org>
47497
47498         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
47499         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
47500
47501 2009-02-10  Bruno Haible  <bruno@clisp.org>
47502
47503         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
47504         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
47505         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
47506         * lib/unilbrk/u8-possible-linebreaks.c: Update.
47507         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
47508         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
47509
47510 2009-02-09  Simon Josefsson  <simon@josefsson.org>
47511
47512         * lib/sockets.h (gl_fd_to_handle): New function.
47513
47514         * tests/test-sockets.c: Call gl_fd_to_handle.
47515
47516 2009-02-09  Bruno Haible  <bruno@clisp.org>
47517
47518         * doc/havelib.texi: Document the conventions on bi-arch systems.
47519
47520 2009-02-08  Bruno Haible  <bruno@clisp.org>
47521
47522         Document the AC_LIB_LINKFLAGS macro.
47523         * doc/havelib.texi: New file, mostly written on 2005-05-24.
47524         * doc/gnulib.texi: Include it.
47525
47526 2009-02-08  Bruno Haible  <bruno@clisp.org>
47527
47528         Fix wrong order of sections, compared to TOC.
47529         * doc/gnulib.texi: Include relocatable-maint.texi after the
47530         "Regular expressions" node, not before.
47531
47532 2009-02-08  Bruno Haible  <bruno@clisp.org>
47533
47534         Tests for module 'unicase/totitle'.
47535         * modules/unicase/totitle-tests: New file.
47536
47537         Tests for module 'unicase/tolower'.
47538         * modules/unicase/tolower-tests: New file.
47539
47540         Tests for module 'unicase/toupper'.
47541         * modules/unicase/toupper-tests: New file.
47542         * tests/unicase/test-mapping-part1.h: New file.
47543         * tests/unicase/test-mapping-part2.h: New file.
47544
47545         New module 'unicase/totitle'.
47546         * modules/unicase/totitle: New file.
47547         * lib/unicase/totitle.c: New file.
47548
47549         New module 'unicase/tolower'.
47550         * modules/unicase/tolower: New file.
47551         * lib/unicase/tolower.c: New file.
47552
47553         New module 'unicase/toupper'.
47554         * modules/unicase/toupper: New file.
47555         * lib/unicase/toupper.c: New file.
47556         * lib/unicase/simple-mapping.h: New file.
47557
47558         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47559         (mapping_table): New structure.
47560         (output_simple_mapping): New function.
47561         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47562         * modules/gen-uni-tables (Description): Update.
47563         * lib/unicase/toupper.h: New file, automatically generated by
47564         gen-uni-tables.
47565         * lib/unicase/tolower.h: New file, automatically generated by
47566         gen-uni-tables.
47567         * lib/unicase/totitle.h: New file, automatically generated by
47568         gen-uni-tables.
47569         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47570         gen-uni-tables.
47571         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47572         gen-uni-tables.
47573         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47574         gen-uni-tables.
47575
47576         New module 'unicase/base'.
47577         * modules/unicase/base: New file.
47578         * lib/unicase.h: New file.
47579
47580 2009-02-08  Bruno Haible  <bruno@clisp.org>
47581
47582         New module 'uniwbrk/ulc-wordbreaks'.
47583         * modules/uniwbrk/ulc-wordbreaks: New file.
47584         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47585
47586         New module 'uniwbrk/u32-wordbreaks'.
47587         * modules/uniwbrk/u32-wordbreaks: New file.
47588         * lib/uniwbrk/u32-wordbreaks.c: New file.
47589
47590         New module 'uniwbrk/u16-wordbreaks'.
47591         * modules/uniwbrk/u16-wordbreaks: New file.
47592         * lib/uniwbrk/u16-wordbreaks.c: New file.
47593
47594         New module 'uniwbrk/u8-wordbreaks'.
47595         * modules/uniwbrk/u8-wordbreaks: New file.
47596         * lib/uniwbrk/u8-wordbreaks.c: New file.
47597         * lib/uniwbrk/u-wordbreaks.h: New file.
47598
47599         New module 'uniwbrk/table'.
47600         * modules/uniwbrk/table: New file.
47601         * lib/uniwbrk/wbrktable.h: New file.
47602         * lib/uniwbrk/wbrktable.c: New file.
47603
47604         New module 'uniwbrk/wordbreak-property'.
47605         * modules/uniwbrk/wordbreak-property: New file.
47606         * lib/uniwbrk/wordbreak-property.c: New file.
47607
47608         * lib/gen-uni-tables.c (WBP_*): New enum items.
47609         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47610         (unicode_org_wbp): New variable.
47611         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47612         New functions.
47613         (wbp_table): New structure.
47614         (output_wbp, output_wbrk_tables): New functions.
47615         (main): Accept additional argument. Invoke fill_org_wbp,
47616         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47617         output_wbrk_tables.
47618         * modules/gen-uni-tables (Description): Update.
47619         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47620         gen-uni-tables.
47621
47622         New module 'uniwbrk/base'.
47623         * modules/uniwbrk/base: New file.
47624         * lib/uniwbrk.h: New file.
47625
47626 2009-02-08  Bruno Haible  <bruno@clisp.org>
47627
47628         Update to Unicode 5.1.0.
47629         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47630         U+2185..U+2188.
47631         (is_property_default_ignorable_code_point): Don't include characters
47632         of category Cc or Cs and not-a-characters.
47633         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47634         U+0D79, U+109E, U+109F, U+A60C.
47635         * lib/unictype/bidi_of.h: Regenerated.
47636         * lib/unictype/blocks.h: Regenerated.
47637         * lib/unictype/categ_C.h: Regenerated.
47638         * lib/unictype/categ_Cf.h: Regenerated.
47639         * lib/unictype/categ_Cn.h: Regenerated.
47640         * lib/unictype/categ_L.h: Regenerated.
47641         * lib/unictype/categ_Ll.h: Regenerated.
47642         * lib/unictype/categ_Lm.h: Regenerated.
47643         * lib/unictype/categ_Lo.h: Regenerated.
47644         * lib/unictype/categ_Lu.h: Regenerated.
47645         * lib/unictype/categ_M.h: Regenerated.
47646         * lib/unictype/categ_Mc.h: Regenerated.
47647         * lib/unictype/categ_Me.h: Regenerated.
47648         * lib/unictype/categ_Mn.h: Regenerated.
47649         * lib/unictype/categ_N.h: Regenerated.
47650         * lib/unictype/categ_Nd.h: Regenerated.
47651         * lib/unictype/categ_Nl.h: Regenerated.
47652         * lib/unictype/categ_No.h: Regenerated.
47653         * lib/unictype/categ_P.h: Regenerated.
47654         * lib/unictype/categ_Pd.h: Regenerated.
47655         * lib/unictype/categ_Pe.h: Regenerated.
47656         * lib/unictype/categ_Pf.h: Regenerated.
47657         * lib/unictype/categ_Pi.h: Regenerated.
47658         * lib/unictype/categ_Po.h: Regenerated.
47659         * lib/unictype/categ_Ps.h: Regenerated.
47660         * lib/unictype/categ_S.h: Regenerated.
47661         * lib/unictype/categ_Sk.h: Regenerated.
47662         * lib/unictype/categ_Sm.h: Regenerated.
47663         * lib/unictype/categ_So.h: Regenerated.
47664         * lib/unictype/categ_of.h: Regenerated.
47665         * lib/unictype/combining.h: Regenerated.
47666         * lib/unictype/ctype_alnum.h: Regenerated.
47667         * lib/unictype/ctype_alpha.h: Regenerated.
47668         * lib/unictype/ctype_graph.h: Regenerated.
47669         * lib/unictype/ctype_lower.h: Regenerated.
47670         * lib/unictype/ctype_print.h: Regenerated.
47671         * lib/unictype/ctype_punct.h: Regenerated.
47672         * lib/unictype/ctype_upper.h: Regenerated.
47673         * lib/unictype/decdigit.h: Regenerated.
47674         * lib/unictype/digit.h: Regenerated.
47675         * lib/unictype/mirror.h: Regenerated.
47676         * lib/unictype/numeric.h: Regenerated.
47677         * lib/unictype/pr_alphabetic.h: Regenerated.
47678         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47679         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47680         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47681         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47682         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47683         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47684         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47685         * lib/unictype/pr_combining.h: Regenerated.
47686         * lib/unictype/pr_dash.h: Regenerated.
47687         * lib/unictype/pr_decimal_digit.h: Regenerated.
47688         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47689         * lib/unictype/pr_deprecated.h: Regenerated.
47690         * lib/unictype/pr_diacritic.h: Regenerated.
47691         * lib/unictype/pr_extender.h: Regenerated.
47692         * lib/unictype/pr_format_control.h: Regenerated.
47693         * lib/unictype/pr_grapheme_base.h: Regenerated.
47694         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47695         * lib/unictype/pr_grapheme_link.h: Regenerated.
47696         * lib/unictype/pr_id_continue.h: Regenerated.
47697         * lib/unictype/pr_id_start.h: Regenerated.
47698         * lib/unictype/pr_ideographic.h: Regenerated.
47699         * lib/unictype/pr_ignorable_control.h: Regenerated.
47700         * lib/unictype/pr_lowercase.h: Regenerated.
47701         * lib/unictype/pr_math.h: Regenerated.
47702         * lib/unictype/pr_numeric.h: Regenerated.
47703         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47704         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47705         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47706         * lib/unictype/pr_other_id_continue.h: Regenerated.
47707         * lib/unictype/pr_other_lowercase.h: Regenerated.
47708         * lib/unictype/pr_other_math.h: Regenerated.
47709         * lib/unictype/pr_punctuation.h: Regenerated.
47710         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47711         * lib/unictype/pr_soft_dotted.h: Regenerated.
47712         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47713         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47714         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47715         * lib/unictype/pr_uppercase.h: Regenerated.
47716         * lib/unictype/pr_xid_continue.h: Regenerated.
47717         * lib/unictype/pr_xid_start.h: Regenerated.
47718         * lib/unictype/pr_zero_width.h: Regenerated.
47719         * lib/unictype/scripts.h: Regenerated.
47720         * lib/unictype/scripts_byname.gperf: Regenerated.
47721         * lib/unictype/sy_java_ident.h: Regenerated.
47722         * lib/unilbrk/lbrkprop1.h: Regenerated.
47723         * lib/unilbrk/lbrkprop2.h: Regenerated.
47724         * tests/unictype/test-categ_C.c: Regenerated.
47725         * tests/unictype/test-categ_Cf.c: Regenerated.
47726         * tests/unictype/test-categ_Cn.c: Regenerated.
47727         * tests/unictype/test-categ_L.c: Regenerated.
47728         * tests/unictype/test-categ_Ll.c: Regenerated.
47729         * tests/unictype/test-categ_Lm.c: Regenerated.
47730         * tests/unictype/test-categ_Lo.c: Regenerated.
47731         * tests/unictype/test-categ_Lu.c: Regenerated.
47732         * tests/unictype/test-categ_M.c: Regenerated.
47733         * tests/unictype/test-categ_Mc.c: Regenerated.
47734         * tests/unictype/test-categ_Me.c: Regenerated.
47735         * tests/unictype/test-categ_Mn.c: Regenerated.
47736         * tests/unictype/test-categ_N.c: Regenerated.
47737         * tests/unictype/test-categ_Nd.c: Regenerated.
47738         * tests/unictype/test-categ_Nl.c: Regenerated.
47739         * tests/unictype/test-categ_No.c: Regenerated.
47740         * tests/unictype/test-categ_P.c: Regenerated.
47741         * tests/unictype/test-categ_Pd.c: Regenerated.
47742         * tests/unictype/test-categ_Pe.c: Regenerated.
47743         * tests/unictype/test-categ_Pf.c: Regenerated.
47744         * tests/unictype/test-categ_Pi.c: Regenerated.
47745         * tests/unictype/test-categ_Po.c: Regenerated.
47746         * tests/unictype/test-categ_Ps.c: Regenerated.
47747         * tests/unictype/test-categ_S.c: Regenerated.
47748         * tests/unictype/test-categ_Sk.c: Regenerated.
47749         * tests/unictype/test-categ_Sm.c: Regenerated.
47750         * tests/unictype/test-categ_So.c: Regenerated.
47751         * tests/unictype/test-ctype_alnum.c: Regenerated.
47752         * tests/unictype/test-ctype_alpha.c: Regenerated.
47753         * tests/unictype/test-ctype_graph.c: Regenerated.
47754         * tests/unictype/test-ctype_lower.c: Regenerated.
47755         * tests/unictype/test-ctype_print.c: Regenerated.
47756         * tests/unictype/test-ctype_punct.c: Regenerated.
47757         * tests/unictype/test-ctype_upper.c: Regenerated.
47758         * tests/unictype/test-decdigit.h: Regenerated.
47759         * tests/unictype/test-digit.h: Regenerated.
47760         * tests/unictype/test-numeric.h: Regenerated.
47761         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47762         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47763         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47764         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47765         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47766         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47767         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47768         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47769         * tests/unictype/test-pr_combining.c: Regenerated.
47770         * tests/unictype/test-pr_dash.c: Regenerated.
47771         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47772         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47773         * tests/unictype/test-pr_deprecated.c: Regenerated.
47774         * tests/unictype/test-pr_diacritic.c: Regenerated.
47775         * tests/unictype/test-pr_extender.c: Regenerated.
47776         * tests/unictype/test-pr_format_control.c: Regenerated.
47777         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47778         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47779         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47780         * tests/unictype/test-pr_id_continue.c: Regenerated.
47781         * tests/unictype/test-pr_id_start.c: Regenerated.
47782         * tests/unictype/test-pr_ideographic.c: Regenerated.
47783         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47784         * tests/unictype/test-pr_lowercase.c: Regenerated.
47785         * tests/unictype/test-pr_math.c: Regenerated.
47786         * tests/unictype/test-pr_numeric.c: Regenerated.
47787         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47788         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47789         Regenerated.
47790         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47791         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47792         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47793         * tests/unictype/test-pr_other_math.c: Regenerated.
47794         * tests/unictype/test-pr_punctuation.c: Regenerated.
47795         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47796         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47797         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47798         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47799         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47800         * tests/unictype/test-pr_uppercase.c: Regenerated.
47801         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47802         * tests/unictype/test-pr_xid_start.c: Regenerated.
47803         * tests/unictype/test-pr_zero_width.c: Regenerated.
47804
47805         Update to Unicode 5.1.0.
47806         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47807         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47808         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47809         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47810         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47811         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47812         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47813         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47814         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47815         (nonspacing_table_ind): Update.
47816         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47817
47818         Update to Unicode 5.1.0.
47819         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47820         code transform.
47821         * lib/uniname/uniname.c (unicode_character_name,
47822         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47823         * lib/uniname/uninames.h: Regenerated.
47824         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47825
47826 2009-02-07  Bruno Haible  <bruno@clisp.org>
47827
47828         Merge gen-ctype and gen-lbrk into a single program.
47829         * lib/gen-uni-tables.c: New file, incorporating
47830         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47831         Add directory prefixes to the names of the generated files.
47832         * lib/unictype/gen-ctype.c: Remove file.
47833         * lib/unilbrk/gen-lbrk.c: Remove file.
47834         * modules/gen-uni-tables: New file.
47835         * modules/unictype/gen-ctype: Remove file.
47836         * modules/unilbrk/gen-lbrk: Remove file.
47837
47838 2009-02-07  Bruno Haible  <bruno@clisp.org>
47839
47840         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47841
47842         New module 'unistr/u32-strcoll'.
47843         * modules/unistr/u32-strcoll: New file.
47844         * lib/unistr/u32-strcoll.c: New file.
47845
47846         New module 'unistr/u16-strcoll'.
47847         * modules/unistr/u16-strcoll: New file.
47848         * lib/unistr/u16-strcoll.c: New file.
47849
47850         New module 'unistr/u8-strcoll'.
47851         * modules/unistr/u8-strcoll: New file.
47852         * lib/unistr/u8-strcoll.c: New file.
47853         * lib/unistr/u-strcoll.h: New file.
47854
47855 2009-02-07  Bruno Haible  <bruno@clisp.org>
47856
47857         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47858         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47859         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47860         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47861         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47862         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47863
47864 2009-02-07  Bruno Haible  <bruno@clisp.org>
47865
47866         Make 64-bit clean.
47867         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47868         output_combclass, output_bidi_category, output_decimal_digit,
47869         output_digit, output_numeric, output_mirror, output_scripts,
47870         output_ident_category): Use proper width specifier in format strings.
47871
47872 2009-02-07  Bruno Haible  <bruno@clisp.org>
47873
47874         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47875         failure behaviour.
47876
47877 2009-02-07  Jim Meyering  <meyering@redhat.com>
47878
47879         regex: avoid compilation failure with upcoming gcc-4.4
47880         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47881         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47882         "... error: integer overflow in preprocessor expression".
47883
47884 2009-02-05  Ben Pfaff  <blp@gnu.org>
47885
47886         Fix link errors on Windows when close module is used.
47887         * modules/close: Add $(LIB_CLOSE) to Link section.
47888         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47889         $(LIB_CLOSE) on Windows.
47890
47891 2009-02-05  Jim Meyering  <meyering@redhat.com>
47892
47893         still avoid unused-parameter warnings, but do it cleanly
47894         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47895         (get_fs_usage): Cast to void instead.
47896         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47897         (dev_from_mount_options, read_file_system_list): Cast to void.
47898         Prompted by Bruno Haible.
47899
47900 2009-02-04  Jim Meyering  <meyering@redhat.com>
47901
47902         fsusage.c: correct copyright year
47903         * lib/fsusage.c: Reflect year in which the change is pushed into
47904
47905         avoid misc. warnings
47906         * lib/fsusage.c (UNUSED_PARAM): Define.
47907         (get_fs_usage): Mark parameter "disk" as unused.
47908         * lib/getugroups.c (getgrent): Use "void" in prototype.
47909         * lib/mountlist.c: Mark unused parameters.
47910         (read_file_system_list): Declare a local with "const".
47911         * lib/nanosleep.c (getnow): Declare static.
47912         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47913
47914         dirfd: set errno upon failure
47915         * lib/dirfd.c: Include <errno.h>.
47916         Set errno to ENOTSUP when returning -1.
47917         * modules/dirfd (Depends-on): Add errno.
47918         Suggested by John Kodis <kodis@comcast.net>.
47919
47920 2009-02-01  Bruno Haible  <bruno@clisp.org>
47921
47922         Don't assume sizeof (long) >= sizeof (void *).
47923         * lib/memcmp.c: Include stdint.h.
47924         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47925         srcp2 to 'const byte *'.
47926         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47927         types to uintptr_t.
47928         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47929         * modules/memcmp (Depends-on): Add stdint.
47930         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47931
47932 2009-01-30  Eric Blake  <ebb9@byu.net>
47933
47934         fix more require-before-expand issues
47935         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47936         expand, AC_PROG_AWK.
47937         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47938
47939 2009-01-28  Eric Blake  <ebb9@byu.net>
47940
47941         version-etc: use consistent URL formatting
47942         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47943         Improve formatting.  Use fputs for string without %.
47944
47945 2009-01-28  Jim Meyering  <meyering@redhat.com>
47946
47947         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47948         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47949         "underquoted definition of NAME" from autoconf-2.59.
47950
47951 2009-01-28  Bruno Haible  <bruno@clisp.org>
47952
47953         * doc/gnulib.texi: Add "Obsolete modules" to index.
47954
47955 2009-01-28  Jim Meyering  <meyering@redhat.com>
47956
47957         useless-if-before-free: recognize more variants
47958         * build-aux/useless-if-before-free: Also recognize e.g.,
47959         if (NULL != p) free (p);
47960
47961 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47962
47963         test-getaddrinfo: skip (don't fail) this test when there's no network
47964         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47965         on the presumption that it means you lack network access.
47966
47967 2009-01-26  Jim Meyering  <meyering@redhat.com>
47968
47969         fflush: avoid warnings on modern systems
47970         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47971         pos and result, into scopes where they're used.
47972
47973 2009-01-26  Eric Blake  <ebb9@byu.net>
47974
47975         Silence warning reintroduced by recent extensions patch.
47976         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47977         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47978         autoconf.
47979
47980         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47981         * m4/00gnulib.m4: New file.
47982         * gnulib-tool (func_get_filelist): Always use it.
47983         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47984         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47985
47986 2009-01-25  Bruno Haible  <bruno@clisp.org>
47987
47988         Make test-quotearg work on MacOS X and AIX.
47989         * tests/test-quotearg.sh: New file.
47990         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47991         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47992         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47993         include <libintl.h>.
47994         (fake_locale): Remove variable.
47995         (gettext, dgettext, dcgettext): Remove functions.
47996         (main): Instead of setting a fake locale, set a real locale. Call
47997         textdomain and bindtextdomain.
47998         * modules/quotearg-tests (Files): Add the new files.
47999         (Depends-on): Add gettext, setenv, unsetenv.
48000         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
48001         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
48002         Augment TESTS_ENVIRONMENT.
48003
48004 2009-01-25  Bruno Haible  <bruno@clisp.org>
48005
48006         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
48007         fr_FR.ISO8859-1 locale on MacOS X.
48008         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
48009         ja_JP.eucJP locale on MacOS X.
48010         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
48011         zh_CN.GB18030 locale on MacOS X.
48012
48013 2009-01-25  Bruno Haible  <bruno@clisp.org>
48014
48015         Avoid link errors on MacOS X 10.3.
48016         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
48017         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48018
48019 2009-01-25  Bruno Haible  <bruno@clisp.org>
48020
48021         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48022         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
48023         * modules/pipe (Files): Remove m4/posix_spawn.m4.
48024         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48025         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
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         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48031         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
48032         * modules/execute (Files): Remove m4/posix_spawn.m4.
48033         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48034         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48035         posix_spawnattr_init, posix_spawnattr_setsigmask,
48036         posix_spawnattr_setflags, posix_spawnattr_destroy.
48037
48038 2009-01-25  Bruno Haible  <bruno@clisp.org>
48039
48040         * lib/glthread/threadlib.c: Include <stdlib.h>.
48041
48042 2009-01-25  Bruno Haible  <bruno@clisp.org>
48043
48044         * lib/glthread/threadlib.c (dummy): New declaration.
48045
48046 2009-01-25  Bruno Haible  <bruno@clisp.org>
48047
48048         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
48049         multibyte characters also for the GB18030 encoding. Don't crash when
48050         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
48051
48052 2009-01-25  Bruno Haible  <bruno@clisp.org>
48053
48054         Avoid redefining 'struct random_data' on OSF/1 5.1.
48055         * lib/stdlib.in.h: Include <random.h> if it exists.
48056         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
48057         HAVE_RANDOM_H. Include <random.h> when testing whether
48058         'struct random_data' exists.
48059         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
48060
48061 2009-01-25  Bruno Haible  <bruno@clisp.org>
48062
48063         Don't install charset.alias on MacOS X >= 10.3.
48064         * lib/localcharset.c (DARWIN7): New macro.
48065         (get_charset_aliases): Hardcode the result for Darwin7.
48066         * modules/localcharset (install-exec-local): Don't install
48067         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
48068
48069 2009-01-25  Bruno Haible  <bruno@clisp.org>
48070
48071         Don't install charset.alias on mingw and Cygwin.
48072         * modules/localcharset (install-exec-local): Don't install
48073         charset.alias on mingw and Cygwin, if the file does not yet exist.
48074         The result for these platforms is hardcoded in localcharset.c.
48075
48076 2009-01-25  Bruno Haible  <bruno@clisp.org>
48077
48078         Make it possible again to use AC_GNU_SOURCE together with gnulib.
48079         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
48080         before requiring AC_USE_SYSTEM_EXTENSIONS.
48081
48082 2009-01-25  Jim Meyering  <meyering@redhat.com>
48083
48084         c-strtod: avoid warnings
48085         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
48086         "assignment discards qualifiers from pointer target type" warnings.
48087
48088 2009-01-24  Bruno Haible  <bruno@clisp.org>
48089
48090         Add support for non-UTF-8 locales on MacOS X.
48091         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
48092         canonical encodings. For Darwin 7 and newer, don't map traditional
48093         encodings to UTF-8.
48094         Reported by Vincent Lefevre <vincent@vinc17.org>
48095         at <http://savannah.gnu.org/bugs/?25235>.
48096
48097 2009-01-24  Bruno Haible  <bruno@clisp.org>
48098
48099         * doc/gnulib.texi (Obsolete modules): New section.
48100         Reported by Mike Frysinger <vapier@gentoo.org>.
48101
48102 2009-01-24  Bruno Haible  <bruno@clisp.org>
48103
48104         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
48105         (%.dvi): New rule.
48106
48107 2009-01-24  Bruno Haible  <bruno@clisp.org>
48108
48109         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
48110         Reported by Eric Blake.
48111
48112 2009-01-24  Bruno Haible  <bruno@clisp.org>
48113
48114         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
48115         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
48116         Reported by Gary V. Vaughan <gary@gnu.org>.
48117
48118 2009-01-24  Bruno Haible  <bruno@clisp.org>
48119
48120         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
48121
48122 2009-01-23  Bruno Haible  <bruno@clisp.org>
48123
48124         Make c-strtod, c-strtold usable in libraries.
48125         * lib/c-strtod.c: Include string.h instead of xalloc.h.
48126         (C_STRTOD): Call strdup instead of xstrdup.
48127         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
48128         * modules/c-strtold (Depends-on): Likewise.
48129         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
48130         * NEWS: Mention the change.
48131         Reported by Michael Gold <mgold@ncf.ca>.
48132
48133 2009-01-23  Jim Meyering  <meyering@redhat.com>
48134
48135         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
48136         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
48137         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
48138
48139 2009-01-23  Simon Josefsson  <simon@josefsson.org>
48140
48141         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
48142         GNU CoreUtils.
48143         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
48144         * modules/version-etc (Description): Update.
48145
48146 2009-01-22  Bruno Haible  <bruno@clisp.org>
48147
48148         Cache the C locale object.
48149         * lib/c-strtod.c (c_locale_cache): New variable.
48150         (c_locale): New function.
48151         (C_STRTOD): Use it, and don't call freelocale.
48152         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
48153         Suggested by Paolo Bonzini.
48154
48155 2009-01-21  Bruno Haible  <bruno@clisp.org>
48156
48157         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
48158         conditions other than overflow.
48159
48160 2009-01-21  Bruno Haible  <bruno@clisp.org>
48161
48162         * lib/c-strtod.c: Include errno.h.
48163         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
48164         value from STRTOD_L and STRTOD.
48165
48166 2009-01-21  Bruno Haible  <bruno@clisp.org>
48167         and Jim Meyering  <meyering@redhat.com>
48168
48169         nanosleep: skip configure test (fail it) for apple universal builds
48170         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
48171         universal builds, assume that nanosleep does not work.
48172         * modules/nanosleep (Depends-on): Add multiarch.
48173
48174         mktime: skip configure test (fail it) for apple universal builds
48175         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
48176         universal builds, assume that mktime does not work.
48177         * modules/mktime (Depends-on): Add multiarch.
48178
48179 2009-01-21  Eric Blake  <ebb9@byu.net>
48180
48181         multiarch: avoid expand-before-require warning
48182         * modules/multiarch (configure.ac): Require, rather than expand,
48183         gl_MULTIARCH.
48184         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
48185         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
48186         enforce that all clients require it.  Partial reversion of
48187         2008-12-29 patch.
48188
48189         error: avoid expand-before-require warning
48190         * modules/errno (configure.ac): Require, rather than expand,
48191         gl_HEADER_ERRNO_H.
48192         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
48193         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
48194         enforce that all clients require it.
48195
48196         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
48197         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
48198         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
48199         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
48200
48201 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
48202
48203         Revert:
48204         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48205
48206         regex: do not depend on obsolete modules.
48207         * modules/regex: Remove memcmp and memmove.
48208
48209 2009-01-20  Bruno Haible  <bruno@clisp.org>
48210
48211         Make the 'link' module link on Windows NT 4.
48212         * lib/link.c (_WIN32_WINNT): Don't define.
48213         (CreateHardLinkFuncType): New type.
48214         (CreateHardLinkFunc, initialized): New variables.
48215         (initialize): New function.
48216         (link): Invoke CreateHardLink indirectly through the function pointer.
48217
48218 2009-01-20  Bruno Haible  <bruno@clisp.org>
48219
48220         Fix compilation failure on mingw.
48221         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
48222
48223 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
48224
48225         * doc/c-strtod.texi: Mention a couple of restrictions.
48226
48227 2009-01-20  Jim Meyering  <meyering@redhat.com>
48228
48229         gettimeofday: move more declarations out of functions
48230         * lib/gettimeofday.c: Move extern declarations of tzset and
48231         gmtime out of containing functions.  Prompted by Bruno Haible.
48232
48233 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48234
48235         regex: do not depend on obsolete modules.
48236         * modules/regex: Remove memcmp and memmove.
48237
48238 2009-01-19  Bruno Haible  <bruno@clisp.org>
48239
48240         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48241         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
48242         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48243         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
48244         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
48245
48246 2009-01-19  Bruno Haible  <bruno@clisp.org>
48247
48248         * tests/test-link.c: Include <errno.h>.
48249         (main): Exit with code 77 when a hard link cannot be created due to
48250         the file system.
48251         * tests/test-link.sh: Skip test when a hard link cannot be created due
48252         to the file system.
48253         Suggested by Eric Blake.
48254
48255 2009-01-19  Martin Lambers  <marlam@marlam.de>
48256
48257         * modules/link-tests: New file.
48258         * tests/test-link.sh: New file.
48259         * tests/test-link.c: New file.
48260
48261 2009-01-19  Eric Blake  <ebb9@byu.net>
48262
48263         doc: mention another function added in cygwin 1.7.0
48264         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
48265         Another new function in cygwin 1.7.
48266
48267 2009-01-19  Bruno Haible  <bruno@clisp.org>
48268
48269         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48270         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
48271         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
48272         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48273         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
48274         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
48275         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
48276         * m4/md4.m4 (gl_MD4): Likewise.
48277         * m4/md5.m4 (gl_MD5): Likewise.
48278         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
48279         * m4/sha1.m4 (gl_SHA1): Likewise.
48280         * m4/sha256.m4 (gl_SHA256): Likewise.
48281         * m4/sha512.m4 (gl_SHA512): Likewise.
48282
48283 2009-01-19  Bruno Haible  <bruno@clisp.org>
48284
48285         * modules/uniname/uniname-tests (Depends-on): Add progname.
48286         * tests/uniname/test-uninames.c: Include progname.h.
48287         (main): Call set_program_name.
48288
48289         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
48290         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
48291         (main): Call set_program_name.
48292
48293         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
48294         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
48295         (main): Call set_program_name.
48296
48297         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
48298         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
48299         (main): Call set_program_name.
48300
48301         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
48302         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
48303         (main): Call set_program_name.
48304
48305         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
48306         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
48307         (main): Call set_program_name.
48308
48309         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
48310         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
48311         (main): Call set_program_name.
48312
48313         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
48314         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
48315         (main): Call set_program_name.
48316
48317         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
48318         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
48319         (main): Call set_program_name.
48320
48321 2009-01-19  Eric Blake  <ebb9@byu.net>
48322
48323         test-unistd: test previous patch
48324         * tests/test-unistd.c: Test *_FILENO macros.
48325
48326         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
48327         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48328         Guarantee a definition.
48329         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
48330         * modules/unistd-safer (Depends-on): Add dependency on unistd.
48331         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
48332         * lib/dup-safer.c (STDERR_FILENO): Likewise.
48333         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48334         Likewise.
48335         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
48336         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
48337         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48338         Likewise.
48339         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
48340         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
48341         (STDERR_FILENO): Likewise.
48342         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
48343         (STDERR_FILENO): Likewise.
48344         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
48345         (STDERR_FILENO): Likewise.
48346         Reported by Elbert Pol.
48347
48348 2009-01-19  Eric Blake  <ebb9@byu.net>
48349
48350         doc: mention more functions added in cygwin 1.7.0
48351         * doc/posix-functions/abort.texi (abort): Update wording related
48352         to cygwin.
48353         * doc/posix-functions/daylight.texi (daylight): Likewise.
48354         * doc/posix-functions/optarg.texi (optarg): Likewise.
48355         * doc/posix-functions/optarg.texi (opterr): Likewise.
48356         * doc/posix-functions/optarg.texi (optind): Likewise.
48357         * doc/posix-functions/optarg.texi (optopt): Likewise.
48358         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
48359         worked in 1.5.x, and was withdrawn in 1.7.
48360         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
48361         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
48362         cygwin versions.
48363         * doc/posix-functions/perror.texi (perror): Likewise.
48364         * doc/posix-functions/printf.texi (printf): Likewise.
48365         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
48366         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
48367         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
48368         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
48369         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
48370         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
48371         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48372         Likewise.
48373         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48374         Likewise.
48375         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
48376         this function.
48377         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
48378         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
48379         Likewise.
48380         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
48381         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
48382         * doc/posix-functions/confstr.texi (confstr): Likewise.
48383         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
48384         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
48385         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
48386         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
48387         * doc/posix-functions/fputws.texi (fputws): Likewise.
48388         * doc/posix-functions/fwide.texi (fwide): Likewise.
48389         * doc/posix-functions/getwc.texi (getwc): Likewise.
48390         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
48391         * doc/posix-functions/putwc.texi (putwc): Likewise.
48392         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
48393         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
48394         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
48395         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
48396         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
48397         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
48398         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
48399         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
48400         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
48401         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
48402         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
48403
48404 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48405
48406         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
48407         * lib/ioctl.c: Include <sys/ioctl.h>.
48408
48409 2009-01-19  Simon Josefsson  <simon@josefsson.org>
48410
48411         * modules/getdate-tests (Depends-on): Add progname.
48412         * tests/test-getdate.c: Use progname module, to avoid link errors
48413         on non-glibc systems.
48414
48415 2009-01-18  Simon Josefsson  <simon@josefsson.org>
48416
48417         * modules/filenamecat-tests (Depends-on): Add progname.
48418         * modules/fstrcmp-tests (Depends-on): Likewise.
48419
48420         * tests/test-filenamecat.c: Use progname module, to avoid link
48421         errors on non-glibc systems.
48422         * tests/test-fstrcmp.c: Likewise.
48423
48424 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48425
48426         gettimeofday: avoid warning: nested extern declaration of 'localtime'
48427         * lib/gettimeofday.c: Move extern declaration out of function.
48428
48429 2009-01-18  Bruno Haible  <bruno@clisp.org>
48430
48431         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
48432         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
48433         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
48434
48435 2009-01-18  Bruno Haible  <bruno@clisp.org>
48436
48437         * lib/strftime.c (MEMPCPY): Remove unused macro.
48438         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
48439
48440 2009-01-18  Martin Lambers  <marlam@marlam.de>
48441
48442         New module 'link'.
48443         * lib/unistd.in.h (link): New declaration.
48444         * lib/link.c: New file.
48445         * m4/link.m4: New file.
48446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
48447         HAVE_LINK.
48448         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
48449         * modules/link: New file.
48450         * doc/posix-functions/link.texi: Mention the new module.
48451
48452 2009-01-18  Bruno Haible  <bruno@clisp.org>
48453
48454         * tests/test-avltree_list.c (main): Call set_program_name.
48455         * tests/test-avltree_oset.c (main): Likewise.
48456         * tests/test-obstack-printf.c: Include progname.h.
48457         (main): Call set_program_name.
48458         * tests/test-quotearg.c: Include progname.h.
48459         (main): Call set_program_name.
48460         * tests/test-xmemdup0.c: Include progname.h.
48461         (main): Call set_program_name.
48462
48463 2009-01-18  Bruno Haible  <bruno@clisp.org>
48464
48465         New module 'alphasort'.
48466         * lib/dirent.in.h (alphasort): New declaration.
48467         * lib/alphasort.c: New file, from glibc with modifications.
48468         * m4/alphasort.m4: New file.
48469         * modules/alphasort: New file.
48470         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
48471         HAVE_ALPHASORT.
48472         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
48473         HAVE_ALPHASORT.
48474         * doc/posix-functions/alphasort.texi: Mention the new module and the
48475         portability problems.
48476
48477 2009-01-18  Bruno Haible  <bruno@clisp.org>
48478
48479         New module 'scandir'.
48480         * lib/dirent.in.h (scandir): New declaration.
48481         * lib/scandir.c: New file, from glibc with modifications.
48482         * m4/scandir.m4: New file.
48483         * modules/scandir: New file.
48484         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
48485         HAVE_SCANDIR.
48486         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
48487         HAVE_SCANDIR.
48488         * doc/posix-functions/scandir.texi: Mention the new module and the
48489         portability problems.
48490
48491 2009-01-17  Bruno Haible  <bruno@clisp.org>
48492
48493         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
48494         Update documentation.
48495         (func_remove_suffix): Escape all dots in the suffix. Update
48496         documentation.
48497         (func_filter_filelist): Update documentation.
48498         Reported by Ralf Wildenhues.
48499
48500 2009-01-17  Bruno Haible  <bruno@clisp.org>
48501
48502         * modules/dprintf-posix-tests: New file.
48503         * tests/test-dprintf-posix.sh: New file.
48504         * tests/test-dprintf-posix.c: New file.
48505
48506         New modules 'dprintf', 'dprintf-posix'.
48507         * lib/stdio.in.h (dprintf): New declaration.
48508         * lib/dprintf.c: New file.
48509         * m4/dprintf.m4: New file.
48510         * m4/dprintf-posix.m4: New file.
48511         * modules/dprintf: New file.
48512         * modules/dprintf-posix: New file.
48513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
48514         HAVE_DPRINTF, REPLACE_DPRINTF.
48515         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
48516         HAVE_DPRINTF, REPLACE_DPRINTF.
48517         * doc/posix-functions/dprintf.texi: Mention the new modules.
48518
48519 2009-01-17  Bruno Haible  <bruno@clisp.org>
48520
48521         * modules/vdprintf-posix-tests: New file.
48522         * tests/test-vdprintf-posix.sh: New file.
48523         * tests/test-vdprintf-posix.c: New file.
48524
48525         New modules 'vdprintf', 'vdprintf-posix'.
48526         * lib/stdio.in.h (vdprintf): New declaration.
48527         * lib/vdprintf.c: New file.
48528         * m4/vdprintf.m4: New file.
48529         * m4/vdprintf-posix.m4: New file.
48530         * modules/vdprintf: New file.
48531         * modules/vdprintf-posix: New file.
48532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
48533         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48534         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
48535         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48536         * doc/posix-functions/vdprintf.texi: Mention the new modules.
48537
48538 2009-01-17  Bruno Haible  <bruno@clisp.org>
48539
48540         Fix replacement of fopen on mingw.
48541         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
48542         mingw.
48543
48544 2009-01-17  Bruno Haible  <bruno@clisp.org>
48545
48546         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
48547         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
48548
48549 2009-01-17  Bruno Haible  <bruno@clisp.org>
48550
48551         Avoid test-fflush2.sh failure on mingw.
48552         * tests/test-fflush2.c: Include binary-io.h.
48553         (main): Put standard input into binary mode.
48554         * modules/fflush-tests (Depends-on): Add binary-io.
48555
48556 2009-01-17  Bruno Haible  <bruno@clisp.org>
48557
48558         * lib/wchar.in.h: In another particular situation, include only the
48559         system's <wchar.h> file.
48560         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48561         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48562         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48563
48564 2009-01-17  Bruno Haible  <bruno@clisp.org>
48565
48566         Support for stripping executables in --enable-relocatable.
48567         * build-aux/install-reloc: Expect one more argument, or an environment
48568         variable RELOC_STRIP_PROG. If set, strip the destination program and
48569         its wrapper.
48570         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48571         RELOC_STRIP_PROG.
48572         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48573         to set RELOCATABLE_STRIP.
48574         * NEWS: Mention the new Makefile requirement.
48575
48576 2009-01-17  Bruno Haible  <bruno@clisp.org>
48577
48578         * build-aux/install-reloc: Remove debugging information left over by
48579         C compiler on MacOS X.
48580
48581 2009-01-17  Bruno Haible  <bruno@clisp.org>
48582
48583         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48584         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48585         _NSGetExecutablePath.
48586
48587 2009-01-16  Jim Meyering  <meyering@redhat.com>
48588
48589         strerror: avoid warnings about discarding "const"
48590         * lib/strerror.c (rpl_strerror): Instead of returning a const
48591         string from each and every "case", use a variable, and add a single
48592         cast after the switch.
48593
48594 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48595
48596         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48597
48598 2009-01-16  Bruno Haible  <bruno@clisp.org>
48599
48600         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48601         array initializer syntax that also works in C++ mode.
48602         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48603
48604 2009-01-16  Jim Meyering  <meyering@redhat.com>
48605
48606         poll: suppress a warning
48607         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48608         to ignore "...unsigned expression < 0 is always false" warnings.
48609
48610 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48611
48612         poll: remove declarations of unused variables
48613         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48614         sockbuf and optlen.
48615
48616 2009-01-15  Bruno Haible  <bruno@clisp.org>
48617
48618         Make fflush-after-ungetc POSIX compliant on BSD systems.
48619         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48620         (clear_ungetc_buffer): Implement also for other systems.
48621         (rpl_fflush): On glibc systems, invoke
48622         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48623         clear_ungetc_buffer after fetching the stream's position, not before.
48624
48625 2009-01-15  Bruno Haible  <bruno@clisp.org>
48626
48627         Make fflush-after-ungetc POSIX compliant on glibc systems.
48628         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48629         after ungetc.
48630         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48631         (rpl_fflush): On glibc systems, simply call the system's fflush
48632         function after clearing the ungetc buffer.
48633         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48634         Instead, lseek only to the end of file, then use the system's fseeko
48635         for the rest. On glibc systems, reset the EOF indicator bit.
48636
48637 2009-01-15  Jim Meyering  <meyering@redhat.com>
48638
48639         openmp.m4: revert quote-adding change, for portability to older autoconf
48640         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48641         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48642         Simon Josefsson noticed the problem when using autoconf-2.61.
48643
48644 2009-01-15  Bruno Haible  <bruno@clisp.org>
48645
48646         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48647         * tests/test-fflush2.c (ASSERT): Always fail.
48648         (main): Add two tests for fflush() after ungetc(), taking into account
48649         the Austin Group's clarification.
48650         Suggested by Eric Blake.
48651
48652 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48653
48654         mktime.m4: remove K&R-style function prototypes
48655         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48656         for the Sun C++ compiler.
48657
48658 2009-01-14  Bruno Haible  <bruno@clisp.org>
48659
48660         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48661         while including <wchar.h>.
48662         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48663         the system's <wchar.h> file.
48664         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48665
48666 2009-01-14  Bruno Haible  <bruno@clisp.org>
48667
48668         * m4/csharp.m4: Don't mention gettext on the serial number line.
48669         * m4/csharpexec.m4: Likewise.
48670         * m4/eaccess.m4: Likewise.
48671         * m4/javaexec.m4: Likewise.
48672         * m4/sig_atomic_t.m4: Likewise.
48673         * m4/tmpdir.m4: Likewise.
48674         * m4/intldir.m4: Bump gettext version.
48675         * m4/lib-ld.m4: Likewise.
48676
48677 2009-01-14  Bruno Haible  <bruno@clisp.org>
48678
48679         * lib/progname.c (set_program_name): Add more comments.
48680         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48681
48682 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48683
48684         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48685         were sys/stat.h does not define it.
48686
48687 2009-01-14  Jim Meyering  <meyering@redhat.com>
48688
48689         many *.m4 files: improve m4 quoting
48690         99% of this change was performed by running the following commands:
48691         git ls-files | grep '\.m4$' | xargs perl -pi \
48692           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48693           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48694           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48695           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48696         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48697         The remainder were to add Copyright dates, increment serial numbers,
48698         undo some changes in comments, exclude m4/intl.m4, and add quotes
48699         around the "1" in ",1" where the unusual spacing prohibited the
48700         above regexps from doing the job.  For more details, see
48701         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48702         * m4/acl.m4: Modified.
48703         * m4/afs.m4: Likewise.
48704         * m4/alloca.m4: Likewise.
48705         * m4/argp.m4: Likewise.
48706         * m4/argz.m4: Likewise.
48707         * m4/atexit.m4: Likewise.
48708         * m4/bison-i18n.m4: Likewise.
48709         * m4/bison.m4: Likewise.
48710         * m4/byteswap.m4: Likewise.
48711         * m4/c-stack.m4: Likewise.
48712         * m4/c-strtod.m4: Likewise.
48713         * m4/calloc.m4: Likewise.
48714         * m4/canonicalize-lgpl.m4: Likewise.
48715         * m4/chown.m4: Likewise.
48716         * m4/clock_time.m4: Likewise.
48717         * m4/codeset.m4: Likewise.
48718         * m4/copy-file.m4: Likewise.
48719         * m4/csharp.m4: Likewise.
48720         * m4/csharpcomp.m4: Likewise.
48721         * m4/csharpexec.m4: Likewise.
48722         * m4/d-ino.m4: Likewise.
48723         * m4/d-type.m4: Likewise.
48724         * m4/dirfd.m4: Likewise.
48725         * m4/double-slash-root.m4: Likewise.
48726         * m4/eaccess.m4: Likewise.
48727         * m4/eealloc.m4: Likewise.
48728         * m4/environ.m4: Likewise.
48729         * m4/errno_h.m4: Likewise.
48730         * m4/euidaccess.m4: Likewise.
48731         * m4/execute.m4: Likewise.
48732         * m4/fatal-signal.m4: Likewise.
48733         * m4/fchdir.m4: Likewise.
48734         * m4/fcntl_h.m4: Likewise.
48735         * m4/fileblocks.m4: Likewise.
48736         * m4/filenamecat.m4: Likewise.
48737         * m4/findprog.m4: Likewise.
48738         * m4/flexmember.m4: Likewise.
48739         * m4/fnmatch.m4: Likewise.
48740         * m4/fopen.m4: Likewise.
48741         * m4/fpending.m4: Likewise.
48742         * m4/fprintf-posix.m4: Likewise.
48743         * m4/free.m4: Likewise.
48744         * m4/frexp.m4: Likewise.
48745         * m4/frexpl.m4: Likewise.
48746         * m4/fsusage.m4: Likewise.
48747         * m4/ftruncate.m4: Likewise.
48748         * m4/gc-camellia.m4: Likewise.
48749         * m4/gc-random.m4: Likewise.
48750         * m4/gc.m4: Likewise.
48751         * m4/getaddrinfo.m4: Likewise.
48752         * m4/getcwd-abort-bug.m4: Likewise.
48753         * m4/getcwd-path-max.m4: Likewise.
48754         * m4/getdate.m4: Likewise.
48755         * m4/getdomainname.m4: Likewise.
48756         * m4/getgroups.m4: Likewise.
48757         * m4/gethostname.m4: Likewise.
48758         * m4/gethrxtime.m4: Likewise.
48759         * m4/getline.m4: Likewise.
48760         * m4/getloadavg.m4: Likewise.
48761         * m4/getndelim2.m4: Likewise.
48762         * m4/getpass.m4: Likewise.
48763         * m4/gettext.m4: Likewise.
48764         * m4/gettime.m4: Likewise.
48765         * m4/gettimeofday.m4: Likewise.
48766         * m4/gnulib-common.m4: Likewise.
48767         * m4/group-member.m4: Likewise.
48768         * m4/host-os.m4: Likewise.
48769         * m4/iconv.m4: Likewise.
48770         * m4/iconv_open.m4: Likewise.
48771         * m4/inet_ntop.m4: Likewise.
48772         * m4/inet_pton.m4: Likewise.
48773         * m4/inline.m4: Likewise.
48774         * m4/intldir.m4: Likewise.
48775         * m4/intlmacosx.m4: Likewise.
48776         * m4/intmax.m4: Likewise.
48777         * m4/intmax_t.m4: Likewise.
48778         * m4/inttypes.m4: Likewise.
48779         * m4/inttypes_h.m4: Likewise.
48780         * m4/inttypes-pri.m4: Likewise.
48781         * m4/isapipe.m4: Likewise.
48782         * m4/isnand.m4: Likewise.
48783         * m4/isnanf.m4: Likewise.
48784         * m4/isnanl.m4: Likewise.
48785         * m4/javacomp.m4: Likewise.
48786         * m4/javaexec.m4: Likewise.
48787         * m4/jm-winsz1.m4: Likewise.
48788         * m4/jm-winsz2.m4: Likewise.
48789         * m4/lchown.m4: Likewise.
48790         * m4/lcmessage.m4: Likewise.
48791         * m4/ldexpl.m4: Likewise.
48792         * m4/lib-ld.m4: Likewise.
48793         * m4/lib-link.m4: Likewise.
48794         * m4/libsigsegv.m4: Likewise.
48795         * m4/link-follow.m4: Likewise.
48796         * m4/localcharset.m4: Likewise.
48797         * m4/locale-fr.m4: Likewise.
48798         * m4/locale-ja.m4: Likewise.
48799         * m4/locale-tr.m4: Likewise.
48800         * m4/locale-zh.m4: Likewise.
48801         * m4/lock.m4: Likewise.
48802         * m4/longlong.m4: Likewise.
48803         * m4/ls-mntd-fs.m4: Likewise.
48804         * m4/lstat.m4: Likewise.
48805         * m4/malloc.m4: Likewise.
48806         * m4/mathl.m4: Likewise.
48807         * m4/mbrtowc.m4: Likewise.
48808         * m4/mbstate_t.m4: Likewise.
48809         * m4/mbswidth.m4: Likewise.
48810         * m4/memchr.m4: Likewise.
48811         * m4/memcmp.m4: Likewise.
48812         * m4/memcpy.m4: Likewise.
48813         * m4/memmem.m4: Likewise.
48814         * m4/memmove.m4: Likewise.
48815         * m4/mempcpy.m4: Likewise.
48816         * m4/memrchr.m4: Likewise.
48817         * m4/memset.m4: Likewise.
48818         * m4/minmax.m4: Likewise.
48819         * m4/mkdir-slash.m4: Likewise.
48820         * m4/mkdtemp.m4: Likewise.
48821         * m4/mktime.m4: Likewise.
48822         * m4/mmap-anon.m4: Likewise.
48823         * m4/mountlist.m4: Likewise.
48824         * m4/nanosleep.m4: Likewise.
48825         * m4/nls.m4: Likewise.
48826         * m4/nocrash.m4: Likewise.
48827         * m4/open.m4: Likewise.
48828         * m4/openat.m4: Likewise.
48829         * m4/openmp.m4: Likewise.
48830         * m4/pathmax.m4: Likewise.
48831         * m4/perl.m4: Likewise.
48832         * m4/physmem.m4: Likewise.
48833         * m4/pipe.m4: Likewise.
48834         * m4/po.m4: Likewise.
48835         * m4/poll.m4: Likewise.
48836         * m4/posixtm.m4: Likewise.
48837         * m4/posixver.m4: Likewise.
48838         * m4/printf-frexp.m4: Likewise.
48839         * m4/printf-frexpl.m4: Likewise.
48840         * m4/printf-posix.m4: Likewise.
48841         * m4/printf-posix-rpl.m4: Likewise.
48842         * m4/printf.m4: Likewise.
48843         * m4/progtest.m4: Likewise.
48844         * m4/putenv.m4: Likewise.
48845         * m4/readline.m4: Likewise.
48846         * m4/readlink.m4: Likewise.
48847         * m4/readutmp.m4: Likewise.
48848         * m4/realloc.m4: Likewise.
48849         * m4/regex.m4: Likewise.
48850         * m4/relocatable.m4: Likewise.
48851         * m4/relocatable-lib.m4: Likewise.
48852         * m4/rename-dest-slash.m4: Likewise.
48853         * m4/rename.m4: Likewise.
48854         * m4/rmdir-errno.m4: Likewise.
48855         * m4/rmdir.m4: Likewise.
48856         * m4/roundf.m4: Likewise.
48857         * m4/roundl.m4: Likewise.
48858         * m4/rpmatch.m4: Likewise.
48859         * m4/save-cwd.m4: Likewise.
48860         * m4/selinux-selinux-h.m4: Likewise.
48861         * m4/setenv.m4: Likewise.
48862         * m4/settime.m4: Likewise.
48863         * m4/sig2str.m4: Likewise.
48864         * m4/sig_atomic_t.m4: Likewise.
48865         * m4/signalblocking.m4: Likewise.
48866         * m4/signbit.m4: Likewise.
48867         * m4/sigpipe.m4: Likewise.
48868         * m4/sockets.m4: Likewise.
48869         * m4/sockpfaf.m4: Likewise.
48870         * m4/st_dm_mode.m4: Likewise.
48871         * m4/stat-time.m4: Likewise.
48872         * m4/stdbool.m4: Likewise.
48873         * m4/stdint.m4: Likewise.
48874         * m4/stdint_h.m4: Likewise.
48875         * m4/stpcpy.m4: Likewise.
48876         * m4/stpncpy.m4: Likewise.
48877         * m4/strcase.m4: Likewise.
48878         * m4/strchrnul.m4: Likewise.
48879         * m4/strcspn.m4: Likewise.
48880         * m4/strdup.m4: Likewise.
48881         * m4/strftime.m4: Likewise.
48882         * m4/strndup.m4: Likewise.
48883         * m4/strnlen.m4: Likewise.
48884         * m4/strpbrk.m4: Likewise.
48885         * m4/strptime.m4: Likewise.
48886         * m4/strsep.m4: Likewise.
48887         * m4/strtod.m4: Likewise.
48888         * m4/strtoimax.m4: Likewise.
48889         * m4/strtok_r.m4: Likewise.
48890         * m4/strtol.m4: Likewise.
48891         * m4/strtoll.m4: Likewise.
48892         * m4/strtoul.m4: Likewise.
48893         * m4/strtoull.m4: Likewise.
48894         * m4/strtoumax.m4: Likewise.
48895         * m4/strverscmp.m4: Likewise.
48896         * m4/threadlib.m4: Likewise.
48897         * m4/timegm.m4: Likewise.
48898         * m4/tm_gmtoff.m4: Likewise.
48899         * m4/tmpdir.m4: Likewise.
48900         * m4/tmpfile.m4: Likewise.
48901         * m4/tzset.m4: Likewise.
48902         * m4/uintmax_t.m4: Likewise.
48903         * m4/unlinkdir.m4: Likewise.
48904         * m4/unlocked-io.m4: Likewise.
48905         * m4/uptime.m4: Likewise.
48906         * m4/userspec.m4: Likewise.
48907         * m4/utimbuf.m4: Likewise.
48908         * m4/utime.m4: Likewise.
48909         * m4/utimes-null.m4: Likewise.
48910         * m4/utimes.m4: Likewise.
48911         * m4/vararrays.m4: Likewise.
48912         * m4/vasnprintf.m4: Likewise.
48913         * m4/vfprintf-posix.m4: Likewise.
48914         * m4/vprintf-posix.m4: Likewise.
48915         * m4/wait-process.m4: Likewise.
48916         * m4/wchar_t.m4: Likewise.
48917         * m4/wint_t.m4: Likewise.
48918         * m4/write-any-file.m4: Likewise.
48919         * m4/yield.m4: Likewise.
48920
48921 2009-01-13  Bruno Haible  <bruno@clisp.org>
48922
48923         Avoid test-copy-file.sh failures when ACL support insufficient.
48924         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48925         TESTS_ENVIRONMENT.
48926         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48927         Reported by Jim Meyering.
48928
48929 2009-01-13  Bruno Haible  <bruno@clisp.org>
48930
48931         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48932         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48933         * modules/unistdio/u8-printf-parse (Files): Likewise.
48934         * modules/unistdio/u32-printf-parse (Files): Likewise.
48935         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48936
48937 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48938
48939         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48940         and m4/inttypes_h.m4 too.
48941
48942 2009-01-12  Eric Blake  <ebb9@byu.net>
48943
48944         tests: IRIX 6.2 cc can't compile -0.0 into .data
48945         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48946         rather than at compile-time.
48947         * tests/test-floorl.c (minus_zero): Likewise.
48948         * tests/test-frexpl.c (minus_zero): Likewise.
48949         * tests/test-isnan.c (minus_zerol): Likewise.
48950         * tests/test-isnanl.h (minus_zero): Likewise.
48951         * tests/test-ldexpl.c (minus_zero): Likewise.
48952         * tests/test-roundl.c (minus_zero): Likewise.
48953         * tests/test-signbit.c (minus_zerol): Likewise.
48954         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48955         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48956         * tests/test-truncl.c (minus_zero): Likewise.
48957         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48958         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48959         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48960
48961 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48962
48963         regex: fix glibc bug 9697
48964         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48965         handling.
48966
48967 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48968
48969         regex: fix glibc bug 697
48970         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48971         being NULL also if there are no backreferences.
48972
48973 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48974
48975         regex: merge glibc changes
48976         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48977         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48978         re_string_skip_chars, re_string_reconstruct): Likewise.
48979         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48980
48981 2009-01-07  Jim Meyering  <meyering@redhat.com>
48982
48983         poll: filter through cppi
48984         * lib/poll.c: Indent cpp directives to reflect nesting.
48985
48986 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48987
48988         poll: don't return uninitialized
48989         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48990
48991 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48992
48993         avoid compile failure on AIX 6.1
48994         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48995         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48996
48997 2009-01-04  Jim Meyering  <meyering@redhat.com>
48998
48999         remove duplicate inclusion of <stdio.h>
49000         * tests/test-fprintf-posix.c: Likewise.
49001         * tests/test-printf-posix.c: Likewise.
49002         * tests/test-snprintf-posix.c: Likewise.
49003         * tests/test-sprintf-posix.c: Likewise.
49004         * tests/test-vasprintf-posix.c: Likewise.
49005         * tests/test-vfprintf-posix.c: Likewise.
49006         * tests/test-vprintf-posix.c: Likewise.
49007         * tests/test-vsnprintf-posix.c: Likewise.
49008         * tests/test-vsprintf-posix.c: Likewise.
49009
49010 2009-01-03  Jim Meyering  <meyering@redhat.com>
49011
49012         gnulib-tool: fix sed-based filtering
49013         * gnulib-tool (func_filter_filelist): Remove extra backslash
49014         in sed_fff_filter definition.
49015
49016 2009-01-02  Jim Meyering  <meyering@redhat.com>
49017
49018         strftime: avoid compilation failure on Solaris 2.6
49019         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
49020         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
49021         Don't #define mbrlen or mbsinit, since now they're guaranteed to
49022         be available.  Reported by Tom G. Christensen.  Details in
49023         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
49024
49025 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49026             Bruno Haible  <bruno@clisp.org>
49027
49028         Speed up gnulib-tool by doing more string processing through shell
49029         built-ins.
49030         * gnulib-tool (fast_func_append): New variable.
49031         (func_remove_prefix, func_remove_suffix): New functions.
49032         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
49033         (func_filter_filelist): New function.
49034         (func_get_dependencies): Use func_remove_suffix instead of sed.
49035         (func_get_automake_snippet): Use func_filter_filelist instead of a
49036         subshell and sed invocation.
49037
49038 2009-01-01  Bruno Haible  <bruno@clisp.org>
49039
49040         Fix a security bug.
49041         * gnulib-tool (func_import, import, update): Don't allow the characters
49042         '"', '$', '`', '\' in macro arguments that become part of commands that
49043         are evaluated.
49044
49045 2009-01-01  Bruno Haible  <bruno@clisp.org>
49046
49047         * gnulib-tool (func_reset_sigpipe): Add more comments.
49048
49049 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49050
49051         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
49052         func_emit_tests_Makefile_am, func_import): Abort loops early if we
49053         already know the answer.
49054
49055 2009-01-01  Jim Meyering  <meyering@redhat.com>
49056
49057         * lib/version-etc.c (version_etc_va): Update copyright year.
49058
49059 2008-12-30  Bruno Haible  <bruno@clisp.org>
49060
49061         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
49062         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
49063         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
49064
49065 2008-12-29  Eric Blake  <ebb9@byu.net>
49066
49067         multiarch: avoid autoconf AC_REQUIRE bug
49068         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
49069         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
49070         2.63 and older.
49071         Reported by Bruno Haible, and analyzed in
49072         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
49073
49074 2008-12-29  Bruno Haible  <bruno@clisp.org>
49075
49076         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
49077         files in subdirectories correctly.
49078         Reported by Ralf Wildenhues.
49079
49080 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49081
49082         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
49083         rather than 'join FILE -', for Solaris join.
49084
49085 2008-12-29  Bruno Haible  <bruno@clisp.org>
49086
49087         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
49088         quoting.
49089         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49090         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
49091         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
49092         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
49093         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49094         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49095         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49096         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49097         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49098         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49099         * m4/nls.m4 (AM_NLS): Likewise.
49100         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
49101         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49102         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49103         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49104         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49105         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49106         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
49107         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49108         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49109         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49110         * m4/xsize.m4 (gl_XSIZE): Likewise.
49111         Suggested by Jim Meyering.
49112
49113 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49114
49115         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
49116         * lib/parse-duration.c: use a switch instead of cascading if's.
49117
49118 2008-12-29  Eric Blake  <ebb9@byu.net>
49119
49120         wchar.h: supply WEOF on Irix 5.3
49121         * lib/wchar.in.h (wint_t): Also supply WEOF.
49122         * lib/wctype.in.h (wint_t): Likewise.
49123         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
49124         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
49125         Reported by Tom G. Christensen.
49126
49127 2008-12-26  Bruno Haible  <bruno@clisp.org>
49128
49129         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
49130         i486, i586, i686.
49131
49132 2008-12-26  Bruno Haible  <bruno@clisp.org>
49133
49134         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
49135
49136 2008-12-26  Bruno Haible  <bruno@clisp.org>
49137
49138         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
49139         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
49140         not __STDC_CONSTANT_MACROS.
49141         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
49142
49143 2008-12-25  Bruno Haible  <bruno@clisp.org>
49144
49145         Add support for universal builds to vasnprintf.
49146         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
49147         universal builds, guess no.
49148         * modules/vasnprintf-posix (Depends-on): Add multiarch.
49149         * modules/vasprintf-posix (Depends-on): Likewise.
49150         * modules/fprintf-posix (Depends-on): Likewise.
49151         * modules/vfprintf-posix (Depends-on): Likewise.
49152         * modules/snprintf-posix (Depends-on): Likewise.
49153         * modules/vsnprintf-posix (Depends-on): Likewise.
49154         * modules/sprintf-posix (Depends-on): Likewise.
49155         * modules/vsprintf-posix (Depends-on): Likewise.
49156         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49157         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49158         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49159         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49160         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49161         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49162         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49163
49164         Add support for universal builds to <inttypes.h>.
49165         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
49166         _SCNu64_PREFIX): In Apple
49167         universal builds, define directly, using _LP64.
49168         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
49169         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
49170         * modules/inttypes (Depends-on): Add multiarch.
49171         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49172
49173         Add support for universal builds to <stdint.h>.
49174         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
49175         universal builds, define directly, using _LP64.
49176         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
49177         Apple universal builds, don't test for the size and suffix of ptrdiff_t
49178         and size_t.
49179         * modules/stdint (Depends-on): Add multiarch.
49180         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49181
49182         New module 'multiarch'.
49183         * modules/multiarch: New file.
49184         * m4/multiarch.m4: New file.
49185
49186 2008-12-25  Bruno Haible  <bruno@clisp.org>
49187
49188         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
49189
49190 2008-12-25  Bruno Haible  <bruno@clisp.org>
49191
49192         * modules/btowc (License): Relicense under LGPLv2+.
49193         * modules/mbsinit (License): Likewise.
49194         * modules/mbrtowc (License): Likewise.
49195         * modules/wcrtomb (License): Likewise.
49196         * modules/streq (License): Likewise.
49197         Reported by David Lutterkort <lutter@redhat.com>.
49198
49199 2008-12-23  Bruno Haible  <bruno@clisp.org>
49200
49201         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
49202
49203 2008-12-23  Bruno Haible  <bruno@clisp.org>
49204
49205         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
49206         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
49207         GETADDRINFO_LIB, not in LIBS.
49208         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
49209         * modules/canon-host (Link): Likewise.
49210         * NEWS: Mention the change.
49211         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
49212         GETADDRINFO_LIB.
49213
49214 2008-12-22  Bruno Haible  <bruno@clisp.org>
49215
49216         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
49217         * doc/posix-functions/iswalpha_l.texi: Likewise.
49218         * doc/posix-functions/iswblank_l.texi: Likewise.
49219         * doc/posix-functions/iswcntrl_l.texi: Likewise.
49220         * doc/posix-functions/iswctype_l.texi: Likewise.
49221         * doc/posix-functions/iswdigit_l.texi: Likewise.
49222         * doc/posix-functions/iswgraph_l.texi: Likewise.
49223         * doc/posix-functions/iswlower_l.texi: Likewise.
49224         * doc/posix-functions/iswprint_l.texi: Likewise.
49225         * doc/posix-functions/iswpunct_l.texi: Likewise.
49226         * doc/posix-functions/iswspace_l.texi: Likewise.
49227         * doc/posix-functions/iswupper_l.texi: Likewise.
49228         * doc/posix-functions/iswxdigit_l.texi: Likewise.
49229         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
49230         * doc/posix-functions/open_wmemstream.texi: Likewise.
49231         * doc/posix-functions/swscanf.texi: Likewise.
49232         * doc/posix-functions/towctrans_l.texi: Likewise.
49233         * doc/posix-functions/towlower.texi: Likewise.
49234         * doc/posix-functions/towlower_l.texi: Likewise.
49235         * doc/posix-functions/towupper.texi: Likewise.
49236         * doc/posix-functions/towupper_l.texi: Likewise.
49237         * doc/posix-functions/vfwprintf.texi: Likewise.
49238         * doc/posix-functions/vfwscanf.texi: Likewise.
49239         * doc/posix-functions/vswscanf.texi: Likewise.
49240         * doc/posix-functions/vwprintf.texi: Likewise.
49241         * doc/posix-functions/vwscanf.texi: Likewise.
49242         * doc/posix-functions/wcpcpy.texi: Likewise.
49243         * doc/posix-functions/wcpncpy.texi: Likewise.
49244         * doc/posix-functions/wcscasecmp.texi: Likewise.
49245         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
49246         * doc/posix-functions/wcscoll_l.texi: Likewise.
49247         * doc/posix-functions/wcsdup.texi: Likewise.
49248         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49249         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
49250         * doc/posix-functions/wcsnlen.texi: Likewise.
49251         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49252         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
49253         * doc/posix-functions/wctrans_l.texi: Likewise.
49254         * doc/posix-functions/wctype_l.texi: Likewise.
49255         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
49256         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
49257         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
49258         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
49259         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
49260         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
49261         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
49262         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
49263         * doc/glibc-functions/wcschrnul.texi: Likewise.
49264         * doc/glibc-functions/wcsftime_l.texi: Likewise.
49265         * doc/glibc-functions/wcstod_l.texi: Likewise.
49266         * doc/glibc-functions/wcstof_l.texi: Likewise.
49267         * doc/glibc-functions/wcstol_l.texi: Likewise.
49268         * doc/glibc-functions/wcstold_l.texi: Likewise.
49269         * doc/glibc-functions/wcstoll_l.texi: Likewise.
49270         * doc/glibc-functions/wcstoq.texi: Likewise.
49271         * doc/glibc-functions/wcstoul_l.texi: Likewise.
49272         * doc/glibc-functions/wcstoull_l.texi: Likewise.
49273         * doc/glibc-functions/wcstouq.texi: Likewise.
49274         * doc/glibc-functions/wmempcpy.texi: Likewise.
49275
49276 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
49277             Eric Blake  <ebb9@byu.net>
49278             Paolo Bonzini  <bonzini@gnu.org>
49279             Bruno Haible  <bruno@clisp.org>
49280
49281         Make c-stack work on Haiku.
49282         * lib/c-stack.c (SA_ONSTACK): Define fallback.
49283         (c_stack_action): Use SA_ONSTACK flag.
49284
49285 2008-12-22  Bruno Haible  <bruno@clisp.org>
49286
49287         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
49288
49289 2008-12-22  Bruno Haible  <bruno@clisp.org>
49290
49291         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
49292         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
49293         being overridden.
49294         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
49295         New macros.
49296         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
49297         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
49298         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
49299         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
49300
49301 2008-12-22  Bruno Haible  <bruno@clisp.org>
49302
49303         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
49304         from test code.
49305
49306 2008-12-22  Eric Blake  <ebb9@byu.net>
49307
49308         Avoid gcc warnings on cygwin.
49309         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
49310         Avoid unused variable.
49311         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
49312         Likewise.
49313
49314 2008-12-22  Bruno Haible  <bruno@clisp.org>
49315
49316         Remove HAVE_MBRTOWC conditionals.
49317         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
49318         (mbscasecmp): Assume mbrtowc function.
49319         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
49320         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
49321         * lib/mbschr.c: Include mbuiter.h unconditionally.
49322         (mbschr): Assume mbrtowc function.
49323         * lib/mbscspn.c: Include mbuiter.h unconditionally.
49324         (mbscspn): Assume mbrtowc function.
49325         * lib/mbslen.c: Include mbuiter.h unconditionally.
49326         (mbslen): Assume mbrtowc function.
49327         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
49328         (mbsncasecmp): Assume mbrtowc function.
49329         * lib/mbsnlen.c: Include mbiter.h unconditionally.
49330         (mbsnlen): Assume mbrtowc function.
49331         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
49332         (mbspbrk): Assume mbrtowc function.
49333         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
49334         (mbspcasecmp): Assume mbrtowc function.
49335         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
49336         (mbsrchr): Assume mbrtowc function.
49337         * lib/mbssep.c: Include mbuiter.h unconditionally.
49338         (mbssep): Assume mbrtowc function.
49339         * lib/mbsspn.c: Include mbuiter.h unconditionally.
49340         (mbsspn): Assume mbrtowc function.
49341         * lib/mbsstr.c: Include mbuiter.h unconditionally.
49342         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
49343         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
49344         (mbstok_r): Assume mbrtowc function.
49345         * lib/propername.c: Include mbuiter.h unconditionally.
49346         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
49347         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
49348         (trim2): Assume mbrtowc function.
49349         * lib/mbswidth.c (mbsinit): Remove fallback definition.
49350         (mbsnwidth): Assume mbrtowc function.
49351         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
49352         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
49353         fallback definitions.
49354         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
49355
49356 2008-12-22  Bruno Haible  <bruno@clisp.org>
49357
49358         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
49359
49360 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
49361
49362         * modules/regex: Request emulations for the mb*/wc* functions we need.
49363         * m4/regex.m4: Don't look for those functions here.
49364         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
49365
49366 2008-12-22  Bruno Haible  <bruno@clisp.org>
49367
49368         * modules/fnmatch (Depends-on): Remove duplicated dependency.
49369
49370 2008-12-21  Bruno Haible  <bruno@clisp.org>
49371
49372         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
49373         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
49374         (Include): Remove conditionalization.
49375         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
49376         (Include): Remove conditionalization.
49377         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
49378         (Include): Remove conditionalization.
49379         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
49380         * m4/mbfile.m4 (gl_MBFILE): Likewise.
49381         * NEWS: Mention the change.
49382         Reported by Alan Hourihane <alanh@fairlite.co.uk>
49383         via Sergey Poznyakoff <gray@gnu.org.ua>.
49384
49385 2008-12-21  Bruno Haible  <bruno@clisp.org>
49386
49387         * MODULES.html.sh (Extended multibyte and wide character utilities
49388         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
49389         wcrtomb, wcsrtombs.
49390         (Support for systems lacking POSIX:2008): Add accept, bind, close,
49391         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
49392         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
49393         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
49394
49395 2008-12-21  Bruno Haible  <bruno@clisp.org>
49396
49397         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
49398
49399 2008-12-21  Bruno Haible  <bruno@clisp.org>
49400
49401         * modules/wcsnrtombs-tests: New file.
49402         * tests/test-wcsnrtombs1.sh: New file.
49403         * tests/test-wcsnrtombs2.sh: New file.
49404         * tests/test-wcsnrtombs3.sh: New file.
49405         * tests/test-wcsnrtombs4.sh: New file.
49406         * tests/test-wcsnrtombs.c: New file.
49407
49408         New module 'wcsnrtombs'.
49409         * lib/wchar.in.h (wcsnrtombs): New declaration.
49410         * lib/wcsnrtombs.c: New file.
49411         * lib/wcsrtombs-state.c: New file.
49412         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
49413         (internal_state): Remove variable.
49414         * m4/wcsnrtombs.m4: New file.
49415         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
49416         compilation units.
49417         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
49418         HAVE_WCSNRTOMBS.
49419         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
49420         HAVE_WCSNRTOMBS.
49421         * modules/wcsnrtombs: New file.
49422         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
49423         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
49424
49425 2008-12-21  Bruno Haible  <bruno@clisp.org>
49426
49427         * modules/wcsrtombs-tests: New file.
49428         * tests/test-wcsrtombs1.sh: New file.
49429         * tests/test-wcsrtombs2.sh: New file.
49430         * tests/test-wcsrtombs3.sh: New file.
49431         * tests/test-wcsrtombs4.sh: New file.
49432         * tests/test-wcsrtombs.c: New file.
49433
49434         New module 'wcsrtombs'.
49435         * lib/wchar.in.h (wcsrtombs): New declaration.
49436         * lib/wcsrtombs.c: New file.
49437         * m4/wcsrtombs.m4: New file.
49438         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
49439         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49440         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
49441         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49442         * modules/wcsrtombs: New file.
49443         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
49444         bugs.
49445
49446 2008-12-21  Bruno Haible  <bruno@clisp.org>
49447
49448         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
49449         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
49450         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
49451         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
49452         if not correct.
49453         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
49454         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
49455         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49456         m4/locale-zh.m4, m4/codeset.m4.
49457         * doc/posix-functions/wcrtomb.texi: Document the bug.
49458
49459 2008-12-21  Bruno Haible  <bruno@clisp.org>
49460
49461         Work around a btowc() bug on IRIX 6.5.
49462         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
49463         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
49464         REPLACE_WTOBC if not.
49465         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
49466         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
49467         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
49468
49469 2008-12-21  Bruno Haible  <bruno@clisp.org>
49470
49471         * modules/wcrtomb-tests: New file.
49472         * tests/test-wcrtomb.sh: New file.
49473         * tests/test-wcrtomb.c: New file.
49474
49475         New module 'wcrtomb'.
49476         * lib/wchar.in.h (wcrtomb): New declaration.
49477         * lib/wcrtomb.c: New file.
49478         * m4/wcrtomb.m4: New file.
49479         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
49480         HAVE_WCRTOMB.
49481         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
49482         HAVE_WCRTOMB.
49483         * modules/wcrtomb: New file.
49484         * doc/posix-functions/wcrtomb.texi: Mention the new module.
49485
49486 2008-12-21  Bruno Haible  <bruno@clisp.org>
49487
49488         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
49489         * modules/mbsrtowcs (Files): Likewise.
49490         * modules/wctob (Files): Likewise.
49491         * modules/c-strcase-tests (Files): Likewise.
49492         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
49493         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
49494         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
49495         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
49496         * modules/vasnprintf-posix-tests (Files): Likewise.
49497
49498 2008-12-21  William Pursell  <bill.pursell@gmail.com>
49499
49500         gitlog-to-changelog: pass all command-line arguments to git-log
49501         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
49502         it is sometimes convenient to filter the commits in various ways.
49503         gitlog-to-changelog only allows --since to specify a start date,
49504         but git-log itself supports many other filtering mechanisms.
49505         At the moment, I want to filter by branch name.  Rather than
49506         adding a --branch option to gitlog-to-changelog, it seems more
49507         flexible to simply pass all options directly to git-log and let
49508         git do the work.  Notice that this effectively makes --since a
49509         redundant option for gitlog-to-changelog, but removing it would
49510         require current usage to change since calls would then require
49511         an additional '--'.
49512
49513 2008-12-21  Bruno Haible  <bruno@clisp.org>
49514
49515         * modules/mbsnrtowcs-tests: New file.
49516         * tests/test-mbsnrtowcs1.sh: New file.
49517         * tests/test-mbsnrtowcs2.sh: New file.
49518         * tests/test-mbsnrtowcs3.sh: New file.
49519         * tests/test-mbsnrtowcs4.sh: New file.
49520         * tests/test-mbsnrtowcs.c: New file.
49521
49522         New module 'mbsnrtowcs'.
49523         * lib/wchar.in.h (mbsnrtowcs): New declaration.
49524         * lib/mbsnrtowcs.c: New file.
49525         * lib/mbsrtowcs-state.c: New file.
49526         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
49527         (internal_state): Remove variable.
49528         * m4/mbsnrtowcs.m4: New file.
49529         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
49530         compilation units.
49531         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
49532         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49533         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
49534         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49535         * modules/mbsnrtowcs: New file.
49536         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
49537         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
49538         portability problem.
49539
49540 2008-12-21  Bruno Haible  <bruno@clisp.org>
49541
49542         Work around mbsrtowcs bug.
49543         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
49544         (gl_FUNC_MBSRTOWCS): Invoke it.
49545         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49546         m4/locale-zh.m4.
49547         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
49548
49549 2008-12-21  Bruno Haible  <bruno@clisp.org>
49550
49551         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
49552
49553 2008-12-21  Bruno Haible  <bruno@clisp.org>
49554
49555         Update doc for AIX.
49556         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49557         16-bit wchar_t type.
49558         * doc/posix-functions/btowc.texi: Likewise.
49559         * doc/posix-functions/fgetwc.texi: Likewise.
49560         * doc/posix-functions/fgetws.texi: Likewise.
49561         * doc/posix-functions/fputwc.texi: Likewise.
49562         * doc/posix-functions/fputws.texi: Likewise.
49563         * doc/posix-functions/fwide.texi: Likewise.
49564         * doc/posix-functions/fwprintf.texi: Likewise.
49565         * doc/posix-functions/fwscanf.texi: Likewise.
49566         * doc/posix-functions/getwchar.texi: Likewise.
49567         * doc/posix-functions/getwc.texi: Likewise.
49568         * doc/posix-functions/iswalnum.texi: Likewise.
49569         * doc/posix-functions/iswalpha.texi: Likewise.
49570         * doc/posix-functions/iswblank.texi: Likewise.
49571         * doc/posix-functions/iswcntrl.texi: Likewise.
49572         * doc/posix-functions/iswctype.texi: Likewise.
49573         * doc/posix-functions/iswdigit.texi: Likewise.
49574         * doc/posix-functions/iswgraph.texi: Likewise.
49575         * doc/posix-functions/iswlower.texi: Likewise.
49576         * doc/posix-functions/iswprint.texi: Likewise.
49577         * doc/posix-functions/iswpunct.texi: Likewise.
49578         * doc/posix-functions/iswspace.texi: Likewise.
49579         * doc/posix-functions/iswupper.texi: Likewise.
49580         * doc/posix-functions/iswxdigit.texi: Likewise.
49581         * doc/posix-functions/mbrtowc.texi: Likewise.
49582         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49583         * doc/posix-functions/mbstowcs.texi: Likewise.
49584         * doc/posix-functions/mbtowc.texi: Likewise.
49585         * doc/posix-functions/putwchar.texi: Likewise.
49586         * doc/posix-functions/putwc.texi: Likewise.
49587         * doc/posix-functions/swprintf.texi: Likewise.
49588         * doc/posix-functions/tolower.texi: Likewise.
49589         * doc/posix-functions/toupper.texi: Likewise.
49590         * doc/posix-functions/towctrans.texi: Likewise.
49591         * doc/posix-functions/ungetwc.texi: Likewise.
49592         * doc/posix-functions/vswprintf.texi: Likewise.
49593         * doc/posix-functions/wcrtomb.texi: Likewise.
49594         * doc/posix-functions/wcscat.texi: Likewise.
49595         * doc/posix-functions/wcschr.texi: Likewise.
49596         * doc/posix-functions/wcscmp.texi: Likewise.
49597         * doc/posix-functions/wcscoll.texi: Likewise.
49598         * doc/posix-functions/wcscpy.texi: Likewise.
49599         * doc/posix-functions/wcscspn.texi: Likewise.
49600         * doc/posix-functions/wcsftime.texi: Likewise.
49601         * doc/posix-functions/wcslen.texi: Likewise.
49602         * doc/posix-functions/wcsncat.texi: Likewise.
49603         * doc/posix-functions/wcsncmp.texi: Likewise.
49604         * doc/posix-functions/wcsncpy.texi: Likewise.
49605         * doc/posix-functions/wcspbrk.texi: Likewise.
49606         * doc/posix-functions/wcsrchr.texi: Likewise.
49607         * doc/posix-functions/wcsrtombs.texi: Likewise.
49608         * doc/posix-functions/wcsspn.texi: Likewise.
49609         * doc/posix-functions/wcsstr.texi: Likewise.
49610         * doc/posix-functions/wcstod.texi: Likewise.
49611         * doc/posix-functions/wcstof.texi: Likewise.
49612         * doc/posix-functions/wcstoimax.texi: Likewise.
49613         * doc/posix-functions/wcstok.texi: Likewise.
49614         * doc/posix-functions/wcstold.texi: Likewise.
49615         * doc/posix-functions/wcstoll.texi: Likewise.
49616         * doc/posix-functions/wcstol.texi: Likewise.
49617         * doc/posix-functions/wcstombs.texi: Likewise.
49618         * doc/posix-functions/wcstoull.texi: Likewise.
49619         * doc/posix-functions/wcstoul.texi: Likewise.
49620         * doc/posix-functions/wcstoumax.texi: Likewise.
49621         * doc/posix-functions/wcswidth.texi: Likewise.
49622         * doc/posix-functions/wcsxfrm.texi: Likewise.
49623         * doc/posix-functions/wctob.texi: Likewise.
49624         * doc/posix-functions/wctomb.texi: Likewise.
49625         * doc/posix-functions/wctrans.texi: Likewise.
49626         * doc/posix-functions/wctype.texi: Likewise.
49627         * doc/posix-functions/wcwidth.texi: Likewise.
49628         * doc/posix-functions/wmemchr.texi: Likewise.
49629         * doc/posix-functions/wmemcmp.texi: Likewise.
49630         * doc/posix-functions/wmemcpy.texi: Likewise.
49631         * doc/posix-functions/wmemmove.texi: Likewise.
49632         * doc/posix-functions/wmemset.texi: Likewise.
49633         * doc/posix-functions/wprintf.texi: Likewise.
49634         * doc/posix-functions/wscanf.texi: Likewise.
49635
49636 2008-12-21  Bruno Haible  <bruno@clisp.org>
49637
49638         Update doc for HP-UX 11.11.
49639         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49640         in HP-UX version 11.00, not in all versions of HP-UX 11.
49641         * doc/posix-functions/fwide.texi: Likewise.
49642         * doc/posix-functions/fwprintf.texi: Likewise.
49643         * doc/posix-functions/fwscanf.texi: Likewise.
49644         * doc/posix-functions/inet_ntop.texi: Likewise.
49645         * doc/posix-functions/inet_pton.texi: Likewise.
49646         * doc/posix-functions/mbrlen.texi: Likewise.
49647         * doc/posix-functions/mbrtowc.texi: Likewise.
49648         * doc/posix-functions/mbsinit.texi: Likewise.
49649         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49650         * doc/posix-functions/swprintf.texi: Likewise.
49651         * doc/posix-functions/swscanf.texi: Likewise.
49652         * doc/posix-functions/towctrans.texi: Likewise.
49653         * doc/posix-functions/vfwprintf.texi: Likewise.
49654         * doc/posix-functions/vswprintf.texi: Likewise.
49655         * doc/posix-functions/vwprintf.texi: Likewise.
49656         * doc/posix-functions/wcrtomb.texi: Likewise.
49657         * doc/posix-functions/wcsrtombs.texi: Likewise.
49658         * doc/posix-functions/wcsstr.texi: Likewise.
49659         * doc/posix-functions/wctob.texi: Likewise.
49660         * doc/posix-functions/wctrans.texi: Likewise.
49661         * doc/posix-functions/wmemchr.texi: Likewise.
49662         * doc/posix-functions/wmemcmp.texi: Likewise.
49663         * doc/posix-functions/wmemcpy.texi: Likewise.
49664         * doc/posix-functions/wmemmove.texi: Likewise.
49665         * doc/posix-functions/wmemset.texi: Likewise.
49666         * doc/posix-functions/wprintf.texi: Likewise.
49667         * doc/posix-functions/wscanf.texi: Likewise.
49668
49669 2008-12-21  Bruno Haible  <bruno@clisp.org>
49670
49671         Work around a portability problem.
49672         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49673         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49674
49675 2008-12-20  Bruno Haible  <bruno@clisp.org>
49676
49677         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49678         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49679         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49680         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49681         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49682
49683         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49684         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49685         set.
49686         (GNULIB_defined_mbstate_t): New macro.
49687         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49688         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49689         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49690         reuses the system's mbrtowc function but works around the bugs.
49691         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49692         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49693         macros.
49694         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49695         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49696         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49697         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49698         REPLACE_MBSINIT if mbsinit needs to be overridden.
49699         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49700         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49701         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49702         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49703         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49704         m4/locale-zh.m4.
49705         (Depends): Add mbsinit.
49706         * modules/mbsinit (Depends): Add mbrtowc.
49707         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49708
49709 2008-12-20  Bruno Haible  <bruno@clisp.org>
49710
49711         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49712         so that there are no conversion errors on AIX.
49713         * tests/test-mbsrtowcs.c (main): LIkewise.
49714
49715 2008-12-20  Bruno Haible  <bruno@clisp.org>
49716
49717         Work around wctob bug on Solaris <= 9.
49718         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49719         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49720         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49721         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49722         * modules/wctob (Files): Add m4/locale-fr.m4.
49723         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49724
49725 2008-12-20  Bruno Haible  <bruno@clisp.org>
49726
49727         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49728         /dev/null.
49729         * tests/test-select-in.sh: Likewise.
49730         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49731
49732 2008-12-20  Bruno Haible  <bruno@clisp.org>
49733
49734         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49735         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49736         Cygwin 1.5.x.
49737
49738 2008-12-20  Bruno Haible  <bruno@clisp.org>
49739
49740         Ensure mbstate_t is defined on HP-UX 11.11.
49741         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49742         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49743         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49744         AC_USE_SYSTEM_EXTENSIONS.
49745         * modules/fnmatch (Depends-on): Add extensions.
49746         * modules/mbrlen (Depends-on): Likewise.
49747         * modules/mbrtowc (Depends-on): Likewise.
49748         * modules/mbsinit (Depends-on): Likewise.
49749         * modules/mbsrtowcs (Depends-on): Likewise.
49750         * modules/mbswidth (Depends-on): Likewise.
49751         * modules/quotearg (Depends-on): Likewise.
49752         * modules/strftime (Depends-on): Likewise.
49753
49754 2008-12-20  Bruno Haible  <bruno@clisp.org>
49755
49756         Ensure wctob is declared on IRIX 6.5.
49757         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49758         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49759         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49760         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49761         of HAVE_WCTOB.
49762         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49763         HAVE_WCTOB.
49764         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49765
49766 2008-12-19  Bruno Haible  <bruno@clisp.org>
49767
49768         * modules/mbsrtowcs-tests: New file.
49769         * tests/test-mbsrtowcs1.sh: New file.
49770         * tests/test-mbsrtowcs2.sh: New file.
49771         * tests/test-mbsrtowcs3.sh: New file.
49772         * tests/test-mbsrtowcs4.sh: New file.
49773         * tests/test-mbsrtowcs.c: New file.
49774
49775         New module 'mbsrtowcs'.
49776         * lib/wchar.in.h (mbsrtowcs): New declaration.
49777         * lib/mbsrtowcs.c: New file.
49778         * m4/mbsrtowcs.m4: New file.
49779         * modules/mbsrtowcs: New file.
49780         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49781         HAVE_MBSRTOWCS.
49782         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49783         HAVE_MBSRTOWCS.
49784         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49785
49786 2008-12-19  Bruno Haible  <bruno@clisp.org>
49787
49788         New module 'mbrlen'.
49789         * lib/wchar.in.h (mbrlen): New declaration.
49790         * lib/mbrlen.c: New file.
49791         * m4/mbrlen.m4: New file.
49792         * modules/mbrlen: New file.
49793         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49794         HAVE_MBRLEN.
49795         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49796         HAVE_MBRLEN.
49797         * doc/posix-functions/mbrlen.texi: Document the new module.
49798
49799 2008-12-19  Bruno Haible  <bruno@clisp.org>
49800
49801         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49802         * modules/mbrtowc (Depends-on): Add verify.
49803         Suggested by Paul Eggert.
49804
49805 2008-12-18  Bruno Haible  <bruno@clisp.org>
49806
49807         * modules/mbsinit-tests: New file.
49808         * tests/test-mbsinit.sh: New file.
49809         * tests/test-mbsinit.c: New file.
49810
49811 2008-12-18  Bruno Haible  <bruno@clisp.org>
49812
49813         * modules/mbrtowc-tests: New file.
49814         * tests/test-mbrtowc1.sh: New file.
49815         * tests/test-mbrtowc2.sh: New file.
49816         * tests/test-mbrtowc3.sh: New file.
49817         * tests/test-mbrtowc4.sh: New file.
49818         * tests/test-mbrtowc.c: New file.
49819
49820         New module 'mbrtowc'.
49821         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49822         mbsinit and mbrtowc.
49823         (mbrtowc): New declaration.
49824         * lib/mbrtowc.c: New file.
49825         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49826         * modules/mbrtowc: New file.
49827         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49828         HAVE_MBRTOWC.
49829         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49830         HAVE_MBRTOWC.
49831         * doc/posix-functions/mbrtowc.texi: Document the new module.
49832
49833 2008-12-18  Bruno Haible  <bruno@clisp.org>
49834
49835         New module 'wctob'.
49836         * lib/wchar.in.h (wctob): New declaration.
49837         * lib/wctob.c: New file.
49838         * m4/wctob.m4: New file.
49839         * modules/wctob: New file.
49840         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49841         HAVE_WCTOB.
49842         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49843         * doc/posix-functions/wctob.texi: Document the new module.
49844
49845 2008-12-18  Bruno Haible  <bruno@clisp.org>
49846
49847         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49848         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49849
49850 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49851
49852         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49853         G. Christensen" <tgc@jupiterrise.com>.
49854
49855         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49856         G. Christensen" <tgc@jupiterrise.com>.
49857
49858         * lib/flock.c: Need to include string.h.  Reported by "Tom
49859         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49860         <ebb9@byu.net>.
49861
49862 2008-12-18  Bruno Haible  <bruno@clisp.org>
49863
49864         * m4/locale-ja.m4: New file, from GNU gettext.
49865
49866 2008-12-17  Bruno Haible  <bruno@clisp.org>
49867
49868         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49869         Suggested by Eric Blake.
49870
49871 2008-12-17  Bruno Haible  <bruno@clisp.org>
49872
49873         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49874
49875 2008-12-17  Bruno Haible  <bruno@clisp.org>
49876
49877         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49878         * modules/mbsinit (Depends-on): Add verify.
49879         Suggested by Paul Eggert.
49880
49881 2008-12-17  Bruno Haible  <bruno@clisp.org>
49882
49883         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49884         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49885         gl_FUNC_MBRTOWC.
49886         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49887         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49888         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49889         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49890         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49891         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49892         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49893         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49894         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49895         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49896         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49897         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49898         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49899         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49900         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49901         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49902         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49903         * modules/trim (configure.ac): Likewise.
49904
49905 2008-12-17  Bruno Haible  <bruno@clisp.org>
49906
49907         * modules/btowc-tests: New file.
49908         * tests/test-btowc1.sh: New file.
49909         * tests/test-btowc2.sh: New file.
49910         * tests/test-btowc.c: New file.
49911
49912         New module 'btowc'.
49913         * lib/wchar.in.h (btowc): New declaration.
49914         * lib/btowc.c: New file.
49915         * m4/btowc.m4: New file.
49916         * modules/btowc: New file.
49917         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49918         HAVE_BTOWC.
49919         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49920         * doc/posix-functions/btowc.texi: Document the new module.
49921
49922 2008-12-17  Bruno Haible  <bruno@clisp.org>
49923
49924         New module 'mbsinit'.
49925         * lib/wchar.in.h (mbsinit): New declaration.
49926         * lib/mbsinit.c: New file.
49927         * m4/mbsinit.m4: New file.
49928         * modules/mbsinit: New file.
49929         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49930         HAVE_MBSINIT.
49931         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49932         HAVE_MBSINIT.
49933         * doc/posix-functions/mbsinit.texi: Document the new module.
49934
49935 2008-12-16  Bruno Haible  <bruno@clisp.org>
49936
49937         * lib/unistd.in.h: Add comment.
49938         * tests/test-environ.c: Don't include <stdlib.h>.
49939
49940 2008-12-16  Bruno Haible  <bruno@clisp.org>
49941
49942         * lib/parse-duration.h (parse_duration): Document return value
49943         convention.
49944         * lib/parse-duration.c: Include specification header first. Add
49945         comments.
49946         (_): Remove macro.
49947         (parse_year_month_day, parse_hour_minute_second): Move side effects
49948         outside of strchr call.
49949         (parse_non_iso8601): Move side effects outside of isspace call.
49950         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49951         call.
49952
49953 2008-12-16  Bruno Haible  <bruno@clisp.org>
49954
49955         * tests/test-parse-duration.sh: Produce no output when the test
49956         succeeds.
49957
49958 2008-12-16  Bruno Haible  <bruno@clisp.org>
49959
49960         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49961         expressions.
49962
49963 2008-12-15  Bruno Haible  <bruno@clisp.org>
49964
49965         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49966         * doc/glibc-functions/flistxattr.texi: Likewise.
49967         * doc/glibc-functions/fopencookie.texi: Likewise.
49968         * doc/glibc-functions/fremovexattr.texi: Likewise.
49969         * doc/glibc-functions/fsetxattr.texi: Likewise.
49970         * doc/glibc-functions/getxattr.texi: Likewise.
49971         * doc/glibc-functions/lgetxattr.texi: Likewise.
49972         * doc/glibc-functions/listxattr.texi: Likewise.
49973         * doc/glibc-functions/llistxattr.texi: Likewise.
49974         * doc/glibc-functions/lremovexattr.texi: Likewise.
49975         * doc/glibc-functions/lsetxattr.texi: Likewise.
49976         * doc/glibc-functions/removexattr.texi: Likewise.
49977         * doc/glibc-functions/setxattr.texi: Likewise.
49978         * doc/posix-functions/open_memstream.texi: Likewise.
49979
49980 2008-12-15  Eric Blake  <ebb9@byu.net>
49981
49982         Update doc for cygwin 1.7.
49983         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49984         functions.
49985         * doc/posix-functions/fchmodat.texi: Likewise.
49986         * doc/posix-functions/fchownat.texi: Likewise.
49987         * doc/posix-functions/fdopendir.texi: Likewise.
49988         * doc/posix-functions/fmemopen.texi: Likewise.
49989         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49990         * doc/posix-functions/fstatat.texi: Likewise.
49991         * doc/posix-functions/futimens.texi: Likewise.
49992         * doc/posix-functions/gai_strerror.texi: Likewise.
49993         * doc/posix-functions/getaddrinfo.texi: Likewise.
49994         * doc/posix-functions/getnameinfo.texi: Likewise.
49995         * doc/posix-functions/if_freenameindex.texi: Likewise.
49996         * doc/posix-functions/if_indextoname.texi: Likewise.
49997         * doc/posix-functions/if_nameindex.texi: Likewise.
49998         * doc/posix-functions/if_nametoindex.texi: Likewise.
49999         * doc/posix-functions/insque.texi: Likewise.
50000         * doc/posix-functions/linkat.texi: Likewise.
50001         * doc/posix-functions/llrint.texi: Likewise.
50002         * doc/posix-functions/llrintf.texi: Likewise.
50003         * doc/posix-functions/llrintl.texi: Likewise.
50004         * doc/posix-functions/lockf.texi: Likewise.
50005         * doc/posix-functions/lrintl.texi: Likewise.
50006         * doc/posix-functions/mkdirat.texi: Likewise.
50007         * doc/posix-functions/mkfifoat.texi: Likewise.
50008         * doc/posix-functions/mknodat.texi: Likewise.
50009         * doc/posix-functions/mq_close.texi: Likewise.
50010         * doc/posix-functions/mq_getattr.texi: Likewise.
50011         * doc/posix-functions/mq_notify.texi: Likewise.
50012         * doc/posix-functions/mq_open.texi: Likewise.
50013         * doc/posix-functions/mq_receive.texi: Likewise.
50014         * doc/posix-functions/mq_send.texi: Likewise.
50015         * doc/posix-functions/mq_setattr.texi: Likewise.
50016         * doc/posix-functions/mq_timedreceive.texi: Likewise.
50017         * doc/posix-functions/mq_timedsend.texi: Likewise.
50018         * doc/posix-functions/mq_unlink.texi: Likewise.
50019         * doc/posix-functions/open_memstream.texi: Likewise.
50020         * doc/posix-functions/openat.texi: Likewise.
50021         * doc/posix-functions/posix_fadvise.texi: Likewise.
50022         * doc/posix-functions/posix_fallocate.texi: Likewise.
50023         * doc/posix-functions/posix_madvise.texi: Likewise.
50024         * doc/posix-functions/posix_memalign.texi: Likewise.
50025         * doc/posix-functions/posix_openpt.texi: Likewise.
50026         * doc/posix-functions/readlinkat.texi: Likewise.
50027         * doc/posix-functions/remque.texi: Likewise.
50028         * doc/posix-functions/renameat.texi: Likewise.
50029         * doc/posix-functions/rintl.texi: Likewise.
50030         * doc/posix-functions/sem_unlink.texi: Likewise.
50031         * doc/posix-functions/shm_open.texi: Likewise.
50032         * doc/posix-functions/shm_unlink.texi: Likewise.
50033         * doc/posix-functions/signgam.texi: Likewise.
50034         * doc/posix-functions/sigset.texi: Likewise.
50035         * doc/posix-functions/stpcpy.texi: Likewise.
50036         * doc/posix-functions/stpncpy.texi: Likewise.
50037         * doc/posix-functions/strerror.texi: Likewise.
50038         * doc/posix-functions/strtod.texi: Likewise.
50039         * doc/posix-functions/symlinkat.texi: Likewise.
50040         * doc/posix-functions/unlinkat.texi: Likewise.
50041         * doc/posix-functions/utimensat.texi: Likewise.
50042         * doc/glibc-functions/bindresvport.texi: Likewise.
50043         * doc/glibc-functions/dn_expand.texi: Likewise.
50044         * doc/glibc-functions/exp10.texi: Likewise.
50045         * doc/glibc-functions/exp10f.texi: Likewise.
50046         * doc/glibc-functions/fgetxattr.texi: Likewise.
50047         * doc/glibc-functions/flistxattr.texi: Likewise.
50048         * doc/glibc-functions/fopencookie.texi: Likewise.
50049         * doc/glibc-functions/freeifaddrs.texi: Likewise.
50050         * doc/glibc-functions/fremovexattr.texi: Likewise.
50051         * doc/glibc-functions/fsetxattr.texi: Likewise.
50052         * doc/glibc-functions/getifaddrs.texi: Likewise.
50053         * doc/glibc-functions/getxattr.texi: Likewise.
50054         * doc/glibc-functions/lgetxattr.texi: Likewise.
50055         * doc/glibc-functions/listxattr.texi: Likewise.
50056         * doc/glibc-functions/llistxattr.texi: Likewise.
50057         * doc/glibc-functions/lremovexattr.texi: Likewise.
50058         * doc/glibc-functions/lsetxattr.texi: Likewise.
50059         * doc/glibc-functions/pow10.texi: Likewise.
50060         * doc/glibc-functions/pow10f.texi: Likewise.
50061         * doc/glibc-functions/rcmd_af.texi: Likewise.
50062         * doc/glibc-functions/removexattr.texi: Likewise.
50063         * doc/glibc-functions/res_init.texi: Likewise.
50064         * doc/glibc-functions/res_mkquery.texi: Likewise.
50065         * doc/glibc-functions/res_query.texi: Likewise.
50066         * doc/glibc-functions/res_querydomain.texi: Likewise.
50067         * doc/glibc-functions/res_send.texi: Likewise.
50068         * doc/glibc-functions/rresvport_af.texi: Likewise.
50069         * doc/glibc-functions/setxattr.texi: Likewise.
50070         * doc/glibc-functions/strcasestr.texi: Likewise.
50071
50072 2008-12-15  Bruno Haible  <bruno@clisp.org>
50073
50074         Fix compilation error on OSF/1 4.0.
50075         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
50076         <sys/time.h>, simply delegate to the system header.
50077         Reported by Daniel Richard G. <oss@teragram.com>.
50078
50079 2008-12-15  Bruno Haible  <bruno@clisp.org>
50080
50081         * doc/posix-functions/openat.texi: Mention the 'openat' module.
50082         * doc/posix-functions/fchmodat.texi: Likewise.
50083         * doc/posix-functions/fchownat.texi: Likewise.
50084         * doc/posix-functions/fdopendir.texi: Likewise.
50085         * doc/posix-functions/fstatat.texi: Likewise.
50086         * doc/posix-functions/mkdirat.texi: Likewise.
50087         * doc/posix-functions/unlinkat.texi: Likewise.
50088
50089 2008-12-14  Bruno Haible  <bruno@clisp.org>
50090
50091         Update doc for POSIX:2008.
50092         * doc/posix-functions/faccessat.texi: New file.
50093         * doc/posix-functions/fchmodat.texi: New file.
50094         * doc/posix-functions/fchownat.texi: New file.
50095         * doc/posix-functions/fdopendir.texi: New file.
50096         * doc/posix-functions/fstatat.texi: New file.
50097         * doc/posix-functions/futimens.texi: New file.
50098         * doc/posix-functions/linkat.texi: New file.
50099         * doc/posix-functions/mkdirat.texi: New file.
50100         * doc/posix-functions/mkfifoat.texi: New file.
50101         * doc/posix-functions/mknodat.texi: New file.
50102         * doc/posix-functions/open_wmemstream.texi: New file.
50103         * doc/posix-functions/openat.texi: New file.
50104         * doc/posix-functions/psiginfo.texi: New file.
50105         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
50106         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
50107         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
50108         * doc/posix-functions/readlinkat.texi: New file.
50109         * doc/posix-functions/renameat.texi: New file.
50110         * doc/posix-functions/strerror_l.texi: New file.
50111         * doc/posix-functions/symlinkat.texi: New file.
50112         * doc/posix-functions/unlinkat.texi: New file.
50113         * doc/posix-functions/utimensat.texi: New file.
50114         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50115
50116 2008-12-14  Bruno Haible  <bruno@clisp.org>
50117
50118         Update doc for POSIX:2008.
50119         * doc/posix-functions/alphasort.texi: Renamed from
50120         doc/glibc-functions/alphasort.texi.
50121         * doc/posix-functions/dirfd.texi: Renamed from
50122         doc/glibc-functions/dirfd.texi.
50123         * doc/posix-functions/dprintf.texi: Renamed from
50124         doc/glibc-functions/dprintf.texi.
50125         * doc/posix-functions/duplocale.texi: Renamed from
50126         doc/glibc-functions/duplocale.texi.
50127         * doc/posix-functions/fexecve.texi: Renamed from
50128         doc/glibc-functions/fexecve.texi.
50129         * doc/posix-functions/fmemopen.texi: Renamed from
50130         doc/glibc-functions/fmemopen.texi.
50131         * doc/posix-functions/freelocale.texi: Renamed from
50132         doc/glibc-functions/freelocale.texi.
50133         * doc/posix-functions/getdate_err.texi: Renamed from
50134         doc/glibc-functions/getdate_err.texi.
50135         * doc/posix-functions/isalnum_l.texi: Renamed from
50136         doc/glibc-functions/isalnum_l.texi.
50137         * doc/posix-functions/isalpha_l.texi: Renamed from
50138         doc/glibc-functions/isalpha_l.texi.
50139         * doc/posix-functions/isblank_l.texi: Renamed from
50140         doc/glibc-functions/isblank_l.texi.
50141         * doc/posix-functions/iscntrl_l.texi: Renamed from
50142         doc/glibc-functions/iscntrl_l.texi.
50143         * doc/posix-functions/isdigit_l.texi: Renamed from
50144         doc/glibc-functions/isdigit_l.texi.
50145         * doc/posix-functions/isgraph_l.texi: Renamed from
50146         doc/glibc-functions/isgraph_l.texi.
50147         * doc/posix-functions/islower_l.texi: Renamed from
50148         doc/glibc-functions/islower_l.texi.
50149         * doc/posix-functions/isprint_l.texi: Renamed from
50150         doc/glibc-functions/isprint_l.texi.
50151         * doc/posix-functions/ispunct_l.texi: Renamed from
50152         doc/glibc-functions/ispunct_l.texi.
50153         * doc/posix-functions/isspace_l.texi: Renamed from
50154         doc/glibc-functions/isspace_l.texi.
50155         * doc/posix-functions/isupper_l.texi: Renamed from
50156         doc/glibc-functions/isupper_l.texi.
50157         * doc/posix-functions/iswalnum_l.texi: Renamed from
50158         doc/glibc-functions/iswalnum_l.texi.
50159         * doc/posix-functions/iswalpha_l.texi: Renamed from
50160         doc/glibc-functions/iswalpha_l.texi.
50161         * doc/posix-functions/iswblank_l.texi: Renamed from
50162         doc/glibc-functions/iswblank_l.texi.
50163         * doc/posix-functions/iswcntrl_l.texi: Renamed from
50164         doc/glibc-functions/iswcntrl_l.texi.
50165         * doc/posix-functions/iswctype_l.texi: Renamed from
50166         doc/glibc-functions/iswctype_l.texi.
50167         * doc/posix-functions/iswdigit_l.texi: Renamed from
50168         doc/glibc-functions/iswdigit_l.texi.
50169         * doc/posix-functions/iswgraph_l.texi: Renamed from
50170         doc/glibc-functions/iswgraph_l.texi.
50171         * doc/posix-functions/iswlower_l.texi: Renamed from
50172         doc/glibc-functions/iswlower_l.texi.
50173         * doc/posix-functions/iswprint_l.texi: Renamed from
50174         doc/glibc-functions/iswprint_l.texi.
50175         * doc/posix-functions/iswpunct_l.texi: Renamed from
50176         doc/glibc-functions/iswpunct_l.texi.
50177         * doc/posix-functions/iswspace_l.texi: Renamed from
50178         doc/glibc-functions/iswspace_l.texi.
50179         * doc/posix-functions/iswupper_l.texi: Renamed from
50180         doc/glibc-functions/iswupper_l.texi.
50181         * doc/posix-functions/iswxdigit_l.texi: Renamed from
50182         doc/glibc-functions/iswxdigit_l.texi.
50183         * doc/posix-functions/isxdigit_l.texi: Renamed from
50184         doc/glibc-functions/isxdigit_l.texi.
50185         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
50186         doc/glibc-functions/mbsnrtowcs.texi.
50187         * doc/posix-functions/mkdtemp.texi: Renamed from
50188         doc/glibc-functions/mkdtemp.texi.
50189         * doc/posix-functions/newlocale.texi: Renamed from
50190         doc/glibc-functions/newlocale.texi.
50191         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
50192         doc/glibc-functions/nl_langinfo_l.texi.
50193         * doc/posix-functions/open_memstream.texi: Renamed from
50194         doc/glibc-functions/open_memstream.texi.
50195         * doc/posix-functions/opterr.texi: Renamed from
50196         doc/glibc-functions/opterr.texi.
50197         * doc/posix-functions/optind.texi: Renamed from
50198         doc/glibc-functions/optind.texi.
50199         * doc/posix-functions/optopt.texi: Renamed from
50200         doc/glibc-functions/optopt.texi.
50201         * doc/posix-functions/psignal.texi: Renamed from
50202         doc/glibc-functions/psignal.texi.
50203         * doc/posix-functions/scandir.texi: Renamed from
50204         doc/glibc-functions/scandir.texi.
50205         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
50206         doc/glibc-functions/sched_get_priority_min.texi.
50207         * doc/posix-functions/signgam.texi: Renamed from
50208         doc/glibc-functions/signgam.texi.
50209         * doc/posix-functions/stpcpy.texi: Renamed from
50210         doc/glibc-functions/stpcpy.texi.
50211         * doc/posix-functions/stpncpy.texi: Renamed from
50212         doc/glibc-functions/stpncpy.texi.
50213         * doc/posix-functions/strcasecmp_l.texi: Renamed from
50214         doc/glibc-functions/strcasecmp_l.texi.
50215         * doc/posix-functions/strcoll_l.texi: Renamed from
50216         doc/glibc-functions/strcoll_l.texi.
50217         * doc/posix-functions/strfmon_l.texi: Renamed from
50218         doc/glibc-functions/strfmon_l.texi.
50219         * doc/posix-functions/strftime_l.texi: Renamed from
50220         doc/glibc-functions/strftime_l.texi.
50221         * doc/posix-functions/strncasecmp_l.texi: Renamed from
50222         doc/glibc-functions/strncasecmp_l.texi.
50223         * doc/posix-functions/strndup.texi: Renamed from
50224         doc/glibc-functions/strndup.texi.
50225         * doc/posix-functions/strnlen.texi: Renamed from
50226         doc/glibc-functions/strnlen.texi.
50227         * doc/posix-functions/strsignal.texi: Renamed from
50228         doc/glibc-functions/strsignal.texi.
50229         * doc/posix-functions/strxfrm_l.texi: Renamed from
50230         doc/glibc-functions/strxfrm_l.texi.
50231         * doc/posix-functions/timer_gettime.texi: Renamed from
50232         doc/glibc-functions/timer_gettime.texi.
50233         * doc/posix-functions/tolower_l.texi: Renamed from
50234         doc/glibc-functions/tolower_l.texi.
50235         * doc/posix-functions/toupper_l.texi: Renamed from
50236         doc/glibc-functions/toupper_l.texi.
50237         * doc/posix-functions/towctrans_l.texi: Renamed from
50238         doc/glibc-functions/towctrans_l.texi.
50239         * doc/posix-functions/towlower_l.texi: Renamed from
50240         doc/glibc-functions/towlower_l.texi.
50241         * doc/posix-functions/towupper_l.texi: Renamed from
50242         doc/glibc-functions/towupper_l.texi.
50243         * doc/posix-functions/uselocale.texi: Renamed from
50244         doc/glibc-functions/uselocale.texi.
50245         * doc/posix-functions/vdprintf.texi: Renamed from
50246         doc/glibc-functions/vdprintf.texi.
50247         * doc/posix-functions/wcpcpy.texi:
50248         Renamed from doc/glibc-functions/wcpcpy.texi.
50249         * doc/posix-functions/wcpncpy.texi: Renamed from
50250         doc/glibc-functions/wcpncpy.texi.
50251         * doc/posix-functions/wcscasecmp.texi: Renamed from
50252         doc/glibc-functions/wcscasecmp.texi.
50253         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
50254         doc/glibc-functions/wcscasecmp_l.texi.
50255         * doc/posix-functions/wcscoll_l.texi: Renamed from
50256         doc/glibc-functions/wcscoll_l.texi.
50257         * doc/posix-functions/wcsdup.texi: Renamed from
50258         doc/glibc-functions/wcsdup.texi.
50259         * doc/posix-functions/wcsncasecmp.texi: Renamed from
50260         doc/glibc-functions/wcsncasecmp.texi.
50261         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
50262         doc/glibc-functions/wcsncasecmp_l.texi.
50263         * doc/posix-functions/wcsnlen.texi: Renamed from
50264         doc/glibc-functions/wcsnlen.texi.
50265         * doc/posix-functions/wcsnrtombs.texi: Renamed from
50266         doc/glibc-functions/wcsnrtombs.texi.
50267         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
50268         doc/glibc-functions/wcsxfrm_l.texi.
50269         * doc/posix-functions/wctrans_l.texi: Renamed from
50270         doc/glibc-functions/wctrans_l.texi.
50271         * doc/posix-functions/wctype_l.texi: Renamed from
50272         doc/glibc-functions/wctype_l.texi.
50273         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50274         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
50275         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
50276         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
50277         these subsections.
50278         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
50279         Remove sections.
50280
50281 2008-12-14  Bruno Haible  <bruno@clisp.org>
50282
50283         Update doc for POSIX:2008.
50284         * doc/posix-functions/*.texi: Update URL of POSIX specification.
50285
50286 2008-12-14  Bruno Haible  <bruno@clisp.org>
50287
50288         Update doc for POSIX:2008.
50289         * doc/pastposix-functions/bcmp.texi: Renamed from
50290         doc/posix-functions/bcmp.texi.
50291         * doc/pastposix-functions/bcopy.texi: Renamed from
50292         doc/posix-functions/bcopy.texi.
50293         * doc/pastposix-functions/bsd_signal.texi: Renamed from
50294         doc/posix-functions/bsd_signal.texi.
50295         * doc/pastposix-functions/bzero.texi: Renamed from
50296         doc/posix-functions/bzero.texi.
50297         * doc/pastposix-functions/ecvt.texi: Renamed from
50298         doc/posix-functions/ecvt.texi.
50299         * doc/pastposix-functions/fcvt.texi: Renamed from
50300         doc/posix-functions/fcvt.texi.
50301         * doc/pastposix-functions/ftime.texi: Renamed from
50302         doc/posix-functions/ftime.texi.
50303         * doc/pastposix-functions/gcvt.texi: Renamed from
50304         doc/posix-functions/gcvt.texi.
50305         * doc/pastposix-functions/getcontext.texi: Renamed from
50306         doc/posix-functions/getcontext.texi.
50307         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
50308         doc/posix-functions/gethostbyaddr.texi.
50309         * doc/pastposix-functions/gethostbyname.texi: Renamed from
50310         doc/posix-functions/gethostbyname.texi.
50311         * doc/pastposix-functions/getwd.texi: Renamed from
50312         doc/posix-functions/getwd.texi.
50313         * doc/pastposix-functions/h_errno.texi: Renamed from
50314         doc/posix-functions/h_errno.texi.
50315         * doc/pastposix-functions/index.texi: Renamed from
50316         doc/posix-functions/index.texi.
50317         * doc/pastposix-functions/makecontext.texi: Renamed from
50318         doc/posix-functions/makecontext.texi.
50319         * doc/pastposix-functions/mktemp.texi: Renamed from
50320         doc/posix-functions/mktemp.texi.
50321         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
50322         doc/posix-functions/pthread_attr_getstackaddr.texi.
50323         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
50324         doc/posix-functions/pthread_attr_setstackaddr.texi.
50325         * doc/pastposix-functions/rindex.texi: Renamed from
50326         doc/posix-functions/rindex.texi.
50327         * doc/pastposix-functions/scalb.texi: Renamed from
50328         doc/posix-functions/scalb.texi.
50329         * doc/pastposix-functions/setcontext.texi: Renamed from
50330         doc/posix-functions/setcontext.texi.
50331         * doc/pastposix-functions/swapcontext.texi: Renamed from
50332         doc/posix-functions/swapcontext.texi.
50333         * doc/pastposix-functions/ualarm.texi: Renamed from
50334         doc/posix-functions/ualarm.texi.
50335         * doc/pastposix-functions/usleep.texi: Renamed from
50336         doc/posix-functions/usleep.texi.
50337         * doc/pastposix-functions/vfork.texi: Renamed from
50338         doc/posix-functions/vfork.texi.
50339         * doc/pastposix-functions/wcswcs.texi: Renamed from
50340         doc/posix-functions/wcswcs.texi.
50341         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
50342         (Function Substitutes): Update.
50343
50344 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50345
50346         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
50347         m4/strerror.m4.
50348
50349 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50350             Bruno Haible  <bruno@clisp.org>
50351
50352         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
50353
50354 2008-12-13  Bruno Haible  <bruno@clisp.org>
50355
50356         * modules/strtoull (Depends-on): Remove unistd.
50357
50358 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50359
50360         * modules/strtoull (Depends-on): Add stdlib.
50361
50362 2008-12-11  Simon Josefsson  <simon@josefsson.org>
50363
50364         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
50365
50366 2008-12-10  Jim Meyering  <meyering@redhat.com>
50367
50368         gl_ASSERT: don't say assertions are disabled when they're not
50369         * m4/assert.m4 (gl_ASSERT): Do not make configure report
50370         "checking whether to enable assertions... no", when they are in
50371         fact enabled.  This is solely a bug in the output of configure.
50372         In spite of saying "no", NDEBUG was not defined in that case.
50373         Also, as noted by Eric Blake, leave assertions enabled upon
50374         --enable-assert=INVALID.
50375
50376 2008-12-10  Bruno Haible  <bruno@clisp.org>
50377
50378         Change MODULES.html to refer to POSIX:2008 where possible.
50379         * MODULES.html.sh (POSIX2008_URL): New variable.
50380         (posix_headers): Remove sys/timeb, ucontext.
50381         (posix2001_headers): New variable.
50382         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
50383         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
50384         index, makecontext, mktemp, pthread_attr_getstackaddr,
50385         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
50386         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
50387         (posix2001_functions): New variable.
50388         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
50389         otherwise.
50390
50391 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50392
50393         add missing include to parse-duration.c
50394         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
50395         * modules/parse-duration (Depends-on): Add xalloc.
50396
50397         fix sed script reading maint.mk
50398         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
50399         (syntax-check-rules): Use it.
50400
50401 2008-12-09  Bruno Haible  <bruno@clisp.org>
50402
50403         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
50404         MacOS X 10.4/PowerPC.
50405         Reported by Simon Josefsson.
50406
50407 2008-12-08  Jim Meyering  <meyering@redhat.com>
50408
50409         work around mingw's lack of some S_IF definitions
50410         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
50411         Reported by Simon Josefsson.
50412
50413 2008-12-08  Bruno Haible  <bruno@clisp.org>
50414
50415         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
50416         applied to variables. Needed on MacOS X 10.4/PowerPC.
50417         Reported by Simon Josefsson.
50418
50419 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
50420         and Eric Blake  <ebb9@byu.net>
50421
50422         assert: honor --enable-assert
50423         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
50424         order to honor --enable-assert, rather than treating it as a
50425         synonym for --disable-assert.
50426
50427 2008-12-08  Jim Meyering  <meyering@redhat.com>
50428
50429         * lib/posixtm.c: Remove now-useless declaration of mktime.
50430
50431         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
50432
50433 2008-12-07  Bruno Haible  <bruno@clisp.org>
50434
50435         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
50436         test_once): Mark functions as static.
50437         * tests/test-tls.c (test_tls): Likewise.
50438
50439 2008-12-07  Bruno Haible  <bruno@clisp.org>
50440
50441         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
50442         iconv_register_autodetect.
50443
50444 2008-12-07  Jim Meyering  <meyering@redhat.com>
50445
50446         posixtm.c: avoid a warning
50447         * lib/posixtm.c (posixtime): Don't initialize tm0.
50448         It's no longer needed to placate gcc4's -Wuninitialized,
50449         and the attempt to placate would elicit a new warning.
50450
50451         unicodeio.c: mark unused parameters
50452         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50453         (fallback_failure_callback): Likewise.
50454
50455 2008-12-07  Bruno Haible  <bruno@clisp.org>
50456
50457         * gnulib-tool (func_create_testdir): When building the tests
50458         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
50459         Reported by Simon Josefsson.
50460
50461 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50462
50463         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
50464
50465 2008-12-06  Bruno Haible  <bruno@clisp.org>
50466
50467         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
50468         Suggested by Eric Blake.
50469
50470 2008-12-06  Bruno Haible  <bruno@clisp.org>
50471
50472         Fix a c-stack test failure on MacOS X.
50473         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
50474         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
50475         handler for SIGBUS as well.
50476         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
50477         install a signal handler for SIGBUS as well.
50478         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
50479
50480 2008-12-06  Bruno Haible  <bruno@clisp.org>
50481
50482         Advocacy documentation.
50483         * doc/gnulib-intro.texi (Benefits): New section.
50484         * doc/gnulib.texi: Update.
50485
50486 2008-12-06  Bruno Haible  <bruno@clisp.org>
50487
50488         Document the 'manywarnings' module.
50489         * doc/manywarnings.texi: New file.
50490         * doc/gnulib.texi: Include it.
50491
50492 2008-12-05  Eric Blake  <ebb9@byu.net>
50493
50494         tests: silence some gcc warnings
50495         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
50496         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
50497         type mismatches.
50498
50499 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50500             Bruno Haible  <bruno@clisp.org>
50501
50502         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
50503
50504 2008-11-29  Jim Meyering  <meyering@redhat.com>
50505
50506         unicodeio.c: mark unused parameters
50507         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50508         (fallback_failure_callback): Likewise.
50509
50510         fts: fix a thinko
50511         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
50512         (set_stat_type): Return S_IF*-valued "type" directly.
50513         Prompted by James Youngman's spotting a related bug.
50514         Confirmed by further testing through find.
50515
50516         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
50517         * lib/fts.c (D_TYPE): Define.
50518         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
50519         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
50520         (s_ifmt_shift_bits): New function.
50521         (set_stat_type): New function.
50522         (fts_build): When not calling fts_stat, call set_stat_type
50523         to propagate dirent.d_type info to fts_read caller.
50524         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
50525         fts_statp->st_mode type information may be valid.
50526
50527 2008-11-28  Simon Josefsson  <simon@josefsson.org>
50528
50529         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
50530         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
50531         <sds@gnu.org>.
50532
50533 2008-11-20  Bruno Haible  <bruno@clisp.org>
50534
50535         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
50536         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
50537         INCLUDE_NEXT.
50538         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
50539         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
50540         * modules/math (Makefile.am): Substitute
50541         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
50542         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50543
50544 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
50545             Bruno Haible  <bruno@clisp.org>
50546
50547         * lib/stdint.in.h: Define all type macros so that their expansion is
50548         a single typedef'ed token. Fixes a compilation failure in Boost which
50549         does "using ::int8_t;".
50550
50551 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50552
50553         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
50554         gl_MANYWARN_ALL_GCC.
50555         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
50556         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50557         * modules/manywarnings: New file.
50558         * MODULES.html.sh: Mention manywarnings module.
50559
50560 2008-11-18  Bruno Haible  <bruno@clisp.org>
50561
50562         * doc/gnulib-tool.texi (Unit tests): New section.
50563
50564 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50565
50566         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50567         paths like 'lib/po/foo.po'.
50568
50569 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50570
50571         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50572         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50573
50574 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50575
50576         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50577         parameter works.
50578
50579 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50580
50581         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50582
50583 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50584
50585         * modules/parse-duration-tests: New file.
50586         * tests/test-parse-duration.sh: New file.
50587         * tests/test-parse-duration.c: New file.
50588
50589         New module 'parse-duration'.
50590         * lib/parse-duration.h: New file.
50591         * lib/parse-duration.c: New file.
50592         * modules/parse-duration: New file.
50593
50594 2008-11-17  Bruno Haible  <bruno@clisp.org>
50595
50596         * tests/test-select-out.sh: Comment out the first pipe test.
50597         Reported by Simon Josefsson.
50598
50599 2008-11-17  Bruno Haible  <bruno@clisp.org>
50600
50601         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50602         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50603         gl_HOSTENT.
50604
50605 2008-11-17  Bruno Haible  <bruno@clisp.org>
50606
50607         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50608         -lnetwork and -lnet. Needed for Haiku and BeOS.
50609
50610 2008-11-16  Bruno Haible  <bruno@clisp.org>
50611
50612         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50613
50614 2008-11-16  Bruno Haible  <bruno@clisp.org>
50615
50616         Avoid test failure on Haiku.
50617         * tests/test-fsync.c: Include <errno.h>.
50618         (main): Don't require that fsync (0) fails.
50619
50620 2008-11-15  Bruno Haible  <bruno@clisp.org>
50621
50622         New module 'hostent'.
50623         * modules/hostent: New file.
50624         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50625
50626 2008-11-15  Bruno Haible  <bruno@clisp.org>
50627
50628         New module 'servent'.
50629         * modules/servent: New file.
50630         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50631
50632 2008-11-15  Bruno Haible  <bruno@clisp.org>
50633
50634         Avoid generating same test program with two different rules.
50635         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50636         test-frexp to test-frexp-nolibm.
50637         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50638         test-frexpl to test-frexpl-nolibm.
50639
50640 2008-11-15  Bruno Haible  <bruno@clisp.org>
50641
50642         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50643         $(FREXPL_LIBM).
50644
50645 2008-11-15  Bruno Haible  <bruno@clisp.org>
50646
50647         * lib/netdb.in.h: Activate the definitions also when the system's
50648         <netdb.h> has 'struct addrinfo'.
50649         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50650         EAI_OVERFLOW or AI_NUMERICSERV.
50651         * doc/posix-headers/netdb.texi: Document the problem.
50652
50653 2008-11-15  Bruno Haible  <bruno@clisp.org>
50654
50655         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50656
50657         Make the 'sched' module work on platforms where <sched.h> exists but
50658         is incomplete (such as Haiku).
50659         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50660         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50661         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50662         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50663         HAVE_STRUCT_SCHED_PARAM.
50664         * modules/sched (Depends-on): Add include_next.
50665         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50666         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50667         * doc/posix-headers/sched.texi: Document the issue.
50668
50669 2008-11-13  Jim Meyering  <meyering@redhat.com>
50670
50671         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50672         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50673         test would fail due to the difference in the Report bugs to ...
50674         line.  The expected address is empty, "<>", while the actual
50675         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50676
50677 2008-11-12  Bruno Haible  <bruno@clisp.org>
50678
50679         lstat: don't compile lstat.c on systems lacking lstat
50680         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50681         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50682         Reported by Daniel P. Berrange via Jim Meyering.
50683
50684 2008-11-12  Jim Meyering  <meyering@redhat.com>
50685
50686         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50687
50688 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50689
50690         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50691         instead.
50692
50693 2008-11-12  Bruno Haible  <bruno@clisp.org>
50694
50695         * lib/unicodeio.c: Include unistr.h.
50696         (utf8_wctomb): Remove function.
50697         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50698
50699 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50700
50701         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50702         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50703         <bruno@clisp.org>.
50704         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50705
50706 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50707
50708         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50709         * doc/gnulib.texi: Add section for warnings.
50710
50711 2008-11-11  Bruno Haible  <bruno@clisp.org>
50712
50713         * lib/sockets.h: Add a comment.
50714
50715 2008-11-11  Karl Berry  <karl@gnu.org>
50716
50717         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50718
50719 2008-11-11  Eric Blake  <ebb9@byu.net>
50720
50721         fdl.texi: avoid git symlinks
50722         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50723
50724 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50725
50726         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50727
50728 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50729
50730         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50731         (gl_WARN_ADD): Substitute $2 if literal.
50732
50733 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50734
50735         * m4/warning.m4: Remove.
50736
50737 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50738
50739         * m4/warnings.m4: Almost complete rewrite. :-)
50740
50741 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50742
50743         * modules/warnings: New module.
50744         * m4/warnings.m4: New file.
50745         * MODULES.html.sh: Mention warnings module.
50746         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50747         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50748
50749 2008-11-10  Eric Blake  <ebb9@byu.net>
50750
50751         fdl.texi: make a symlink to the latest version
50752         * doc/standards.texi: Revert today's earlier change.
50753         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50754         * doc/fdl.texi: ...and replace this with a symlink to the newer
50755         fdl-1.3.texi.
50756
50757 2008-11-10  Bruno Haible  <bruno@clisp.org>
50758
50759         * tests/test-select-fd.c (main): Accept the result file name as fourth
50760         argument.
50761         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50762         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50763
50764 2008-11-10  Bruno Haible  <bruno@clisp.org>
50765
50766         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50767         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50768         as autoconf-substituted macros.
50769         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50770         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50771         gl_NETDB_H_DEFAULTS. Set these variables.
50772         * modules/netdb (Makefile.am): Substitute these variables.
50773
50774 2008-11-10  Eric Blake  <ebb9@byu.net>
50775
50776         standards.texi: include correct file for FDL 1.3
50777         * doc/standards.texi (GNU Free Documentation License): Change
50778         include file to pull in FDL 1.3, not 1.2.
50779
50780         fdl.texi: revert accidental change to license
50781         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50782
50783 2008-11-10  Bruno Haible  <bruno@clisp.org>
50784
50785         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50786         cross-compiling guesses also when the native compile gives no result.
50787
50788 2008-11-10  Bruno Haible  <bruno@clisp.org>
50789
50790         * lib/spawni.c (__spawni): Force variable into the stack.
50791
50792 2008-11-10  Bruno Haible  <bruno@clisp.org>
50793
50794         Add support for Haiku.
50795         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50796         glibc and BeOS, but also on Haiku.
50797         * lib/fpurge.c (fpurge): Likewise.
50798         * lib/freadable.c (freadable): Likewise.
50799         * lib/freadahead.c (freadahead): Likewise.
50800         * lib/freading.c (freading): Likewise.
50801         * lib/freadptr.c (freadptr): Likewise.
50802         * lib/freadseek.c (freadptrinc): Likewise.
50803         * lib/fseeko.c (rpl_fseeko): Likewise.
50804         * lib/fseterr.c (fseterr): Likewise.
50805         * lib/fwritable.c (fwritable): Likewise.
50806         * lib/fwriting.c (fwriting): Likewise.
50807         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50808
50809 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50810
50811         * lib/config.charset: Treat Haiku like BeOS.
50812
50813 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50814
50815         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50816         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50817
50818 2008-11-08  Bruno Haible  <bruno@clisp.org>
50819
50820         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50821         AC_CACHE_CHECK.
50822
50823 2008-11-08  Bruno Haible  <bruno@clisp.org>
50824
50825         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50826
50827 2008-11-08  Bruno Haible  <bruno@clisp.org>
50828
50829         * tests/test-select-fd.c: New file.
50830         * tests/test-select-in.sh: New file.
50831         * tests/test-select-out.sh: New file.
50832         * tests/test-select-stdin.c: New file.
50833         * modules/select-tests (Files): Add the new files.
50834         (Depends-on): Add gettimeofday.
50835         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50836         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50837         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50838
50839 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50840             Bruno Haible  <bruno@clisp.org>
50841
50842         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50843
50844 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50845
50846         * build-aux/pmccabe2html: Added support for C++ source files.
50847
50848 2008-11-05  Ben Pfaff  <blp@gnu.org>
50849
50850         Fix lib/close.c build on Windows.
50851         * modules/close (Files): Add lib/w32sock.h.
50852
50853 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50854
50855         Accept Bison's NEWS format.
50856         * build-aux/announce-gen (print_news_deltas): Tweak
50857         $re_prefix.
50858
50859 2008-11-04  Bruno Haible  <bruno@clisp.org>
50860
50861         * modules/random_r (Maintainer): Add glibc.
50862
50863 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50864
50865         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50866         by karl@freefriends.org (Karl Berry).
50867         * doc/alloca.texi: Likewise.
50868         * doc/c-ctype.texi: Likewise.
50869         * doc/c-strcase.texi: Likewise.
50870         * doc/c-strcaseeq.texi: Likewise.
50871         * doc/c-strcasestr.texi: Likewise.
50872         * doc/c-strstr.texi: Likewise.
50873         * doc/c-strtod.texi: Likewise.
50874         * doc/c-strtold.texi: Likewise.
50875         * doc/ctime.texi: Likewise.
50876         * doc/error.texi: Likewise.
50877         * doc/fdl.texi: Likewise.
50878         * doc/gcd.texi: Likewise.
50879         * doc/getdate.texi: Likewise.
50880         * doc/gnulib-intro.texi: Likewise.
50881         * doc/gnulib-tool.texi: Likewise.
50882         * doc/gnulib.texi: Likewise.
50883         * doc/inet_ntoa.texi: Likewise.
50884         * doc/maintain.texi: Likewise.
50885         * doc/make-stds.texi: Likewise.
50886         * doc/quote.texi: Likewise.
50887         * doc/regexprops-generic.texi: Likewise.
50888         * doc/standards.texi: Likewise.
50889         * doc/verify.texi: Likewise.
50890         * doc/visibility.texi: Likewise.
50891         * doc/gnulib.texi (GNU Free Documentation License): Include
50892         fdl-1.3.texi instead of fdl.texi.
50893
50894 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50895
50896         * doc/fdl-1.3.texi: New file, from
50897         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50898         * modules/fdl-1.3: Add.
50899         * MODULES.html.sh: Add fdl-1.3.
50900
50901 2008-11-03  Bruno Haible  <bruno@clisp.org>
50902
50903         Make determination of absolute name of header file work with AIX xlc.
50904         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50905         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50906         preprocessing.
50907         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50908         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50909
50910 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50911
50912         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50913         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50914         <ludo@gnu.org>.
50915
50916 2008-11-02  Bruno Haible  <bruno@clisp.org>
50917
50918         Mark 'strpbrk' obsolete.
50919         * modules/strpbrk (Status, Notice): New sections.
50920         * modules/strtok_r (Depends-on): Add strpbrk.
50921
50922 2008-11-02  Bruno Haible  <bruno@clisp.org>
50923
50924         Mark 'strdup' obsolete.
50925         * modules/strdup (Status, Notice): New sections.
50926         * modules/findprog (Depends-on): Add strdup.
50927         * modules/getaddrinfo (Depends-on): Likewise.
50928         * modules/localename (Depends-on): Likewise.
50929         * modules/relocatable-lib (Depends-on): Likewise.
50930         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50931         * modules/relocatable-prog (Depends-on): Likewise.
50932         * modules/trim (Depends-on): Likewise.
50933         * modules/unictype/gen-ctype (Depends-on): Likewise.
50934         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50935
50936 2008-11-02  Bruno Haible  <bruno@clisp.org>
50937
50938         Mark 'strcspn' obsolete.
50939         * modules/strcspn (Status, Notice): New sections.
50940
50941 2008-11-02  Bruno Haible  <bruno@clisp.org>
50942
50943         Mark 'rmdir' obsolete.
50944         * modules/rmdir (Status, Notice): New sections.
50945         * modules/clean-temp (Depends-on): Add rmdir.
50946         * modules/openat (Depends-on): Likewise.
50947
50948 2008-11-02  Bruno Haible  <bruno@clisp.org>
50949
50950         Mark 'raise' obsolete.
50951         * modules/raise (Status, Notice): New sections.
50952         (Include): Specify <signal.h>.
50953         * modules/stdio (Depends-on): Add raise.
50954         * modules/write (Depends-on): Likewise.
50955
50956 2008-11-02  Bruno Haible  <bruno@clisp.org>
50957
50958         Mark 'memset' obsolete.
50959         * modules/memset (Status, Notice): New sections.
50960
50961 2008-11-02  Bruno Haible  <bruno@clisp.org>
50962
50963         Mark 'memmove' obsolete.
50964         * modules/memmove (Status, Notice): New sections.
50965         * modules/argp (Depends-on): Add memmove.
50966         * modules/argz (Depends-on): Likewise.
50967         * modules/canonicalize (Depends-on): Likewise.
50968         * modules/canonicalize-lgpl (Depends-on): Likewise.
50969         * modules/fts (Depends-on): Likewise.
50970         * modules/getcwd (Depends-on): Likewise.
50971         * modules/human (Depends-on): Likewise.
50972         * modules/regex (Depends-on): Likewise.
50973         * modules/striconveh (Depends-on): Likewise.
50974         * modules/trim (Depends-on): Likewise.
50975         * modules/unistr/u8-move (Depends-on): Likewise.
50976         * modules/unistr/u16-move (Depends-on): Likewise.
50977         * modules/unistr/u32-move (Depends-on): Likewise.
50978
50979 2008-11-02  Bruno Haible  <bruno@clisp.org>
50980
50981         Mark 'memcpy' obsolete.
50982         * modules/memcpy (Status, Notice): New sections.
50983
50984 2008-11-02  Bruno Haible  <bruno@clisp.org>
50985
50986         Mark 'memcmp' obsolete.
50987         * modules/memcmp (Status, Notice): New sections.
50988         * modules/argmatch (Depends-on): Add memchr.
50989         * modules/backupfile (Depends-on): Likewise.
50990         * modules/c-strcasestr (Depends-on): Likewise.
50991         * modules/crypto/des (Depends-on): Likewise.
50992         * modules/csharpcomp (Depends-on): Likewise.
50993         * modules/fnmatch (Depends-on): Likewise.
50994         * modules/git-merge-changelog (Depends-on): Likewise.
50995         * modules/isnand (Depends-on): Likewise.
50996         * modules/isnand-nolibm (Depends-on): Likewise.
50997         * modules/isnanf (Depends-on): Likewise.
50998         * modules/isnanf-nolibm (Depends-on): Likewise.
50999         * modules/isnanl (Depends-on): Likewise.
51000         * modules/isnanl-nolibm (Depends-on): Likewise.
51001         * modules/mbchar (Depends-on): Likewise.
51002         * modules/memcoll (Depends-on): Likewise.
51003         * modules/quotearg (Depends-on): Likewise.
51004         * modules/regex (Depends-on): Likewise.
51005         * modules/relocatable-prog (Depends-on): Likewise.
51006         * modules/same (Depends-on): Likewise.
51007         * modules/signbit (Depends-on): Likewise.
51008         * modules/strcasestr-simple (Depends-on): Likewise.
51009         * modules/unictype/gen-ctype (Depends-on): Likewise.
51010         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51011         * modules/uniname/uniname (Depends-on): Likewise.
51012         * modules/unistr/u8-cmp (Depends-on): Likewise.
51013
51014 2008-11-02  Bruno Haible  <bruno@clisp.org>
51015
51016         Mark 'memchr' obsolete.
51017         * modules/memchr (Status, Notice): New sections.
51018         * modules/argp (Depends-on): Add memchr.
51019         * modules/base64 (Depends-on): Likewise.
51020         * modules/c-strcasestr (Depends-on): Likewise.
51021         * modules/chdir-long (Depends-on): Likewise.
51022         * modules/fnmatch (Depends-on): Likewise.
51023         * modules/getsubopt (Depends-on): Likewise.
51024         * modules/git-merge-changelog (Depends-on): Likewise.
51025         * modules/glob (Depends-on): Likewise.
51026         * modules/strcasestr-simple (Depends-on): Likewise.
51027         * modules/strnlen (Depends-on): Likewise.
51028
51029 2008-11-02  Bruno Haible  <bruno@clisp.org>
51030
51031         Mark 'atexit' obsolete.
51032         * modules/atexit (Status, Notice): New sections.
51033         * modules/chdir-long (Depends-on): Add atexit.
51034         * modules/wait-process (Depends-on): Likewise.
51035
51036 2008-11-02  Bruno Haible  <bruno@clisp.org>
51037
51038         * gnulib-tool: New option --with-obsolete.
51039         (func_usage): Document it.
51040         (func_modules_transitive_closure): Drop obsolete dependencies if
51041         incobsolete is not true.
51042         (func_import): Read and save the incobsolete variable to the cache.
51043
51044 2008-11-02  Bruno Haible  <bruno@clisp.org>
51045
51046         * modules/TEMPLATE-EXTENDED: New field 'Status'.
51047         * gnulib-tool: New option --extract-status.
51048         (func_usage): Document it.
51049         (sed_extract_prog): Recognize it.
51050         (func_get_status): New function.
51051
51052 2008-10-30  Simon Josefsson  <simon@josefsson.org>
51053
51054         * modules/sockets (License): Change from LGPL to LGPLv2+.
51055
51056 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51057
51058         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
51059
51060 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51061
51062         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51063         Mention times and sys_times.
51064         * modules/sys_times, modules/sys_times-tests: New modules.
51065         * modules/times, modules/times-tests: Likewise
51066         * m4/sys_times_h.m4: New file.
51067         * lib/sys_times.in.h: Likewise
51068         * lib/times.c: Likewise.
51069         * tests/test-sys_times.c: Likewise.
51070         * tests/test-times.c: Likewise.
51071         * doc/posix-headers/sys_times.texi: Update.
51072         * doc/posix-functions/times.texi: Update.
51073
51074 2008-10-28  Jim Meyering  <meyering@redhat.com>
51075
51076         * modules/tempname (Depends-on): Add lstat.
51077
51078         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
51079
51080 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51081
51082         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
51083         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
51084         using idiom used elsewhere in gnulib.
51085
51086 2008-10-27  Jim Meyering  <meyering@redhat.com>
51087
51088         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
51089
51090 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51091
51092         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
51093         TESTS_ENVIRONMENT, for shell scripts that needs to call built
51094         programs.
51095         * tests/test-argp-2.sh: Use $EXEEXT when needed.
51096
51097 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51098
51099         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
51100
51101 2008-10-27  Bruno Haible  <bruno@clisp.org>
51102
51103         * tests/test-lstat.c: Include <stdio.h>.
51104
51105 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51106
51107         * modules/lstat-tests: New module.
51108         * tests/test-lstat.c: New file.
51109
51110 2008-10-26  Jim Meyering  <meyering@redhat.com>
51111
51112         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
51113
51114 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51115             Bruno Haible  <bruno@clisp.org>
51116
51117         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
51118         * modules/configmake (Include): Add a note that the include must come
51119         after all system headers.
51120         * lib/javaversion.c: Include configmake.h after all other includes.
51121
51122 2008-10-26  Bruno Haible  <bruno@clisp.org>
51123
51124         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
51125         HAVE_STRUCT_RANDOM_DATA to 1.
51126         (gl_STDLIB_H): Simplify.
51127
51128 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51129
51130         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
51131         substitute HAVE_STRUCT_RANDOM_DATA.
51132         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
51133         random_data.
51134         * modules/stdlib (Makefile.am): Substitute
51135         HAVE_STRUCT_RANDOM_DATA.
51136
51137 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51138
51139         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
51140         * doc/gnulib-intro.texi (Copyright): Likewise.
51141
51142 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51143
51144         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
51145         findings.
51146
51147 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
51148             Bruno Haible  <bruno@clisp.org>
51149
51150         * lib/unistd.in.h: Include <winsock2.h>.
51151         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
51152         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
51153         Provide dummy declarations.
51154         (gethostname): Override.
51155         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
51156         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
51157         gl_PREREQ_SYS_H_WINSOCK2.
51158         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
51159         * doc/posix-functions/gethostname.texi: More details.
51160
51161 2008-10-25  Bruno Haible  <bruno@clisp.org>
51162
51163         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51164         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
51165         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
51166
51167         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
51168         here ...
51169         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
51170         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
51171         gl_UNISTD_H_DEFAULTS.
51172
51173 2008-10-25  Eric Blake  <ebb9@byu.net>
51174
51175         signbit: avoid spurious compiler failure
51176         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
51177         declarations inside function.
51178
51179 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51180             Bruno Haible  <bruno@clisp.org>
51181
51182         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
51183         * modules/random_r (Depends-on): Add stdint.
51184
51185 2008-10-24  Bruno Haible  <bruno@clisp.org>
51186
51187         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
51188         Eggert.
51189         * modules/strerror (License): Likewise.
51190
51191 2008-10-24  Jim Meyering  <meyering@redhat.com>
51192
51193         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
51194         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
51195
51196 2008-10-24  Eric Blake  <ebb9@byu.net>
51197
51198         getgroups: fix compilation when getgroups is available
51199         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
51200         but with <config.h> override of getgroups disabled.
51201
51202 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51203
51204         * doc/gnulib.texi (Header files): Add note about C++ problems.
51205         Explained by Bruno Haible <bruno@clisp.org>.
51206
51207 2008-10-23  Bruno Haible  <bruno@clisp.org>
51208
51209         Define a dummy SA_NODEFER macro on Interix.
51210         * lib/signal.in.h (SA_NODEFER): Define fallback.
51211         Reported by Aleksey Cheusov <cheusov@tut.by> via
51212         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
51213
51214 2008-10-23  Bruno Haible  <bruno@clisp.org>
51215
51216         * modules/freadahead (License): Change to LGPLv2+.
51217         Suggested by Simon Josefsson.
51218
51219 2008-10-23  Jim Meyering  <meyering@redhat.com>
51220
51221         random_r: new module
51222         * modules/random_r: New file.
51223         * m4/random_r.m4: New file.
51224         * lib/random_r.c: New file, from glibc.
51225         * modules/random_r-tests: New file.
51226         * tests/test-random_r.c: New file.
51227         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
51228          Declare.
51229         (RAND_MAX): Define.
51230         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
51231         * modules/stdlib: Substitute them, too.
51232         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
51233         * doc/glibc-functions/initstate_r.texi: Mention the new module.
51234         * doc/glibc-functions/random_r.texi: Likewise.
51235         * doc/glibc-functions/setstate_r.texi: Likewise.
51236         * doc/glibc-functions/srandom_r.texi: Likewise.
51237         * config/srclist.txt: Mention it.
51238
51239 2008-10-23  David Lutterkort  <lutter@redhat.com>
51240
51241         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
51242         link requirement
51243
51244 2008-10-23  Jim Meyering  <meyering@redhat.com>
51245
51246         selinux-h: mark parameters of stub functions as intentionally unused
51247         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
51248         * lib/se-context.in.h: Likewise.
51249
51250 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51251
51252         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
51253
51254 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51255
51256         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
51257
51258 2008-10-22  Eric Blake  <ebb9@byu.net>
51259
51260         glthread/thread: avoid compiler warning
51261         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
51262         Add unreachable abort to silence compiler.
51263
51264 2008-10-22  Eric Blake  <ebb9@byu.net>
51265
51266         netdb: also supply struct addrinfo for cygwin 1.5.x
51267         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
51268         older cygwin.
51269         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
51270         cygwin.
51271         * doc/posix-headers/netdb.texi (netdb.h): Document this.
51272
51273 2008-10-22  Bruno Haible  <bruno@clisp.org>
51274
51275         * users.txt: Update entry about pspp.
51276
51277 2008-10-21  Bruno Haible  <bruno@clisp.org>
51278
51279         Simplification.
51280         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
51281         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
51282
51283         Simplification.
51284         * lib/ioctl.c (ioctl): Don't undefine.
51285         * lib/socket.c (socket): Don't undefine.
51286
51287         Remove unused module indicator macros.
51288         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
51289         GNULIB_$1 as a C macro.
51290
51291         * doc/posix-functions/close.texi: Undo last change.
51292         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
51293         Windows platforms.
51294
51295 2008-10-21  Bruno Haible  <bruno@clisp.org>
51296
51297         Add gethostname() declaration to <unistd.h>.
51298         * lib/unistd.in.h (gethostname): New declaration.
51299         * lib/gethostname.c: Include <unistd.h>.
51300         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
51301         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
51302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
51303         and HAVE_GETHOSTNAME.
51304         * modules/gethostname (Depends-on): Add unistd.
51305         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51306         (Include): Specify <unistd.h>.
51307         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
51308         HAVE_GETHOSTNAME.
51309         * tests/test-gethostname.c: Include <unistd.h> first.
51310
51311 2008-10-21  Bruno Haible  <bruno@clisp.org>
51312
51313         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
51314         * modules/select-tests (Depends-on): Likewise.
51315         Reported by Simon Josefsson.
51316
51317 2008-10-21  Simon Josefsson  <simon@josefsson.org>
51318
51319         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
51320         * lib/accept.c: New file, based on winsock.c.
51321         * lib/bind.c: New file, based on winsock.c.
51322         * lib/connect.c: New file, based on winsock.c.
51323         * lib/getpeername.c: New file, based on winsock.c.
51324         * lib/getsockname.c: New file, based on winsock.c.
51325         * lib/getsockopt.c: New file, based on winsock.c.
51326         * lib/ioctl.c: New file, based on winsock.c.
51327         * lib/listen.c: New file, based on winsock.c.
51328         * lib/recv.c: New file, based on winsock.c.
51329         * lib/recvfrom.c: New file, based on winsock.c.
51330         * lib/send.c: New file, based on winsock.c.
51331         * lib/sendto.c: New file, based on winsock.c.
51332         * lib/setsockopt.c: New file, based on winsock.c.
51333         * lib/shutdown.c: New file, based on winsock.c.
51334         * lib/socket.c: New file, based on winsock.c.
51335         * lib/w32sock.h: New file, based on winsock.c.
51336         * lib/winsock.c: Remove file.
51337         * modules/accept: Likewise.
51338         * modules/bind: Likewise.
51339         * modules/connect: Likewise.
51340         * modules/getpeername: Likewise.
51341         * modules/getsockname: Likewise.
51342         * modules/getsockopt: Likewise.
51343         * modules/ioctl: Likewise.
51344         * modules/listen: Likewise.
51345         * modules/recv: Likewise.
51346         * modules/recvfrom: Likewise.
51347         * modules/send: Likewise.
51348         * modules/sendto: Likewise.
51349         * modules/setsockopt: Likewise.
51350         * modules/shutdown: Likewise.
51351         * modules/socket: Use socket.c instead of winsock.c.
51352         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
51353         * doc/posix-functions/accept.texi: Doc fix.
51354         * doc/posix-functions/bind.texi: Doc fix.
51355         * doc/posix-functions/close.texi: Doc fix.
51356         * doc/posix-functions/connect.texi: Doc fix.
51357         * doc/posix-functions/getpeername.texi: Doc fix.
51358         * doc/posix-functions/getsockname.texi: Doc fix.
51359         * doc/posix-functions/getsockopt.texi: Doc fix.
51360         * doc/posix-functions/ioctl.texi: Doc fix.
51361         * doc/posix-functions/listen.texi: Doc fix.
51362         * doc/posix-functions/recv.texi: Doc fix.
51363         * doc/posix-functions/recvfrom.texi: Doc fix.
51364         * doc/posix-functions/send.texi: Doc fix.
51365         * doc/posix-functions/sendto.texi: Doc fix.
51366         * doc/posix-functions/setsockopt.texi: Doc fix.
51367         * doc/posix-functions/shutdown.texi: Doc fix.
51368         * doc/posix-functions/socket.texi: Doc fix.
51369
51370 2008-10-20  Bruno Haible  <bruno@clisp.org>
51371
51372         Take into account the role of SIGABRT_COMPAT on Windows 2008.
51373         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
51374         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
51375         as an alias for SIGABRT.
51376         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
51377         (sigaction): Map it to SIGABRT.
51378         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
51379
51380 2008-10-20  Bruno Haible  <bruno@clisp.org>
51381
51382         * lib/fts.c: Don't include lstat.h.
51383         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
51384
51385         Move the lstat() declaration to <sys/stat.h>.
51386         * lib/lstat.h: Remove file.
51387         * lib/sys_stat.in.h: Add special invocation convention.
51388         (lstat): New declaration.
51389         * lib/lstat.c (orig_lstat): New function.
51390         (rpl_lstat): Use orig_lstat instead of lstat.
51391         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
51392         AC_C_INLINE. Set REPLACE_LSTAT.
51393         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
51394         and REPLACE_LSTAT.
51395         * modules/lstat (Files): Remove lib/lstat.h.
51396         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51397         (Include): Specify <sys/stat.h> instead of lstat.h.
51398         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
51399         REPLACE_LSTAT.
51400         * NEWS: Mention the change.
51401
51402 2008-10-20  Bruno Haible  <bruno@clisp.org>
51403
51404         * modules/posix_spawn-tests: New file.
51405         * tests/test-posix_spawn3.c: New file.
51406
51407 2008-10-20  Bruno Haible  <bruno@clisp.org>
51408
51409         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
51410         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51411         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
51412         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51413         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
51414
51415 2008-10-20  Bruno Haible  <bruno@clisp.org>
51416
51417         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
51418         of posix_spawn on AIX 5.3.
51419
51420 2008-10-20  Bruno Haible  <bruno@clisp.org>
51421
51422         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
51423
51424 2008-10-20  Bruno Haible  <bruno@clisp.org>
51425
51426         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
51427         of AC_LANG_PROGRAM.
51428
51429 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51430
51431         * lib/netdb.in.h: Don't define GNU specific constants until they
51432         are supported or needed.  Reported by Bruno Haible
51433         <bruno@clisp.org>.
51434
51435 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51436
51437         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
51438
51439 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51440
51441         * lib/getaddrinfo.h: Remove file.
51442         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
51443         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
51444         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
51445         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
51446         * modules/netdb: Substitute GNULIB_GETADDRINFO.
51447         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
51448         * tests/test-getaddrinfo.c: Likewise.
51449         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
51450         * NEWS: Mention change.
51451
51452 2008-10-19  Bruno Haible  <bruno@clisp.org>
51453
51454         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
51455
51456 2008-10-19  Bruno Haible  <bruno@clisp.org>
51457
51458         * lib/wait-process.c: Include simply <sys/wait.h>.
51459         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
51460         WIFSTOPPED): Remove fallback definitions.
51461         * modules/wait-process (Depends-on): Add sys_wait.
51462
51463         New module 'sys_wait'.
51464         * modules/sys_wait: New file.
51465         * lib/sys_wait.in.h: New file, partially copied from
51466         lib/wait-process.c.
51467         * m4/sys_wait_h.m4: New file.
51468         * doc/posix-headers/sys_wait.texi: Mention the new module.
51469
51470 2008-10-19  Bruno Haible  <bruno@clisp.org>
51471
51472         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
51473
51474 2008-10-19  Bruno Haible  <bruno@clisp.org>
51475
51476         Assume that waitpid() fills an 'int' status, not a 'union wait'.
51477         * lib/wait-process.c (WAIT_T): Remove type.
51478         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
51479         (wait_subprocess): Update.
51480
51481 2008-10-19  Bruno Haible  <bruno@clisp.org>
51482
51483         New module 'atoll'.
51484         * modules/atoll: New file.
51485         * lib/stdlib.in.h (atoll): New declaration.
51486         * lib/atoll.c: New file, from glibc with modifications.
51487         * m4/atoll.m4: New file.
51488         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
51489         HAVE_ATOLL.
51490         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
51491         * doc/posix-functions/atoll.texi: Mention the new module.
51492
51493 2008-10-19  Bruno Haible  <bruno@clisp.org>
51494
51495         Add strtoull() declaration to <stdlib.h>.
51496         * lib/stdlib.in.h (strtoull): New declaration.
51497         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51498         Set HAVE_STRTOULL.
51499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
51500         HAVE_STRTOULL.
51501         * modules/strtoull (Depends-on): Add stdlib.
51502         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51503         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
51504         HAVE_STRTOULL.
51505
51506 2008-10-19  Bruno Haible  <bruno@clisp.org>
51507
51508         Add strtoll() declaration to <stdlib.h>.
51509         * lib/stdlib.in.h (strtoll): New declaration.
51510         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51511         Set HAVE_STRTOLL.
51512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
51513         HAVE_STRTOLL.
51514         * modules/strtoll (Depends-on): Add stdlib.
51515         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51516         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
51517
51518 2008-10-19  Bruno Haible  <bruno@clisp.org>
51519
51520         * modules/bcopy (Depends-on): Add strings.
51521         (Include): Specify <strings.h>.
51522
51523 2008-10-19  Bruno Haible  <bruno@clisp.org>
51524
51525         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
51526
51527 2008-10-19  Bruno Haible  <bruno@clisp.org>
51528
51529         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
51530         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
51531         mingw.
51532
51533 2008-10-19  Bruno Haible  <bruno@clisp.org>
51534
51535         * lib/atanl.c: Don't include isnanl.h.
51536         * lib/cosl.c: Likewise.
51537         * lib/ldexpl.c: Likewise.
51538         * lib/logl.c: Likewise.
51539         * lib/sinl.c: Likewise.
51540         * lib/sqrtl.c: Likewise.
51541         * lib/tanl.c: Likewise.
51542
51543         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
51544         * lib/isnanf.h: Remove file.
51545         * lib/isnand.h: Remove file.
51546         * lib/isnanl.h: Remove file.
51547         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
51548         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
51549         macros.
51550         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
51551         HAVE_ISNANF, don't define it as a C macro.
51552         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
51553         HAVE_ISNAND, don't define it as a C macro.
51554         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
51555         HAVE_ISNANL, don't define it as a C macro.
51556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51557         HAVE_ISNAN[FDL].
51558         * modules/isnanf (Files): Remove lib/isnanf.h.
51559         (Depends-on): Add math.
51560         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51561         (Include): Specify <math.h> instead of isnanf.h.
51562         * modules/isnand (Files): Remove lib/isnand.h.
51563         (Depends-on): Add math.
51564         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51565         (Include): Specify <math.h> instead of isnand.h.
51566         * modules/isnanl (Files): Remove lib/isnanl.h.
51567         (Depends-on): Add math.
51568         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51569         (Include): Specify <math.h> instead of isnanl.h.
51570         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51571         HAVE_ISNAN[FDL].
51572         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51573         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51574         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51575         * NEWS: Mention the change.
51576
51577 2008-10-18  Bruno Haible  <bruno@clisp.org>
51578
51579         Add getusershell(), setusershell(), endusershell() declarations to
51580         <unistd.h>.
51581         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51582         declarations.
51583         * lib/getusershell.c: Include unistd.h.
51584         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51585         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51586         HAVE_GETUSERSHELL.
51587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51588         and HAVE_GETUSERSHELL.
51589         * modules/getusershell (Depends-on): Add unistd, extensions.
51590         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51591         (Include): Specify <unistd.h>.
51592         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51593         HAVE_GETUSERSHELL.
51594
51595 2008-10-18  Bruno Haible  <bruno@clisp.org>
51596
51597         Add a getloadavg() declaration to <stdlib.h>.
51598         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51599         getloadavg declaration.
51600         (getloadavg): New declaration.
51601         * lib/getloadavg.c: Include <stdlib.h> first.
51602         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51603         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51604         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51606         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51607         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51608         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51609         (Include): Specify <stdlib.h>.
51610         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51611         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51612
51613 2008-10-18  Bruno Haible  <bruno@clisp.org>
51614
51615         * lib/dirchownmod.c: Don't include lchmod.h.
51616
51617         Move the lchmod() declaration to <sys/stat.h>.
51618         * lib/lchmod.h: Remove file.
51619         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51620         (lchmod): New declaration, moved here from lib/lchown.h.
51621         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51622         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51623         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51624         and HAVE_LCHMOD.
51625         * modules/lchmod (Files): Remove lib/lchmod.h.
51626         (Depends-on): Add sys_stat, extensions.
51627         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51628         (Include): Specify <sys/stat.h> instead of lchmod.h.
51629         * modules/sys_stat (Depends-on): Add link-warning.
51630         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51631         definition of GL_LINK_WARNING.
51632         * NEWS: Mention the change.
51633
51634 2008-10-18  Bruno Haible  <bruno@clisp.org>
51635
51636         * lib/fchdir.c: Don't include dirfd.h.
51637         * lib/fts.c: Likewise.
51638         * lib/getcwd.c: Likewise.
51639         * lib/glob.c: Likewise.
51640
51641         Move the dirfd() declaration to <dirent.h>.
51642         * lib/dirfd.h: Remove file.
51643         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51644         (dirfd): New declaration.
51645         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51646         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51647         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51648         HAVE_DECL_DIRFD.
51649         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51650         HAVE_DECL_DIRFD.
51651         * modules/dirfd (Files): Remove lib/dirfd.h.
51652         (Depends-on): Add dirent, extensions.
51653         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51654         (Include): Specify <dirent.h> instead of dirfd.h.
51655         * modules/dirent (Depends-on): Add link-warning.
51656         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51657         definition of GL_LINK_WARNING.
51658         * NEWS: Mention the change.
51659
51660 2008-10-18  Bruno Haible  <bruno@clisp.org>
51661
51662         Move the euidaccess() declaration to <unistd.h>.
51663         * lib/euidaccess.h: Remove file.
51664         * lib/unistd.in.h (euidaccess): New declaration.
51665         * lib/euidaccess.c: Don't include euidaccess.h.
51666         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51667         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51669         and HAVE_EUIDACCESS.
51670         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51671         (Depends-on): Add unistd.
51672         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51673         (Include): Specify <unistd.h> instead of euidaccess.h.
51674         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51675         HAVE_EUIDACCESS.
51676         * NEWS: Mention the change.
51677
51678 2008-10-18  Bruno Haible  <bruno@clisp.org>
51679
51680         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51681
51682         Move the getdomainname() declaration to <unistd.h>.
51683         * lib/getdomainname.h: Remove file.
51684         * lib/unistd.in.h (getdomainname): New declaration.
51685         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51686         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51687         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51688         HAVE_GETDOMAINNAME.
51689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51690         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51691         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51692         (Depends-on): Add unistd, extensions.
51693         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51694         (Includes): Specify <unistd.h> instead of getdomainname.h.
51695         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51696         HAVE_GETDOMAINNAME.
51697         * NEWS: Mention the change.
51698
51699 2008-10-18  Bruno Haible  <bruno@clisp.org>
51700
51701         * modules/dirent: New file.
51702         * m4/dirent_h.m4: New file.
51703         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51704         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51705         * modules/fchdir (Files): Remove lib/dirent.in.h.
51706         (Depends-on): Add dirent.
51707         (Makefile.am): Move rules to modules/dirent.
51708         * doc/posix-headers/dirent.texi: Mention the new module.
51709
51710 2008-10-18  Bruno Haible  <bruno@clisp.org>
51711
51712         Avoid -Wunused-parameter warnings in public gnulib header files.
51713         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51714         macro.
51715         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51716
51717 2008-10-18  Bruno Haible  <bruno@clisp.org>
51718
51719         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51720         * doc/glibc-functions/error.texi: Mention the module 'error'.
51721         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51722         * doc/glibc-functions/getdomainname.texi: Mention the module
51723         'getdomainname'.
51724         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51725         * doc/glibc-functions/getpagesize.texi: Mention the module
51726         'getpagesize'.
51727         * doc/glibc-functions/getusershell.texi: Mention the module
51728         'getusershell'.
51729         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51730         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51731         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51732         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51733         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51734         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51735         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51736         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51737         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51738         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51739         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51740         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51741         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51742         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51743
51744 2008-10-17  Bruno Haible  <bruno@clisp.org>
51745
51746         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51747         HP-UX and IRIX, use -0.0L.
51748         * tests/test-ceill.c (minus_zero): Likewise.
51749         * tests/test-floorl.c (minus_zero): Likewise.
51750         * tests/test-frexpl.c (minus_zero): Likewise.
51751         * tests/test-isnan.c (minus_zerol): Likewise.
51752         * tests/test-isnanl.h (minus_zero): Likewise.
51753         * tests/test-ldexpl.c (minus_zero): Likewise.
51754         * tests/test-roundl.c (minus_zero): Likewise.
51755         * tests/test-signbit.c (minus_zerol): Likewise.
51756         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51757         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51758         * tests/test-truncl.c (minus_zero): Likewise.
51759         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51760         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51761         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51762         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51763
51764 2008-10-17  Bruno Haible  <bruno@clisp.org>
51765
51766         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51767         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51768         that it gets activated only for gcc >= 3.0.
51769         * lib/dirent.in.h: Likewise.
51770         * lib/errno.in.h: Likewise.
51771         * lib/fcntl.in.h: Likewise.
51772         * lib/float.in.h: Likewise.
51773         * lib/iconv.in.h: Likewise.
51774         * lib/inttypes.in.h: Likewise.
51775         * lib/locale.in.h: Likewise.
51776         * lib/math.in.h: Likewise.
51777         * lib/netdb.in.h: Likewise.
51778         * lib/netinet_in.in.h: Likewise.
51779         * lib/search.in.h: Likewise.
51780         * lib/signal.in.h: Likewise.
51781         * lib/spawn.in.h: Likewise.
51782         * lib/stdarg.in.h: Likewise.
51783         * lib/stdint.in.h: Likewise.
51784         * lib/stdio.in.h: Likewise.
51785         * lib/stdlib.in.h: Likewise.
51786         * lib/string.in.h: Likewise.
51787         * lib/strings.in.h: Likewise.
51788         * lib/sys_file.in.h: Likewise.
51789         * lib/sys_ioctl.in.h: Likewise.
51790         * lib/sys_select.in.h: Likewise.
51791         * lib/sys_socket.in.h: Likewise.
51792         * lib/sys_stat.in.h: Likewise.
51793         * lib/sys_time.in.h: Likewise.
51794         * lib/sysexits.in.h: Likewise.
51795         * lib/time.in.h: Likewise.
51796         * lib/unistd.in.h: Likewise.
51797         * lib/wchar.in.h: Likewise.
51798         * lib/wctype.in.h: Likewise.
51799         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51800
51801 2008-10-17  Jim Meyering  <meyering@redhat.com>
51802
51803         ignore-value: don't depend on inline module
51804         * modules/ignore-value (Depends-on): Remove 'inline'.
51805         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51806         Suggestion from Bruno Haible.
51807
51808 2008-10-17  Bruno Haible  <bruno@clisp.org>
51809
51810         New implementation of condition variables for Win32.
51811         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51812         (gl_linked_waitqueue_t): New type.
51813         (gl_cond_t): Use it.
51814         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51815         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51816         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51817         (glthread_cond_init_func, glthread_cond_wait_func,
51818         glthread_cond_timedwait_func, glthread_cond_signal_func,
51819         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51820         Reimplemented on the basis of gl_linked_waitqueue_t.
51821         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51822         gl_waitqueue_t.
51823         (gl_rwlock_t): Update.
51824         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51825
51826 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51827
51828         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51829         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51830
51831 2008-10-17  Jim Meyering  <meyering@redhat.com>
51832
51833         ignore-value: new module
51834         * modules/ignore-value: New file.
51835         * lib/ignore-value.h: New file.
51836         * MODULES.html.sh (Compiler warning management): New section,
51837         just for this module.  More to come.
51838
51839 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51840
51841         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51842         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51843         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51844
51845 2008-10-16  Jim Meyering  <meyering@redhat.com>
51846
51847         openat-die.c: avoid 'no previous prototype' warning
51848         * lib/openat-die.c: Include "openat.h".
51849         Reported by Reuben Thomas <rrt@sc3d.org>.
51850
51851 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51852
51853         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51854         * lib/netdb.in.h: Fix typo.
51855         Reported by Bruno Haible  <bruno@clisp.org>
51856
51857         * lib/netdb.in.h: Include sys/socket.h for platforms without
51858         netdb.h, to get structures like hostent on MinGW.
51859         * modules/netdb (Depends-on): Add sys_socket.
51860
51861 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51862
51863         * modules/netdb, modules/netdb-tests: New file.
51864         * m4/netdb_h.m4: New file.
51865         * lib/netdb.in.h: Add, currently just an empty file pending
51866         definitions.
51867         * tests/test-netdb.c: New file.
51868         * doc/posix-headers/netdb.texi: Mention that we replace it if
51869         needed.
51870         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51871         netdb.
51872
51873 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51874
51875         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51876         with code.
51877
51878 2008-10-13  Bruno Haible  <bruno@clisp.org>
51879
51880         * lib/glthread/cond.c (glthread_cond_wait_func,
51881         glthread_cond_timedwait_func): Add a comment.
51882
51883 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51884
51885         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51886         * tests/test-select.c: Likewise,
51887
51888 2008-10-13  Bruno Haible  <bruno@clisp.org>
51889
51890         * lib/glthread/cond.c (glthread_cond_wait_func,
51891         glthread_cond_timedwait_func): Fix variable name.
51892         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51893
51894 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51895
51896         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51897         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51898         struct sockaddr.sa_len.
51899         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51900
51901 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51902
51903         * build-aux/pmccabe2html: Add css and css_url parameters.
51904
51905 2008-10-12  Bruno Haible  <bruno@clisp.org>
51906
51907         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51908         calling aclx_get.
51909         Reported by Rainer Tammer <tammer@tammer.net>.
51910
51911 2008-10-12  Bruno Haible  <bruno@clisp.org>
51912
51913         Use msvcrt aware primitives for creation/termination of Win32 threads.
51914         * lib/glthread/thread.c: Include <process.h>.
51915         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51916         (wrapper_func): Update signature.
51917         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51918
51919 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51920             Bruno Haible  <bruno@clisp.org>
51921
51922         Provide a Win32 implementation of the 'cond' module.
51923         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51924         * lib/glthread/cond.c (glthread_cond_init_func,
51925         glthread_cond_wait_func, glthread_cond_timedwait_func,
51926         glthread_cond_signal_func, glthread_cond_broadcast_func,
51927         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51928         * modules/cond (Dependencies): Add gettimeofday.
51929
51930 2008-10-11  Bruno Haible  <bruno@clisp.org>
51931
51932         Make sleep work on older versions of mingw.
51933         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51934         only whether it exists.
51935         * doc/posix-functions/sleep.texi: Mention the problem with older
51936         versions of mingw.
51937
51938 2008-10-11  Bruno Haible  <bruno@clisp.org>
51939
51940         New module 'shutdown'.
51941         * modules/shutdown: New file.
51942         * lib/sys_socket.in.h (shutdown): New declaration.
51943         * lib/winsock.c (shutdown): New function.
51944         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51945         GNULIB_SHUTDOWN.
51946         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51947         * doc/posix-functions/shutdown.texi: Document the new module.
51948
51949 2008-10-11  Jim Meyering  <meyering@redhat.com>
51950
51951         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51952
51953 2008-10-11  Bruno Haible  <bruno@clisp.org>
51954
51955         New module 'fclose'.
51956         * modules/fclose: New file.
51957         * lib/stdio.in.h (fclose): New declaration.
51958         * lib/fclose.c: New file.
51959         * m4/fclose.m4: New file.
51960         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51961         REPLACE_FCLOSE.
51962         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51963         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51964         REPLACE_FCLOSE.
51965         * modules/close (Depends-on): fclose.
51966         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51967
51968 2008-10-11  Bruno Haible  <bruno@clisp.org>
51969
51970         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51971         set errno and don't call _close.
51972
51973 2008-10-10  Bruno Haible  <bruno@clisp.org>
51974
51975         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51976         ACL, not afterwards. Fixes test failure on Cygwin.
51977
51978 2008-10-09  Ben Pfaff  <blp@gnu.org>
51979
51980         * build-aux/announce-gen: Fix gnulib version related part of usage
51981         message.  Die with a useful error message if no tarballs are
51982         found.
51983
51984 2008-10-10  Jim Meyering  <meyering@redhat.com>
51985
51986         bootstrap: use git's --depth=N option only if it's supported
51987         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51988         recognize the --depth option.  Reported by Pádraig Brady.
51989
51990 2008-10-09  Bruno Haible  <bruno@clisp.org>
51991
51992         New module 'ioctl'.
51993         * modules/ioctl: New file.
51994         * lib/sys_socket.in.h (ioctl): Remove declaration.
51995         * lib/winsock.c: Include <sys/ioctl.h>.
51996         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51997         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51998         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51999         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
52000         * doc/posix-functions/ioctl.texi: Mention the new module.
52001
52002 2008-10-09  Bruno Haible  <bruno@clisp.org>
52003
52004         New module 'sys_ioctl'.
52005         * lib/sys_ioctl.in.h: New file.
52006         * m4/sys_ioctl_h.m4: New file.
52007         * modules/sys_ioctl: New file.
52008         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
52009
52010 2008-10-09  Bruno Haible  <bruno@clisp.org>
52011
52012         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
52013         * lib/winsock.c: Include <stdarg.h>.
52014         (rpl_ioctl): Change to second argument 'int' and then varargs.
52015
52016 2008-10-09  Bruno Haible  <bruno@clisp.org>
52017
52018         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
52019         when the sys_socket module is present and the system has <winsock2.h>.
52020
52021 2008-10-09  Bruno Haible  <bruno@clisp.org>
52022
52023         * doc/posix-functions/close.texi: Mention module 'close' instead of
52024         module 'sys_socket'.
52025
52026 2008-10-09  Bruno Haible  <bruno@clisp.org>
52027
52028         * doc/glibc-headers/sys_ioctl.texi: New file.
52029         * doc/gnulib.texi: Include it.
52030
52031 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52032             Bruno Haible  <bruno@clisp.org>
52033
52034         Combine the two replacements of 'close'.
52035         * lib/sys_socket.in.h (close): Define to a reminder to include
52036         <unistd.h>.
52037         (_gl_close_fd_maybe_socket): New declaration.
52038         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
52039         * lib/winsock.c (close): Remove undefinition.
52040         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
52041         needed for the gnulib module 'close'.
52042         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
52043         define to an error symbol or to a warning, if suitable.
52044         * lib/close.c: Include <sys/socket.h>.
52045         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
52046         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
52047         UNISTD_H_HAVE_WINSOCK2_H.
52048         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
52049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52050         UNISTD_H_HAVE_WINSOCK2_H.
52051         * modules/sys_socket (Files): Add m4/unistd_h.m4.
52052         (configure.ac): Set a module indicator.
52053         (Makefile.am): Substitute GNULIB_CLOSE.
52054         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
52055         * modules/poll-tests (Depends-on): Add close.
52056         * modules/select-tests (Depends-on): Likewise.
52057
52058 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52059             Bruno Haible  <bruno@clisp.org>
52060
52061         New module 'close'.
52062         * modules/close: New file.
52063         * lib/unistd.in.h (close): Move declaration out of the
52064         FCHDIR_REPLACEMENT scope.
52065         (_gl_unregister_fd): New declaration.
52066         * lib/close.c: New file.
52067         * lib/fchdir.c (rpl_close): Remove function.
52068         * m4/close.m4: New file.
52069         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52070         close.
52071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
52072         REPLACE_CLOSE.
52073         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
52074         REPLACE_CLOSE.
52075         * modules/fchdir (Depends-on): Add close.
52076
52077 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52078             Bruno Haible  <bruno@clisp.org>
52079
52080         * lib/fcntl.in.h (open): Simplify conditionals.
52081         (_gl_register_fd): New declaration.
52082         * lib/fchdir.c (rpl_open): Remove function.
52083         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
52084         also.
52085         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
52086         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52087         open.
52088
52089 2008-10-09  Jim Meyering  <meyering@redhat.com>
52090
52091         GNUmakefile: use the more name-space-friendly "_version"
52092         * top/GNUmakefile (_dummy): Update.
52093         (_version): Rename from "version".
52094
52095 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52096             Bruno Haible  <bruno@clisp.org>
52097
52098         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
52099         rpl_close.
52100         (_gl_register_fd): New function, extracted from rpl_open.
52101         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
52102         (rpl_open, rpl_opendir): Use _gl_register_fd.
52103
52104 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52105
52106         Fix organization of 'open' replacement.
52107         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
52108         (gl_FUNC_OPEN): Use it.
52109         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
52110
52111 2008-10-08  Bruno Haible  <bruno@clisp.org>
52112
52113         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
52114
52115 2008-10-08  Simon Josefsson  <simon@josefsson.org>
52116
52117         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
52118         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
52119         listen).
52120
52121 2008-10-08  Eric Blake  <ebb9@byu.net>
52122
52123         GNUmakefile: add 'make version' target
52124         * top/GNUmakefile (_curr-ver): Split version update rules...
52125         (version): ...into a target.
52126
52127 2008-10-07  Bruno Haible  <bruno@clisp.org>
52128
52129         Use a more portable replacement expression for -0.0L.
52130         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
52131         instead of -0.0L. Fix m4 quotation.
52132
52133         * tests/test-signbit.c: Include <float.h>.
52134         (minus_zero): New variable.
52135         (test_signbitl): Use minus_zero instead of -zero.
52136         * modules/signbit-tests (Depends-on): Add float.
52137
52138         * tests/test-ceill.c: Include <float.h>.
52139         (zero): Remove variable.
52140         (minus_zero): New variable.
52141         (main): Use minus_zero instead of -zero.
52142         * modules/ceill-tests (Depends-on): Add float.
52143
52144         * tests/test-floorl.c: Include <float.h>.
52145         (zero): Remove variable.
52146         (minus_zero): New variable.
52147         (main): Use minus_zero instead of -zero.
52148         * modules/floorl-tests (Depends-on): Add float.
52149
52150         * tests/test-roundl.c: Include <float.h>.
52151         (zero): Remove variable.
52152         (minus_zero): New variable.
52153         (main): Use minus_zero instead of -zero.
52154         * modules/roundl-tests (Depends-on): Add float.
52155
52156         * tests/test-truncl.c: Include <float.h>.
52157         (zero): Remove variable.
52158         (minus_zero): New variable.
52159         (main): Use minus_zero instead of -zero.
52160         * modules/truncl-tests (Depends-on): Add float.
52161
52162         * tests/test-frexpl.c (zero): Remove variable.
52163         (minus_zero): New variable.
52164         (main): Use minus_zero instead of -zero.
52165         * modules/frexpl-tests (Depends-on): Add float.
52166
52167         * tests/test-isnan.c (zerol): Remove variable.
52168         (minus_zerol): New variable.
52169         (test_long_double): Use minus_zerol instead of -zerol.
52170         * modules/isnan-tests (Depends-on): Add float.
52171
52172         * tests/test-isnanl.h (zero): Remove variable.
52173         (minus_zero): New variable.
52174         (main): Use minus_zero instead of -zero.
52175         * modules/isnanl-nolibm-tests (Depends-on): Add float.
52176         * modules/isnanl-tests (Depends-on): Add float.
52177
52178         * tests/test-ldexpl.c (zero): Remove variable.
52179         (minus_zero): New variable.
52180         (main): Use minus_zero instead of -zero.
52181         * modules/ldexpl-tests (Depends-on): Add float.
52182
52183         * tests/test-snprintf-posix.h (zerol): Remove variable.
52184         (minus_zerol): New variable.
52185         (test_function): Use minus_zerol instead of -zerol.
52186         * modules/snprintf-posix-tests (Depends-on): Add float.
52187         * modules/vsnprintf-posix-tests (Depends-on): Add float.
52188
52189         * tests/test-sprintf-posix.h (zerol): Remove variable.
52190         (minus_zerol): New variable.
52191         (test_function): Use minus_zerol instead of -zerol.
52192         * modules/sprintf-posix-tests (Depends-on): Add float.
52193         * modules/vsprintf-posix-tests (Depends-on): Add float.
52194
52195         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
52196         (minus_zerol): New variable.
52197         (test_function): Use minus_zerol instead of -zerol.
52198         * modules/vasnprintf-posix-tests (Depends-on): Add float.
52199
52200         * tests/test-vasprintf-posix.c (zerol): Remove variable.
52201         (minus_zerol): New variable.
52202         (test_function): Use minus_zerol instead of -zerol.
52203         * modules/vasprintf-posix-tests (Depends-on): Add float.
52204
52205 2008-10-07  Simon Josefsson  <simon@josefsson.org>
52206
52207         * MODULES.html.sh (Support for building documentation): Mention
52208         pmccabe2html.  Sort entries.
52209
52210         Add pmccabe2html module, from gnupdf.
52211         * build-aux/pmccabe.css: New file.
52212         * build-aux/pmccabe2html: New file.
52213         * m4/pmccabe2html.m4: New file.
52214         * modules/pmccabe2html: New file.
52215
52216 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
52217
52218         flock: new module
52219         * MODULES.html.sh: Add to list of modules.
52220         * lib/flock.c: flock implementation for Windows and Unix systems
52221         which have fcntl.
52222         * doc/glibc-functions/flock.texi: Update documentation.
52223         * lib/sys_file.in.h: <sys/file.h> header file.
52224         * m4/flock.m4: M4 macros.
52225         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
52226         * modules/flock: flock module.
52227         * modules/flock-tests: flock tests module.
52228         * modules/sys_file: sys/file.h module.
52229         * tests/test-flock.c: test suite for flock.
52230
52231 2008-10-06  Jim Meyering  <meyering@redhat.com>
52232
52233         bootstrap: check for LT_INIT more portably still ;-)
52234         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
52235         Spotted by Bruno Haible.
52236
52237 2008-10-06  Eric Blake  <ebb9@byu.net>
52238
52239         test-signbit: avoid tripping Irix cc bug on -0.0L
52240         * tests/test-signbit.c (minus_zerol): Delete, and replace with
52241         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
52242         entire testsuite consistent and avoids an Irix 6.2 bug.
52243
52244 2008-10-05  Bruno Haible  <bruno@clisp.org>
52245             Jim Meyering  <jim@meyering.net>
52246
52247         Add an option for ignoring EPIPE during close_stdout.
52248         * lib/closeout.h: Include <stdbool.h>.
52249         (close_stdout_set_ignore_EPIPE): New declaration.
52250         * lib/closeout.c: Include <stdbool.h>.
52251         (ignore_EPIPE): New variable.
52252         (close_stdout_set_ignore_EPIPE): New function.
52253         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
52254         * lib/close-stream.c (close_stream): Mention the possible EPIPE
52255         failure.
52256         * modules/closeout (Depends-on): Add stdbool.
52257
52258 2008-10-05  Bruno Haible  <bruno@clisp.org>
52259
52260         * modules/accept: New file.
52261         * modules/bind: New file.
52262         * modules/connect: New file.
52263         * modules/getpeername: New file.
52264         * modules/getsockname: New file.
52265         * modules/getsockopt: New file.
52266         * modules/listen: New file.
52267         * modules/recv: New file.
52268         * modules/recvfrom: New file.
52269         * modules/send: New file.
52270         * modules/sendto: New file.
52271         * modules/setsockopt: New file.
52272         * modules/socket: New file.
52273         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
52274         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52275         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
52276         the particular module is requested. Add a link warning when the
52277         particular module is not requested.
52278         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
52279         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
52280         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
52281         the particular module is requested.
52282         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
52283         gl_SYS_SOCKET_H_DEFAULTS): New macros.
52284         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
52285         * modules/sys_socket (Depends-on): Add link-warning.
52286         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
52287         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
52288         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
52289         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
52290         GL_LINK_WARNING.
52291         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
52292         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
52293         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
52294         * doc/posix-functions/getpeername.texi: Mention the new module
52295         'getpeername'.
52296         * doc/posix-functions/getsockname.texi: Mention the new module
52297         'getsockname'.
52298         * doc/posix-functions/getsockopt.texi: Mention the new module
52299         'getsockopt'.
52300         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
52301         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
52302         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
52303         * doc/posix-functions/send.texi: Mention the new module 'send'.
52304         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
52305         * doc/posix-functions/setsockopt.texi: Mention the new module
52306         'setsockopt'.
52307         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
52308         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
52309         listen, connect, accept.
52310         * modules/select-tests (Depends-on): Likewise.
52311
52312 2008-10-05  Bruno Haible  <bruno@clisp.org>
52313
52314         * lib/winsock.c (strerror): Remove unused #undef.
52315         (rpl_close): Remove unused local variable.
52316
52317         * modules/sys_socket (Depends-on); Add errno.
52318
52319 2008-10-05  Bruno Haible  <bruno@clisp.org>
52320
52321         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
52322         (select): Add a link warning when the 'select' module is not used.
52323         * modules/sys_select (Depends-on): Add link-warning.
52324         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
52325         Suggested by Paolo Bonzini.
52326
52327 2008-10-05  Jim Meyering  <meyering@redhat.com>
52328
52329         bootstrap: check for LT_INIT more portably
52330         * build-aux/bootstrap: Avoid using grep -E, since it's not
52331         portable enough.  Suggestion from Bruno Haible.
52332
52333 2008-10-05  Bruno Haible  <bruno@clisp.org>
52334
52335         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
52336         as being fixed by gnulib.
52337
52338 2008-10-05  Bruno Haible  <bruno@clisp.org>
52339
52340         * modules/select-tests: New file, mostly copied from
52341         modules/sys_select-tests.
52342         * tests/test-select.c: New file, mostly copied from
52343         tests/test-sys_select.c.
52344         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
52345         * modules/sys_select-tests (Depends-on): Remove all dependencies.
52346         (Makefile.am): Remove test_sys_select_LDADD.
52347
52348         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
52349         to an undefined symbol, for an error message.
52350         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
52351         (gl_SYS_SELECT_H_DEFAULTS): New macro.
52352         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
52353         winsock-select.c here.
52354         * modules/sys_select (Files): Remove lib/winsock-select.c.
52355         (Depends-on): Remove alloca.
52356         (Makefile.am): Substitute GNULIB_SELECT.
52357         * modules/select: New file.
52358         * doc/posix-functions/select.texi: Update.
52359
52360 2008-10-05  Bruno Haible  <bruno@clisp.org>
52361
52362         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
52363         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
52364         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
52365         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
52366         getdtablesize.
52367         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52368         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52369
52370 2008-10-05  Bruno Haible  <bruno@clisp.org>
52371
52372         * modules/getdtablesize-tests: New file.
52373         * tests/test-getdtablesize.c: New file.
52374
52375         New module 'getdtablesize'.
52376         * lib/unistd.in.h (getdtablesize): New declaration.
52377         * lib/getdtablesize.c: New file.
52378         * m4/getdtablesize.m4: New file.
52379         * modules/getdtablesize: New file.
52380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52381         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
52382         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
52383         HAVE_GETDTABLESIZE.
52384         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
52385
52386 2008-10-05  Bruno Haible  <bruno@clisp.org>
52387
52388         * modules/sched (Makefile.am): Fix typo.
52389         Reported by Simon Josefsson.
52390
52391 2008-10-05  Jim Meyering  <meyering@redhat.com>
52392
52393         bootstrap: check for LT_INIT, too
52394         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
52395         are deprecated.  Suggestion from Ralf Wildenhues.
52396
52397 2008-10-05  Bruno Haible  <bruno@clisp.org>
52398
52399         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
52400         overriding them by ours.
52401         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
52402
52403 2008-10-05  Jim Meyering  <meyering@redhat.com>
52404
52405         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
52406         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
52407         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
52408
52409 2008-10-04  Bruno Haible  <bruno@clisp.org>
52410
52411         * modules/dup2 (License): Change to LGPLv2+.
52412         * modules/sleep (License): Likewise.
52413         * modules/perror (License): Likewise.
52414         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
52415         Blake.
52416         * modules/signal (License): Likewise.
52417         * modules/sigprocmask (License): Likewise.
52418         * modules/raise (License): Change to LGPLv2+, with approval by Jim
52419         Meyering.
52420
52421 2008-10-04  Bruno Haible  <bruno@clisp.org>
52422
52423         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
52424         Reported by Rainer Tammer <tammer@tammer.net>.
52425
52426 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
52427             Bruno Haible  <bruno@clisp.org>
52428
52429         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
52430         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
52431         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
52432
52433 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
52434
52435         filevercmp: new module
52436         * lib/filevercmp.h: New function filevercmp comparing version strings.
52437         * lib/filevercmp.c: Implementation of filevercmp function.
52438         * modules/filevercmp: Module metadata.
52439         * tests/test-filevercmp.c: Unit test for new module.
52440         * modules/filevercmp-tests: Unit test metadata.
52441         * MODULES.html.sh: Add filevercmp module.
52442
52443 2008-10-03  Bruno Haible  <bruno@clisp.org>
52444
52445         * lib/c-ctype.h: Add comment.
52446         Reported by Jim Meyering.
52447
52448 2008-10-02  Bruno Haible  <bruno@clisp.org>
52449
52450         * modules/posix_spawn-internal (Depends-on): Add 'open'.
52451
52452 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52453
52454         * build-aux/bootstrap: Allow renaming bootstrap, and change the
52455         name of bootstrap.conf accordingly.
52456
52457 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52458
52459         * build-aux/bootstrap: Install git-merge-changelog configuration
52460         items into .gitconfig if needed.
52461
52462 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52463
52464         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
52465         git repository, and initialize/update it accordingly.
52466
52467 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
52468
52469         * modules/fsync-tests: New file.
52470         * tests/test-fsync.c: New file.
52471
52472         New module 'fsync'.
52473         * lib/fsync.c: New file.
52474         * m4/fsync.m4: New file.
52475         * modules/fsync: New file.
52476         * lib/unistd.in.h (fsync): New declaration.
52477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
52478         GNULIB_FSYNC and HAVE_FSYNC.
52479         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
52480         * MODULES.html.sh (posix_functions): Add fsync.
52481         * doc/posix-functions/fsync.texi: Mention the new module.
52482
52483 2008-10-02  Jim Meyering  <meyering@redhat.com>
52484
52485         fts.c: sync with similar code from coreutils' remove.c
52486         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
52487         Guard also with "#if defined __linux__", since for now at least,
52488         this code is Linux-kernel-specific.
52489
52490 2008-10-02  Jim Meyering  <meyering@redhat.com>
52491
52492         fts: bug fixes
52493         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
52494         Include <sys/vfs.h>, not <sys/statfs.h>.
52495
52496         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
52497         Include <sys/vfs.h>, not <sys/statfs.h>.
52498
52499 2008-10-01  Bruno Haible  <bruno@clisp.org>
52500
52501         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
52502         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
52503         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
52504         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
52505         * doc/posix-functions/posix_spawnp.texi: Likewise.
52506         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
52507         whether posix_spawn actually works.
52508         * m4/pipe.m4 (gl_PIPE): Likewise.
52509         * modules/execute (Files): Add m4/posix_spawn.m4.
52510         * modules/pipe (Files): Add m4/posix_spawn.m4.
52511         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
52512
52513 2008-10-01  Jim Meyering  <meyering@redhat.com>
52514
52515         remove trailing spaces
52516         * NEWS: Likewise.
52517         * lib/poll.c (poll): Likewise.
52518         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
52519         * lib/winsock.c (rpl_close): Likewise.
52520         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
52521         * modules/yield: Likewise.
52522         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
52523         * tests/test-sys_select.c (connect_to_socket): Likewise.
52524
52525         fts.c: adjust a new interface to be more generally useful
52526         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
52527         (fts_build): Adjust caller.
52528
52529 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52530
52531         * modules/cond-tests: New file.
52532         * tests/test-cond.c: New file.
52533
52534 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52535             Bruno Haible  <bruno@clisp.org>
52536
52537         * modules/cond (Dependencies): Add errno, time.
52538         * lib/glthread/cond.h: Include <time.h>.
52539         (gl_cond_define, gl_cond_define_initialized): Use the same definition
52540         across platforms.
52541
52542 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52543             Bruno Haible  <bruno@clisp.org>
52544
52545         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
52546
52547 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52548             Bruno Haible  <bruno@clisp.org>
52549
52550         * modules/tls-tests (Depends-on): Add thread, yield.
52551         (configure.ac): Remove all checks.
52552         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
52553         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52554         gl_thread_self): Remove definitions. Include glthread/thread.h and
52555         glthread/yield.h instead.
52556         (test_tls): Pass an additional NULL argument to gl_thread_join.
52557
52558 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52559             Bruno Haible  <bruno@clisp.org>
52560
52561         * modules/lock-tests (Depends-on): Add thread, yield.
52562         (configure.ac): Remove all checks.
52563         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52564         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52565         gl_thread_self): Remove definitions. Include glthread/thread.h and
52566         glthread/yield.h instead.
52567         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52568         additional NULL argument to gl_thread_join.
52569
52570 2008-09-30  Bruno Haible  <bruno@clisp.org>
52571
52572         Fix the Win32 implementation of the 'thread' module.
52573         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52574         pointer type.
52575         (gl_thread_self): Invoke gl_thread_self_func.
52576         (gl_thread_self_func): New declaration.
52577         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52578         (do_init_self_key, init_self_key): New functions.
52579         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52580         Remove some fields.
52581         (running_threads, running_lock): Remove variables.
52582         (get_current_thread_handle): New function.
52583         (gl_thread_self_func, wrapper_func, glthread_create_func,
52584         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52585         simplified.
52586
52587 2008-09-30  Bruno Haible  <bruno@clisp.org>
52588
52589         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52590         files.
52591
52592 2008-09-30  Jim Meyering  <meyering@redhat.com>
52593
52594         fts.m4: correct the test for statfs.f_type
52595         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52596         when checking for statfs.f_type.
52597
52598 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52599
52600         tests: avoid some compiler warnings
52601         * tests/test-memchr.c (main): Pass NULL indirectly.
52602         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52603
52604 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
52605
52606         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52607         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52608         exactly specified dayshifts.
52609         (dayshift): New rule.
52610         (rel): Add dayshift.
52611         (relative_time_table) [tomorrow, yesterday, today, now]:
52612         Use tDAY_SHIFT in place of tDAY_UNIT.
52613         * tests/test-getdate.c: Add tests for now-disallowed countable
52614         dayshifts, e.g., "4 yesterday ago".
52615
52616 2008-09-29  Bruno Haible  <bruno@clisp.org>
52617
52618         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52619         * tests/test-posix_spawn1.in.sh: Renamed from
52620         tests/test-posix_spawn.in.sh.
52621         * tests/test-posix_spawn2.c: New file.
52622         * tests/test-posix_spawn2.in.sh: New file.
52623         * modules/posix_spawnp-tests (Files): Update.
52624         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52625
52626 2008-09-29  Bruno Haible  <bruno@clisp.org>
52627
52628         Propagate effects of putenv/setenv/unsetenv to child processes.
52629         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52630         * lib/pipe.c (create_pipe): Likewise.
52631
52632 2008-09-29  Bruno Haible  <bruno@clisp.org>
52633
52634         Enable use of shell scripts as executables in mingw.
52635         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52636         run the program as a shell script.
52637         * lib/pipe.c (create_pipe): Likewise.
52638         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52639         resulting array.
52640
52641 2008-09-29  Eric Blake  <ebb9@byu.net>
52642
52643         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52644
52645 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52646
52647         * doc/posix-functions/accept.texi: Update mingw problems.
52648         * doc/posix-functions/bind.texi: Update mingw problems.
52649         * doc/posix-functions/close.texi: Update mingw problems.
52650         * doc/posix-functions/connect.texi: Update mingw problems.
52651         * doc/posix-functions/getpeername.texi: Update mingw problems.
52652         * doc/posix-functions/getsockname.texi: Update mingw problems.
52653         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52654         * doc/posix-functions/ioctl.texi: Update mingw problems.
52655         * doc/posix-functions/listen.texi: Update mingw problems.
52656         * doc/posix-functions/recv.texi: Update mingw problems.
52657         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52658         * doc/posix-functions/select.texi: Update mingw problems.
52659         * doc/posix-functions/send.texi: Update mingw problems.
52660         * doc/posix-functions/sendto.texi: Update mingw problems.
52661         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52662         * doc/posix-functions/socket.texi: Update mingw problems.
52663
52664 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52665             Bruno Haible  <bruno@clisp.org>
52666
52667         * lib/sys_select.in.h: Include sys/time.h.
52668         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52669         * modules/sys_select: Depend on sys_time.
52670         * tests/test-sys_select.c: Test that sys/select.h defines struct
52671         timeval fully.
52672
52673 2008-09-29  Bruno Haible  <bruno@clisp.org>
52674
52675         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52676         * lib/sys_select.in.h: Likewise.
52677
52678 2008-09-29  Bruno Haible  <bruno@clisp.org>
52679
52680         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52681
52682 2008-09-29  Bruno Haible  <bruno@clisp.org>
52683
52684         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52685         Set LIBSOCKET instead of augmenting LIBS.
52686         * modules/sockets (Link): New section.
52687         * modules/sockets-tests (test_sockets_LDADD): New variable.
52688         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52689         * modules/poll-tests (test_poll_LDADD): New variable.
52690         * NEWS: Document the change.
52691
52692 2008-09-29  Bruno Haible  <bruno@clisp.org>
52693
52694         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52695         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52696         ARPA_INET_H directly.
52697         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52698
52699 2008-09-28  Bruno Haible  <bruno@clisp.org>
52700
52701         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52702         from gl_HEADER_SYS_SOCKET.
52703         (gl_HEADER_SYS_SOCKET): Invoke it.
52704         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52705
52706 2008-09-28  Bruno Haible  <bruno@clisp.org>
52707
52708         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52709         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52710         Needed on OSF/1 4.0.
52711
52712 2008-09-28  Bruno Haible  <bruno@clisp.org>
52713
52714         Override open more carefully.
52715         * lib/open.c (orig_open): New function.
52716         (rpl_open): Use orig_open instead of open.
52717         * lib/fcntl.in.h: Add special invocation convention.
52718         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52719         (gl_FUNC_OPEN): Invoke it.
52720
52721         Override freopen more carefully.
52722         * lib/freopen.c (orig_freopen): New function.
52723         (rpl_freopen): Use orig_freopen instead of freopen.
52724         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52725         (gl_FUNC_FREOPEN): Invoke it.
52726
52727         Override fopen more carefully.
52728         * lib/fopen.c (orig_fopen): New function.
52729         (rpl_fopen): Use orig_fopen instead of fopen.
52730         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52731         (gl_FUNC_FOPEN): Invoke it.
52732         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52733
52734 2008-09-28  Bruno Haible  <bruno@clisp.org>
52735
52736         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52737         SIGPIPE.
52738
52739 2008-09-28  Bruno Haible  <bruno@clisp.org>
52740
52741         * tests/test-sigaction.c (handler, main): Disable the check whether
52742         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52743         glibc systems with LinuxThreads.
52744
52745 2008-09-28  Bruno Haible  <bruno@clisp.org>
52746
52747         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52748
52749         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52750         with AIX xlc.
52751         * lib/fcntl.in.h (open): Likewise.
52752         Reported by Rainer Tammer <tammer@tammer.net>.
52753
52754 2008-09-28  Bruno Haible  <bruno@clisp.org>
52755
52756         * modules/posix_spawnp-tests: New file.
52757         * tests/test-posix_spawn.c: New file.
52758         * tests/test-posix_spawn.in.sh: New file.
52759
52760         New module 'posix_spawnp'.
52761         * modules/posix_spawnp: New file.
52762         * lib/spawnp.c: New file, from GNU libc with modifications.
52763         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52764
52765         New module 'posix_spawn'.
52766         * modules/posix_spawn: New file.
52767         * lib/spawn.c: New file, from GNU libc with modifications.
52768         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52769
52770         New module 'posix_spawnattr_destroy'.
52771         * modules/posix_spawnattr_destroy: New file.
52772         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52773         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52774         module.
52775
52776         New module 'posix_spawnattr_setsigmask'.
52777         * modules/posix_spawnattr_setsigmask: New file.
52778         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52779         modifications.
52780         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52781         new module.
52782
52783         New module 'posix_spawnattr_getsigmask'.
52784         * modules/posix_spawnattr_getsigmask: New file.
52785         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52786         modifications.
52787         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52788         new module.
52789
52790         New module 'posix_spawnattr_setsigdefault'.
52791         * modules/posix_spawnattr_setsigdefault: New file.
52792         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52793         modifications.
52794         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52795         new module.
52796
52797         New module 'posix_spawnattr_getsigdefault'.
52798         * modules/posix_spawnattr_getsigdefault: New file.
52799         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52800         modifications.
52801         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52802         new module.
52803
52804         New module 'posix_spawnattr_setschedpolicy'.
52805         * modules/posix_spawnattr_setschedpolicy: New file.
52806         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52807         modifications.
52808         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52809         new module.
52810
52811         New module 'posix_spawnattr_getschedpolicy'.
52812         * modules/posix_spawnattr_getschedpolicy: New file.
52813         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52814         modifications.
52815         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52816         new module.
52817
52818         New module 'posix_spawnattr_setschedparam'.
52819         * modules/posix_spawnattr_setschedparam: New file.
52820         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52821         modifications.
52822         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52823         new module.
52824
52825         New module 'posix_spawnattr_getschedparam'.
52826         * modules/posix_spawnattr_getschedparam: New file.
52827         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52828         modifications.
52829         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52830         new module.
52831
52832         New module 'posix_spawnattr_setpgroup'.
52833         * modules/posix_spawnattr_setpgroup: New file.
52834         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52835         modifications.
52836         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52837         module.
52838
52839         New module 'posix_spawnattr_getpgroup'.
52840         * modules/posix_spawnattr_getpgroup: New file.
52841         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52842         modifications.
52843         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52844         module.
52845
52846         New module 'posix_spawnattr_setflags'.
52847         * modules/posix_spawnattr_setflags: New file.
52848         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52849         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52850         module.
52851
52852         New module 'posix_spawnattr_getflags'.
52853         * modules/posix_spawnattr_getflags: New file.
52854         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52855         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52856         module.
52857
52858         New module 'posix_spawnattr_init'.
52859         * modules/posix_spawnattr_init: New file.
52860         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52861         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52862         module.
52863
52864         New module 'posix_spawn_file_actions_destroy'.
52865         * modules/posix_spawn_file_actions_destroy: New file.
52866         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52867         modifications.
52868         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52869         the new module.
52870
52871         New module 'posix_spawn_file_actions_addopen'.
52872         * modules/posix_spawn_file_actions_addopen: New file.
52873         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52874         modifications.
52875         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52876         the new module.
52877
52878         New module 'posix_spawn_file_actions_adddup2'.
52879         * modules/posix_spawn_file_actions_adddup2: New file.
52880         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52881         modifications.
52882         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52883         the new module.
52884
52885         New module 'posix_spawn_file_actions_addclose'.
52886         * modules/posix_spawn_file_actions_addclose: New file.
52887         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52888         modifications.
52889         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52890         the new module.
52891
52892         New module 'posix_spawn_file_actions_init'.
52893         * modules/posix_spawn_file_actions_init: New file.
52894         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52895         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52896         new module.
52897
52898         New module 'posix_spawn-internal'.
52899         * modules/posix_spawn-internal: New file.
52900         * lib/spawn_int.h: New file, from GNU libc with modifications.
52901         * lib/spawni.c: New file, from GNU libc with modifications.
52902         * m4/posix_spawn.m4: New file.
52903
52904         New module 'spawn'.
52905         * modules/spawn: New file.
52906         * lib/spawn.in.h: New file, from GNU libc with modifications.
52907         * m4/spawn_h.m4: New file.
52908         * doc/posix-headers/spawn.texi: Mention the new module.
52909
52910 2008-09-28  Bruno Haible  <bruno@clisp.org>
52911
52912         * modules/sched-tests: New file.
52913         * tests/test-sched.c: New file.
52914
52915         New module 'sched'.
52916         * modules/sched: New file.
52917         * lib/sched.in.h: New file.
52918         * m4/sched_h.m4: New file.
52919         * doc/posix-headers/sched.texi: Mention the new module.
52920
52921 2008-09-27  Eric Blake  <ebb9@byu.net>
52922
52923         Fix previous patch, and tweak references to $0.
52924         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52925         (func_version, func_gnulib_dir): Don't call this program
52926         gnulib-tool.
52927         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52928         with using $0 in function.
52929         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52930         (func_fatal_error): Reuse the name the user invoked us with.
52931
52932 2008-09-27  Bruno Haible  <bruno@clisp.org>
52933
52934         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52935         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52936         (gl_ICONV_H): Not here.
52937         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52938         instead of assigning ICONV_H directly.
52939
52940         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52941         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52942         WCHAR_H directly.
52943
52944 2008-09-27  Bruno Haible  <bruno@clisp.org>
52945
52946         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52947         * modules/arpa_inet (Depends-on): Add link-warning.
52948         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52949         * modules/unistd (Makefile.am): Likewise.
52950
52951 2008-09-26  Bruno Haible  <bruno@clisp.org>
52952
52953         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52954         variables.
52955         (func_version): Essentially copied from gnulib-tool.
52956         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52957         func_readlink): Copied from gnulib-tool.
52958
52959 2008-09-26  Bruno Haible  <bruno@clisp.org>
52960
52961         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52962         invoking git-version-gen.
52963
52964 2008-09-26  Bruno Haible  <bruno@clisp.org>
52965
52966         * posix-modules: Update to directory names changed on 2008-01-19.
52967         Remove commas in output before splitting into words. No more need to
52968         avoid 'ftruncate' since 2007-02-19.
52969
52970 2008-09-26  Bruno Haible  <bruno@clisp.org>
52971
52972         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52973
52974 2008-09-26  Bruno Haible  <bruno@clisp.org>
52975
52976         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52977         * modules/fwriteerror (Depends-on): Add errno.
52978
52979 2008-09-26  Bruno Haible  <bruno@clisp.org>
52980
52981         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52982         * tests/test-vc-list-files-cvs.sh: Likewise.
52983
52984 2008-09-26  Bruno Haible  <bruno@clisp.org>
52985
52986         * doc/posix-headers/sys_resource.texi: Reorder items.
52987
52988 2008-09-26  Jim Meyering  <meyering@redhat.com>
52989
52990         fts: tweak inode comparison function
52991         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52992         inode numbers, as documented.
52993
52994         fts: sort dirent entries on inode number before traversing
52995         This avoids a quadratic, seek-related performance penalty when
52996         operating on a directory containing many entries (measurable at 10k;
52997         3.5 hours at 2 million entries with a cold cache) on certain types
52998         of file systems, including ext3 and ext4, but not tmpfs.
52999         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
53000         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
53001         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
53002         (fs_handles_readdir_ordered_dirents_efficiently): New function.
53003         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
53004         (fts_build): Set the stat.st_ino member from D_INO.
53005         If it is likely to be useful, sort dirent entries on inode number.
53006
53007         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
53008         and the struct statfs.f_type member.
53009         * modules/fts (Depends-on): Add d-ino.
53010
53011 2008-09-26  Bruno Haible  <bruno@clisp.org>
53012
53013         * modules/sigpipe-die (Depends-on): Add sigpipe.
53014
53015         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
53016         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
53017         and GNULIB_STDIO_H_SIGPIPE are set.
53018         * lib/stdio-write.c: New file.
53019         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
53020         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53021         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53022         REPLACE_STDIO_WRITE_FUNCS.
53023         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
53024         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53025         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53026         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53027         * modules/stdio (Files): Add lib/stdio-write.c.
53028         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
53029         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53030         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53031         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53032         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
53033         REPLACE_FPRINTF_POSIX.
53034         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
53035         REPLACE_PRINTF_POSIX.
53036         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
53037         REPLACE_VFPRINTF_POSIX.
53038         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
53039         REPLACE_VPRINTF_POSIX.
53040         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
53041         SIGPIPE issue.
53042         * doc/posix-functions/fputc.texi: Likewise.
53043         * doc/posix-functions/fputs.texi: Likewise.
53044         * doc/posix-functions/fwrite.texi: Likewise.
53045         * doc/posix-functions/printf.texi: Likewise.
53046         * doc/posix-functions/putc.texi: Likewise.
53047         * doc/posix-functions/putchar.texi: Likewise.
53048         * doc/posix-functions/puts.texi: Likewise.
53049         * doc/posix-functions/vfprintf.texi: Likewise.
53050         * doc/posix-functions/vprintf.texi: Likewise.
53051
53052         * modules/safe-write (Depends-on): Add write.
53053
53054         * modules/sigpipe-tests: New file.
53055         * tests/test-sigpipe.c: New file.
53056         * tests/test-sigpipe.sh: New file.
53057
53058         * modules/write: New file.
53059         * lib/unistd.in.h: Include <sys/types.h>.
53060         (write): New declaration.
53061         * lib/write.c: New file.
53062         * m4/write.m4: New file.
53063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53064         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
53065         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
53066         GNULIB_WRITE, REPLACE_WRITE.
53067         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
53068         and the SIGPIPE issue.
53069
53070         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
53071         (raise): New declaration.
53072         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
53073         (ext_signal): New function.
53074         (rpl_raise): New function.
53075         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
53076         GNULIB_SIGNAL_H_SIGPIPE.
53077         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
53078         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
53079
53080         * modules/sigpipe: New file.
53081         * m4/sigpipe.m4: New file.
53082
53083 2008-09-25  Derek Price  <derek@ximbiot.com>
53084             Bruno Haible  <bruno@clisp.org>
53085
53086         * gnulib-tool (func_import): Report all license incompatibilities, not
53087         just the first one.
53088
53089 2008-09-25  Bruno Haible  <bruno@clisp.org>
53090
53091         * gnulib-tool (func_import): When computing the edits, consider not
53092         only the Makefile.ams that exist but also those that will be generated.
53093
53094 2008-09-25  Simon Josefsson  <simon@josefsson.org>
53095
53096         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
53097         fixes gnulib-tool --test warning about duplicate dependency.
53098
53099 2008-09-25  Bruno Haible  <bruno@clisp.org>
53100
53101         * gnulib-tool: Don't ask the user to perform edits in the generated
53102         Makefile.ams.
53103         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
53104         apply to the Makefile.am being generated.
53105         (func_emit_tests_Makefile_am): Execute edits that apply to the
53106         Makefile.am being generated.
53107         (func_import): Setup list of Makefile.am edits before emitting the
53108         Makefile.ams, not at the end.
53109         (func_create_testdir): Update.
53110         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53111
53112 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53113
53114         * gnulib-tool (func_import): Store the --tests-base option in the
53115         comment in gnulib-cache.m4.
53116
53117 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
53118
53119         * NEWS: Document increased portability that sys_select now provides.
53120
53121         * lib/sys_select.in.h: Install select wrapper.
53122         * lib/sys_socket.in.h: Use more descriptive name when there is no
53123         select wrapper.
53124         * lib/winsock-select.c: New.
53125         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
53126         Require gl_HEADER_SYS_SOCKET.
53127         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
53128         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
53129         * tests/test-sys_select.c: Add functional tests.
53130
53131 2008-09-24  Eric Blake  <ebb9@byu.net>
53132
53133         open, fopen: close fd leak in last patch
53134         * lib/open.c (rpl_open): Close fd before returning error.
53135         * lib/fopen.c (rpl_fopen): Close fd before returning error.
53136         * doc/posix-functions/open.texi (open): Document that Irix also
53137         has the bug.
53138         * doc/posix-functions/fopen.texi (fopen): Likewise.
53139         Reported by Paolo Bonzini.
53140
53141 2008-09-24  Bruno Haible  <bruno@clisp.org>
53142
53143         Ensure that a filename ending in a slash cannot be used to access a
53144         non-directory.
53145         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
53146         to check whether it's really a directory.
53147         * lib/fopen.c: Include fcntl.h, unistd.h.
53148         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
53149         and fdopen().
53150         * modules/fopen (Depends-on): Add unistd.
53151         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
53152         * tests/test-fopen.c (main): Likewise.
53153         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
53154         * doc/posix-functions/fopen.texi: Likewise.
53155         Reported by Eric Blake.
53156
53157 2008-09-23  Eric Blake  <ebb9@byu.net>
53158
53159         c-stack: avoid compiler optimizations when provoking overflow
53160         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
53161         recursion harder to optimize, to ensure a stack overflow occurs.
53162         * tests/test-c-stack.c (recurse): Likewise.
53163         Borrowed from libsigsegv.
53164
53165         c-stack: work around Irix sigaltstack bug
53166         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
53167         whether sigaltstack uses wrong end of stack_t (copied in part from
53168         libsigsegv).
53169         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
53170         Irix bug, without requiring an over-allocation.
53171         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
53172         bug.
53173
53174         fopen: document mingw bug on directories
53175         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
53176         not allowing a stream visiting a directory, even though reading
53177         from such a stream is not portable.
53178
53179 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53180
53181         * lib/poll.c: Rewrite.
53182         * modules/poll: Depend on alloca.
53183
53184 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53185
53186         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
53187         instead define prototypes for a full set of wrappers.  Ensure
53188         that Cygwin does not use the compatibility code, which is only
53189         for MinGW.
53190         * lib/winsock.c: New.
53191         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
53192         * modules/sys_socket: Add lib/winsock.c.
53193
53194         * modules/poll-tests: Add errno and perror.
53195         * tests/test-poll.c: Use ioctl, not ioctlsocket.
53196
53197 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53198
53199         * tests/test-poll.c: Downgrade minimum needed Winsock version.
53200
53201 2008-09-23  Bruno Haible  <bruno@clisp.org>
53202
53203         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
53204         * doc/glibc-functions/*: Likewise.
53205
53206 2008-09-23  Simon Josefsson  <simon@josefsson.org>
53207
53208         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
53209         success.
53210
53211 2008-09-22  Eric Blake  <ebb9@byu.net>
53212             Bruno Haible  <bruno@clisp.org>
53213
53214         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
53215         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
53216         supply %A but mishandle pseudo-NaN.
53217         Reported by Simon Josefsson.
53218
53219 2008-09-21  Bruno Haible  <bruno@clisp.org>
53220
53221         * tests/test-lock.c (main): Tweak skip message.
53222         * tests/test-tls.c (main): Likewise.
53223
53224 2008-09-21  Bruno Haible  <bruno@clisp.org>
53225
53226         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
53227         whether 'struct sigaction' has sa_sigaction here...
53228         (gl_PREREQ_SIG_HANDLER_H): ... not here.
53229         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
53230
53231 2008-09-21  Bruno Haible  <bruno@clisp.org>
53232
53233         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
53234         section.
53235         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
53236         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
53237         the new section.
53238         (Support for obsolete systems lacking POSIX:2001): New section.
53239         (String handling <string.h>): Move strdup to the new section.
53240         Suggested by Simon Josefsson and Paolo Bonzini.
53241
53242 2008-09-21  Bruno Haible  <bruno@clisp.org>
53243
53244         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
53245         exponents in %e and %g results on 'long double'. Needed for mingw's
53246         improved *printf functions.
53247         * tests/test-vasprintf-posix.c (test_function): Likewise.
53248         * tests/test-snprintf-posix.h (test_function): Likewise.
53249         * tests/test-sprintf-posix.h (test_function): Likewise.
53250         Reported by Eric Blake.
53251
53252 2008-09-21  Bruno Haible  <bruno@clisp.org>
53253
53254         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
53255         * tests/test-sprintf-posix.h (test_function): Likewise.
53256
53257 2008-09-21  Bruno Haible  <bruno@clisp.org>
53258
53259         * modules/getpass (Depends-on): Add strdup-posix.
53260
53261         New module 'strdup-posix'.
53262         * modules/strdup-posix: New file.
53263         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
53264         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
53265         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53266         REPLACE_STRDUP.
53267         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
53268         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
53269         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53270         strdup-posix.
53271
53272         * modules/strdup (Depends-on): Remove malloc-posix.
53273
53274 2008-09-20  Bruno Haible  <bruno@clisp.org>
53275
53276         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
53277         Wildenhues.
53278
53279 2008-09-20  Bruno Haible  <bruno@clisp.org>
53280
53281         Ensure that wint_t gets defined on IRIX 5.3.
53282         * lib/wchar.in.h (wint_t): Define if not defined by the system.
53283         * lib/wctype.in.h (wint_t): Likewise.
53284         (__wctype_wint_t): Remove type.
53285         (isw*): Use wint_t instead of __wctype_wint_t.
53286         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
53287         * modules/wchar (Files): Add m4/wint_t.m4.
53288         (Makefile.am): Substitute HAVE_WINT_T.
53289         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
53290         * tests/test-wctype.c: Check that wint_t is defined.
53291         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
53292         * doc/posix-headers/wctype.texi: Likewise.
53293         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53294
53295 2008-09-18  Bruno Haible  <bruno@clisp.org>
53296
53297         * gnulib-tool (func_exit): Update comment.
53298
53299 2008-09-18  Simon Josefsson  <simon@josefsson.org>
53300
53301         * modules/getaddrinfo (Depends-on): Remove strdup, this module
53302         assumes strdup exists and does not depend on strdup to return
53303         ENOMEM on out of memory conditions.
53304
53305 2008-09-18  Bruno Haible  <bruno@clisp.org>
53306
53307         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
53308         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
53309         digits for the exponent.
53310
53311 2008-09-18  Jim Meyering  <meyering@redhat.com>
53312             Bruno Haible  <bruno@clisp.org>
53313
53314         * lib/vasnprintf.c (decimal_point_char): Define also if
53315         NEED_PRINTF_INFINITE_LONG_DOUBLE.
53316
53317 2008-09-16  Bruno Haible  <bruno@clisp.org>
53318         and Eric Blake  <ebb9@byu.net>
53319
53320         vasnprintf: support Irix 5.3
53321         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
53322         that mishandle long double infinity.
53323         Reported by Tom G. Christensen.
53324
53325 2008-09-16  Bruno Haible  <bruno@clisp.org>
53326
53327         * doc/glibc-functions/scandir.texi: Mention the function is missing on
53328         Solaris 9.
53329         * doc/glibc-functions/alphasort.texi: Likewise.
53330         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
53331
53332 2008-09-16  Jim Meyering  <meyering@redhat.com>
53333
53334         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
53335         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
53336         a umask modification leak out of a subshell.  Otherwise, the
53337         opensolaris /bin/sh would be accepted and thus cause unwarranted
53338         failures in the coreutils test suite.
53339
53340 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
53341
53342         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
53343         to succeed.
53344
53345 2008-09-16  Jim Meyering  <meyering@redhat.com>
53346
53347         avoid spurious test failure when library is built without ACL support
53348         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
53349         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
53350         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
53351         * tests/test-copy-acl.sh: Likewise.
53352
53353 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53354
53355         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
53356         based on character occurrence counts.
53357
53358 2008-09-15  Eric Blake  <ebb9@byu.net>
53359
53360         tests: avoid some compiler warnings
53361         * tests/test-memchr.c (main): Pass NULL indirectly.
53362         * tests/test-closein.c (main): Avoid unused variable.
53363
53364 2008-09-15  Bruno Haible  <bruno@clisp.org>
53365
53366         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
53367         are missing on OpenBSD 4.0 individually.
53368         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53369
53370 2008-09-15  Bruno Haible  <bruno@clisp.org>
53371
53372         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
53373         * doc/posix-functions/strerror.texi: Mention also Cygwin.
53374         * doc/posix-functions/perror.texi: Likewise.
53375         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
53376         is missing.
53377         Reported by Eric Blake.
53378
53379         * lib/errno.in.h: Use replacement values >= 2000.
53380         Reported by Eric Blake.
53381
53382 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53383
53384         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
53385         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
53386         limit.
53387         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
53388         compareseq was aborted.
53389
53390 2008-09-14  Bruno Haible  <bruno@clisp.org>
53391
53392         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
53393         yvec_edit_count.
53394         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
53395         (fstrcmp_bounded): Simplify result computation accordingly.
53396
53397 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53398
53399         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
53400         (fstrcmp): Define in terms of fstrcmp_bounded.
53401         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
53402         lower_bound argument.
53403         Return quickly if the result is certainly < lower_bound.
53404         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
53405
53406 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53407
53408         * lib/diffseq.h (EARLY_ABORT): New macro.
53409         (compareseq): Change return type to bool. Return true when EARLY_ABORT
53410         evaluates to true.
53411
53412 2008-09-14  Bruno Haible  <bruno@clisp.org>
53413
53414         * modules/perror-tests: New file.
53415         * tests/test-perror.sh: New file.
53416         * tests/test-perror.c: New file.
53417
53418         New module 'perror'.
53419         * lib/stdio.in.h (perror): New declaration.
53420         * lib/perror.c: New file.
53421         * m4/perror.m4: New file.
53422         * modules/perror: New file.
53423         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
53424         * doc/posix-functions/perror.texi: Mention the perror module.
53425         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
53426         REPLACE_PERROR.
53427         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
53428         REPLACE_PERROR.
53429
53430 2008-09-14  Bruno Haible  <bruno@clisp.org>
53431
53432         * modules/stdio (Makefile.am): Reorder to match the order in
53433         lib/stdio.in.h.
53434         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53435
53436 2008-09-13  Bruno Haible  <bruno@clisp.org>
53437
53438         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
53439
53440 2008-09-13  Bruno Haible  <bruno@clisp.org>
53441
53442         Extend strerror to cover the added errno values.
53443         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
53444         (rpl_strerror): Provide error messages for the added errno values and
53445         for the WSA* values.
53446         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
53447         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
53448         strerror.
53449         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
53450         * modules/strerror (Depends-on): Add errno.
53451         * doc/posix-functions/strerror.texi: Document the change.
53452         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
53453         and EOVERFLOW.
53454
53455 2008-09-13  Bruno Haible  <bruno@clisp.org>
53456
53457         * modules/EOVERFLOW: Remove file.
53458         * m4/eoverflow.m4: Remove file.
53459         * modules/EOVERFLOW-tests: Remove file.
53460         * tests/test-EOVERFLOW.c: Remove file.
53461         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
53462         * modules/ftell (Depends-on): Likewise.
53463         * modules/getdelim (Depends-on): Likewise.
53464         * modules/getugroups (Depends-on): Likewise.
53465         * modules/poll (Depends-on): Likewise.
53466         * modules/snprintf (Depends-on): Likewise.
53467         * modules/sprintf-posix (Depends-on): Likewise.
53468         * modules/vasnprintf (Depends-on): Likewise.
53469         * modules/vasprintf (Depends-on): Likewise.
53470         * modules/vfprintf-posix (Depends-on): Likewise.
53471         * modules/vsnprintf (Depends-on): Likewise.
53472         * modules/vsprintf-posix (Depends-on): Likewise.
53473         * modules/xvasprintf (Depends-on): Likewise.
53474         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53475         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
53476         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
53477         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
53478         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53479         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
53480         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
53481         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
53482         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53483         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
53484         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
53485         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
53486         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53487         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
53488         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
53489         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
53490         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53491         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
53492         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
53493         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
53494         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53495         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
53496         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
53497         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
53498         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
53499         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53500         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
53501         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
53502         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
53503         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
53504         * MODULES.html.sh: Remove EOVERFLOW.
53505         * NEWS: Mention the change.
53506
53507 2008-09-13  Bruno Haible  <bruno@clisp.org>
53508
53509         * modules/errno-tests: New file.
53510         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
53511
53512         * lib/errno.in.h: New file.
53513         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
53514         * modules/errno: New file.
53515         * doc/posix-headers/errno.texi: Update documentation.
53516         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
53517
53518 2008-09-13  Bruno Haible  <bruno@clisp.org>
53519
53520         * tests/test-poll.c: Use #if for native Windows, rather than testing
53521         __MSVCRT__.
53522
53523 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53524             Bruno Haible  <bruno@clisp.org>
53525
53526         * lib/glob.c: Don't include <pwd.h> on native Windows.
53527         (WINDOWS32): New macro.
53528         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
53529
53530 2008-09-13  Bruno Haible  <bruno@clisp.org>
53531
53532         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
53533         (ETIMEDOUT): Remove macro.
53534         (glthread_cond_timedwait_multithreaded): New declaration.
53535         (glthread_cond_timedwait): Use it.
53536         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
53537         (glthread_cond_timedwait_multithreaded): New function.
53538
53539 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53540
53541         * modules/poll-tests: Do not check for io.h.
53542         * tests/test-poll.c: Check for __MSVCRT__ instead.
53543
53544 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53545
53546         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
53547         * modules/poll-tests: Add inet_pton, stdbool, sockets.
53548         * tests/test-poll.c: Use them.  Use _pipe on Windows.
53549
53550 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53551
53552         * modules/poll-tests: New.
53553         * tests/test-poll.c: New.
53554
53555 2008-09-12  Eric Blake  <ebb9@byu.net>
53556
53557         frexp: test for NetBSD failure on -0.0
53558         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53559         not all, bugs from NetBSD 3.0 have been fixed.
53560         * doc/posix-functions/frexp.texi (frexp): Document bug.
53561         Reported by Thomas Klausner.
53562
53563         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53564         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53565         literal -0.0.
53566         Reported by Jonathan C. Patschke <jp@centtech.com>.
53567
53568 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53569
53570         * lib/glthread/cond.h: Use dummy implementation also if
53571         USE_WIN32_THREADS.
53572
53573 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53574
53575         * modules/fnmatch-posix (License): Change to LGPLv2+.
53576         * modules/fnmatch-gnu (License): Likewise.
53577
53578 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53579
53580         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53581
53582 2008-09-11  Jim Meyering  <meyering@redhat.com>
53583
53584         * users.txt: Add gtk-vnc.
53585
53586 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53587
53588         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53589         rotate amounts.
53590
53591         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53592         required for 16-bit and 8-bit rotates.
53593         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53594         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53595         UINT8_MAX instead of hard-coded constants.
53596         Suggested by Paul Eggert.
53597
53598 2008-09-07  Bruno Haible  <bruno@clisp.org>
53599
53600         * tests/test-striconveh.c (main): Check behaviour when converting from
53601         UTF-7.
53602
53603         Make striconveh work better with stateful encodings.
53604         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53605         that iconv does not increment the inptr when returning -1/EINVAL.
53606
53607 2008-09-07  Bruno Haible  <bruno@clisp.org>
53608
53609         * build-aux/config.rpath: Update according to libtool-2.2.6.
53610         * build-aux/config.libpath: Likewise.
53611
53612 2008-09-06  Bruno Haible  <bruno@clisp.org>
53613
53614         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53615         * lib/freadptr.c (freadptr): Likewise.
53616         * lib/freadseek.c (freadptrinc): Likewise.
53617         Reported by Simon Josefsson.
53618
53619 2008-09-06  Bruno Haible  <bruno@clisp.org>
53620
53621         * modules/freadptr (License): Change to LGPLv2+.
53622         * modules/freadseek (License): Likewise.
53623         Suggested by Eric Blake.
53624
53625         * modules/memchr2 (License): Change to LGPLv2+.
53626         Approved by Eric Blake.
53627
53628 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53629             Bruno Haible  <bruno@clisp.org>
53630
53631         Make gnulib-tool work with native 'sed' on AIX.
53632         * gnulib-tool (sed_noop): New variable.
53633         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53634         func_add_or_update, func_create_testdir): Use it to initialize sed
53635         script variables.
53636         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53637
53638 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53639             Bruno Haible  <bruno@clisp.org>
53640
53641         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53642         also works after #include directives.
53643
53644 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
53645
53646         getdate.y: reject an out-of-range timezone value
53647         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53648         the range [-24...+24].  When specified with only one or two digits,
53649         * tests/test-getdate.c: Tests for the fix.
53650         * doc/getdate.texi: Document this change.
53651
53652 2008-09-03  Bruno Haible  <bruno@clisp.org>
53653
53654         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53655
53656 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53657
53658         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53659         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53660         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53661         Blake <ebb9@byu.net>.
53662
53663         * tests/test-bitrotate.c: Add more test vectors.
53664
53665 2008-09-02  Eric Blake  <ebb9@byu.net>
53666
53667         vasnprintf-posix: handle large precision via %.*d
53668         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53669         when handling it ourselves.
53670         * tests/test-vasnprintf-posix.c (test_function): Add test.
53671         * tests/test-snprintf-posix.h (test_function): Likewise.
53672         * tests/test-sprintf-posix.h (test_function): Likewise.
53673         * tests/test-vasprintf-posix.c (test_function): Likewise.
53674         Reported by Alain Guibert.
53675
53676 2008-09-01  Eric Blake  <ebb9@byu.net>
53677
53678         c-stack: make configure-time check more robust
53679         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53680         successful sigaction call.
53681         Reported by Tom G. Christensen.
53682
53683 2008-09-01  Bruno Haible  <bruno@clisp.org>
53684
53685         New module 'findprog-lgpl'.
53686         * modules/findprog-lgpl: New file.
53687         * lib/findprog-lgpl.c: New file.
53688         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53689         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53690         to decide whether to use strdup or xstrdup, concatenated_filename or
53691         xconcatenated_filename.
53692
53693 2008-09-01  Bruno Haible  <bruno@clisp.org>
53694
53695         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53696         'xconcat-filename' (GPL).
53697         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53698         (License): Change to LGPLv2+.
53699         * modules/xconcat-filename: New file.
53700         * lib/concat-filename.h (concatenated_filename): Change specification.
53701         (xconcatenated_filename): New declaration.
53702         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53703         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53704         memory situations.
53705         * lib/xconcat-filename.c: New file.
53706         * NEWS: Mention the change.
53707         * lib/findprog.c: Include concat-filename.h, not filename.h.
53708         (find_in_path): Use xconcatenated_filename instead of
53709         concatenated_filename.
53710         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53711         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53712         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53713         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53714         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53715         instead of concatenated_filename.
53716         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53717         (execute_java_class): Use xconcatenated_filename instead of
53718         concatenated_filename.
53719         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53720         * modules/javacomp (Depends-on): Likewise.
53721         * modules/javaexec (Depends-on): Likewise.
53722
53723 2008-09-01  Bruno Haible  <bruno@clisp.org>
53724
53725         Split module 'filename' into 'filename' and 'concat-filename'.
53726         * modules/filename: Keep only lib/filename.h.
53727         (License): Change to LGPLv2+.
53728         * modules/concat-filename: New file, extracted from modules/filename.
53729         * lib/filename.h (concatenated_filename): Remove declaration.
53730         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53731         * lib/concat-filename.c: Include concat-filename.h.
53732         * NEWS: Mention the change.
53733
53734 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53735
53736         * lib/bitrotate.h (rotl8, rotr8): Add.
53737
53738         * modules/bitrotate (configure.ac): Need
53739         AC_REQUIRE([AC_C_INLINE]).
53740         (Description): Mention stdint.h.  Reported by Bruno Haible
53741         <bruno@clisp.org>.
53742
53743         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53744         Paolo Bonzini <bonzini@gnu.org>.
53745
53746 2008-08-31  Bruno Haible  <bruno@clisp.org>
53747
53748         Assume Solaris specific bi-arch conventions on Solaris systems.
53749         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53750         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53751         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53752         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53753         like acl_libdirstem.
53754         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53755         acl_libdirstem.
53756         * NEWS: Mention the change.
53757         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53758
53759 2008-08-31  Jim Meyering  <meyering@redhat.com>
53760
53761         * lib/strftime.h: Add comments describing the two added arguments.
53762
53763         remove duplicate #include directives
53764         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53765         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53766
53767 2008-08-31  Bruno Haible  <bruno@clisp.org>
53768
53769         New module 'sigpipe-die'.
53770         * modules/sigpipe-die: New file.
53771         * lib/sigpipe-die.h: New file.
53772         * lib/sigpipe-die.c: New file.
53773         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53774
53775 2008-08-31  Bruno Haible  <bruno@clisp.org>
53776
53777         Don't override previously installed signal handlers.
53778         * lib/fatal-signal.c (saved_sigactions): New variable.
53779         (uninstall_handlers): Reset the signal to the saved handler, not
53780         to SIG_DFL (except when ignored).
53781         (install_handlers): Save the previous handlers.
53782
53783 2008-08-30  Bruno Haible  <bruno@clisp.org>
53784
53785         * gnulib-tool (func_reset_sigpipe): New function.
53786         (func_get_automake_snippet, func_modules_transitive_closure,
53787         func_import): Invoke it before a join command that reads from stdin,
53788         to avoid "echo: write error: Broken pipe" error messages on stderr.
53789         Reported by Sam Steingold <sds@gnu.org>.
53790
53791 2008-08-30  Bruno Haible  <bruno@clisp.org>
53792
53793         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53794         Code copied from m4/open.m4.
53795         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53796         access and the filename ends in a slash. Code copied from lib/open.c.
53797         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53798         * tests/test-fopen.c (main): Check against bug with trailing slash.
53799
53800 2008-08-29  Bruno Haible  <bruno@clisp.org>
53801
53802         Avoid some "gcc -pedantic" warnings.
53803         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53804         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53805         * lib/dirent.in.h: Likewise.
53806         * lib/fcntl.in.h: Likewise.
53807         * lib/float.in.h: Likewise.
53808         * lib/iconv.in.h: Likewise.
53809         * lib/inttypes.in.h: Likewise.
53810         * lib/locale.in.h: Likewise.
53811         * lib/math.in.h: Likewise.
53812         * lib/netinet_in.in.h: Likewise.
53813         * lib/search.in.h: Likewise.
53814         * lib/signal.in.h: Likewise.
53815         * lib/stdarg.in.h: Likewise.
53816         * lib/stdint.in.h: Likewise.
53817         * lib/stdio.in.h: Likewise.
53818         * lib/stdlib.in.h: Likewise.
53819         * lib/string.in.h: Likewise.
53820         * lib/strings.in.h: Likewise.
53821         * lib/sys_select.in.h: Likewise.
53822         * lib/sys_socket.in.h: Likewise.
53823         * lib/sys_stat.in.h: Likewise.
53824         * lib/sys_time.in.h: Likewise.
53825         * lib/sysexits.in.h: Likewise.
53826         * lib/time.in.h: Likewise.
53827         * lib/unistd.in.h: Likewise.
53828         * lib/wchar.in.h: Likewise.
53829         * lib/wctype.in.h: Likewise.
53830         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53831         * modules/fchdir (Makefile.am): Likewise.
53832         * modules/fcntl (Makefile.am): Likewise.
53833         * modules/float (Makefile.am): Likewise.
53834         * modules/iconv_open (Makefile.am): Likewise.
53835         * modules/inttypes (Makefile.am): Likewise.
53836         * modules/locale (Makefile.am): Likewise.
53837         * modules/math (Makefile.am): Likewise.
53838         * modules/netinet_in (Makefile.am): Likewise.
53839         * modules/search (Makefile.am): Likewise.
53840         * modules/signal (Makefile.am): Likewise.
53841         * modules/stdarg (Makefile.am): Likewise.
53842         * modules/stdint (Makefile.am): Likewise.
53843         * modules/stdio (Makefile.am): Likewise.
53844         * modules/stdlib (Makefile.am): Likewise.
53845         * modules/string (Makefile.am): Likewise.
53846         * modules/strings (Makefile.am): Likewise.
53847         * modules/sys_select (Makefile.am): Likewise.
53848         * modules/sys_socket (Makefile.am): Likewise.
53849         * modules/sys_stat (Makefile.am): Likewise.
53850         * modules/sys_time (Makefile.am): Likewise.
53851         * modules/sysexits (Makefile.am): Likewise.
53852         * modules/time (Makefile.am): Likewise.
53853         * modules/unistd (Makefile.am): Likewise.
53854         * modules/wchar (Makefile.am): Likewise.
53855         * modules/wctype (Makefile.am): Likewise.
53856         Reported by Reuben Thomas <rrt@sc3d.org>.
53857
53858 2008-08-29  Bruno Haible  <bruno@clisp.org>
53859
53860         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53861         any more.
53862
53863 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53864
53865         * MODULES.html.sh (Misc): Add bitrotate.
53866
53867         * modules/bitrotate: New file.
53868
53869         * lib/bitrotate.h: New file.
53870
53871         * modules/bitrotate-tests: New file.
53872
53873         * tests/test-bitrotate.c: New file.
53874
53875         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53876         on the bitrotate module.
53877
53878         * lib/arctwo.c: Use new bitrotate module.
53879
53880 2008-08-29  Jim Meyering  <meyering@redhat.com>
53881
53882         bootstrap: merge changes from coreutils
53883         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53884         of copied files.  Remove a kludge, now that this is fixed.
53885         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53886         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53887         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53888
53889 2008-08-29  Bruno Haible  <bruno@clisp.org>
53890
53891         * MODULES.html.sh: Remove --cvs-urls option.
53892
53893 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53894
53895         maint.mk: adjust to file name change
53896         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53897
53898 2008-08-28  Jim Meyering  <meyering@redhat.com>
53899
53900         * modules/getndelim2 (License): Relicense to LGPLv2+.
53901         Approved by Richard Stallman for the version of 1995, and by
53902         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53903
53904 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53905
53906         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53907         dummy if one is not available.  Do not touch them if
53908         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53909         (getc_maybe_unlocked): New.
53910         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53911
53912 2008-08-26  Eric Blake  <ebb9@byu.net>
53913
53914         doc/INSTALL: resync from autoconf
53915         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53916         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53917         moving...
53918         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53919         * INSTALL: Regenerate.
53920         * INSTALL.ISO: New file.
53921         * INSTALL.UTF-8: Likewise.
53922
53923 2008-08-26  Jim Meyering  <meyering@redhat.com>
53924
53925         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53926         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53927         these definitions conditional, so that they may be overridden, too.
53928
53929 2008-08-26  Bruno Haible  <bruno@clisp.org>
53930
53931         Generate INSTALL file variants with prettier quotes.
53932         * doc/Makefile (INSTALL_PRELUDE): New macro.
53933         (INSTALL): Use it.
53934         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53935
53936 2008-08-26  Bruno Haible  <bruno@clisp.org>
53937
53938         Run makeinfo in an English locale.
53939         * doc/Makefile (MAKEINFO): New variable.
53940
53941 2008-08-26  Bruno Haible  <bruno@clisp.org>
53942
53943         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53944         Suggested by Eric Blake.
53945
53946 2008-08-25  Bruno Haible  <bruno@clisp.org>
53947
53948         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53949
53950 2008-08-25  Eric Blake  <ebb9@byu.net>
53951
53952         c-stack: test that stack overflow can be caught
53953         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53954         that platform allows handling stack overflow; at least OS/2 EMX
53955         has sigaltstack, but crashes before transferring control to
53956         handler on stack overflow.
53957         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53958         check for HAVE_STACK_OVERFLOW_HANDLING.
53959         Reported by Elbert Pol.
53960
53961 2008-08-25  Bruno Haible  <bruno@clisp.org>
53962
53963         * doc/posix-functions/strftime.texi: Fix description of strftime
53964         module.
53965
53966 2008-08-24  Bruno Haible  <bruno@clisp.org>
53967
53968         * tests/uniwidth/test-uc_width2.c: New file.
53969         * tests/uniwidth/test-uc_width2.sh: New file.
53970         * modules/uniwidth/width-tests (Files): Add the new files.
53971         (TESTS): Add uniwidth/test-uc_width2.sh.
53972         (TESTS_ENVIRONMENT): New variable.
53973         (check_PROGRAMS): Add test-uc_width2.
53974         (test_uc_width2_SOURCES): New variable.
53975
53976         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53977         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53978         not 0x00AB.
53979         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53980
53981 2008-08-22  Eric Blake  <ebb9@byu.net>
53982
53983         test-lock, test-tls: mention why a test is skipped
53984         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53985         skipped.
53986         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53987
53988         count-one-bits: relax license
53989         * modules/count-one-bits (License): Relicense to LGPLv2+.
53990         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53991
53992 2008-08-22  Andreas Schwab  <schwab@suse.de>
53993
53994         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53995         Remove spurious space in assignment.
53996
53997 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53998
53999         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
54000         Paul Eggert <eggert@CS.UCLA.EDU>.
54001
54002 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
54003
54004         * modules/gettext: Add m4/threadlib.m4.
54005
54006 2008-08-19  Eric Blake  <ebb9@byu.net>
54007
54008         test-c-stack: fix compilation failure on FreeBSD 5.0
54009         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
54010         headers before <sys/resource.h>.
54011         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
54012         the bug.
54013         Reported by Nelson H. F. Beebe.
54014
54015         strverscmp: migrate from "strverscmp.h" to <string.h>
54016         * modules/string (Makefile.am): Add new hooks.
54017         * modules/strverscmp (Files): Remove strverscmp.h.
54018         (Depends-on): Add string.
54019         (configure.ac): Add indicator.
54020         (Include): Mention new header.
54021         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
54022         defaults.
54023         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
54024         results.
54025         * lib/strverscmp.h: Delete.
54026         * lib/string.in.h (strverscmp): Provide declaration, when needed.
54027         * tests/test-strverscmp.c (includes): Adjust client.
54028         * lib/check-version.c (includes): Likewise.
54029         * NEWS: Document the change.
54030
54031         strverscmp: add unit test
54032         * modules/strverscmp-tests: New file.
54033         * tests/test-strverscmp.c: Likewise.
54034
54035 2008-08-19  Simon Josefsson  <simon@josefsson.org>
54036
54037         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
54038         regarding Windows crypto stuff, from Mono.
54039
54040 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
54041
54042         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
54043         if present, for intel RND.  Return error on failures.
54044
54045 2008-08-18  Ben Pfaff  <blp@gnu.org>
54046
54047         gitlog-to-changelog: give better diagnostic for failed pipe-open
54048         * build-aux/gitlog-to-changelog: Improve error message: suggest
54049         that the version of Git may be too old.
54050
54051 2008-08-18  Simon Josefsson  <simon@josefsson.org>
54052
54053         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
54054         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
54055
54056 2008-08-18  Bruno Haible  <bruno@clisp.org>
54057
54058         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
54059         pthread_in_use().
54060
54061 2008-08-18  Bruno Haible  <bruno@clisp.org>
54062
54063         * lib/glthread/threadlib.c: Include <pthread.h>.
54064
54065 2008-08-18  Bruno Haible  <bruno@clisp.org>
54066
54067         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
54068         glthread_recursive_lock_* macros.
54069         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
54070         Fix syntax error.
54071
54072 2008-08-18  Bruno Haible  <bruno@clisp.org>
54073
54074         * lib/glthread/thread.c: Avoid forcing a context switch right after
54075         thread creation.
54076
54077 2008-08-17  Bruno Haible  <bruno@clisp.org>
54078
54079         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
54080         * lib/glthread/thread.h: Provide Win32 specific implementation.
54081         * modules/thread (Files): Add lib/glthread/thread.c.
54082         (Depends-on): Add lock.
54083         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
54084
54085 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54086
54087         New module 'yield'.
54088         * modules/yield: New file.
54089         * lib/glthread/yield.h: New file.
54090         * m4/yield.m4: New file.
54091         * MODULES.html.sh (Multithreading): Add yield.
54092
54093 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54094
54095         New module 'thread'.
54096         * modules/thread: New file.
54097         * lib/glthread/thread.h: New file.
54098         * m4/thread.m4: New file.
54099         * MODULES.html.sh (Multithreading): Add thread.
54100
54101 2008-08-17  Bruno Haible  <bruno@clisp.org>
54102
54103         * lib/glthread/lock.h: Include <stdlib.h> always.
54104         * lib/glthread/tls.h: Likewise.
54105         * lib/glthread/cond.h: Likewise.
54106
54107 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54108
54109         New module 'cond'.
54110         * modules/cond: New file.
54111         * lib/glthread/cond.h: New file.
54112         * lib/glthread/cond.c: New file.
54113         * m4/cond.m4: New file.
54114         * MODULES.html.sh (Multithreading): Add cond.
54115
54116 2008-08-16  Eric Blake  <ebb9@byu.net>
54117
54118         c-stack: fix regression on Irix 5.3 from 2008-06-21
54119         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
54120         sa_sigaction...
54121         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
54122         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
54123         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
54124         * modules/signal (Makefile.am): Use the value.
54125         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
54126         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
54127         * doc/posix-headers/signal.texi (signal.h): Document this
54128         portability issue.
54129         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
54130         Reported by Tom G. Christensen.
54131
54132 2008-08-17  Bruno Haible  <bruno@clisp.org>
54133
54134         New module 'threadlib'.
54135         * modules/threadlib: New file.
54136         * lib/glthread/threadlib.c: New file, extracted from
54137         lib/glthread/lock.c.
54138         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
54139         functions.
54140         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
54141         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
54142         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
54143         macros.
54144         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
54145         (gl_DISABLE_THREADS): Remove macro.
54146         * modules/lock (Files): Remove build-aux/config.rpath.
54147         (Depends-on): Remove havelib. Add threadlib.
54148         (configure.ac-early): Remove section.
54149         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
54150         * modules/tls (Depends-on): Remove lock. Add threadlib.
54151         (Link): New section, copied from threadlib.
54152         * MODULES.html.sh (Multithreading): Add threadlib.
54153
54154 2008-08-14  Bruno Haible  <bruno@clisp.org>
54155
54156         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
54157         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
54158         glthread_rwlock_unlock, glthread_rwlock_destroy,
54159         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
54160         glthread_recursive_lock_destroy): Define as macros always.
54161         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
54162         glthread_lock_lock.
54163         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
54164         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
54165         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
54166         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
54167         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
54168         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
54169         (glthread_recursive_lock_lock_func): Renamed from
54170         glthread_recursive_lock_lock.
54171         (glthread_recursive_lock_unlock_func): Renamed from
54172         glthread_recursive_lock_unlock.
54173         (glthread_recursive_lock_destroy_func): Renamed from
54174         glthread_recursive_lock_destroy.
54175
54176 2008-08-14  Bruno Haible  <bruno@clisp.org>
54177
54178         * lib/glthread/lock.h: Renamed from lib/lock.h.
54179         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
54180         * lib/glthread/tls.h: Renamed from lib/tls.h.
54181         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
54182         * lib/fstrcmp.c: Update includes.
54183         * lib/strsignal.c: Update includes.
54184         * modules/lock (Files, Makefile.am): Update.
54185         (Include): Change to "glthread/lock.h".
54186         * modules/tls (Files, Makefile.am): Update.
54187         (Include): Change to "glthread/tls.h".
54188         * tests/test-lock.c: Update includes.
54189         * tests/test-tls.c: Update includes.
54190         * NEWS: Mention the renamed header files.
54191
54192 2008-08-11  Jim Meyering  <meyering@redhat.com>
54193
54194         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
54195
54196 2008-08-11  Eric Blake  <ebb9@byu.net>
54197
54198         test-c-stack: avoid C99-ism
54199         * tests/test-c-stack.c (main): Fix whitespace, move declaration
54200         before statement.
54201         Reported by Alain Guibert.
54202
54203 2008-08-10  Jim Meyering  <meyering@redhat.com>
54204
54205         ensure that return value of uinttostr et al are not ignored
54206         * lib/inttostr.h (__GNUC_PREREQ): Define.
54207         (__attribute_warn_unused_result__): Define.
54208         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
54209
54210 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
54211
54212         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
54213         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
54214
54215 2008-08-07  Jim Meyering  <meyering@redhat.com>
54216
54217         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
54218
54219         * modules/mkstemp (License): Relicense under LGPLv2+.
54220         * modules/tempname (License): Likewise.
54221
54222 2008-08-06  Bruno Haible  <bruno@clisp.org>
54223
54224         * lib/poll.c (poll): Further micro-optimization.
54225
54226 2008-08-06  Jim Meyering  <meyering@redhat.com>
54227
54228         inet_pton.c: use locale-independent tolower
54229         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
54230         (inet_pton6): Use c_tolower rather than tolower.
54231         * modules/inet_pton (Depends-on): Add c-ctype.
54232
54233 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
54234
54235         * lib/poll.c (poll): Avoid division when timeout is 0, cache
54236         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
54237
54238 2008-08-06  Jim Meyering  <meyering@redhat.com>
54239
54240         * modules/inet_pton (License): Relicense under LGPLv2+.
54241
54242 2008-08-03  Bruno Haible  <bruno@clisp.org>
54243
54244         Additional non-aborting API for lock and tls.
54245         * lib/lock.h: Include <errno.h>.
54246         (glthread_lock_init): New macro/function.
54247         (gl_lock_init): Define as wrapper around glthread_lock_init.
54248         (glthread_lock_lock): New macro/function.
54249         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
54250         (glthread_lock_unlock): New macro/function.
54251         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
54252         (glthread_lock_destroy): New macro/function.
54253         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
54254         (glthread_rwlock_init): New macro/function.
54255         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
54256         (glthread_rwlock_rdlock): New macro/function.
54257         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
54258         (glthread_rwlock_wrlock): New macro/function.
54259         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
54260         (glthread_rwlock_unlock): New macro/function.
54261         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
54262         (glthread_rwlock_destroy): New macro/function.
54263         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
54264         (glthread_recursive_lock_init): New macro/function.
54265         (gl_recursive_lock_init): Define as wrapper around
54266         glthread_recursive_lock_init.
54267         (glthread_recursive_lock_lock): New macro/function.
54268         (gl_recursive_lock_lock): Define as wrapper around
54269         glthread_recursive_lock_lock.
54270         (glthread_recursive_lock_unlock): New macro/function.
54271         (gl_recursive_lock_unlock): Define as wrapper around
54272         glthread_recursive_lock_unlock.
54273         (glthread_recursive_lock_destroy): New macro/function.
54274         (gl_recursive_lock_destroy): Define as wrapper around
54275         glthread_recursive_lock_destroy.
54276         (glthread_once): New macro/function.
54277         (gl_once): Define as wrapper around glthread_once.
54278         Update function declarations.
54279         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
54280         glthread_rwlock_init. Return error code.
54281         (glthread_rwlock_rdlock_multithreaded): Renamed from
54282         glthread_rwlock_rdlock. Return error code.
54283         (glthread_rwlock_wrlock_multithreaded): Renamed from
54284         glthread_rwlock_wrlock. Return error code.
54285         (glthread_rwlock_unlock_multithreaded): Renamed from
54286         glthread_rwlock_unlock. Return error code.
54287         (glthread_rwlock_destroy_multithreaded): Renamed from
54288         glthread_rwlock_destroy. Return error code.
54289         (glthread_recursive_lock_init_multithreaded): Renamed from
54290         glthread_recursive_lock_init. Return error code.
54291         (glthread_recursive_lock_lock_multithreaded): Renamed from
54292         glthread_recursive_lock_lock. Return error code.
54293         (glthread_recursive_lock_unlock_multithreaded): Renamed from
54294         glthread_recursive_lock_unlock. Return error code.
54295         (glthread_recursive_lock_destroy_multithreaded): Renamed from
54296         glthread_recursive_lock_destroy. Return error code.
54297         (glthread_once_call): Make static.
54298         (glthread_once_multithreaded): Renamed from glthread_once.
54299         * lib/tls.h: Include <errno.h>.
54300         (glthread_tls_key_init): New macro/function.
54301         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
54302         (glthread_tls_set): New macro/function.
54303         (gl_tls_set): Define as wrapper around glthread_tls_set.
54304         (glthread_tls_key_destroy): New macro/function.
54305         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
54306         Update function declarations.
54307         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
54308         glthread_tls_get.
54309         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54310
54311 2008-08-04  Eric Blake  <ebb9@byu.net>
54312
54313         gnumakefile: use space, not TAB, outside of targets
54314         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
54315
54316 2008-08-02  Jim Meyering  <meyering@redhat.com>
54317
54318         getdate.y: avoid locale-dependent date parsing failure
54319         In Turkish locales, getdate would fail to recognize keywords
54320         containing a lowercase "i".  The solution is not to rely on
54321         locale-sensitive case-conversion.
54322         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
54323         (lookup_word): Use c_toupper in place of toupper.
54324         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
54325         Reported by Vefa Bicakci <bicave@superonline.com> in
54326         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
54327         * modules/getdate (Depends-on): Add c-ctype.
54328
54329 2008-08-02  Bruno Haible  <bruno@clisp.org>
54330
54331         * gnulib-tool (func_import): When updating or creating a .gitignore
54332         file, prepend each added line with a slash, and ignore leading slashes
54333         from the existing lines.
54334         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54335
54336 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54337
54338         Portability fix for GNU make 3.79.1.
54339         * top/GNUmakefile: Avoid 'else COND', which older GNU make
54340         versions do not understand.
54341
54342 2008-08-01  Bruno Haible  <bruno@clisp.org>
54343
54344         Work around bug of HP-UX 10.20 cc with -0.0 literal.
54345         * tests/test-isnanf.h (zero): New variable.
54346         (main): Avoid literal -0.0f.
54347         * tests/test-isnand.h (zero): New variable.
54348         (main): Avoid literal -0.0.
54349         * tests/test-isnanl.h (zero): New variable.
54350         (main): Avoid literal -0.0L.
54351         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
54352         (test_float, test_double, test_long_double): Avoid literals -0.0f,
54353         -0.0, -0.0L.
54354         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
54355         (test_signbitd): Avoid literal -0.0.
54356         (test_signbitl): Avoid literal -0.0L.
54357         * tests/test-ceilf1.c (zero): New variable.
54358         (main): Avoid literal -0.0f.
54359         * tests/test-ceill.c (zero): New variable.
54360         (main): Avoid literal -0.0L.
54361         * tests/test-floorf1.c (zero): New variable.
54362         (main): Avoid literal -0.0f.
54363         * tests/test-floorl.c (zero): New variable.
54364         (main): Avoid literal -0.0L.
54365         * tests/test-roundf1.c (zero): New variable.
54366         (main): Avoid literal -0.0f.
54367         * tests/test-round1.c (zero): New variable.
54368         (main): Avoid literal -0.0.
54369         * tests/test-roundl.c (zero): New variable.
54370         (main): Avoid literal -0.0L.
54371         * tests/test-truncf1.c (zero): New variable.
54372         (main): Avoid literal -0.0f.
54373         * tests/test-trunc1.c (zero): New variable.
54374         (main): Avoid literal -0.0.
54375         * tests/test-truncl.c (zero): New variable.
54376         (main): Avoid literal -0.0L.
54377         * tests/test-frexp.c (zero): New variable.
54378         (main): Avoid literal -0.0.
54379         * tests/test-frexpl.c (zero): New variable.
54380         (main): Avoid literal -0.0L.
54381         * tests/test-ldexpl.c (zero): New variable.
54382         (main): Avoid literal -0.0L.
54383         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54384         (zerod, zerol): New variables.
54385         (test_function): Avoid literals -0.0, -0.0L.
54386         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54387         (zerod, zerol): New variables.
54388         (test_function): Avoid literals -0.0, -0.0L.
54389         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54390         (zerod, zerol): New variables.
54391         (test_function): Avoid literals -0.0, -0.0L.
54392         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54393         (zerod, zerol): New variables.
54394         (test_function): Avoid literals -0.0, -0.0L.
54395         * tests/test-strtod.c (zero): New variable.
54396         (main): Avoid literal -0.0.
54397         Reported by Jonathan C. Patschke <jp@centtech.com>.
54398
54399 2008-07-31  Jim Meyering  <meyering@redhat.com>
54400
54401         sha256.h: correct definition of SHA224_DIGEST_SIZE
54402         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
54403         Reported by Paulie Pena IV <paulie4@gmail.com>.
54404         Define as 224 / 8, rather than as a literal.
54405         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
54406         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
54407         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
54408
54409 2008-07-31  Bruno Haible  <bruno@clisp.org>
54410
54411         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
54412         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
54413         Reported by Jonathan Patschke <jp@centtech.com>.
54414
54415 2008-07-31  Bruno Haible  <bruno@clisp.org>
54416
54417         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
54418         Reported by Paolo Bonzini <bonzini@gnu.org>.
54419
54420 2008-07-30  Eric Blake  <ebb9@byu.net>
54421
54422         test-strtod: allow compilation without -lm
54423         * tests/test-strtod.c (main): Avoid link dependence on fabs.
54424         Reported by Dennis Clarke <blastwave@gmail.com>.
54425
54426 2008-07-28  Jim Meyering  <meyering@redhat.com>
54427
54428         bootstrap: work also when there are no .po files in po/
54429         * build-aux/bootstrap (update_po_files): Complete the change
54430         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
54431
54432 2008-07-27  Jim Meyering  <meyering@redhat.com>
54433
54434         * users.txt: Add zile.
54435
54436 2008-07-26  Ben Pfaff  <blp@gnu.org>
54437
54438         Add missing dependencies on new m4/exponent[fdl].m4 files.
54439         * modules/isnanf-nolibm: Add m4/exponentf.m4.
54440         * modules/isnand-nolibm: Add m4/exponentd.m4.
54441         * modules/isnanl-nolibm: Add m4/exponentl.m4.
54442         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
54443         m4/isnan[fdl].m4, because the macros actually used moved.
54444         Reported by Jim Meyering.
54445
54446 2008-07-14  Ben Pfaff  <blp@gnu.org>
54447
54448         Add isinf module.
54449         * lib/isinf.c: New file.
54450         * lib/math.in.h: Define isinf macro if we have decided to replace
54451         it.
54452         * m4/isinf.m4: New file.
54453         * m4/math_h.m4: Initialize and substitute variables for isinf
54454         module.
54455         * modules/isinf: New file.
54456         * modules/isinf-tests: New file.
54457         * modules/math: Add substitutions for new module.
54458         * tests/test-isinf.c: New file.
54459         * doc/posix-functions/isinf.texi: Mention new module.
54460         * MODULES.html.sh: Mention new module.
54461
54462 2008-07-14  Ben Pfaff  <blp@gnu.org>
54463
54464         Factor out some macros for use by additional modules.
54465         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
54466         exponentf.m4.
54467         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
54468         exponentd.m4.
54469         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
54470         file exponentl.m4.
54471         * m4/exponentf.m4: New file.
54472         * m4/exponentd.m4: New file.
54473         * m4/exponentl.m4: New file.
54474         * modules/isnanf: Use new file m4/exponentf.m4.
54475         * modules/isnand: Use new file m4/exponentd.m4.
54476         * modules/isnanl: Use new file m4/exponentl.m4.
54477
54478 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
54479
54480         mktime.c: normalize tp->tm_isdst value to -1/0/1.
54481         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
54482         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
54483         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
54484
54485         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
54486         readlink on platforms without PATH_MAX.
54487
54488 2008-07-21  Eric Blake  <ebb9@byu.net>
54489
54490         Warn, not fail, on stale version.
54491         * top/GNUmakefile (_curr-ver): Tone down previous patch.
54492
54493         Don't allow installation with stale devel version number.
54494         * top/GNUmakefile (_is-install-target): New macro.
54495         (_curr-ver): Forbid installation with stale version number.
54496
54497 2008-07-20  Bruno Haible  <bruno@clisp.org>
54498
54499         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
54500         TESTS_ENVIRONMENT.
54501         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
54502
54503 2008-07-20  Bruno Haible  <bruno@clisp.org>
54504
54505         * lib/c-stack.h (c_stack_action): Add documentation.
54506         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
54507
54508 2008-07-20  Bruno Haible  <bruno@clisp.org>
54509
54510         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
54511         * modules/readlink (License): Likewise.
54512
54513 2008-07-17  Eric Blake  <ebb9@byu.net>
54514
54515         * modules/c-stack (Link): Fix typo.
54516
54517         Make c-stack use libsigsegv, when available.
54518         * modules/c-stack (Depends-on): Add libsigsegv.
54519         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
54520         needed.
54521         * lib/c-stack.c (SIGSTKSZ): Define fallback.
54522         (segv_handler, overflow_handler, c_stack_action)
54523         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
54524         implementation when libsigsegv is available, but only when using
54525         the library is necessary.
54526         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
54527         comment, explaining why XSI check fails on Linux.
54528         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
54529         * tests/test-c-stack2.sh: Tweak skip message.
54530         * NEWS: Document new link-time requirements.
54531
54532 2008-07-16  Eric Blake  <ebb9@byu.net>
54533
54534         c-stack: Expose false positives when not using libsigsegv.
54535         * modules/c-stack-tests (Files): Expand test.
54536         * tests/test-c-stack.c (main): Add means to conditionally trigger
54537         non-overflow SIGSEGV.
54538         * tests/test-c-stack2.sh: New file.
54539
54540 2008-07-14  Bruno Haible  <bruno@clisp.org>
54541
54542         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
54543         Reported by Eric Blake.
54544
54545 2008-07-14  Sam Steingold  <sds@gnu.org>
54546             Bruno Haible  <bruno@clisp.org>
54547
54548         New module libsigsegv.
54549         * modules/libsigsegv: New file.
54550         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
54551         modifications.
54552         * MODULES.html.sh (Signal handling): New section.
54553
54554 2008-07-14  Bruno Haible  <bruno@clisp.org>
54555
54556         * modules/unictype/ctype-* (Description): Add the word "function".
54557         Improves the resulting doc in MODULES.html.
54558
54559 2008-07-12  Ben Pfaff  <blp@gnu.org>
54560
54561         Add longlong module.
54562         * modules/longlong: New file.
54563
54564 2008-07-12  Bruno Haible  <bruno@clisp.org>
54565
54566         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54567         to empty.
54568
54569 2008-07-10  Ben Pfaff  <blp@gnu.org>
54570
54571         Add isnan module.
54572         * doc/posix-functions/isnan.texi: Mention new module.
54573         * lib/math.in.h: Define isnan macro if we have decided to replace
54574         it.
54575         * m4/isnan.m4: New file.
54576         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54577         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54578         also.
54579         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54580         redundancy.
54581         * m4/math_h.m4: Initialize and substitute variables for isnan
54582         module.
54583         * modules/isnan: New file.
54584         * modules/isnan-tests: New file.
54585         * modules/math: Add substitutions for new module.
54586         * tests/test-isnan.c: New file.
54587         * MODULES.html.sh: Mention new module.
54588
54589 2008-07-10  Ben Pfaff  <blp@gnu.org>
54590
54591         Add isnanf module.
54592         * lib/isnanf.m4: New file.
54593         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54594         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54595         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54596         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54597         * modules/isnanf: New file.
54598         * modules/isnanf-tests: New file.
54599         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54600         files.
54601         * tests/test-isnanf-nolibm.c: factored most of its contents into
54602         new file tests/test-isnanf.h.
54603         * tests/test-isnanf.h: New file.
54604         * tests/test-isnanf.c: New file.
54605         * MODULES.html.sh: Mention new module.
54606         * doc/glibc-functions/isnanf.texi: Mention new module.
54607
54608 2008-07-10  Ben Pfaff  <blp@gnu.org>
54609
54610         Add isnand module.
54611         * lib/isnand.h: New file.
54612         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54613         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54614         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54615         functionality also.
54616         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54617         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54618         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54619         * modules/isnand: New file.
54620         * modules/isnand-tests: New file.
54621         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54622         files.
54623         * tests/test-isnand-nolibm.c: factored most of its contents into
54624         new file tests/test-isnand.h.
54625         * tests/test-isnand.h: New file.
54626         * tests/test-isnand.c: New file.
54627         * MODULES.html.sh: Mention new module.
54628
54629 2008-07-10  Ben Pfaff  <blp@gnu.org>
54630
54631         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54632         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54633         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54634         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54635         * modules/isnanf-nolibm: Update references to renamed files.
54636         * modules/isnand-nolibm: Likewise.
54637         * modules/isnanf-nolibm-tests: Likewise.
54638         * modules/isnand-nolibm-tests: Likewise.
54639         * lib/frexp.c: Likewise.
54640         * lib/isfinite.c: Likewise.
54641         * lib/signbitd.c: Likewise.
54642         * lib/signbitf.c: Likewise.
54643         * lib/vasnprintf.c: Likewise.
54644         * tests/test-ceilf1.c: Likewise.
54645         * tests/test-ceilf2.c: Likewise.
54646         * tests/test-floorf1.c: Likewise.
54647         * tests/test-floorf2.c: Likewise.
54648         * tests/test-frexp.c: Likewise.
54649         * tests/test-round1.c: Likewise.
54650         * tests/test-round2.c: Likewise.
54651         * tests/test-roundf1.c: Likewise.
54652         * tests/test-strtod.c: Likewise.
54653         * tests/test-trunc1.c: Likewise.
54654         * tests/test-trunc2.c: Likewise.
54655         * tests/test-truncf1.c: Likewise.
54656         * tests/test-truncf2.c: Likewise.
54657         * NEWS: Mention the renamed header files.
54658
54659 2008-07-11  Jim Meyering  <meyering@redhat.com>
54660
54661         vc-list-files: make the last-resort awk code more portable
54662         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54663         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54664         does not support it.
54665
54666 2008-07-10  Eric Blake  <ebb9@byu.net>
54667
54668         Work with tar's bootstrap.
54669         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54670         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54671         an m4 comment.
54672
54673 2008-07-09  Jim Meyering  <meyering@redhat.com>
54674
54675         posix-shell.m4: fix typo that made this test malfunction
54676         * m4/posix-shell.m4: Remove capitalization in variable name.
54677
54678 2008-07-08  Bruno Haible  <bruno@clisp.org>
54679
54680         * m4/onceonly.m4: Update comments.
54681         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54682
54683 2008-07-04  Jim Meyering  <meyering@redhat.com>
54684
54685         * users.txt: Add vc-dwim.
54686         (bison, coreutils): Use the gitweb URL.
54687
54688 2008-07-03  Jim Meyering  <meyering@redhat.com>
54689
54690         * users.txt: Add libffcall.  From Sam Steingold.
54691
54692 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
54693
54694         getdate.y: do not ignore TZ with relative day, month or year offset
54695         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54696         relative-date-handling, since otherwise, the latter would clobber the
54697         sole output (an updated Start value) of the tz-handling block.
54698         * tests/test-getdate.c: Tests for the fix
54699
54700 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54701
54702         Recognize 'foo_LIBRARIES += libgnu.a'.
54703         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54704         makefile snippet has already specified an installation location,
54705         also using '+='.
54706
54707 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
54708
54709         getdate.y: factor out common actions
54710         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54711         Use them in place of open-coded actions.
54712
54713 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54714
54715         Add self-test for getdate module.
54716         * modules/getdate-tests: New file.
54717         * tests/test-getdate.c: New file.
54718
54719 2008-06-29  Bruno Haible  <bruno@clisp.org>
54720
54721         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54722         .gitignore.
54723         Reported by Sylvain Beucler <beuc@beuc.net>.
54724
54725 2008-06-29  Bruno Haible  <bruno@clisp.org>
54726
54727         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54728         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54729
54730 2008-06-29  Bruno Haible  <bruno@clisp.org>
54731
54732         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54733         EXTRA_DIST.
54734         Reported by Sylvain Beucler <beuc@beuc.net>.
54735
54736 2008-06-26  Jim Meyering  <meyering@redhat.com>
54737
54738         make several modules depend on the "open" module
54739         This provides slightly increased consistency when opening-for-write
54740         the name of a non-directory spelled with a trailing slash.
54741         * modules/chdir-safer: Likewise.
54742         * modules/chown: Likewise.
54743         * modules/clean-temp: Likewise.
54744         * modules/copy-file: Likewise.
54745         * modules/fchdir: Likewise.
54746         * modules/fcntl-safer: Likewise.
54747         * modules/pipe: Likewise.
54748         * modules/utime: Likewise.
54749         Prompted by Eric Blake and Bruno Haible.
54750
54751 2008-06-24  Andreas Schwab  <schwab@suse.de>
54752
54753         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54754         literals can be used as initializers for global variables.
54755
54756 2008-06-23  Eric Blake  <ebb9@byu.net>
54757
54758         Make gnulib-cache.m4 easier to diff.
54759         * gnulib-tool (func_import): Allow newlines when reading cached
54760         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54761
54762 2008-06-23  Bruno Haible  <bruno@clisp.org>
54763
54764         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54765         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54766         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54767         m4/signalblocking.m4.
54768         (gl_PREREQ_SIGACTION): Don't invoke it.
54769         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54770         gl_PREREQ_SIG_HANDLER_H.
54771         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54772         Don't check for sigaction here.
54773
54774 2008-06-23  Bruno Haible  <bruno@clisp.org>
54775
54776         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54777         (install_handlers): Don't set the SA_RESETHAND flag.
54778
54779 2008-06-23  Bruno Haible  <bruno@clisp.org>
54780
54781         * m4/sigaction.m4: Comment fixes.
54782         * lib/signal.in.h: Likewise.
54783
54784 2008-06-23  Eric Blake  <ebb9@byu.net>
54785
54786         Fix typo.
54787         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54788
54789         Avoid SA_ namespace.
54790         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54791         Reported by Ralf Wildenhues.
54792
54793         Avoid test failure due to SA_RESTORER.
54794         * tests/test-sigaction.c (SA_MASK): New macro.
54795         (main): Avoid failing due to extension flags being set.
54796         Reported by Jim Meyering.
54797
54798         Revert use of sig-handler.h in sigprocmask.c.
54799         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54800         it requires the existence of struct sigaction.
54801         * lib/sigprocmask.c (handler_t): Restore typedef.
54802         (rpl_signal, old_handlers): Use local type.
54803
54804 2008-06-22  Bruno Haible  <bruno@clisp.org>
54805
54806         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54807         conditionally.
54808         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54809
54810 2008-06-22  Bruno Haible  <bruno@clisp.org>
54811
54812         * doc/posix-functions/siginterrupt.texi: Move note.
54813
54814         * lib/signal.in.h (SA_RESTART): New macro.
54815         * lib/sigaction.c: Update comment.
54816
54817         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54818
54819         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54820         (gl_PREREQ_SIGPROCMASK): Invoke it.
54821         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54822
54823         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54824
54825         * lib/sigprocmask.c: Update a comment.
54826
54827 2008-06-21  Eric Blake  <ebb9@byu.net>
54828
54829         Use sigaction module rather than signal().
54830         * modules/c-stack (Depends-on): Add sigaction.
54831         * modules/fatal-signal (Depends-on): Likewise.
54832         * modules/nanosleep (Depends-on): Likewise.
54833         * modules/sigprocmask (Files): Add sig-handler.h.
54834         * modules/sigaction (Files): Likewise.
54835         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54836         Eggert.
54837         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54838         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54839         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54840         (init_fatal_signals): Likewise.
54841         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54842         (siginterrupt): Delete fallback.
54843         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54844         instead.
54845         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54846         siginterrupt.
54847
54848         New module sigaction, for mingw.
54849         * modules/sigaction: New module...
54850         * modules/sigaction-tests: ...and its test.
54851         * m4/sigaction.m4: New file.
54852         * lib/sigaction.c: Likewise.
54853         * tests/test-sigaction.c: Likewise.
54854         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54855         * modules/signal (Makefile.am): Likewise.
54856         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54857         needed.
54858         * doc/posix-headers/signal.texi (signal.h): Mention provided
54859         types.
54860         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54861         that sigaction is preferable.
54862         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54863         module.
54864         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54865         sigaction.
54866
54867         Improve robustness of sigprocmask by overriding signal.
54868         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54869         is in use.
54870         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54871         (SIGKILL, SIGSTOP): Provide fallbacks.
54872         (rpl_signal): Implement.
54873         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54874         signal can be called inside handlers.
54875
54876         Fix nanosleep module on mingw.
54877         * modules/nanosleep (Depends-on): Add sys_select.
54878         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54879
54880         Fix licensing of sigprocmask.
54881         * modules/raise (License): Relicense as LGPL.
54882
54883 2008-06-21  Bruno Haible  <bruno@clisp.org>
54884
54885         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54886         result if it contains question marks.
54887         Reported by Michael Geng <linux@michaelgeng.de>.
54888
54889 2008-06-19  Bruno Haible  <bruno@clisp.org>
54890
54891         Fix CVS-ism.
54892         * doc/gnulib.texi: Include updated-stamp.texi.
54893         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54894         (updated-stamp.texi): New rule.
54895         (gnulib.info): Depend on it.
54896         * doc/.gitignore: Add updated-stamp.texi.
54897         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54898
54899 2008-06-19  Bruno Haible  <bruno@clisp.org>
54900
54901         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54902         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54903
54904 2008-06-19  Eric Blake  <ebb9@byu.net>
54905
54906         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54907         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54908         Reported by Stepan Kasal.
54909
54910 2008-06-18  Bruno Haible  <bruno@clisp.org>
54911
54912         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54913         Reported by Eric Blake.
54914
54915 2008-06-18  Eric Blake  <ebb9@byu.net>
54916
54917         Work around cygwin 1.5.25 strsignal bug.
54918         * tests/test-strsignal.c: Allow for const char *.
54919         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54920
54921 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54922
54923         * users.txt: Update URL to article and add author/date
54924         information.
54925
54926 2008-06-17  Bruno Haible  <bruno@clisp.org>
54927
54928         New macro gl_DISABLE_THREADS.
54929         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54930         if the user did not pass --enable-threads or --disable-threads option.
54931         (gl_DISABLE_THREADS): New macro.
54932         Reported by Eric Blake <ebb9@byu.net>.
54933
54934 2008-06-17  Bruno Haible  <bruno@clisp.org>
54935
54936         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54937         when the macro ignores it.
54938         Based on a patch by Eric Blake <ebb9@byu.net>.
54939
54940 2008-06-17  Bruno Haible  <bruno@clisp.org>
54941
54942         * modules/tls (License): Change to LGPLv2+.
54943         Reported by Eric Blake.
54944
54945 2008-06-17  Eric Blake  <ebb9@byu.net>
54946
54947         Simplify c-stack prerequisites.
54948         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54949         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54950         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54951         check.
54952         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54953         <sys/resource.h>.
54954
54955         Move c-stack test into testsuite.
54956         * modules/c-stack-tests: New file.
54957         * lib/c-stack.c [DEBUG]: Move test program...
54958         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54959         fail test if sigaltstack is lacking.
54960         * tests/test-c-stack.sh: New driver file.
54961
54962 2008-06-16  Eric Blake  <ebb9@byu.net>
54963
54964         Use raise module consistently.
54965         * modules/fatal-signal (Depends-on): Add raise.
54966         * modules/sigprocmask (Depends-on): Likewise.
54967         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54968         * lib/sigprocmask.c (sigprocmask): Likewise.
54969         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54970         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54971
54972         Fix compliance bug in sigpending.
54973         * lib/sigprocmask.c (sigpending): Return pending array via
54974         parameter, not return value.
54975
54976 2008-06-14  Eric Blake  <ebb9@byu.net>
54977
54978         Improve obstack-printf test code.
54979         * tests/test-obstack-printf.c (test_function): Fix comment, and
54980         simplify usage of obstack_* in macros.  Add a test for coverage.
54981         Reported by Bruno Haible.
54982
54983 2008-06-14  Bruno Haible  <bruno@clisp.org>
54984
54985         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54986         array size as a constant, not as a const variable.
54987         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54988         AC_USE_SYSTEM_EXTENSIONS.
54989         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54990         Test whether the obstack_printf function actually exists.
54991         * modules/obstack-printf (Depends-on): Add extensions.
54992         (Include): Remove obstack.h.
54993         * modules/obstack-printf-posix (Depends-on): Add extensions.
54994         (Include): Remove obstack.h.
54995
54996 2008-06-13  Eric Blake  <ebb9@byu.net>
54997
54998         Add obstack-printf and obstack-printf-posix modules.
54999         * modules/obstack-printf: New file.
55000         * modules/obstack-printf-posix: Likewise.
55001         * MODULES.html.sh (Misc): Mention them.
55002         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
55003         Likewise.
55004         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
55005         Likewise.
55006         * modules/stdio (Makefile.am): Accomodate new modules.
55007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55008         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
55009         Declare.
55010         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
55011         functions.
55012         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
55013         (gl_REPLACE_OBSTACK_PRINTF): New macros
55014         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
55015         * tests/test-obstack-printf.c: New file.
55016         * modules/obstack-printf-tests: Likewise.
55017         * modules/obstack-printf-posix-tests: Likewise.
55018
55019 2008-06-11  Bruno Haible  <bruno@clisp.org>
55020
55021         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
55022         * lib/open.c: Include errno.h.
55023         (open): Fail when attempting to write to a file that has a trailing
55024         slash.
55025         * tests/test-open.c (main): Test against trailing slash bug.
55026         * doc/posix-functions/open.texi: Mention the trailing slash bug.
55027
55028 2008-06-10  Bruno Haible  <bruno@clisp.org>
55029
55030         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
55031         for $? to work inside the trap command, with various /bin/sh-s.
55032         * tests/test-vc-list-files-cvs.sh: Likewise.
55033
55034 2008-06-10  Bruno Haible  <bruno@clisp.org>
55035
55036         * lib/acl-internal.h: Don't include gettext.h here.
55037         * lib/set-mode-acl.c: Include gettext.h here.
55038         * lib/copy-acl.c: Likewise.
55039
55040 2008-06-10  Bruno Haible  <bruno@clisp.org>
55041
55042         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
55043         * lib/wait-process.c (wait_subprocess): Likewise.
55044         * lib/execute.h (execute): Add termsigp argument.
55045         * lib/execute.c (execute): Likewise.
55046         * lib/csharpcomp.c (compile_csharp_using_pnet,
55047         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
55048         * lib/csharpexec.c (execute_csharp_using_pnet,
55049         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
55050         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
55051         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
55052         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
55053         is_jikes_present): Update.
55054         * lib/javaexec.c (execute_java_class): Update.
55055         * lib/javaversion.c (execute_and_read_line): Update.
55056         * NEWS: Document the changes.
55057         Reported by Eric Blake.
55058
55059 2008-06-10  Eric Blake  <ebb9@byu.net>
55060
55061         Add missing include.
55062         * tests/test-strstr.c (includes): Add <signal.h>.
55063         * tests/test-strcasestr.c (includes): Likewise.
55064         * tests/test-memmem.c (includes): Likewise.
55065
55066 2008-06-10  Bruno Haible  <bruno@clisp.org>
55067
55068         * lib/wait-process.c (wait_subprocess): Add an assertion.
55069
55070 2008-06-10  Bruno Haible  <bruno@clisp.org>
55071
55072         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
55073
55074 2008-06-10  Bruno Haible  <bruno@clisp.org>
55075
55076         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
55077         using alarm().
55078         * tests/test-strcasestr.c (main): Likewise.
55079         * tests/test-strstr.c (main): Likewise.
55080
55081 2008-06-09  Bruno Haible  <bruno@clisp.org>
55082
55083         Work around the Solaris 10 ACE ACLs ABI change.
55084         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
55085         declare if ACL_NO_TRIVIAL is present.
55086         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
55087         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
55088         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
55089         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
55090         define if ACL_NO_TRIVIAL is present.
55091         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
55092         and use the current ABI.
55093         (file_has_acl): Use same #if condition as elsewhere.
55094         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
55095         in use, and use the current ABI.
55096         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
55097         Reported by Jim Meyering.
55098
55099 2008-06-09  Eric Blake  <ebb9@byu.net>
55100
55101         Work around environments that (stupidly) ignore SIGALRM.
55102         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
55103         before using alarm().
55104         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55105         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55106         Reported by Ian Beckwith <ianb@erislabs.net>.
55107
55108         Produce autobuild blurb earlier in log.
55109         * modules/autobuild (configure.ac-early): Move AB_INIT here.
55110
55111 2008-06-09  Jim Meyering  <meyering@redhat.com>
55112         and OndÅ™ej Vašík  <ovasik@redhat.com>
55113
55114         utimens.c: correct kernel bug work-around
55115         OndÅ™ej Vašík found that the invalid return value of 280 indicates
55116         failure, not success, and the kernel bug we're trying to work
55117         around affects not just the utimensat call, but also the fallback
55118         futimens call.
55119         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
55120         not success.
55121         [HAVE_FUTIMENS]: Use the same work-around, here.
55122
55123 2008-06-09  Jim Meyering  <meyering@redhat.com>
55124
55125         add more guards around definition of ACE_-related code
55126         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
55127         ALLOW and ACE_OWNER are also defined.
55128
55129 2008-06-08  Bruno Haible  <bruno@clisp.org>
55130
55131         * lib/acl-internal.h: Add me as co-author.
55132         * lib/file-has-acl.c: Likewise.
55133         * lib/set-mode-acl.c: Likewise.
55134         * lib/copy-acl.c: Likewise.
55135
55136 2008-06-08  Bruno Haible  <bruno@clisp.org>
55137
55138         Add support for AIX ACLs.
55139         * lib/acl-internal.h (acl_nontrivial): New declaration.
55140         * lib/file-has-acl.c (acl_nontrivial): New function.
55141         (file_has_acl): Add implementation using AIX 4 ACL API.
55142         * lib/set-mode-acl.c (qset_acl): Likewise.
55143         * lib/copy-acl.c (qcopy_acl): Likewise.
55144
55145 2008-06-08  Bruno Haible  <bruno@clisp.org>
55146
55147         Add support for HP-UX ACLs.
55148         * lib/acl-internal.h (acl_nontrivial): New declaration.
55149         * lib/file-has-acl.c (acl_nontrivial): New function.
55150         (file_has_acl): Add implementation using HP-UX 11 ACL API.
55151         * lib/set-mode-acl.c (qset_acl): Likewise.
55152         * lib/copy-acl.c (qcopy_acl): Likewise.
55153
55154 2008-06-08  Bruno Haible  <bruno@clisp.org>
55155
55156         Add support for Cygwin ACLs.
55157         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
55158         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
55159         the chmod_or_fchmod call.
55160         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
55161
55162 2008-06-08  Bruno Haible  <bruno@clisp.org>
55163
55164         Fix bug with setuid modes in Solaris 10+ code.
55165         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
55166         succeeded, when the mode contains some special bits.
55167
55168 2008-06-08  Bruno Haible  <bruno@clisp.org>
55169
55170         Add support for Solaris 7..10 ACLs.
55171         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
55172         declarations.
55173         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
55174         functions.
55175         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
55176         * lib/set-mode-acl.c (qset_acl): Likewise.
55177         * lib/copy-acl.c (qcopy_acl): Likewise.
55178
55179 2008-06-08  Bruno Haible  <bruno@clisp.org>
55180
55181         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
55182         declaration.
55183         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
55184         (acl_access_nontrivial): Remove MacOS X case.
55185         (file_has_acl): Use acl_extended_nontrivial.
55186         * lib/copy-acl.c (qcopy_acl): Likewise.
55187
55188 2008-06-08  Bruno Haible  <bruno@clisp.org>
55189
55190         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
55191
55192 2008-06-08  Jim Meyering  <meyering@redhat.com>
55193
55194         * modules/acl (Maintainer): Add Bruno Haible.
55195
55196 2008-06-07  Bruno Haible  <bruno@clisp.org>
55197
55198         Improve support for Tru64 ACLs.
55199         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
55200         ACL on OSF/1.
55201
55202 2008-06-07  Bruno Haible  <bruno@clisp.org>
55203
55204         Add support for MacOS X ACLs.
55205         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
55206         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
55207         * lib/set-mode-acl.c (qset_acl): Likewise.
55208         * lib/copy-acl.c (qcopy_acl): Likewise.
55209
55210 2008-06-07  Bruno Haible  <bruno@clisp.org>
55211
55212         Fix memory leak introduced on 2008-05-22.
55213         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
55214         use.
55215
55216 2008-06-07  Bruno Haible  <bruno@clisp.org>
55217
55218         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
55219         to construct an empty ACL.
55220
55221 2008-06-07  Bruno Haible  <bruno@clisp.org>
55222
55223         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
55224         precisely.
55225         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
55226
55227 2008-06-07  Bruno Haible  <bruno@clisp.org>
55228
55229         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
55230         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
55231
55232 2008-06-07  Bruno Haible  <bruno@clisp.org>
55233
55234         * doc/posix-functions/_setjmp.texi: Explain the use of this function
55235         regardless of POSIX.
55236         * doc/posix-functions/_longjmp.texi: Likewise.
55237         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
55238         SystemV platform in this case.
55239
55240 2008-06-06  Eric Blake  <ebb9@byu.net>
55241
55242         Document abort() bugs.
55243         * doc/posix-functions/abort.texi (abort): Mention anomalies.
55244
55245         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
55246         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
55247         sigsetjmp.
55248         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
55249         siglongjmp, but only as a macro.
55250         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
55251         is obsolete.
55252         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
55253
55254         Tweak documentation to cover cygwin argz bugs.
55255         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
55256         argz bug fix; no code change needed since no cygwin releases
55257         occurred between the last fix and the bug being tested.
55258         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
55259         module and recently fixed cygwin bugs.
55260         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
55261         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
55262         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
55263         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
55264         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
55265         Likewise.
55266         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
55267         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
55268         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
55269         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
55270         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
55271         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
55272         Likewise.
55273
55274         Avoid gcc warning on cygwin.
55275         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
55276         !ACL_NO_TRIVIAL]: Avoid unused variable.
55277
55278 2008-06-05  Eric Blake  <ebb9@byu.net>
55279
55280         Be tolerant of UNKNOWN version in gnulib-tool test dir.
55281         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
55282         git-version-gen fails to come up with a version.
55283         Reported by Simon Josefsson.
55284
55285 2008-06-05  Jim Meyering  <meyering@redhat.com>
55286             Paul Eggert  <eggert@cs.ucla.edu>
55287
55288         utimens.c: work around a probable Linux kernel bug
55289         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
55290         appears to be a kernel bug that causes utimensat to return 280
55291         instead of 0, indicating success.
55292
55293 2008-06-04  Bruno Haible  <bruno@clisp.org>
55294
55295         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
55296         2008-06-01 commit.
55297
55298 2008-06-04  Bruno Haible  <bruno@clisp.org>
55299
55300         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
55301         * lib/file-has-acl.c (acl_access_nontrivial): New function.
55302         (file_has_acl): Use it. Save errno afterwards.
55303         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
55304
55305 2008-06-03  Bruno Haible  <bruno@clisp.org>
55306
55307         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
55308         draft code. Simplify #ifs.
55309         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
55310         Put Solaris code after POSIX-draft code. Fix comments regarding
55311         Solaris 10, HP-UX. Mention Cygwin.
55312         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
55313
55314 2008-06-03  Eric Blake  <ebb9@byu.net>
55315
55316         Provide fallback for older kernels.
55317         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
55318         Provide runtime fallback if kernel lacks support.
55319         Reported by Mike Frysinger.
55320
55321 2008-06-02  Bruno Haible  <bruno@clisp.org>
55322
55323         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
55324         it exists.
55325
55326 2008-06-02  Bruno Haible  <bruno@clisp.org>
55327
55328         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
55329         * lib/copy-acl.c (qcopy_acl): Update comment.
55330
55331 2008-06-02  Bruno Haible  <bruno@clisp.org>
55332
55333         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
55334         like ACL APIs.
55335
55336 2008-06-02  Bruno Haible  <bruno@clisp.org>
55337
55338         * tests/test-file-has-acl.sh: Use different code for Cygwin.
55339         * tests/test-set-mode-acl.sh: Likewise.
55340         * tests/test-copy-acl.sh: Likewise.
55341         * tests/test-copy-file.sh: Likewise.
55342
55343 2008-06-02  Bruno Haible  <bruno@clisp.org>
55344
55345         * tests/test-file-has-acl.sh: Remove unused code.
55346
55347 2008-06-01  Bruno Haible  <bruno@clisp.org>
55348
55349         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
55350         (copy_acl): Just a wrapper around qcopy_acl that emits the error
55351         messages.
55352         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
55353
55354 2008-06-01  Bruno Haible  <bruno@clisp.org>
55355
55356         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
55357         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
55358         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
55359         APIs.
55360         * modules/acl-tests (configure.ac): Remove tests now contained in
55361         m4/acl.m4.
55362
55363 2008-06-02  Jim Meyering  <meyering@redhat.com>
55364
55365         announce-gen: use a better key-server host name
55366         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
55367         it may be more consistently reliable.  Suggested by Werner Koch
55368         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
55369
55370 2008-06-01  Bruno Haible  <bruno@clisp.org>
55371
55372         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
55373         Reported by Voroskoi Andras <voroskoi@gmail.com>.
55374
55375 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
55376
55377         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
55378
55379 2008-06-01  Bruno Haible  <bruno@clisp.org>
55380
55381         New ACL tests.
55382         * tests/test-file-has-acl.sh: New file.
55383         * tests/test-file-has-acl.c: New file.
55384         * tests/test-set-mode-acl.sh: New file.
55385         * tests/test-set-mode-acl.c: New file.
55386         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
55387         * tests/test-copy-acl.c: New file.
55388         * modules/acl-tests: New file, based on modules/copy-file-tests.
55389         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
55390         (Depends-on): Add acl-tests.
55391         (configure.ac): Remove checks.
55392         (Makefile.am): Don't create test-sameacls program here any more.
55393
55394 2008-06-01  Bruno Haible  <bruno@clisp.org>
55395
55396         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
55397         * tests/test-sameacls.c: Include progname.h.
55398         (main): Invoke set_program_name. Portability fixes for MacOS X,
55399         Solaris, HP-UX.
55400
55401 2008-06-01  Bruno Haible  <bruno@clisp.org>
55402
55403         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
55404         function.
55405         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
55406
55407 2008-06-01  Bruno Haible  <bruno@clisp.org>
55408
55409         * modules/rpmatch (Depends-on): Add strdup.
55410
55411 2008-06-01  Bruno Haible  <bruno@clisp.org>
55412
55413         * lib/pipe.c: Include unistd-safer.h.
55414         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
55415         * modules/pipe (Depends-on): Add unistd-safer.
55416
55417 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55418
55419         * modules/autobuild (configure.ac): Call AB_INIT.
55420
55421 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55422
55423         * tests/test-getaddrinfo.c: Don't print debug messages by default.
55424         Suggested by Bruno Haible <bruno@clisp.org>.
55425
55426 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55427
55428         * tests/test-base64.c: Cast size_t to unsigned long when invoking
55429         printf.  Use %lu instead of %d.  Reported by Bruno Haible
55430         <bruno@clisp.org>.
55431
55432 2008-05-29  Eric Blake  <ebb9@byu.net>
55433
55434         Prefer new POSIX 200x interfaces over futimesat.
55435         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
55436         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
55437         when available.
55438         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
55439
55440 2008-05-28  Bruno Haible  <bruno@clisp.org>
55441
55442         * modules/stpcpy (License): Change to LGPLv2+.
55443         Requested by David Lutterkort <dlutter@redhat.com>.
55444
55445 2008-05-27  Bruno Haible  <bruno@clisp.org>
55446
55447         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
55448         current mingw.
55449         Reported by Jose E. Marchesi <jemarch@gnu.org>.
55450
55451 2008-05-27  Bruno Haible  <bruno@clisp.org>
55452
55453         * modules/iconv_open (Link): New section, from module 'iconv'.
55454         * modules/striconv (Link): Likewise.
55455         * modules/striconveh (Link): Likewise.
55456         * modules/xstriconv (Link): Likewise.
55457         * modules/unicodeio (Link): Likewise.
55458         * modules/propername (Link): Likewise.
55459         Reported by Jim Meyering.
55460
55461 2008-05-26  Jim Meyering  <meyering@redhat.com>
55462
55463         sha256: do not artificially restrict buffer length to be < 2^32
55464         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
55465         uint32_t to size_t.
55466         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
55467         to match.
55468
55469         avoid unaligned access errors, e.g., on sparc
55470         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
55471         direct access through a possibly-unaligned uint64* pointer.
55472         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
55473         direct access through a possibly-unaligned uint32* pointer.
55474         Prompted by this patch from Tom "spot" Callaway:
55475         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
55476
55477         sha512.c: fix typo in comment
55478         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
55479
55480 2008-05-25  Bruno Haible  <bruno@clisp.org>
55481
55482         * lib/set-mode-acl.c: Renamed from lib/acl.c.
55483         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
55484         (Makefile.am): Update lib_SOURCES.
55485
55486 2008-05-25  Bruno Haible  <bruno@clisp.org>
55487
55488         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
55489
55490 2008-05-25  Jim Meyering  <meyering@redhat.com>
55491
55492         useless-if-before-free: freed expr may have white-space differences
55493         * build-aux/useless-if-before-free: Recognize cases in which the
55494         freed expression differs from the tested one in embedded white
55495         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
55496         $1 was used, so we can't make any regexp shy.  Improved tests now
55497         detect this.
55498
55499         useless-if-before-free: accept white space in the expression.
55500         * build-aux/useless-if-before-free: For now, any white space
55501         in the expression must be identical in the free argument.
55502
55503         useless-if-before-free: efficiency tweak
55504         * build-aux/useless-if-before-free: Make the expression-matching
55505         regexp "shy".
55506         Make the *outer* regexp shy, not the expr-matching one.
55507
55508         update code-in-comment to accept cast of free arg
55509         * build-aux/useless-if-before-free: Update regexp.
55510
55511 2008-05-25  Bruno Haible  <bruno@clisp.org>
55512
55513         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
55514         * modules/copy-file-tests (Files, Makefile.am): Update.
55515         * tests/test-copy-file.c (func_test_copy): Update.
55516
55517 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
55518
55519         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
55520
55521 2008-05-23  Bruno Haible  <bruno@clisp.org>
55522
55523         Improve support for ACLs on OSF/1.
55524         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
55525         Remove fallback for unknown flavors of ACLs.
55526
55527 2008-05-22  Bruno Haible  <bruno@clisp.org>
55528
55529         Add support for ACLs on OSF/1.
55530         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
55531         replacements.
55532         (acl_free_text): New macro fallback.
55533         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
55534         acl_free.
55535         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
55536         acl_free_text function. Require AC_C_INLINE.
55537
55538 2008-05-22  Bruno Haible  <bruno@clisp.org>
55539
55540         Make copy_acl work on MacOS X 10.5.
55541         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
55542         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
55543         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
55544         If MODE_INSIDE_ACL, don't assume that every system has the same text
55545         representation for ACLs as FreeBSD.
55546         * lib/copy-acl.c (copy_acl): Add support for platforms with
55547         !MODE_INSIDE_ACL.
55548         * lib/file-has-acl.c (file_has_acl): Likewise.
55549         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
55550         FreeBSD, MacOS X, or IRIX, respectively.
55551
55552 2008-05-22  Bruno Haible  <bruno@clisp.org>
55553
55554         * lib/acl.h: Don't include <sys/acl.h>.
55555         (GETACLCNT): Move fallback to lib/acl-internal.h.
55556         * lib/acl-internal.h: Include <sys/acl.h> here.
55557         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55558
55559 2008-05-22  Bruno Haible  <bruno@clisp.org>
55560
55561         Split off copy_acl function to separate file.
55562         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55563         * lib/acl.c (copy_acl): Moved function to separate file.
55564         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55565         * modules/acl (Files): Add lib/copy-acl.c.
55566         (Makefiles.am): Augment lib_SOURCES.
55567
55568 2008-05-22  Bruno Haible  <bruno@clisp.org>
55569
55570         * modules/copy-file-tests: New file.
55571         * tests/test-copy-file.sh: New file.
55572         * tests/test-copy-file.c: New file.
55573         * tests/test-copy-file-sameacls.c: New file.
55574
55575 2008-05-22  Eric Blake  <ebb9@byu.net>
55576
55577         Avoid gcc warning.
55578         * tests/test-memcmp.c (main): Pass NULL indirectly.
55579
55580 2008-05-21  Bruno Haible  <bruno@clisp.org>
55581
55582         Add reference doc about ACLs.
55583         * doc/acl-resources.txt: New file.
55584         * doc/acl-cygwin.txt: New file.
55585
55586 2008-05-21  Bruno Haible  <bruno@clisp.org>
55587
55588         Avoid one more warning from gcc.
55589         * lib/vasnprintf.c (IF_LINT): Update comments.
55590         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55591
55592 2008-05-21  Jim Meyering  <meyering@redhat.com>
55593
55594         avoid a warning from gcc
55595         * lib/vasnprintf.c (IF_LINT): Define.
55596         (scale10_round_decimal_long_double):
55597         Use it to avoid a "may be used uninitialized" warning.
55598         (scale10_round_decimal_double): Likewise.
55599
55600 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55601
55602         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55603         declared.
55604
55605 2008-05-20  Bruno Haible  <bruno@clisp.org>
55606
55607         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55608         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55609
55610 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55611
55612         * modules/memcmp-tests: New file.
55613         * tests/test-memcmp.c: New file.
55614
55615 2008-05-19  Bruno Haible  <bruno@clisp.org>
55616
55617         * modules/propername (Notice, configure.ac): Put quoted "..." into
55618         --keyword option.
55619         * lib/propername.h: Update comments accordingly.
55620         Reported by Eric Blake.
55621
55622 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55623
55624         * modules/getpass-gnu (Depends-on): Add fseeko.
55625
55626 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55627
55628         * modules/base64-tests: New file.
55629
55630 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55631
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         * lib/base64.c (base64_decode_ctx): If a decode context structure
55641         was passed in use it to ignore newlines.  If a context structure
55642         was _not_ passed in, continue to treat newlines as garbage (this
55643         is the historical behavior).  Formerly base64_decode.
55644         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55645         takes a decode context structure.
55646         * lib/base64.h (base64_decode): Macro for four-argument calls.
55647         (base64_decode_alloc): Likewise.
55648
55649 2008-05-19  Jim Meyering  <meyering@redhat.com>
55650
55651         avoid a warning from gcc
55652         * lib/trim.c (IF_LINT): Define.
55653         (trim2): Use it to avoid a "may be used uninitialized" warning.
55654
55655         Fix doc typo.
55656         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55657
55658 2008-05-19  Bruno Haible  <bruno@clisp.org>
55659
55660         * doc/glibc-functions/getpass.texi: Document limits of other
55661         implementations.
55662
55663 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55664             Bruno Haible <bruno@clisp.org>
55665
55666         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55667
55668 2008-05-18  Bruno Haible  <bruno@clisp.org>
55669
55670         * modules/propername: New file, from GNU gettext.
55671         * lib/propername.h: New file, from GNU gettext.
55672         * lib/propername.c: New file, from GNU gettext.
55673         * MODULES.html.sh (Internationalization functions): Add propername.
55674
55675 2008-05-16  Jim Meyering  <meyering@redhat.com>
55676             Bruno Haible  <bruno@clisp.org>
55677
55678         Avoid some warnings from "gcc -Wshadow".
55679         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55680
55681 2008-05-15  Eric Blake  <ebb9@byu.net>
55682
55683         Extend previous patch to cygwin 1.7.0.
55684         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55685         fast implementation in cygwin >= 1.7.0.
55686         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55687         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55688
55689 2008-05-15  Bruno Haible  <bruno@clisp.org>
55690
55691         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55692         implementation in glibc >= 2.9.
55693         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55694         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55695
55696 2008-05-15  Bruno Haible  <bruno@clisp.org>
55697
55698         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55699         (Unicode string functions): Add unilbrk/*.
55700         Reported by Karl Berry.
55701
55702 2008-05-15  Eric Blake  <ebb9@byu.net>
55703
55704         Fix violation of <stdbool.h> replacement in regex.
55705         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55706         * lib/regexec.c (re_search_internal): Likewise.
55707         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55708
55709 2008-05-15  Jim Meyering  <meyering@redhat.com>
55710
55711         avoid distracting test output when git or cvs is not found
55712         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55713         * tests/test-vc-list-files-git.sh: Likewise.
55714
55715 2008-05-15  Eric Blake  <ebb9@byu.net>
55716
55717         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55718         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55719         glibc version.
55720         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55721         * doc/posix-functions/strstr.texi (strstr): Likewise.
55722         * lib/str-two-way.h (MAX): Sychronize with glibc.
55723
55724 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55725
55726         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55727         opr.ctx_type.
55728         (calc_first): Initialize constraint field.
55729         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55730         Fix grammar.
55731         (duplicate_node): Merge constraint field for all node types.
55732         (calc_eclosure_iter): Look at constraint field for all node types.
55733         * lib/regex_internal.c (create_cd_newstate): Don't look at
55734         opr.ctx_type.
55735
55736 2008-05-14  Bruno Haible  <bruno@clisp.org>
55737
55738         Help GCC to do better code generation.
55739         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55740         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55741         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55742         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55743         Declare with attribute 'malloc' if supported.
55744
55745 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55746
55747         use "echo STR|wc -c" rather than unportable "expr length STR"
55748         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55749         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55750
55751 2008-05-14  Jim Meyering  <meyering@redhat.com>
55752
55753         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55754         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55755         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55756         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55757         via Collin Lasse.
55758
55759 2008-05-14  Eric Blake  <ebb9@byu.net>
55760
55761         Avoid quadratic growth in gl_LIBSOURCES.
55762         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55763         Suggested by Bruno Haible.
55764
55765         Test xmemdup0.
55766         * modules/xmemdup0-tests: New file.
55767         * tests/test-xmemdup0.c: Likewise.
55768
55769 2008-05-13  Eric Blake  <ebb9@byu.net>
55770
55771         Split xmemdup0 into its own module.
55772         * modules/xmemdup0: New file.
55773         * lib/xmemdup0.h: Likewise.
55774         * lib/xmemdup0.c: Likewise.
55775         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55776         * lib/xalloc.h (xmemdup0): Remove.
55777         * lib/xmalloc.c (xmemdup0): Likewise.
55778
55779 2008-05-13  Eric Blake  <ebb9@byu.net>
55780             Bruno Haible  <bruno@clisp.org>
55781
55782         Reduce number of forks required during autoconf.
55783         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55784         and gl_LIBSOURCES_DIR.
55785         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55786         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55787         m4_syscmd per file.
55788         <m4_foreach_w>: Move...
55789         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55790
55791 2008-05-13  Eric Blake  <ebb9@byu.net>
55792
55793         * gnulib-tool: Fix various comment typos.
55794
55795 2008-05-12  Bruno Haible  <bruno@clisp.org>
55796
55797         Tailor the linebreaking algorithm.
55798         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55799
55800 2008-05-12  Bruno Haible  <bruno@clisp.org>
55801
55802         Update to Unicode 5.0.0.
55803         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55804         LBP_JV, LBP_JT. Redistribute values.
55805         (unilbrk_table): Change size.
55806         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55807         Unicode TR#14 rev. 22.
55808         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55809         LBP_JV, LBP_JT. Redistribute values.
55810         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55811         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55812         Update.
55813         * lib/unilbrk/lbrkprop1.h: Regenerated.
55814         * lib/unilbrk/lbrkprop2.h: Regenerated.
55815         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55816         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55817         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55818         Likewise.
55819         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55820         Likewise.
55821         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55822         result.
55823         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55824         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55825         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55826         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55827         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55828         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55829
55830 2008-05-11  Bruno Haible  <bruno@clisp.org>
55831
55832         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55833
55834 2008-05-11  Bruno Haible  <bruno@clisp.org>
55835
55836         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55837         * modules/unilbrk/gen-lbrk: New file.
55838
55839 2008-05-11  Bruno Haible  <bruno@clisp.org>
55840
55841         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55842         * m4/sha512.m4 (gl_SHA512): Likewise.
55843
55844 2008-05-11  Jim Meyering  <meyering@redhat.com>
55845
55846         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55847         * modules/crypto/sha256: New file.
55848         * modules/crypto/sha512: Likewise.
55849         * lib/sha256.c: Likewise.
55850         * lib/sha256.h: Likewise.
55851         * lib/sha512.c: Likewise.
55852         * lib/sha512.h: Likewise.
55853         * lib/u64.h: Likewise.
55854         * m4/sha256.m4: Likewise.
55855         * m4/sha512.m4: Likewise.
55856         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55857
55858 2008-05-10  Bruno Haible  <bruno@clisp.org>
55859
55860         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55861         (Input/Output <stdio.h>): Add xprintf.
55862         (Signal handling <signal.h>): Add strsignal.
55863         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55864         (Core language properties): Add func.
55865         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55866         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55867         strings.
55868         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55869         (Input/output): New section.
55870         (File system functions): Add openat-die, stat-macros.
55871         (Networking functions): Add sockets.
55872         (Unicode string functions): Add unictype/*.
55873         (Support for building libraries and executables): Add gperf.
55874         (Support for building documentation): Add agpl-3.0.
55875         (Misc): Add nocrash.
55876
55877 2008-05-10  Bruno Haible  <bruno@clisp.org>
55878
55879         * modules/unictype/gen-ctype: New file.
55880
55881 2008-05-10  Jim Meyering  <meyering@redhat.com>
55882
55883         Make chdir-safer.c more efficient on a system with no symlinks.
55884         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55885         also if ELOOP is zero.  Suggested by Bruno Haible.
55886
55887         Make chdir-safer.c slightly safer.
55888         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55889         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55890
55891         Avoid compile failure on systems without ELOOP (like mingw).
55892         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55893         Reported by Bruno Haible.
55894
55895 2008-05-10  Bruno Haible  <bruno@clisp.org>
55896
55897         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55898         (is_utf8_encoding): Use a case-insensitive comparison.
55899         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55900         streq.
55901
55902 2008-05-10  Bruno Haible  <bruno@clisp.org>
55903
55904         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55905         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55906         * lib/unilbrk/ulc-common.h (iconv_string_length,
55907         iconv_string_keeping_offsets): Remove declarations.
55908         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55909         Don't include <iconv.h>, streq.h, xsize.h.
55910         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55911         conversion.
55912         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55913         <iconv.h>, streq.h, xsize.h.
55914         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55915         conversion.
55916         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55917         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55918         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55919         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55920
55921 2008-05-10  Bruno Haible  <bruno@clisp.org>
55922
55923         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55924         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55925
55926         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55927         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55928
55929         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55930         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55931
55932         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55933         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55934
55935         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55936         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55937
55938         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55939         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55940
55941         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55942         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55943
55944         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55945         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55946
55947 2008-05-10  Bruno Haible  <bruno@clisp.org>
55948
55949         Split up 'linebreak' module.
55950         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55951         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55952         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55953         modifications.
55954         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55955         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55956         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55957         lib/linebreak.c.
55958         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55959         lib/linebreak.c.
55960         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55961         lib/linebreak.c.
55962         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55963         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55964         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55965         lib/linebreak.c.
55966         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55967         lib/linebreak.c.
55968         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55969         lib/linebreak.c.
55970         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55971         lib/linebreak.c.
55972         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55973         lib/linebreak.c.
55974         * modules/unilbrk/base: New file.
55975         * modules/unilbrk/tables: New file.
55976         * modules/unilbrk/u8-possible-linebreaks: New file.
55977         * modules/unilbrk/u16-possible-linebreaks: New file.
55978         * modules/unilbrk/u32-possible-linebreaks: New file.
55979         * modules/unilbrk/ulc-common: New file.
55980         * modules/unilbrk/ulc-possible-linebreaks: New file.
55981         * modules/unilbrk/u8-width-linebreaks: New file.
55982         * modules/unilbrk/u16-width-linebreaks: New file.
55983         * modules/unilbrk/u32-width-linebreaks: New file.
55984         * modules/unilbrk/ulc-width-linebreaks: New file.
55985         * lib/linebreak.h: Remove file.
55986         * lib/linebreak.c: Remove file.
55987         * m4/linebreak.m4: Remove file.
55988         * modules/linebreak: Remove file.
55989         * NEWS: Mention the changes.
55990
55991 2008-05-09  Eric Blake  <ebb9@byu.net>
55992
55993         Add xmemdup0.
55994         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55995         implementation.
55996         * lib/xmalloc.c (xmemdup0): New C implementation.
55997
55998 2008-05-08  Bruno Haible  <bruno@clisp.org>
55999
56000         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
56001
56002 2008-05-07  Eric Blake  <ebb9@byu.net>
56003
56004         Support cross-compilation of <wctype.h>.
56005         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
56006         AC_CACHE_CHECK.
56007
56008 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
56009
56010         * build-aux/vc-list-files: Add support for bzr.
56011
56012 2008-05-03  Jim Meyering  <meyering@redhat.com>
56013
56014         avoid failed assertion with tight malloc
56015         * tests/test-getndelim2.c: Correct an off-by-one assertion.
56016
56017 2008-05-03  Simon Josefsson  <simon@josefsson.org>
56018
56019         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
56020         are needed from arpa/inet.h.
56021         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
56022         Reported by Bruno Haible.
56023
56024 2008-05-02  Jim Meyering  <meyering@redhat.com>
56025
56026         avoid compilation error on FreeBSD 6
56027         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
56028
56029 2008-05-01  Jim Meyering  <meyering@redhat.com>
56030
56031         useless-if-before-free: correct --help's exit status description
56032         * build-aux/useless-if-before-free (usage): Like grep, exit 0
56033         for one or more matches, etc.  Reported by Bruno Haible.
56034
56035         vc-list-files: make the stand-alone gnulib test work
56036         * modules/vc-list-files-tests (configure.ac):
56037         Define and AC_SUBST abs_aux_dir.
56038         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
56039         $(abs_top_srcdir) to each script and having each of them
56040         duplicate the work of setting PATH, set PATH here, using
56041         the new variable, abs_aux_dir instead.
56042         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
56043         * tests/test-vc-list-files-git.sh: Likewise.
56044         Reported by Bruno Haible.
56045
56046 2008-05-01  Bruno Haible  <bruno@clisp.org>
56047
56048         * lib/getndelim2.c (getndelim2): Fix newsize computation during
56049         reallocation. Rename 'done' to 'found_delimiter'.
56050
56051 2008-05-01  Jim Meyering  <meyering@redhat.com>
56052
56053         vc-list-files: accommodate /bin/sh like the one from Solaris 10
56054         * build-aux/vc-list-files: Use `...`, not $(...).
56055
56056 2008-04-30  Jim Meyering  <meyering@redhat.com>
56057
56058         add tests for vc-list-files
56059         * modules/vc-list-files-tests: New module.
56060         * tests/test-vc-list-files-cvs.sh: New file.
56061         * tests/test-vc-list-files-git.sh: New file.
56062
56063         avoid a warning from gcc
56064         * lib/getndelim2.c (IF_LINT): Define.
56065         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
56066
56067         vc-list-files: work properly with build-aux/cvsu, too
56068         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
56069         to all cvs-based clauses.
56070
56071         vc-list-files: work properly in the CVS+awk case, too
56072         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
56073
56074         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
56075         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
56076         take more than one file argument, so .  Add quotes, just in case $dir
56077         ever contains a shell meta-character.  Prompted by Soren Hansen in
56078         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
56079
56080 2008-04-29  Eric Blake  <ebb9@byu.net>
56081
56082         Optimize getndelim2 to use block operations when possible.
56083         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
56084         freadseek, and memchr2.
56085         * lib/getndelim2.c (getndelim2): Use them for block reads.
56086
56087 2008-04-29  Bruno Haible  <bruno@clisp.org>
56088
56089         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
56090         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56091         * modules/inet_ntop (Depends-on): Add extensions.
56092         * modules/inet_pton (Depends-on): Likewise.
56093         Reported by Simon Josefsson.
56094
56095 2008-04-29  Jim Meyering  <meyering@redhat.com>
56096
56097         When the is more than one match in a block, match all of them.
56098         * build-aux/useless-if-before-free: Iterate through each block
56099         until there are no more matches.
56100
56101         Fix broken useless-if-before-free script.
56102         * build-aux/useless-if-before-free: Fix typo: missing "?" after
56103         the expression to match cast of argument to free-like function.
56104
56105 2008-04-29  Eric Blake  <ebb9@byu.net>
56106
56107         Use new header.
56108         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
56109
56110 2008-04-29  Jim Meyering  <meyering@redhat.com>
56111
56112         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
56113         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
56114         by gnulib to exist and to declare e.g., inet_ntop.
56115         Don't include "inet_ntop.h", now removed.
56116
56117         * m4/arpa_inet_h.m4: Remove trailing blanks.
56118
56119 2008-04-29  Eric Blake  <ebb9@byu.net>
56120
56121         Silence valgrind on safe reads beyond potential array bounds.
56122         * lib/rawmemchr.valgrind: New file.
56123         * lib/strchrnul.valgrind: Likewise.
56124         * modules/rawmemchr (Files): Distribute new file.
56125         * modules/strchrnul (Files): Likewise.
56126         Suggested by Bruno Haible.
56127
56128 2008-04-29  Bruno Haible  <bruno@clisp.org>
56129
56130         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
56131         (inet_ntop, inet_pton): Change portability warning's wording.
56132         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
56133         Invoke gl_CHECK_NEXT_HEADERS.
56134         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
56135         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
56136         set ARPA_INET_H.
56137         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56138         * modules/arpa_inet (Description): No longer only for systems that
56139         lack it.
56140         (Depends-on): Add include_next.
56141         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
56142         HAVE_ARPA_INET_H.
56143
56144 2008-04-29  Jim Meyering  <meyering@redhat.com>
56145
56146         * modules/mkdir (License): Re-license as LGPLv2+.
56147
56148 2008-04-29  Bruno Haible  <bruno@clisp.org>
56149
56150         * modules/rawmemchr (Maintainer): Set to Eric.
56151         * modules/strchrnul (Maintainer): Likewise.
56152
56153 2008-04-29  Simon Josefsson  <simon@josefsson.org>
56154
56155         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
56156         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
56157
56158         * modules/arpa_inet (arpa/inet.h): Use them.
56159
56160 2008-04-28  Eric Blake  <ebb9@byu.net>
56161
56162         Test getndelim2.
56163         * modules/getndelim2-tests: New file.
56164         * tests/test-getndelim2.c: Likewise.
56165         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
56166         stream.
56167         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
56168
56169         * MODULES.html.sh: Document new module.
56170
56171 2008-04-20  Bruno Haible  <bruno@clisp.org>
56172
56173         * lib/c-stack.c (die): Use raise.
56174         * modules/c-stack (Depends-on): Add raise.
56175
56176 2008-04-28  Bruno Haible  <bruno@clisp.org>
56177
56178         Expect rpmatch to be declared.
56179         * lib/yesno.c (rpmatch): Remove declaration.
56180
56181         Declare rpmatch.
56182         * lib/stdlib.in.h (rpmatch): New declaration.
56183         * lib/rpmatch.c: Include <stdlib.h> first.
56184         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
56185         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
56186         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
56187         HAVE_RPMATCH.
56188         * modules/rpmatch (Depends-on): Add stdlib, extensions.
56189         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56190         (Include): Set to <stdlib.h>.
56191         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
56192         HAVE_RPMATCH.
56193         * NEWS: Document the change.
56194
56195 2008-04-28  Bruno Haible  <bruno@clisp.org>
56196
56197         Change rpmatch to use nl_langinfo when appropriate.
56198         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
56199         (N_): New macro.
56200         (localized_pattern): New function/macro.
56201         (try): Remove match, nomatch arguments. Copy the pattern into safe
56202         memory before caching it.
56203         (rpmatch): Use localized_pattern. Add translator comments.
56204         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
56205         Suggested by Eric Blake.
56206         * modules/rpmatch (Depends-on): Add stdbool.
56207
56208 2008-04-28  Eric Blake  <ebb9@byu.net>
56209
56210         Add rawmemchr module, matching glibc.
56211         * modules/string (Makefile.am): New indicator.
56212         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
56213         * lib/string.in.h (rawmemchr): Declare when appropriate.
56214         * modules/rawmemchr: New file.
56215         * m4/rawmemchr.m4: Likewise.
56216         * lib/rawmemchr.c: Likewise.
56217         * modules/rawmemchr-tests: Likewise.
56218         * tests/test-rawmemchr.c: Likewise.
56219         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
56220         module.
56221         * modules/strchrnul (Depends-on): Add rawmemchr.
56222         * lib/strchrnul.c (strchrnul): Optimize a corner case.
56223
56224         Whitespace cleanup.
56225         * tests/test-strchrnul.c: Reindent.
56226         * lib/strchrnul.c: Likewise.
56227
56228         Optimize and test strchrnul.
56229         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
56230         * modules/strchrnul-tests: New file.
56231         * tests/test-strchrnul.c: Likewise.
56232
56233         Remove intprops dependency.
56234         * modules/memchr (Depends-on): Remove intprops.
56235         * modules/memrchr (Depends-on): Likewise.
56236         * modules/memchr2 (Depends-on): Likewise.
56237         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
56238         * lib/memrchr.c (__memrchr): Likewise.
56239         * lib/memrchr2.c (memchr2): Likewise.
56240         Reported by Simon Josefsson.
56241
56242 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56243
56244         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
56245         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56246
56247 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56248
56249         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
56250
56251         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
56252
56253         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
56254
56255         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
56256         declarations.
56257         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
56258
56259         * m4/inet_pton.m4: Don't check for header files.
56260
56261         * m4/inet_ntop.m4: Don't check for header files.
56262
56263 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56264
56265         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
56266         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
56267         trigger for cygwin).
56268         Reported by Bruno Haible  <bruno@clisp.org>.
56269
56270 2008-04-28  Bruno Haible  <bruno@clisp.org>
56271
56272         * doc/posix-functions/strdup.texi: Mention mingw problem.
56273
56274 2008-04-27  Bruno Haible  <bruno@clisp.org>
56275
56276         * modules/stat-time-tests (Depends-on): Add sleep.
56277         * tests/test-stat-time.c (force_unlink): New function.
56278         (cleanup): Use it.
56279         (test_mtime): Remove the ctime related tests.
56280         (test_ctime): New function, containing the ctime related tests.
56281         (main): Call test_ctime, except on native Windows platforms.
56282
56283 2008-04-27  Bruno Haible  <bruno@clisp.org>
56284
56285         * lib/rpmatch.c (rpmatch): Add some comments.
56286         Reported by James Youngman <jay@gnu.org>.
56287
56288 2008-04-27  Bruno Haible  <bruno@clisp.org>
56289
56290         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
56291         quiet NaNs.
56292
56293 2008-04-27  Bruno Haible  <bruno@clisp.org>
56294
56295         Make test-yesno.sh work on mingw.
56296         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
56297         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
56298         (main): Set stdin to binary mode.
56299         * modules/yesno-tests (Depends-on): Add binary-io.
56300
56301 2008-04-27  Bruno Haible  <bruno@clisp.org>
56302
56303         Fix 'isfinite' on x86, x86_64, ia64 platforms.
56304         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
56305         argument that lie outside the IEEE 854 domain.
56306         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
56307         (gl_ISFINITE): Use it.
56308         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
56309
56310 2008-04-27  Bruno Haible  <bruno@clisp.org>
56311
56312         Allow local renaming in config.h.
56313         * lib/memrchr.c (memrchr): Don't undefine outside libc.
56314
56315 2008-04-27  Bruno Haible  <bruno@clisp.org>
56316
56317         * lib/memchr.c (__memchr): Change type of 'i'.
56318         * lib/memchr2.c (memchr2): Likewise.
56319
56320 2008-04-26  Eric Blake  <ebb9@byu.net>
56321         and Bruno Haible  <bruno@clisp.org>
56322
56323         Optimize and test memrchr.
56324         * modules/memrchr (Depends-on): Add intprops.
56325         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
56326         * modules/memrchr-tests: New file.
56327         * tests/test-memrchr.c: New file.
56328
56329 2008-04-26  Bruno Haible  <bruno@clisp.org>
56330
56331         Add tentative support for DragonFly BSD.
56332         * lib/stdio-impl.h: Add macros for DragonFly BSD.
56333         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
56334         fp.
56335         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56336         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
56337         * lib/fpurge.c (fpurge): Likewise.
56338         * lib/freadable.c (freaadable): Likewise.
56339         * lib/freadahead.c (freadahead): Likewise.
56340         * lib/freading.c (freading): Likewise.
56341         * lib/freadptr.c (freadptr): Likewise.
56342         * lib/freadseek.c (freadptrinc): Likewise.
56343         * lib/fseeko.c (fseeko): Likewise.
56344         * lib/fseterr.c (fseterr): Likewise.
56345         * lib/fwritable.c (fwritable): Likewise.
56346         * lib/fwriting.c (fwriting): Likewise.
56347
56348 2008-04-26  Bruno Haible  <bruno@clisp.org>
56349
56350         * lib/stdio-impl.h: New file.
56351         * lib/fbufmode.c: Include stdio-impl.h.
56352         (fbufmode): Use fp_, remove redundant #defines.
56353         * lib/fflush.c: Include stdio-impl.h.
56354         (clear_ungetc_buffer): Remove redundant #defines.
56355         * lib/fpurge.c: Include stdio-impl.h.
56356         (fpurge): Remove redundant #defines.
56357         * lib/freadable.c: Include stdio-impl.h.
56358         (freadable): Remove redundant #defines.
56359         * lib/freadahead.c: Include stdio-impl.h.
56360         (freadahead): Remove redundant #defines.
56361         * lib/freading.c: Include stdio-impl.h.
56362         (freading): Remove redundant #defines.
56363         * lib/freadptr.c: Include stdio-impl.h.
56364         (freadptr): Remove redundant #defines.
56365         * lib/freadseek.c: Include stdio-impl.h.
56366         (freadptrinc): Remove redundant #defines.
56367         * lib/fseeko.c: Include stdio-impl.h.
56368         (rpl_fseeko): Remove redundant #defines.
56369         * lib/fseterr.c: Include stdio-impl.h.
56370         (fseterr): Remove redundant #defines.
56371         * lib/fwritable.c: Include stdio-impl.h.
56372         (fwritable: Remove redundant #defines.
56373         * lib/fwriting.c: Include stdio-impl.h.
56374         (fwriting): Remove redundant #defines.
56375         * modules/fbufmode (Files): Add lib/stdio-impl.h.
56376         * modules/fflush (Files): Likewise.
56377         * modules/fpurge (Files): Likewise.
56378         * modules/freadable (Files): Likewise.
56379         * modules/freadahead (Files): Likewise.
56380         * modules/freading (Files): Likewise.
56381         * modules/freadptr (Files): Likewise.
56382         * modules/freadseek (Files): Likewise.
56383         * modules/fseeko (Files): Likewise.
56384         * modules/fseterr (Files): Likewise.
56385         * modules/fwritable (Files): Likewise.
56386         * modules/fwriting (Files): Likewise.
56387
56388 2008-04-26  Bruno Haible  <bruno@clisp.org>
56389
56390         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56391         restore_seek_optimization, update_fpos_cache): New functions, extracted
56392         from rpl_fflush.
56393         (rpl_fflush): Use them.
56394         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
56395         (gl_REPLACE_FFLUSH): Use it.
56396
56397 2008-04-26  Bruno Haible  <bruno@clisp.org>
56398
56399         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
56400         on Solaris.
56401         * tests/test-xstrtoimax.sh: Likewise.
56402         * tests/test-xstrtoumax.sh: Likewise.
56403         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56404
56405 2008-04-26  Bruno Haible  <bruno@clisp.org>
56406
56407         * modules/memchr-tests: New file.
56408         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
56409
56410 2008-04-26  Eric Blake  <ebb9@byu.net>
56411             Bruno Haible  <bruno@clisp.org>
56412
56413         * lib/memchr.c: Include intprops.h.
56414         (__memchr): Optimize parallel detection of matching bytes. Rename local
56415         variables. Add explanatory comments.
56416
56417 2008-04-26  Bruno Haible  <bruno@clisp.org>
56418
56419         Fix module 'memchr', broken since 2000-10-28.
56420         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
56421
56422 2008-04-26  Bruno Haible  <bruno@clisp.org>
56423
56424         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
56425         comments.
56426
56427 2008-04-25  Eric Blake  <ebb9@byu.net>
56428
56429         Use native fstatat on cygwin 1.7.0.
56430         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
56431         first.
56432
56433 2008-04-23  Eric Blake  <ebb9@byu.net>
56434
56435         Improve memchr2 performance.
56436         * lib/memchr2.c (memchr2): Further optimize parallel detection of
56437         NUL bytes.
56438         * modules/memchr2 (Depends-on): Use intprops.h.
56439
56440 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56441
56442         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
56443         an inline function instead of a CPP macro.  Patch by Ben Pfaff
56444         <blp@cs.stanford.edu>.
56445
56446 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56447
56448         * lib/arpa_inet.in.h: New file.
56449
56450         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
56451         (Makefile.am): Sed in substitute header file.
56452
56453         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
56454         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
56455
56456         * modules/inet_ntop (configure.ac): Use
56457         gl_ARPA_INET_MODULE_INDICATOR.
56458
56459         * modules/inet_pton (configure.ac): Use
56460         gl_ARPA_INET_MODULE_INDICATOR.
56461
56462 2008-04-22  Jim Meyering  <meyering@redhat.com>
56463
56464         * modules/verify (License): Re-license as LGPLv2+.
56465
56466 2008-04-22  Simon Josefsson  <simon@josefsson.org>
56467
56468         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
56469         parameter to void* as per POSIX standard (MinGW uses char*).
56470
56471 2008-04-21  Bruno Haible  <bruno@clisp.org>
56472
56473         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56474         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56475         Define to replacements if REPLACE_ISWCNTRL is 1.
56476         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
56477         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
56478         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
56479         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
56480         what it fixes.
56481         * doc/posix-functions/iswalpha.texi: Likewise.
56482         * doc/posix-functions/iswblank.texi: Likewise.
56483         * doc/posix-functions/iswcntrl.texi: Likewise.
56484         * doc/posix-functions/iswdigit.texi: Likewise.
56485         * doc/posix-functions/iswgraph.texi: Likewise.
56486         * doc/posix-functions/iswlower.texi: Likewise.
56487         * doc/posix-functions/iswprint.texi: Likewise.
56488         * doc/posix-functions/iswpunct.texi: Likewise.
56489         * doc/posix-functions/iswspace.texi: Likewise.
56490         * doc/posix-functions/iswupper.texi: Likewise.
56491         * doc/posix-functions/iswxdigit.texi: Likewise.
56492         Reported by Alain Guibert.
56493
56494 2008-04-21  Bruno Haible  <bruno@clisp.org>
56495
56496         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
56497         Patch by Alain Guibert.
56498
56499 2008-04-21  Bruno Haible  <bruno@clisp.org>
56500
56501         Fix test failures on mingw.
56502         * tests/test-xstrtol.c (print_no_progname): New function.
56503         (main): Install it in error_print_progname hook.
56504         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
56505         * tests/test-xstrtoimax.sh: Likewise.
56506         * tests/test-xstrtoumax.sh: Likewise.
56507
56508 2008-04-21  Bruno Haible  <bruno@clisp.org>
56509
56510         Fix test failure on mingw.
56511         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
56512
56513 2008-04-21  Bruno Haible  <bruno@clisp.org>
56514
56515         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
56516         Actually assign a value.
56517
56518 2008-04-20  Bruno Haible  <bruno@clisp.org>
56519
56520         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
56521         take 2.
56522         * lib/canonicalize.c (canonicalize_file_name): Elide if the
56523         'canonicalize-lgpl' module is also used.
56524         * lib/canonicalize-lgpl.c: Undo last change.
56525         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
56526
56527 2008-04-20  Bruno Haible  <bruno@clisp.org>
56528
56529         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
56530         config.h. Provide _mkdir based fallback for mingw.
56531         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
56532         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
56533         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
56534         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
56535         rather than defining mkdir in config.h.
56536         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
56537         (gl_SYS_STAT_H_DEFAULTS): New macro.
56538         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
56539         HAVE_IO_H any more.
56540         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
56541         HAVE_DECL_MKDIR and HAVE_IO_H.
56542
56543 2008-04-20  Bruno Haible  <bruno@clisp.org>
56544
56545         * lib/isapipe.c: Port to native Windows platforms.
56546
56547 2008-04-20  Bruno Haible  <bruno@clisp.org>
56548
56549         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
56550
56551 2008-04-21  Eric Blake  <ebb9@byu.net>
56552
56553         Work around preprocessors that don't handle UINTMAX_MAX.
56554         * lib/memchr2.c (memchr2): Avoid embedded #if.
56555         Reported by Alain Guibert, fix suggested by Bruno Haible.
56556
56557 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56558
56559         * doc/posix-functions/strftime.texi (strftime): Explain better
56560         Windows incompatibility.  Suggested by Micah Cowan
56561         <micah@cowan.name>.
56562
56563 2008-04-20  Bruno Haible  <bruno@clisp.org>
56564
56565         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56566         unistr/u8-mblen.
56567
56568 2008-04-20  Bruno Haible  <bruno@clisp.org>
56569
56570         Fix test failure on platforms with non-GNU iconv.
56571         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56572         (U_TO_U8): Use it, rather than u16_to_u8.
56573         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56574         units at the end of the input string.
56575         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56576
56577 2008-04-20  Bruno Haible  <bruno@clisp.org>
56578
56579         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56580         when the resulting length is 0.
56581         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56582
56583 2008-04-20  Bruno Haible  <bruno@clisp.org>
56584
56585         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56586         works.
56587         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56588
56589 2008-04-20  Bruno Haible  <bruno@clisp.org>
56590
56591         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56592         * modules/tsearch-tests (configure.ac): Test for initstate function.
56593
56594 2008-04-20  Bruno Haible  <bruno@clisp.org>
56595
56596         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56597         for nlink_t if missing.
56598         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56599
56600 2008-04-19  Bruno Haible  <bruno@clisp.org>
56601
56602         Work around snprintf bug on Linux libc5.
56603         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56604         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56605         gl_SNPRINTF_SIZE1.
56606         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56607         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56608         that test failed.
56609         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56610         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56611         * modules/snprintf (Files): Add m4/printf.m4.
56612         * modules/vsnprintf (Files): Likewise.
56613         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56614         * doc/posix-functions/vsnprintf.texi: Likewise.
56615
56616 2008-04-19  Bruno Haible  <bruno@clisp.org>
56617
56618         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56619         from 0.0058 to less than 10^-7.
56620
56621 2008-04-19  Bruno Haible  <bruno@clisp.org>
56622
56623         Fix rounding when a precision is given.
56624         * lib/vasnprintf.c (is_borderline): New function.
56625         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56626         9...9x.
56627         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56628         %e, %g.
56629         * tests/test-vasprintf-posix.c (test_function): Likewise.
56630         * tests/test-snprintf-posix.h (test_function): Likewise.
56631         * tests/test-sprintf-posix.h (test_function): Likewise.
56632         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56633         * tests/test-printf-posix.h (test_function): Likewise.
56634         * tests/test-printf-posix.output: Update.
56635         Reported by John Darrington <john@darrington.wattle.id.au> via
56636         Ben Pfaff <blp@cs.stanford.edu>.
56637
56638 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56639
56640         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56641         Suggested by Bruno Haible <bruno@clisp.org>.
56642
56643 2008-04-17  Bruno Haible  <bruno@clisp.org>
56644
56645         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56646         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56647         implementation.
56648         Patch by Bruce Merry <bmerry@gmail.com>.
56649
56650 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56651
56652         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56653         doesn't work under Windows.
56654
56655 2008-04-16  Bruno Haible  <bruno@clisp.org>
56656
56657         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56658         New macros.
56659         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56660         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56661         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56662         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56663         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56664         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56665         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56666         macros.
56667         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56668         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56669         Northern Sotho, Uighur.
56670
56671 2008-04-16  Bruno Haible  <bruno@clisp.org>
56672
56673         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56674         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56675         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56676         Reported by Daniel Bergström <daniel@octocode.com>.
56677
56678 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56679             Bruno Haible  <bruno@clisp.org>
56680
56681         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56682         function.
56683         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56684         New functions, mostly extracted from gl_locale_name_default.
56685         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56686
56687 2008-04-16  Eric Blake  <ebb9@byu.net>
56688
56689         Adjust strtod detection to catch glibc 2.7 bug.
56690         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56691         Reported by John Gatewood Ham.
56692
56693 2008-04-16  Bruno Haible  <bruno@clisp.org>
56694
56695         Add tentative support for Linux libc5.
56696         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56697         * lib/fpurge.c (fpurge): Likewise.
56698         * lib/freadable.c (freadable): Likewise.
56699         * lib/freadahead.c (freadahead): Likewise.
56700         * lib/freading.c (freading): Likewise.
56701         * lib/freadptr.c (freadptr): Likewise.
56702         * lib/freadseek.c (freadptrinc): Likewise.
56703         * lib/fseeko.c (rpl_fseeko): Likewise.
56704         * lib/fseterr.c (fseterr): Likewise.
56705         * lib/fwritable.c (fwritable): Likewise.
56706         * lib/fwriting.c (fwriting): Likewise.
56707         Reported by Alain Guibert <alguibert+bts@free.fr>.
56708
56709 2008-04-15  Bruno Haible  <bruno@clisp.org>
56710
56711         * modules/mathl (configure.ac): Define module indicator.
56712
56713 2008-04-15  Bruno Haible  <bruno@clisp.org>
56714
56715         * lib/logl.c (logl): Remove unused variables.
56716
56717 2008-04-15  Bruno Haible  <bruno@clisp.org>
56718
56719         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56720         fails.
56721
56722 2008-04-15  Bruno Haible  <bruno@clisp.org>
56723
56724         * lib/trim.c (trim2): Fix argument of isspace() macro.
56725
56726 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56727
56728         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56729         to 0.
56730         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56731
56732 2008-04-14  Bruno Haible  <bruno@clisp.org>
56733
56734         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56735         AC_LANG_PROGRAM argument.
56736         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56737         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56738         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56739         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56740         * m4/math_h.m4 (gl_MATH_H): Likewise.
56741         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56742         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56743         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56744         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56745         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56746         * m4/regex.m4 (gl_REGEX): Likewise.
56747         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56748         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56749         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56750         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56751         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56752         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56753         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56754         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56755
56756 2008-04-14  Jim Meyering  <meyering@redhat.com>
56757
56758         test-strtod: fix typos: s/abs/fabs/
56759         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56760
56761 2008-04-13  Bruno Haible  <bruno@clisp.org>
56762
56763         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56764         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56765         module is also used and while not building the reloc-wrapper.
56766
56767 2008-04-13  Bruno Haible  <bruno@clisp.org>
56768
56769         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56770
56771 2008-04-13  Bruno Haible  <bruno@clisp.org>
56772
56773         Fix AIX compilation failure introduced on 2008-04-02.
56774         * tests/test-frexp.c (exp): Undefine before redefining.
56775         * tests/test-frexpl.c (exp): Likewise.
56776
56777 2008-04-13  Bruno Haible  <bruno@clisp.org>
56778
56779         Work around a HP-UX stdio bug.
56780         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56781         * tests/test-ftello.c (main): Likewise.
56782         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56783         * doc/posix-functions/ftello.texi: Likewise.
56784
56785 2008-04-13  Bruno Haible  <bruno@clisp.org>
56786
56787         Make test-signbit pass on HP-UX/hppa.
56788         * tests/test-signbit.c (minus_zerol): New variable.
56789         (test_signbitl): Use it.
56790
56791 2008-04-13  Bruno Haible  <bruno@clisp.org>
56792
56793         Make truncl work on OSF/1 4.0.
56794         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56795         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56796         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56797         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56798         HAVE_DECL_TRUNCL.
56799         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56800         HAVE_DECL_TRUNCL.
56801         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56802
56803 2008-04-13  Bruno Haible  <bruno@clisp.org>
56804
56805         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56806
56807 2008-04-13  Bruno Haible  <bruno@clisp.org>
56808
56809         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56810         expression, so as to avoid HP-UX 11 cc compiler bug.
56811
56812 2008-04-13  Bruno Haible  <bruno@clisp.org>
56813
56814         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56815
56816 2008-04-13  Bruno Haible  <bruno@clisp.org>
56817
56818         * lib/git-merge-changelog.c: Remove empty declaration outside of
56819         functions.
56820
56821 2008-04-13  Bruno Haible  <bruno@clisp.org>
56822
56823         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56824
56825 2008-04-13  Bruno Haible  <bruno@clisp.org>
56826
56827         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56828         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56829         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56830         also if it exists but lacks definitions of the SHUT_* macros.
56831         * modules/sys_socket (Description): Update.
56832         Reported by Elbert Pol <e.pol@chello.nl>.
56833
56834 2008-04-13  Bruno Haible  <bruno@clisp.org>
56835
56836         * lib/localcharset.c (OS2): Don't redefine if already defined.
56837         Reported by Elbert Pol <e.pol@chello.nl>.
56838
56839 2008-04-13  Bruno Haible  <bruno@clisp.org>
56840
56841         * lib/binary-io.h [__EMX__]: Include <io.h>.
56842         Reported by Elbert Pol <e.pol@chello.nl>.
56843
56844 2008-04-12  Bruno Haible  <bruno@clisp.org>
56845
56846         * lib/fpucw.h: Enable the definitions also for x86_64.
56847         Needed for NetBSD/x86_64.
56848         Reported by Thomas Klausner <tk@giga.or.at>.
56849
56850 2008-04-12  Bruno Haible  <bruno@clisp.org>
56851
56852         * tests/test-strtod.c: Include isnand.h.
56853         (main): Use isnand instead of isnan.
56854         Reported by Jim Meyering.
56855
56856 2008-04-12  Bruno Haible  <bruno@clisp.org>
56857
56858         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56859         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56860
56861 2008-04-12  Jim Meyering  <meyering@redhat.com>
56862
56863         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56864
56865 2008-04-12  Bruno Haible  <bruno@clisp.org>
56866
56867         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56868         Reported by Elbert Pol <e.pol@chello.nl>.
56869
56870 2008-04-12  Eric Blake  <ebb9@byu.net>
56871
56872         Work around Solaris 10 math.h bug.
56873         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56874         (gl_MATH_H_DEFAULTS): Set up default.
56875         * modules/math (Makefile.am): Replace new indicators.
56876         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56877         * tests/test-math.c (main): Test this.
56878         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56879         * doc/posix-headers/math.texi (math.h): Mention bug.
56880         Reported by Nelson H. F. Beebe and Jim Meyering.
56881
56882 2008-04-11  Bruno Haible  <bruno@clisp.org>
56883
56884         Adapt to future versions of Apple GCC.
56885         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56886         Reported by Peter O'Gorman <peter@pogma.com>.
56887
56888 2008-04-11  Bruno Haible  <bruno@clisp.org>
56889
56890         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56891
56892 2008-04-11  Bruno Haible  <bruno@clisp.org>
56893
56894         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56895
56896         * modules/getaddrinfo-tests (Makefile.am): Define
56897         test_getaddrinfo_LDADD.
56898
56899 2008-04-11  Bruno Haible  <bruno@clisp.org>
56900
56901         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56902         (init): Fix syntax error.
56903         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56904         is declared.
56905
56906 2008-04-11  Bruno Haible  <bruno@clisp.org>
56907
56908         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56909         * modules/glob (Depends-on): Add stdbool.
56910
56911 2008-04-11  Bruno Haible  <bruno@clisp.org>
56912
56913         * lib/trim.c: Include <string.h>.
56914
56915 2008-04-11  Eric Blake  <ebb9@byu.net>
56916
56917         Avoid compile failure on OS/2.
56918         * lib/regex_internal.h (internal_function): Disable optimization
56919         on OS/2 (__EMX__), where it caused compiler error.
56920         Reported by Elbert Pol.
56921
56922 2008-04-11  Bruno Haible  <bruno@clisp.org>
56923
56924         Flush the standard error stream before aborting. Needed on mingw.
56925         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56926         * tests/test-array_list.c (ASSERT): Likewise.
56927         * tests/test-array_oset.c (ASSERT): Likewise.
56928         * tests/test-avltree_list.c (ASSERT): Likewise.
56929         * tests/test-avltree_oset.c (ASSERT): Likewise.
56930         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56931         * tests/test-binary-io.c (ASSERT): Likewise.
56932         * tests/test-byteswap.c (ASSERT): Likewise.
56933         * tests/test-c-ctype.c (ASSERT): Likewise.
56934         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56935         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56936         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56937         * tests/test-c-strstr.c (ASSERT): Likewise.
56938         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56939         * tests/test-canonicalize.c (ASSERT): Likewise.
56940         * tests/test-carray_list.c (ASSERT): Likewise.
56941         * tests/test-ceilf1.c (ASSERT): Likewise.
56942         * tests/test-ceilf2.c (ASSERT): Likewise.
56943         * tests/test-ceill.c (ASSERT): Likewise.
56944         * tests/test-count-one-bits.c (ASSERT): Likewise.
56945         * tests/test-fbufmode.c (ASSERT): Likewise.
56946         * tests/test-fflush2.c (ASSERT): Likewise.
56947         * tests/test-floorf1.c (ASSERT): Likewise.
56948         * tests/test-floorf2.c (ASSERT): Likewise.
56949         * tests/test-floorl.c (ASSERT): Likewise.
56950         * tests/test-fopen.c (ASSERT): Likewise.
56951         * tests/test-fpending.c (ASSERT): Likewise.
56952         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56953         * tests/test-fpurge.c (ASSERT): Likewise.
56954         * tests/test-freadable.c (ASSERT): Likewise.
56955         * tests/test-freadahead.c (ASSERT): Likewise.
56956         * tests/test-freading.c (ASSERT): Likewise.
56957         * tests/test-freadptr.c (ASSERT): Likewise.
56958         * tests/test-freadptr2.c (ASSERT): Likewise.
56959         * tests/test-freadseek.c (ASSERT): Likewise.
56960         * tests/test-freopen.c (ASSERT): Likewise.
56961         * tests/test-frexp.c (ASSERT): Likewise.
56962         * tests/test-frexpl.c (ASSERT): Likewise.
56963         * tests/test-fseek.c (ASSERT): Likewise.
56964         * tests/test-fseeko.c (ASSERT): Likewise.
56965         * tests/test-fstrcmp.c (ASSERT): Likewise.
56966         * tests/test-ftell.c (ASSERT): Likewise.
56967         * tests/test-ftello.c (ASSERT): Likewise.
56968         * tests/test-func.c (ASSERT): Likewise.
56969         * tests/test-fwritable.c (ASSERT): Likewise.
56970         * tests/test-fwriting.c (ASSERT): Likewise.
56971         * tests/test-getdelim.c (ASSERT): Likewise.
56972         * tests/test-getline.c (ASSERT): Likewise.
56973         * tests/test-i-ring.c (ASSERT): Likewise.
56974         * tests/test-iconv-utf.c (ASSERT): Likewise.
56975         * tests/test-iconv.c (ASSERT): Likewise.
56976         * tests/test-isfinite.c (ASSERT): Likewise.
56977         * tests/test-isnand.c (ASSERT): Likewise.
56978         * tests/test-isnanf.c (ASSERT): Likewise.
56979         * tests/test-isnanl.h (ASSERT): Likewise.
56980         * tests/test-ldexpl.c (ASSERT): Likewise.
56981         * tests/test-linked_list.c (ASSERT): Likewise.
56982         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56983         * tests/test-localename.c (ASSERT): Likewise.
56984         * tests/test-lseek.c (ASSERT): Likewise.
56985         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56986         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56987         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56988         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56989         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56990         * tests/test-mbschr.c (ASSERT): Likewise.
56991         * tests/test-mbscspn.c (ASSERT): Likewise.
56992         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56993         * tests/test-mbspbrk.c (ASSERT): Likewise.
56994         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56995         * tests/test-mbsrchr.c (ASSERT): Likewise.
56996         * tests/test-mbsspn.c (ASSERT): Likewise.
56997         * tests/test-mbsstr1.c (ASSERT): Likewise.
56998         * tests/test-mbsstr2.c (ASSERT): Likewise.
56999         * tests/test-mbsstr3.c (ASSERT): Likewise.
57000         * tests/test-memchr2.c (ASSERT): Likewise.
57001         * tests/test-memmem.c (ASSERT): Likewise.
57002         * tests/test-open.c (ASSERT): Likewise.
57003         * tests/test-printf-frexp.c (ASSERT): Likewise.
57004         * tests/test-printf-frexpl.c (ASSERT): Likewise.
57005         * tests/test-printf-posix.c (ASSERT): Likewise.
57006         * tests/test-quotearg.c (ASSERT): Likewise.
57007         * tests/test-rbtree_list.c (ASSERT): Likewise.
57008         * tests/test-rbtree_oset.c (ASSERT): Likewise.
57009         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
57010         * tests/test-round1.c (ASSERT): Likewise.
57011         * tests/test-roundf1.c (ASSERT): Likewise.
57012         * tests/test-roundl.c (ASSERT): Likewise.
57013         * tests/test-signbit.c (ASSERT): Likewise.
57014         * tests/test-sleep.c (ASSERT): Likewise.
57015         * tests/test-snprintf-posix.c (ASSERT): Likewise.
57016         * tests/test-snprintf.c (ASSERT): Likewise.
57017         * tests/test-sprintf-posix.c (ASSERT): Likewise.
57018         * tests/test-stat-time.c (ASSERT): Likewise.
57019         * tests/test-strcasestr.c (ASSERT): Likewise.
57020         * tests/test-strerror.c (ASSERT): Likewise.
57021         * tests/test-striconv.c (ASSERT): Likewise.
57022         * tests/test-striconveh.c (ASSERT): Likewise.
57023         * tests/test-striconveha.c (ASSERT): Likewise.
57024         * tests/test-strsignal.c (ASSERT): Likewise.
57025         * tests/test-strstr.c (ASSERT): Likewise.
57026         * tests/test-strtod.c (ASSERT): Likewise.
57027         * tests/test-trunc1.c (ASSERT): Likewise.
57028         * tests/test-trunc2.c (ASSERT): Likewise.
57029         * tests/test-truncf1.c (ASSERT): Likewise.
57030         * tests/test-truncf2.c (ASSERT): Likewise.
57031         * tests/test-truncl.c (ASSERT): Likewise.
57032         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
57033         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
57034         * tests/test-vasnprintf.c (ASSERT): Likewise.
57035         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
57036         * tests/test-vasprintf.c (ASSERT): Likewise.
57037         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
57038         * tests/test-vprintf-posix.c (ASSERT): Likewise.
57039         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
57040         * tests/test-vsnprintf.c (ASSERT): Likewise.
57041         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
57042         * tests/test-wcwidth.c (ASSERT): Likewise.
57043         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
57044         * tests/test-xprintf-posix.c (ASSERT): Likewise.
57045         * tests/test-xvasprintf.c (ASSERT): Likewise.
57046         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
57047         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
57048         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
57049         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
57050         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
57051         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
57052         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
57053         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
57054         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
57055         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
57056         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
57057         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
57058         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
57059         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
57060         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
57061         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
57062         * tests/unictype/test-block_list.c (ASSERT): Likewise.
57063         * tests/unictype/test-block_of.c (ASSERT): Likewise.
57064         * tests/unictype/test-block_test.c (ASSERT): Likewise.
57065         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
57066         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
57067         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
57068         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
57069         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
57070         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
57071         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
57072         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
57073         * tests/unictype/test-combining.c (ASSERT): Likewise.
57074         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
57075         * tests/unictype/test-digit.c (ASSERT): Likewise.
57076         * tests/unictype/test-mirror.c (ASSERT): Likewise.
57077         * tests/unictype/test-numeric.c (ASSERT): Likewise.
57078         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
57079         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
57080         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
57081         * tests/unictype/test-scripts.c (ASSERT): Likewise.
57082         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
57083         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
57084         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
57085         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
57086         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
57087         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
57088         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
57089         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
57090         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
57091         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
57092         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
57093         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
57094         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
57095         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
57096         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
57097         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
57098         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
57099         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
57100         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
57101         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
57102         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
57103         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
57104         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
57105         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
57106         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
57107         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
57108         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
57109         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
57110         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
57111         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
57112         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
57113         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
57114         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
57115         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
57116         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
57117         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
57118         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
57119         Reported by Eric Blake.
57120
57121 2008-04-11  Bruno Haible  <bruno@clisp.org>
57122
57123         * lib/wchar.in.h: Tweak comment.
57124
57125 2008-04-11  Bruno Haible  <bruno@clisp.org>
57126
57127         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
57128         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
57129         gl_COMMON.
57130         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
57131
57132 2008-04-11  Bruno Haible  <bruno@clisp.org>
57133
57134         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
57135
57136 2008-04-11  Simon Josefsson  <simon@josefsson.org>
57137
57138         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
57139         of attempting to use non-existing /dev/*random.  Based on patch
57140         from Adam Strzelecki <ono@java.pl> in
57141         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
57142
57143 2008-04-08  Bruno Haible  <bruno@clisp.org>
57144
57145         Add tentative support for emx+gcc.
57146         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
57147         * lib/fpurge.c (fpurge): Likewise.
57148         * lib/freadable.c (freadable): Likewise.
57149         * lib/freadahead.c (freadahead): Likewise.
57150         * lib/freading.c (freading): Likewise.
57151         * lib/freadptr.c (freadptr): Likewise.
57152         * lib/freadseek.c (freadptrinc): Likewise.
57153         * lib/fseeko.c (rpl_fseeko): Likewise.
57154         * lib/fseterr.c (fseterr): Likewise.
57155         * lib/fwritable.c (fwritable): Likewise.
57156         * lib/fwriting.c (fwriting): Likewise.
57157         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
57158
57159 2008-04-09  Eric Blake  <ebb9@byu.net>
57160
57161         Avoid some autoconf warnings.
57162         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
57163         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
57164         * m4/afs.m4 (gl_AFS): Likewise.
57165         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
57166         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
57167         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57168         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
57169         (gl_INTEGER_TYPE_SUFFIX): Likewise.
57170         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
57171         (AC_CHECK_DECLS_ONCE): Likewise.
57172         Rename file...
57173         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
57174         gnulib-tool requires autoconf 2.59 or better.
57175         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
57176
57177 2008-04-08  Eric Blake  <ebb9@byu.net>
57178
57179         Use 'git describe --match' if present (added in git 1.5.5).
57180         * build-aux/git-version-gen: Limit result to tags that match 'v*'
57181         if possible.
57182
57183 2008-04-08  Bruno Haible  <bruno@clisp.org>
57184
57185         Add tentative support for OpenServer.
57186         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
57187         _ptr, _cnt.
57188         * lib/fpurge.c (fpurge): Likewise.
57189         * lib/freadable.c (freadable): Likewise.
57190         * lib/freadahead.c (freadahead): Likewise.
57191         * lib/freading.c (freading): Likewise.
57192         * lib/freadptr.c (freadptr): Likewise.
57193         * lib/freadseek.c (freadptrinc): Likewise.
57194         * lib/fseeko.c (rpl_fseeko): Likewise.
57195         * lib/fseterr.c (fseterr): Likewise.
57196         * lib/fwritable.c (fwritable): Likewise.
57197         * lib/fwriting.c (fwriting): Likewise.
57198         Reported by Roger Cornelius <rac@tenzing.org> and
57199         Brian K. White <brian@aljex.com>.
57200
57201 2008-04-06  Jim Meyering  <meyering@redhat.com>
57202
57203         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
57204
57205 2008-04-06  Bruno Haible  <bruno@clisp.org>
57206
57207         Avoid possible error with non-ASCII bytes in UTF-8 locales.
57208         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
57209         * tests/test-printf-posix.sh: Likewise.
57210         * tests/test-vfprintf-posix.sh: Likewise.
57211         * tests/test-vprintf-posix.sh: Likewise.
57212         * tests/test-xprintf-posix.sh: Likewise.
57213
57214 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57215
57216         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
57217         hide error from 'ls', needed on OS/2.
57218         Report by Elbert Pol <elbert.pol@gmail.com>.
57219
57220 2008-04-04  Eric Blake  <ebb9@byu.net>
57221
57222         Make test-fseeko.c failures meaningful.
57223         * tests/test-fseeko.c: Print line number on failure.
57224         * tests/test-fseek.c: Likewise.
57225         Reported by Nelson H. F. Beebe.
57226
57227         Improve strtod bug detection check.
57228         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
57229         required for Solaris 10.
57230         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
57231
57232 2008-04-04  Bruno Haible  <bruno@clisp.org>
57233
57234         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
57235         by m4/setenv.m4.
57236
57237 2008-04-03  Eric Blake  <ebb9@byu.net>
57238
57239         Ensure sane .version contents.
57240         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
57241         version string.
57242         * build-aux/git-version-gen: Improve documentation.
57243
57244         Make GNU make output nicer.
57245         * top/GNUmakefile [!_have-Makefile]: Add dependency on
57246         MAKECMDGOALS to enforce message for all command line targets.  Set
57247         srcdir for use in maint.mk.
57248
57249         Another maintainer tweak.
57250         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
57251         a target that regenerates version.
57252
57253 2008-04-03  Jim Meyering  <meyering@redhat.com>
57254
57255         vc-list-files: don't cause coreutils "make po-check" failure
57256         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
57257
57258 2008-04-03  Eric Blake  <ebb9@byu.net>
57259
57260         Allow VPATH usage of vc-list-files.
57261         * build-aux/vc-list-files (scriptversion): Add timestamp.
57262         (options): Add --help, --version, -C.
57263         (CVS): Support installed cvsu.
57264
57265 2008-04-02  Bruno Haible  <bruno@clisp.org>
57266
57267         Avoid some "statement with no effect" warnings from gcc.
57268         * tests/test-wctype.c (main): Explicitly ignore unused values.
57269         Reported by Jim Meyering.
57270
57271 2008-04-02  Jim Meyering  <meyering@redhat.com>
57272
57273         Avoid some warnings from "gcc -Wshadow".
57274         * tests/test-frexp.c (exp): Define to a different identifier.
57275         * tests/test-frexpl.c (exp): Likewise.
57276
57277 2008-04-03  Jim Meyering  <meyering@redhat.com>
57278
57279         bootstrap: remove dangling *.[ch] symlinks from lib
57280         * build-aux/bootstrap [dangling symlink removal]: Move find's
57281         -depth option to precede all others, to avoid a warning.
57282         Remove *.[ch] files too, and from "$source_base" (usually lib/).
57283
57284 2008-04-02  Bruno Haible  <bruno@clisp.org>
57285
57286         Avoid some warnings from "gcc -Wshadow".
57287         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
57288         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
57289         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
57290         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
57291         Reported by Jim Meyering.
57292
57293 2008-04-01  Bruno Haible  <bruno@clisp.org>
57294
57295         Fix test to work on IRIX 6.5 with cc.
57296         * tests/test-math.c (numeric_equal): New function.
57297         (main): Use it.
57298
57299 2008-04-01  Bruno Haible  <bruno@clisp.org>
57300
57301         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
57302
57303 2008-04-01  Bruno Haible  <bruno@clisp.org>
57304
57305         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
57306         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57307         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
57308         (Depends-on): Remove math.
57309
57310         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
57311         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57312         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
57313         (Depends-on): Remove math.
57314
57315         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
57316         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57317         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
57318         (Depends-on): Remove math.
57319         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
57320         (Depends-on): Remove math.
57321
57322         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
57323         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57324         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
57325         (Depends-on): Remove math.
57326         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
57327         (Depends-on): Remove math.
57328
57329         * tests/test-round1.c: Include nan.h.
57330         (main): Use NaNd instead of NAN.
57331         * modules/round-tests (Files): Add tests/nan.h.
57332
57333         * tests/test-trunc1.c: Include nan.h.
57334         (main): Use NaNd instead of NAN.
57335         * modules/trunc-tests (Files): Add tests/nan.h.
57336
57337         * tests/test-roundf1.c: Include nan.h.
57338         (main): Use NaNf instead of NAN.
57339         * modules/roundf-tests (Files): Add tests/nan.h.
57340
57341         * tests/test-truncf1.c: Include nan.h.
57342         (main): Use NaNf instead of NAN.
57343         * modules/truncf-tests (Files): Add tests/nan.h.
57344
57345         * tests/test-ceilf1.c: Include nan.h.
57346         (main): Use NaNf instead of NAN.
57347         * modules/ceilf-tests (Files): Add tests/nan.h.
57348
57349         * tests/test-floorf1.c: Include nan.h.
57350         (main): Use NaNf instead of NAN.
57351         * modules/floorf-tests (Files): Add tests/nan.h.
57352
57353         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
57354         (main): Use NaNf instead of NAN.
57355         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
57356
57357         * tests/test-isnand.c: Include nan.h instead of <math.h>.
57358         (main): Use NaNd instead of NAN.
57359         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
57360
57361         * tests/test-frexp.c: Include nan.h.
57362         (main): Use NaNd instead of NAN.
57363         * modules/frexp-tests (Files): Add tests/nan.h.
57364
57365         * lib/isnan.c: Don't include <math.h>.
57366         (FUNC): Don't use NAN macro.
57367         * modules/isnand-nolibm (Depends-on): Remove math.
57368         * modules/isnanf-nolibm (Depends-on): Remove math.
57369         * modules/isnanl (Depends-on): Remove math.
57370         * modules/isnanl-nolibm (Depends-on): Remove math.
57371
57372         * tests/nan.h: New file.
57373
57374 2008-04-01  Eric Blake  <ebb9@byu.net>
57375
57376         Fix typos.
57377         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
57378         values to be the right type.
57379
57380         For now, cater to gnulib strtod inaccuracies.
57381         * tests/test-strtod.c (main): Allow 1-ulp error on expected
57382         fractional results.  While not as nice from a QoI perspective, it
57383         is a quicker patch than correctly implementing decimal to binary
57384         rounding.
57385
57386 2008-03-31  Eric Blake  <ebb9@byu.net>
57387
57388         Guarantee a definition of NAN.
57389         * lib/math.in.h (NAN): Define if missing.
57390         * tests/test-math.c (main): Test it.
57391         * doc/posix-headers/math.texi (math.h): Document this.
57392         * lib/isnan.c (rpl_isnand): Use it.
57393         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
57394         * tests/test-floorf1.c (NaN): Likewise.
57395         * tests/test-frexp.c (NaN): Likewise.
57396         * tests/test-isnand.c (NaN): Likewise.
57397         * tests/test-isnanf.c (NaN): Likewise.
57398         * tests/test-round1.c (NaN): Likewise.
57399         * tests/test-roundf1.c (NaN): Likewise.
57400         * tests/test-snprintf-posix.h (NaN): Likewise.
57401         * tests/test-sprintf-posix.h (NaN): Likewise.
57402         * tests/test-trunc1.c (NaN): Likewise.
57403         * tests/test-truncf1.c (NaN): Likewise.
57404         * tests/test-vasnprintf-posix.c (NaN): Likewise.
57405         * tests/test-vasprintf-posix.c (NaN): Likewise.
57406         * modules/isnand-nolibm (Depends-on): Add math.
57407         * modules/isnanf-nolibm (Depends-on): Likewise.
57408         * modules/isnanl (Depends-on): Likewise.
57409         * modules/isnanl-nolibm (Depends-on): Likewise.
57410         * modules/snprintf-posix-tests (Depends-on): Likewise.
57411         * modules/sprintf-posix-tests (Depends-on): Likewise.
57412         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
57413         * modules/vsprintf-posix-tests (Depends-on): Likewise.
57414         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
57415         * modules/vasprintf-posix-tests (Depends-on): Likewise.
57416
57417 2008-03-31  Bruno Haible  <bruno@clisp.org>
57418
57419         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
57420         * doc/posix-functions/strtod.texi: Likewise.
57421
57422 2008-03-31  Bruno Haible  <bruno@clisp.org>
57423
57424         * tests/test-strtod.c (main): Don't use C99 syntax.
57425
57426 2008-03-31  Bruno Haible  <bruno@clisp.org>
57427
57428         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
57429         Reported by Eric Blake.
57430
57431 2008-03-31  Jim Meyering  <meyering@redhat.com>
57432
57433         Don't compare actual signbit return values.
57434         * tests/test-strtod.c (main): Rather, compare only their
57435         zero/non-zero nature.
57436
57437 2008-03-31  Eric Blake  <ebb9@byu.net>
57438
57439         More strtod documentation.
57440         * doc/posix-functions/strtod.texi (strtod): Interpret more test
57441         failures as distinct bugs.
57442
57443 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57444
57445         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
57446         Problem reported by Erik Benada in
57447         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
57448
57449 2008-03-30  Bruno Haible  <bruno@clisp.org>
57450
57451         * tests/test-strtod.c: Add comments about which assertion fails on which
57452         platform.
57453         * doc/posix-functions/strtod.texi: Add info about many more platforms.
57454
57455 2008-03-30  Eric Blake  <ebb9@byu.net>
57456
57457         Test signbit behavior on zeros.
57458         * tests/test-signbit.c (test_signbitf): Add tests for zero.
57459         (test_signbitd, test_signbitl): Likewise.
57460
57461         More strtod touchups.
57462         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
57463         sign of negative underflow, for now.  Use .5, not .1.
57464         * doc/posix-functions/strtod.texi (strtod): Mention these
57465         limitations.
57466         Reported by Jim Meyering.
57467
57468 2008-03-30  Bruno Haible  <bruno@clisp.org>
57469
57470         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
57471         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
57472
57473 2008-03-30  Bruno Haible  <bruno@clisp.org>
57474
57475         Avoid failure when attempting to return empty iconv results on some
57476         platforms.
57477         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
57478         allocation, don't report ENOMEM when the resulting string is empty.
57479
57480 2008-03-30  Bruno Haible  <bruno@clisp.org>
57481
57482         Fix buffer overrun.
57483         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
57484         Don't consider the width for tmp_length. Check count against tmp_length
57485         before doing the padding. Ensure enough allocation during padding.
57486
57487 2008-03-30  Eric Blake  <ebb9@byu.net>
57488
57489         strtod touchups.
57490         * lib/strtod.c (strtod): Avoid compiler warnings.
57491         Reported by Jim Meyering.
57492
57493 2008-03-30  Bruno Haible  <bruno@clisp.org>
57494
57495         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
57496         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
57497         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
57498         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
57499         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
57500         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
57501         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
57502         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
57503
57504         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
57505         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
57506         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
57507         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
57508         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
57509         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
57510         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
57511         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
57512
57513         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
57514         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
57515         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
57516         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
57517         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
57518         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
57519         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
57520         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
57521
57522         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
57523         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
57524
57525         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
57526         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
57527
57528         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
57529         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
57530
57531         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
57532         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
57533         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
57534
57535         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
57536         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
57537         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
57538
57539         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
57540         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
57541         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
57542
57543         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
57544         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
57545         * modules/vasprintf (Depends-on): Add EOVERFLOW.
57546
57547         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
57548         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
57549         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
57550         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
57551         (Depends-on): Add EOVERFLOW.
57552         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
57553         (Depends-on): Add EOVERFLOW.
57554         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57555         (Depends-on): Add EOVERFLOW.
57556         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57557         (Depends-on): Add EOVERFLOW.
57558         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57559         (Depends-on): Add EOVERFLOW.
57560         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57561         (Depends-on): Add EOVERFLOW.
57562         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57563         (Depends-on): Add EOVERFLOW.
57564         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57565         (Depends-on): Add EOVERFLOW.
57566
57567         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57568         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57569         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57570
57571         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57572         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57573         * modules/snprintf (Depends-on): Add EOVERFLOW.
57574
57575         * lib/poll.c (EOVERFLOW): Remove fallback.
57576         * modules/poll (Depends-on): Add EOVERFLOW.
57577
57578         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57579         * modules/getugroups (Depends-on): Add EOVERFLOW.
57580
57581         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57582         * modules/getdelim (Depends-on): Add EOVERFLOW.
57583
57584         * lib/ftell.c (EOVERFLOW): Remove fallback.
57585         * modules/ftell (Depends-on): Add EOVERFLOW.
57586
57587         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57588         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57589         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57590
57591         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57592
57593         * modules/EOVERFLOW-tests: New file.
57594         * tests/test-EOVERFLOW.c: New file.
57595
57596         * modules/EOVERFLOW: New file.
57597         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57598
57599 2008-03-30  Bruno Haible  <bruno@clisp.org>
57600
57601         Fix bug introduced on 2007-06-10.
57602         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57603         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57604
57605 2008-03-30  Bruno Haible  <bruno@clisp.org>
57606
57607         Improve freadseek's efficiency after ungetc.
57608         * lib/freadseek.c: Include freadahead.h.
57609         (freadptrinc): New function, extracted from freadseek.
57610         (freadseek): Use it in a loop. Use freadahead to determine the number
57611         of loop iterations.
57612         * modules/freadseek (Depends-on): Add freadahead.
57613         (configure.ac): Require AC_C_INLINE.
57614
57615 2008-03-30  Bruno Haible  <bruno@clisp.org>
57616
57617         * lib/freadseek.c (freadseek): Don't ignore the return value of
57618         freadptr.
57619
57620 2008-03-29  Eric Blake  <ebb9@byu.net>
57621
57622         Add hex float support.
57623         * modules/strtod (Depends-on): Add c-ctype.
57624         (Link): Mention POW_LIB.
57625         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57626         whitespace between 'e' and exponent.
57627         * tests/test-strtod.c (main): Enable hex float tests.
57628         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57629         now provides.
57630
57631         Document various strtod bugs, with some fixes.
57632         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57633         "-0x", "inf", "nan", and hex constants.
57634         * doc/posix-functions/atof.texi (atof): Likewise.
57635         * modules/stdlib (Makefile.am): Support strtod.
57636         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57637         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57638         detect additional strtod bugs.
57639         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57640         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57641         bool where appropriate.  Parse 'inf' and 'nan'.
57642         * tests/test-strtod.c: New file.
57643         * modules/strtod (Depends-on): Add stdbool, stdlib.
57644         (configure.ac): Turn on module indicator.
57645         * modules/strtod-tests: New module.
57646
57647 2008-03-29  Eric Blake  <ebb9@byu.net>
57648
57649         Fix ftell on mingw.
57650         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57651         * modules/ftell-tests (Depends-on): Add binary-io.
57652         * modules/ftello-tests (Depends-on): Likewise.
57653         * tests/test-ftell.c (main): Enhance test to cover behavior after
57654         ungetc.  Enforce binary mode.
57655         * tests/test-ftello.c (main): Likewise.
57656
57657         Pass test-freadseek on cygwin.
57658         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57659         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57660         ungetc buffer.
57661
57662         * tests/test-fflush2.c (main): Fix typo.
57663
57664 2008-03-29  Bruno Haible  <bruno@clisp.org>
57665
57666         * tests/test-fflush2.c (main): Temporarily disable the contents of
57667         this test.
57668         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57669         Reported by Eric Blake.
57670
57671 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57672
57673         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57674         (GC_SHA224_DIGEST_SIZE): Add.
57675
57676         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57677         (gc_hash_digest_length): Likewise.
57678         (gc_hash_buffer): Likewise.
57679
57680 2008-03-25  Bruno Haible  <bruno@clisp.org>
57681
57682         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57683         detail which gettext release to use.
57684         Reported by Simon Josefsson.
57685
57686 2008-03-26  Jim Meyering  <meyering@redhat.com>
57687
57688         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57689         * modules/gnumakefile (clean-GNUmakefile): Also, use
57690         test ... && ... || : syntax rather than if-then ... fi.
57691
57692         gnumakefile: Don't double-quote-expand $(VPATH) value.
57693         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57694
57695 2008-03-24  Eric Blake  <ebb9@byu.net>
57696
57697         Alter GNUmakefile to install into top directory.
57698         * modules/maintainer-makefile: Split, and add dependency...
57699         * modules/gnumakefile: to this new module.
57700         * build-aux/GNUmakefile: Move...
57701         * top/GNUmakefile: ...here.
57702         * build-aux/maint.mk: Move...
57703         * top/maint.mk: ...here.
57704         * MODULES.html.sh (Support for maintaining...): Document new
57705         module.
57706
57707 2008-03-23  Bruno Haible  <bruno@clisp.org>
57708
57709         * gnulib-tool: New options --vc-files, --no-vc-files.
57710         (func_usage): Document them.
57711         (vc_files): New variable.
57712         (func_import): Consider vc_files.
57713         (func_create_testdir): Set vc_files to empty.
57714         Suggested by Jim Meyering and Karl Berry.
57715
57716 2008-03-23  Bruno Haible  <bruno@clisp.org>
57717
57718         Fix regex compilation error on HP-UX 11.
57719         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57720         * modules/regex (Files): Add m4/mbstate_t.m4.
57721         Reported by Ton Voon <ton.voon@altinity.com>.
57722
57723 2008-03-23  Bruno Haible  <bruno@clisp.org>
57724
57725         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57726
57727 2008-03-23  Eric Blake  <ebb9@byu.net>
57728             Bruno Haible  <bruno@clisp.org>
57729
57730         Install files from top/ in the destination directory.
57731         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57732         augmentation also for the files from top/.
57733         (func_import, func_create_testdir): Rewrite file names:
57734         top/filename -> filename.
57735
57736 2008-03-23  Bruno Haible  <bruno@clisp.org>
57737
57738         Tweak "gnulib --version" output.
57739         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57740
57741 2008-03-23  Bruno Haible  <bruno@clisp.org>
57742
57743         Tweak "gnulib --version" output.
57744         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57745         rather than contents of ChangeLog, when possible.
57746
57747 2008-03-21  Eric Blake  <ebb9@byu.net>
57748
57749         More --version tweaks.
57750         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57751         date of last ChangeLog entry.
57752
57753 2008-03-21  Jim Meyering  <meyering@redhat.com>
57754
57755         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57756
57757 2008-03-20  Eric Blake  <ebb9@byu.net>
57758
57759         VPATH fix.
57760         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57761
57762 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57763
57764         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57765         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57766
57767 2008-03-20  Eric Blake  <ebb9@byu.net>
57768
57769         Sync GNUmakefile with coreutils.
57770         * build-aux/GNUmakefile (have-Makefile): Rename...
57771         (_have-Makefile): ...to this, for namespace consideration.
57772         (GNUmakefile.cfg): Include, if present.
57773         (_autoreconf): Define a default.
57774         (_is-dist-target): New rule for rebuilds to pick up intra-release
57775         version.
57776         (maint-cfg.mk): Rename...
57777         (cfg.mk): ...to this.
57778
57779 2008-03-18  Jim Meyering  <meyering@redhat.com>
57780
57781         New script and module: mktempd
57782         * MODULES.html.sh (maint+release support): Add mktempd.
57783         * build-aux/mktempd: New file.
57784         * modules/mktempd: New file.
57785
57786 2008-03-15  Jim Meyering  <meyering@redhat.com>
57787
57788         Undo last change.
57789         * lib/sha1.c, lib/md5.c: 63 != ~63.
57790         Reported by Andreas Schwab.
57791
57792         sha1.c, md5.c: Hoist a redundant expression.
57793         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57794         "ctx->buflen" only once, before calling *_process_block.
57795         * lib/md5.c (md5_process_bytes): Likewise.
57796
57797 2008-03-14  Eric Blake  <ebb9@byu.net>
57798
57799         Bump copyright year in files generated by gnulib-tool.
57800         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57801         gnulib-tool, rather than hard-coding it.
57802
57803         Fix 'gnulib-tool --version' output to work with git.
57804         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57805         (startup): ...here.
57806         (func_version): Use it to invoke git-version-gen, rather than
57807         relying on CVS keyword expansion.  Modernize wording.
57808         (cvsdatestamp, last_checkin_date, version): Kill unused
57809         variables.
57810
57811 2008-03-12  Jim Meyering  <meyering@redhat.com>
57812
57813         Recognize optional cast of the argument to free.
57814         * build-aux/useless-if-before-free: Update regexps.
57815
57816         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57817
57818 2008-03-11  Bruno Haible  <bruno@clisp.org>
57819
57820         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57821         by a single package.
57822         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57823         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57824         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57825         Reported by Sam Steingold <sds@gnu.org>.
57826
57827 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57828
57829         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57830         repositories.
57831
57832 2008-03-11  Bruno Haible  <bruno@clisp.org>
57833
57834         Avoid conflicts between local macro definitions.
57835         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57836         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57837
57838 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57839             Bruno Haible  <bruno@clisp.org>
57840
57841         Make va_copy work with some version of xlc on AIX 5.1.
57842         * lib/stdarg.in.h: New file.
57843         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57844         On AIX, use a <stdarg.h> file substitute.
57845         * modules/stdarg (Files): Add lib/stdarg.in.h.
57846         (Depends-on): Add include_next.
57847         (Makefile.am): Build a stdarg.h substitute if requested.
57848         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57849
57850 2008-03-10  Bruno Haible  <bruno@clisp.org>
57851
57852         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57853         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57854         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57855
57856 2008-03-10  Bruno Haible  <bruno@clisp.org>
57857
57858         * modules/stdlib (Depends-on): Add include_next, remove
57859         absolute-header.
57860
57861 2008-03-09  Bruno Haible  <bruno@clisp.org>
57862
57863         * lib/freadahead.h (freadahead): Document more precisely.
57864         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57865         the sum of both buffer sizes.
57866         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57867         * NEWS: Document the change.
57868
57869 2008-03-09  Bruno Haible  <bruno@clisp.org>
57870
57871         Extend freadptr to return also the buffer size.
57872         * lib/freadptr.h (freadptr): Add sizep argument.
57873         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57874         (freadptr): Add sizep argument. Determine buffer size like freadahead
57875         does.
57876         * tests/test-freadptr.c: Don't include freadahead.h.
57877         (main): Adapt for new calling convention of freadptr.
57878         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57879         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57880         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57881         tests/test-freadptr2.sh.
57882         (Depends): Remove freadahead.
57883         (TESTS): Add test-freadptr2.sh.
57884         (check_PROGRAMS): Add test-freadptr2.
57885
57886 2008-03-09  Bruno Haible  <bruno@clisp.org>
57887
57888         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57889         Report and solution by Simon Josefsson.
57890
57891 2008-03-06  Bruno Haible  <bruno@clisp.org>
57892
57893         Make fflush after ungetc work on BSD platforms.
57894         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57895         * tests/test-fflush2.c: New file.
57896         * tests/test-fflush2.sh: New file.
57897         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57898         tests/test-fflush2.c.
57899         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57900         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57901
57902 2008-03-06  Eric Blake  <ebb9@byu.net>
57903
57904         Likewise for ftello.
57905         * modules/ftello (Dependencies): Add extensions.
57906         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57907
57908 2008-03-06  Bruno Haible  <bruno@clisp.org>
57909
57910         * modules/fseeko (Dependencies): Add extensions.
57911         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57912         Needed on glibc systems.
57913
57914 2008-03-06  Bruno Haible  <bruno@clisp.org>
57915
57916         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57917         email address.
57918         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57919
57920 2008-03-06  Bruno Haible  <bruno@clisp.org>
57921
57922         * users.txt: Add libgnupdf.
57923
57924 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57925
57926         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57927         (Header File Substitutes, Function Substitutes,
57928         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57929         (Build robot for gnulib): Fix typo.
57930
57931 2008-03-06  Bruno Haible  <bruno@clisp.org>
57932
57933         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57934         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57935
57936 2008-03-06  Bruno Haible  <bruno@clisp.org>
57937
57938         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57939         * doc/gnulib.texi: Include it.
57940
57941 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57942
57943         * modules/func (License): Change license to unlimited; there was
57944         no LGPL parts in the module anyway.
57945
57946 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57947
57948         * modules/__func__: Renamed to modules/func.
57949         * modules/__func__-tests: Renamed to modules/func-tests.
57950         * tests/test-__func__.c: Renamed to tests/test-func.c.
57951         * m4/__func__.m4: Renamed to m4/func.m4.
57952         * doc/gnulib.texi (__func__): Section renamed to func.
57953         Suggested by Eric Blake <ebb9@byu.net>.
57954
57955 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57956
57957         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57958         about __func__.  Make example self-contained.  Suggested by Eric
57959         Blake <ebb9@byu.net>.
57960
57961         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57962         Suggested by Eric Blake <ebb9@byu.net>.
57963
57964 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57965
57966         * modules/__func__: New file.
57967         * modules/__func__-tests: New file.
57968         * tests/test-__func__.c: New file.
57969         * m4/__func__.m4: New file.
57970         * doc/gnulib.texi (__func__): Document __func__ module.
57971
57972 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57973
57974         * modules/byteswap (License): Re-license as LGPLv2+.
57975
57976 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57977
57978         * doc/Makefile: Add pdf target.
57979
57980 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57981
57982         * modules/inline (License): Use 'unlimited', since there are only
57983         *.m4 files in this module.
57984
57985 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57986             Bruno Haible  <bruno@clisp.org>
57987
57988         Add support for HP C 7.1 on OpenVMS 8.3.
57989         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57990
57991 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57992
57993         Update VMS specifics.
57994         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57995
57996 2008-03-02  Jim Meyering  <meyering@redhat.com>
57997
57998         Remove the last dependency on the "free" module.
57999         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
58000         Reported by Bob Proulx.
58001
58002         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
58003
58004         Remove useless "if" tests before free.  Deprecate "free" module.
58005         * doc/posix-functions/free.texi: Mention that this
58006         module is no longer useful.
58007         * modules/free (Notice): Say this module is obsolete.
58008         * modules/readutmp (Depends-on): Remove free.
58009         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
58010         * lib/putenv.c (putenv): Likewise.
58011         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
58012         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
58013         * tests/test-c-strcasestr.c (main): Likewise.
58014         * tests/test-c-strstr.c (main): Likewise.
58015         * tests/test-mbscasestr1.c (main): Likewise.
58016         * tests/test-mbscasestr2.c (main): Likewise.
58017         * tests/test-mbsstr1.c (main): Likewise.
58018         * tests/test-mbsstr2.c (main): Likewise.
58019         * tests/test-memmem.c (main): Likewise.
58020         * tests/test-strcasestr.c (main): Likewise.
58021         * tests/test-striconv.c (main): Likewise.
58022         * tests/test-striconveh.c (main): Likewise.
58023         * tests/test-striconveha.c (main): Likewise.
58024         * tests/test-strstr.c (main): Likewise.
58025
58026         * build-aux/git-version-gen: Adjust a comment and the Usage string.
58027
58028         bootstrap: sync from coreutils again
58029         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
58030
58031 2008-03-01  Jim Meyering  <meyering@redhat.com>
58032
58033         bootstrap: sync from coreutils
58034         * build-aux/bootstrap (update_po_files): Copy a .po file into place
58035         also when the target doesn't exist.
58036
58037 2008-03-01  Eric Blake  <ebb9@byu.net>
58038
58039         Fix bugs in last patch.
58040         * lib/memchr2.c (memchr2): Fix typo.
58041         * tests/test-memchr2.c: Test previous bug, and don't use GNU
58042         extension.
58043         Reported by Bruce Korb.
58044
58045         New module 'memchr2'.
58046         * modules/memchr2: New file.
58047         * modules/memchr2-tests: Likewise.
58048         * lib/memchr2.h: Likewise.
58049         * lib/memchr2.c: Likewise, based on memchr.c.
58050         * tests/test-memchr2.c: New test.
58051         * MODULES.html.sh (String handling): Add memchr2.
58052
58053 2008-02-29  Bruno Haible  <bruno@clisp.org>
58054
58055         * modules/freadseek-tests: New file.
58056         * tests/test-freadseek.sh: New file.
58057         * tests/test-freadseek.c: New file.
58058
58059         New module 'freadseek'.
58060         * modules/freadseek: New file.
58061         * lib/freadseek.h: New file.
58062         * lib/freadseek.c: New file.
58063         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
58064
58065 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58066
58067         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
58068         wydawca.
58069
58070         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
58071         program_invocation_name and program_invocation_short_name are
58072         present.
58073
58074 2008-02-28  Bruno Haible  <bruno@clisp.org>
58075
58076         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
58077         * tests/test-freadptr.sh: Also test non-seekable stdin.
58078
58079 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
58080
58081         * build-aux/bootstrap (source_base, m4_base)
58082         (doc_base, tests_base): New variables.
58083         (gnulib_tool_options): Do not hardcode base directories, use
58084         the above variables instead.
58085
58086 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
58087
58088         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
58089
58090 2008-02-28  Bruno Haible  <bruno@clisp.org>
58091
58092         * modules/freadptr-tests: New file.
58093         * tests/test-freadptr.sh: New file.
58094         * tests/test-freadptr.c: New file.
58095
58096         New module 'freadptr'.
58097         * modules/freadptr: New file.
58098         * lib/freadptr.h: New file.
58099         * lib/freadptr.c: New file.
58100         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
58101
58102 2008-02-26  Karl Berry  <karl@freefriends.org>
58103
58104         Sync from Libtool:
58105         * libltdl/argz.c (argz_add, argz_count): New functions.
58106         * libltdl/argz.in.h: Declare them.
58107         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
58108
58109 2008-02-22  Bruno Haible  <bruno@clisp.org>
58110
58111         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
58112         is a pointer type.  Needed for HP-UX 10.
58113         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
58114         * doc/posix-functions/gmtime_r.texi: Likewise.
58115         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58116
58117 2008-02-24  Bruno Haible  <bruno@clisp.org>
58118
58119         * modules/environ-tests: New file.
58120         * tests/test-environ.c: New file.
58121
58122         New module 'environ'.
58123         * modules/environ: New file.
58124         * lib/unistd.in.h (environ): New declaration.
58125         * m4/environ.m4: New file.
58126         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
58127         after use.
58128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
58129         HAVE_DECL_ENVIRON.
58130         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
58131         HAVE_DECL_ENVIRON.
58132         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
58133         wrong claim that 'environ' is missing on some systems.
58134         * modules/execute (Depends-on): Add environ.
58135         * lib/execute.c (environ): Remove fallback declaration.
58136         * modules/pipe (Depends-on): Add environ.
58137         * lib/pipe.c (environ): Remove fallback declaration.
58138         * modules/setenv (Depends-on): Add environ.
58139         * lib/setenv.c (environ): Remove fallback declaration.
58140         * modules/unsetenv (Depends-on): Add environ.
58141         * lib/unsetenv.c (environ): Remove fallback declaration.
58142         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
58143         m4/environ.m4.
58144         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
58145         (gl_PREREQ_UNSETENV): Likewise.
58146
58147 2008-02-24  Bruno Haible  <bruno@clisp.org>
58148
58149         * doc/posix-functions/environ.texi: Document the MacOS X problem.
58150
58151 2008-02-20  Bob Proulx  <bob@proulx.com>
58152
58153         Enable use of older two part flavor 'git describe'.
58154         * build-aux/git-version-gen: If using the older two part flavor of
58155         git version then recreate the third part now present in the
58156         newer three part flavor of git describe.
58157
58158 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
58159
58160         * lib/fts.c (fts_build): Typo correction to comment.
58161
58162 2008-02-17  Bruno Haible  <bruno@clisp.org>
58163
58164         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
58165         generating no-op conflicts.
58166
58167 2008-02-17  Bruno Haible  <bruno@clisp.org>
58168
58169         Speed up by 10%.
58170         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
58171         result_entries, rather than an index-based loop.
58172
58173 2008-02-17  Bruno Haible  <bruno@clisp.org>
58174
58175         Speed up by 25%.
58176         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
58177         'hashcode_cached'.
58178         (entry_create): New function.
58179         (entry_hashcode): Use the cached hashcode if possible.
58180         (read_changelog_file, try_split_merged_entry): Use entry_create.
58181
58182 2008-02-17  Bruno Haible  <bruno@clisp.org>
58183
58184         Speed up from O(n^2) to O(n) for long ChangeLog files.
58185         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
58186         (read_changelog_file): Change implementation of entries_reversed list
58187         to rbtreehash.
58188         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
58189
58190 2008-02-17  Bruno Haible  <bruno@clisp.org>
58191
58192         New option --split-merged-entry.
58193         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
58194         (find_paragraph_end, try_split_merged_entry): New functions.
58195         (long_options): Add option --split-merged-entry.
58196         (usage): Document option --split-merged-entry.
58197         (main): Implement option --split-merged-entry.
58198         Reported by Eric Blake.
58199
58200 2008-02-17  Bruno Haible  <bruno@clisp.org>
58201
58202         * lib/git-merge-changelog.c: Include c-strstr.h.
58203         (main): Support the "git pull --rebase" situation.
58204         * modules/git-merge-changelog (Depends-on): Add c-strstr.
58205         Reported by Eric Blake.
58206
58207 2008-02-16  Eric Blake  <ebb9@byu.net>
58208
58209         Avoid doubling \ in common case of "c-maybe" quoting style.
58210         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
58211         eliding outer quotes.
58212         * lib/quotearg.h: Document this.
58213         * tests/test-quotearg.c (result_strings, inputs, results_g)
58214         (flag_results, locale_results): Test it by adding a new string to
58215         each test group.
58216         (compare_strings): Test new string.
58217
58218 2008-02-13  Eric Blake  <ebb9@byu.net>
58219
58220         Avoid trigraph quoting in default output.
58221         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
58222         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
58223         unless explicitly requested.
58224         * tests/test-quotearg.c (flag_results, main): Add additional tests.
58225
58226 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
58227
58228         Don't rely on signed integer overflowing to negative value.
58229         * lib/getugroups.c (getugroups): Include <limits.h>.
58230         Instead, compare against INT_MAX, and increment only if the test passes.
58231
58232 2008-02-13  Jim Meyering  <meyering@redhat.com>
58233         and Eric Blake  <ebb9@byu.net>
58234
58235         Avoid shadowing warning and compile errors on Linux.
58236         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
58237         forwarding macros on Linux.
58238         (dcgettext): Define a stub, for Linux.
58239         (results_g, main): Avoid warnings.
58240
58241 2008-02-12  Eric Blake  <ebb9@byu.net>
58242
58243         Silence warning in last patch.
58244         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
58245
58246         Quotearg part 4: add tests, fix c-maybe colon quoting.
58247         * lib/quotearg.h: Improve documentation.
58248         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
58249         escapes when adding outer quotes.  When quoting trigraphs, use
58250         valid C notation.  When quoting NUL, omit extra characters if next
58251         character is not digit.  Alter prototype.
58252         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
58253         callers.
58254         * modules/quotearg-tests: New module.
58255         * tests/test-quotearg.c: New test.
58256
58257 2008-02-07  Eric Blake  <ebb9@byu.net>
58258
58259         Quotearg part 3: add flag to control outer quote elision.
58260         * lib/quotearg.h (c_maybe_quoting_style): New style.
58261         (enum quoting_flags): Better documentation of flags.
58262         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
58263         c-maybe style.
58264         (quotearg_buffer_restyled): Handle new flag to elide outer
58265         quotes.
58266
58267         Quotearg part 2: add flag that can control NUL elision.
58268         * lib/quotearg.h (set_quoting_flags): New prototype.
58269         * lib/quotearg.c (struct quoting_options): Add flag field.
58270         (set_quoting_flags): New function.
58271         (quotearg_buffer_restyled): Add flags parameter.
58272         (quotearg_alloc_mem): Set the flag if length cannot be returned.
58273         (quotearg_n_options): Set the flag, since length cannot be
58274         returned.
58275         (quoting_options_from_style): Default flags correctly.
58276
58277         Quotearg part 1: more wrappers, restore quotearg_char state.
58278         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
58279         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
58280         (quotearg_colon_mem): New wrappers.
58281         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
58282         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
58283         functions.
58284         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
58285         (quotearg_colon_mem): New functions.
58286
58287 2008-02-11  Bruno Haible  <bruno@clisp.org>
58288
58289         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
58290         library in the current directory: it does not work with parallel make.
58291         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58292
58293 2008-02-11  Bruno Haible  <bruno@clisp.org>
58294
58295         * .gitattributes: New file.
58296
58297 2008-02-11  Jim Meyering  <meyering@redhat.com>
58298
58299         useless-if-before-free: Fix reversed exit values.
58300         * build-aux/useless-if-before-free: Use correct values
58301         for EXIT_MATCH and EXIT_NO_MATCH.
58302
58303         * build-aux/useless-if-before-free: Close stdout carefully.
58304
58305 2008-02-10  Bruno Haible  <bruno@clisp.org>
58306
58307         New module 'git-merge-changelog'.
58308         * modules/git-merge-changelog: New file.
58309         * lib/git-merge-changelog.c: New file.
58310
58311 2008-02-10  Jim Meyering  <meyering@redhat.com>
58312
58313         useless-if-before-free: New option: --list (-l).
58314
58315         useless-if-before-free: Don't exit immediately upon open failure.
58316         * build-aux/useless-if-before-free: Exit 2 for errors.
58317         Upon failure to open a file, don't exit immediately.
58318         Rather, just warn and continue with any remaining files.
58319
58320 2008-02-10  Bruno Haible  <bruno@clisp.org>
58321
58322         New abstract list operation 'node_set_value'.
58323         * lib/gl_list.h (gl_list_node_set_value): New function.
58324         (struct gl_list_implementation): New field node_set_value.
58325         * lib/gl_list.c (gl_list_node_set_value): New function.
58326         * lib/gl_array_list.c (gl_array_node_set_value): New function.
58327         (gl_array_list_implementation): Update.
58328         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
58329         (gl_carray_list_implementation): Update.
58330         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
58331         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58332         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58333         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
58334         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58335         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58336         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58337         Update.
58338         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58339         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
58340         (gl_sublist_list_implementation): Update.
58341
58342 2008-02-10  Bruno Haible  <bruno@clisp.org>
58343
58344         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
58345         Needed when ELEMENT is #defined to 'some_type *'.
58346
58347 2008-02-10  Jim Meyering  <meyering@redhat.com>
58348
58349         New script and module: useless-if-before-free
58350         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
58351         * build-aux/useless-if-before-free: New file.
58352         * modules/useless-if-before-free: New file.
58353
58354         * build-aux/gitlog-to-changelog: Use committer date, not author date.
58355
58356         xstrtol_error: Fix typo.
58357         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
58358         s/exit_failure/exit_status/.
58359
58360 2008-02-09  Jim Meyering  <meyering@redhat.com>
58361
58362         New script and module: gitlog-to-changelog
58363         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
58364         * modules/gitlog-to-changelog: New file.
58365         * build-aux/gitlog-to-changelog: New file.
58366
58367 2008-02-08  Jim Meyering  <meyering@redhat.com>
58368
58369         Avoid two "parameter unused" warnings.
58370         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
58371         Mark "st" as used.
58372
58373         Use "git COMMAND", not "git-COMMAND".
58374         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
58375         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
58376         * build-aux/git-version-gen: Use "git status", not "git-status".
58377
58378 2008-02-07  Bruno Haible  <bruno@clisp.org>
58379
58380         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
58381         Avoids a crash on Windows Vista.
58382         Reported by Adam Strzelecki <ono@java.pl> via
58383         Simon Josefsson <simon@josefsson.org>.
58384
58385 2008-02-06  Bruno Haible  <bruno@clisp.org>
58386
58387         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
58388         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
58389         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
58390         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
58391         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58392         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58393         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
58394         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
58395         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58396         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58397         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58398         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58399         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58400         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58401         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58402         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
58403         left-adjust flag.
58404         * tests/test-snprintf-posix.h (test_function): Likewise.
58405         * tests/test-sprintf-posix.h (test_function): Likewise.
58406         * tests/test-vasprintf-posix.c (test_function): Likewise.
58407         * doc/posix-functions/fprintf.texi: Update.
58408         * doc/posix-functions/printf.texi: Update.
58409         * doc/posix-functions/snprintf.texi: Update.
58410         * doc/posix-functions/sprintf.texi: Update.
58411         * doc/posix-functions/vfprintf.texi: Update.
58412         * doc/posix-functions/vprintf.texi: Update.
58413         * doc/posix-functions/vsnprintf.texi: Update.
58414         * doc/posix-functions/vsprintf.texi: Update.
58415         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58416
58417 2008-02-06  Bruno Haible  <bruno@clisp.org>
58418
58419         Fix bug introduced on 2008-01-26.
58420         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
58421
58422 2008-02-06  Bruno Haible  <bruno@clisp.org>
58423
58424         Fix bug introduced on 2007-06-10.
58425         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
58426         !NEED_PRINTF_FLAG_ZERO.
58427
58428 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
58429
58430         getloadavg: use libperfstat on AIX5
58431         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
58432
58433 2008-02-03  Bruno Haible  <bruno@clisp.org>
58434
58435         * lib/diffseq.h: Add comments about required #includes.
58436         Reported by Michael Biggs <gnulib@doubleplum.net>.
58437
58438 2008-02-01  Bruno Haible  <bruno@clisp.org>
58439
58440         * users.txt: Add gnuit.
58441
58442 2008-01-31  Bruno Haible  <bruno@clisp.org>
58443
58444         * lib/md4.c (set_uint32): Mark as inline.
58445         * lib/md5.c (set_uint32): Likewise.
58446         * lib/sha1.c (set_uint32): Likewise.
58447         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
58448         * m4/md5.m4 (gl_MD5): Likewise.
58449         * m4/sha1.m4 (gl_SHA1): Likewise.
58450
58451 2008-01-31  Jim Meyering  <meyering@redhat.com>
58452
58453         Use "sizeof VAR", rather than a literal "4".
58454         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
58455         * lib/md4.c (md4_read_ctx): Likewise.
58456         * lib/sha1.c (sha1_read_ctx): Likewise.
58457
58458 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58459
58460         * tests/test-sha1.c: New file, based on test-md5.c.
58461
58462         * modules/crypto/sha1-tests: New file.
58463
58464 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58465
58466         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
58467
58468 2008-01-31  Jim Meyering  <meyering@redhat.com>
58469
58470         Prefer "sizeof v" over the equivalent "4".
58471         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
58472         * lib/md5.c (set_uint32): Likewise.
58473         * lib/sha1.c (set_uint32): Likewise.
58474
58475 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58476
58477         * lib/sha1.c (set_uint32): Mark function as static.
58478
58479 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58480
58481         md2: clarify comments to say that alignment is not required.
58482         * lib/md2.h: Remove warning about alignment in comment.
58483         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
58484         never been required.
58485
58486 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58487
58488         md4: adapt alignment constraint fix from sha1.
58489         * lib/md4.c (set_uint32): New function, from sha1.c
58490         (md4_read_ctx): Use it.
58491         (md4_finish_ctx): Doc fix.
58492         * lib/md4.h: Doc fix.
58493
58494 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58495
58496         md5: adapt alignment constraint fix from sha1.
58497         * lib/md5.c (set_uint32): New function, from sha1.c
58498         (md5_read_ctx): Use it.
58499         (md5_finish_ctx): Doc fix.
58500         * lib/md5.h: Doc fix.
58501
58502 2008-01-30  Peter Palfrader  <weasel@debian.org>
58503
58504         sha1: remove the result buffer alignment constraint
58505         * lib/sha1.c (set_uint32): New function.
58506         (sha1_read_ctx): Rewrite to remove the result buffer alignment
58507         constraint.
58508         (sha1_finish_ctx): Remove comment warning about alignment constraint.
58509         * lib/sha1.h: Likewise.
58510
58511 2008-01-30  Andreas Schwab  <schwab@suse.de>
58512             Bruno Haible  <bruno@clisp.org>
58513
58514         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
58515         correct definition of LDBL_MIN_EXP.
58516
58517 2008-01-30  Karl Berry  <karl@gnu.org>
58518
58519         * config/srclist-update: try to preserve x bit on updates.
58520         * config/srclistvars.sh: update for karl.
58521
58522 2008-01-29  Jim Meyering  <meyering@redhat.com>
58523
58524         vasnprintf.c: Avoid warning about unused label
58525         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
58526         "overflow" label definition and associated code with the
58527         same cpp condition that guards the sole use of that label.
58528
58529 2008-01-26  Bruno Haible  <bruno@clisp.org>
58530
58531         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
58532         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
58533         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
58534         * lib/isnanl-nolibm.h (isnanl): Likewise.
58535         Reported by Paul Eggert <eggert@cs.ucla.edu>.
58536
58537 2008-01-26  Bruno Haible  <bruno@clisp.org>
58538
58539         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
58540         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
58541
58542 2008-01-26  Bruno Haible  <bruno@clisp.org>
58543
58544         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
58545         GCC >= 4.0 built-in.
58546         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
58547
58548 2008-01-26  Bruno Haible  <bruno@clisp.org>
58549
58550         Rename isnan, applicable to 'double' only, to isnand.
58551         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
58552         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
58553         (configure.ac): Update.
58554         (Include): Replace "isnan.h" with "isnand.h".
58555         * m4/isnand.m4: Renamed from m4/isnan.m4.
58556         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58557         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58558         instead of isnan.c.
58559         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58560         instead of HAVE_ISNAN_IN_LIBC.
58561         (isnand): Renamed from isnan.
58562         * lib/isnand.c: New file.
58563         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58564         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58565         (Makefile.am): Update.
58566         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58567         Include isnand.h instead of isnan.h.
58568         (main): Test isnand instead of isnan.
58569         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58570         isnan-nolibm.
58571         * modules/frexp (Depends-on): Likewise.
58572         * modules/frexp-tests (Depends-on): Likewise.
58573         * modules/frexp-nolibm (Depends-on): Likewise.
58574         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58575         * modules/isfinite (Depends-on): Likewise.
58576         * modules/round-tests (Depends-on): Likewise.
58577         * modules/signbit (Depends-on): Likewise.
58578         * modules/signbit-tests (Depends-on): Likewise.
58579         * modules/snprintf-posix (Depends-on): Likewise.
58580         * modules/sprintf-posix (Depends-on): Likewise.
58581         * modules/trunc-tests (Depends-on): Likewise.
58582         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58583         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58584         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58585         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58586         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58587         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58588         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58589         * modules/vasnprintf-posix (Depends-on): Likewise.
58590         * modules/vasprintf-posix (Depends-on): Likewise.
58591         * modules/vfprintf-posix (Depends-on): Likewise.
58592         * modules/vsnprintf-posix (Depends-on): Likewise.
58593         * modules/vsprintf-posix (Depends-on): Likewise.
58594         * lib/frexp.c: Include isnand.h instead of isnan.h.
58595         (ISNAN): Set to isnand instead of isnan.
58596         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58597         (gl_isfinited): Use isnand instead of isnan.
58598         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58599         (gl_signbitd): Use isnand instead of isnan.
58600         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58601         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58602         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58603         (main): Use isnand instead of isnan.
58604         * tests/test-round1.c: Include isnand.h.
58605         (main): Use isnand instead of isnan.
58606         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58607         (ISNAN): Set to isnand instead of isnan.
58608         * tests/test-trunc1.c: Include isnand.h.
58609         (main): Use isnand instead of isnan.
58610         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58611         (equal): Use isnand instead of isnan.
58612         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58613         isnand-nolibm.
58614         * NEWS: Mention the change.
58615
58616 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58617             Bruno Haible  <bruno@clisp.org>
58618
58619         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58620         the GCC builtins for signbits are present and set
58621         REPLACE_SIGNBIT_USING_GCC if so.
58622         * lib/math.in.h (signbit): Define using GCC builtins if
58623         REPLACE_SIGNBIT_USING_GCC is set.
58624         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58625         REPLACE_SIGNBIT_USING_GCC.
58626         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58627
58628 2008-01-25  Jim Meyering  <meyering@redhat.com>
58629
58630         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58631         * lib/poll.c: Include <config.h>, not "config.h".
58632         * tests/test-getaddrinfo.c: Likewise.
58633
58634 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58635
58636         * modules/sockets-tests: New file.
58637
58638 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58639
58640         * modules/sockets: New module, can be used to call WSA_Startup and
58641         WSA_Cleanup when needed.
58642
58643         * lib/sockets.h, lib/sockets.c: New files.
58644
58645         * m4/sockets.m4: New file.
58646
58647         * tests/test-sockets.c: New file.
58648
58649 2008-01-19  Bruno Haible  <bruno@clisp.org>
58650
58651         * doc/posix-headers: Renamed from doc/headers.
58652         * doc/posix-functions: Renamed from doc/functions.
58653         * doc/gnulib.texi: Update.
58654
58655 2008-01-19  Bruno Haible  <bruno@clisp.org>
58656
58657         * doc/glibc-functions/strcasestr.texi: Include contents of
58658         doc/functions/strcasestr.texi, fixing the list of platforms.
58659         * doc/functions/strcasestr.texi: Remove file.
58660
58661 2008-01-19  Bruno Haible  <bruno@clisp.org>
58662
58663         * doc/glibc-functions/memmem.texi: Include contents of
58664         doc/functions/memmem.texi.
58665         * doc/functions/memmem.texi: Remove file.
58666
58667 2008-01-18  Bruno Haible  <bruno@clisp.org>
58668
58669         * doc/glibc-functions/*.texi: New files.
58670         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58671         to use the new files.
58672
58673 2008-01-17  Bruno Haible  <bruno@clisp.org>
58674
58675         * tests/test-gethostname.c (main): Fix printf statement.
58676
58677 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58678
58679         * modules/gethostname-tests: New file.
58680
58681         * tests/test-gethostname.c: New file.
58682
58683 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58684
58685         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58686         used by the UNAME case.  Reported by Bruno Haible
58687         <bruno@clisp.org>.
58688
58689 2008-01-17  Eric Blake  <ebb9@byu.net>
58690
58691         Convert c-strcasestr to be more efficient.
58692         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58693         (Depends-on): Add c-strcase, remove malloca, strnlen.
58694         * tests/test-c-strcasestr.c (main): Enhance test.
58695         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58696
58697 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58698
58699         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58700         Use it in creating po/Makevars.
58701
58702 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58703
58704         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58705         Applications that requires it should initialize libgcrypt
58706         manually.
58707
58708 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58709
58710         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58711
58712 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58713
58714         Fix problem with getdate on mingw32 reported by Simon Josefsson
58715         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58716         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58717         tzname", when deciding whether to declare tzname.
58718         * lib/strftime.c (tzname): Likewise.
58719
58720 2008-01-15  Bruno Haible  <bruno@clisp.org>
58721
58722         Work around a MacOS X 10.5 bug in frexpl().
58723         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58724         * doc/functions/frexpl.texi: Document the bug.
58725         Reported by Elias Pipping <pipping@gentoo.org>.
58726
58727 2008-01-14  Eric Blake  <ebb9@byu.net>
58728
58729         Touch up previous patch.
58730         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58731         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58732
58733         Convert strcasestr module to use Two-Way algorithm.
58734         * modules/strcasestr-simple: New module, based on the old
58735         strcasestr, but with Two-Way rather than KMP.
58736         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58737         * lib/string.in.h (rpl_strcasestr): Declare.
58738         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58739         performance.
58740         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58741         * modules/string (Makefile.am): Support strcasestr.
58742         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58743         * modules/strcasestr-tests (Depends-on): Check for alarm.
58744         * tests/test-strcasestr.c: Augment test.
58745         * lib/str-two-way.h: Clean up stray macro.
58746         * NEWS: Document new module.
58747         * MODULES.html.sh (string handling): Likewise.
58748         * doc/functions/strcasestr.texi: New file.
58749         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58750         here, since it is not a POSIX function.
58751
58752 2008-01-14  Colin Watson  <cjwatson@debian.org>
58753             Bruno Haible  <bruno@clisp.org>
58754
58755         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58756         works fine; if not, set REPLACE_STRSIGNAL.
58757         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58758         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58759         REPLACE_STRSIGNAL.
58760         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58761         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58762         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58763
58764 2008-01-14  Bruno Haible  <bruno@clisp.org>
58765
58766         * modules/strsignal (Include): Change to <string.h>.
58767
58768 2008-01-14  Colin Watson  <cjwatson@debian.org>
58769
58770         * modules/argp (Notice): Add a notice recommending to change
58771         XGETTEXT_OPTIONS.
58772         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58773
58774 2008-01-13  Colin Watson  <cjwatson@debian.org>
58775
58776         * modules/strsignal-tests: New file.
58777         * tests/test-strsignal.c: New file.
58778
58779         * lib/strsignal.c: New file, from glibc with modifications.
58780         * lib/siglist.h: New file, from glibc with modifications.
58781         * lib/string.in.h (strsignal): New declaration.
58782         * m4/strsignal.m4: New file.
58783         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58784         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58785         * modules/strsignal: New file.
58786         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58787         HAVE_DECL_STRSIGNAL.
58788
58789 2008-01-13  Bruno Haible  <bruno@clisp.org>
58790
58791         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58792         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58793         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58794         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58795
58796 2008-01-13  Bruno Haible  <bruno@clisp.org>
58797
58798         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58799         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58800         * lib/argp.h (__attribute__): Likewise.
58801         * lib/c-stack.c (__attribute__): Likewise.
58802         * lib/error.h (__attribute__): Likewise.
58803         * lib/fts.c (__attribute__): Likewise.
58804         * lib/openat.h (__attribute__): Likewise.
58805         * lib/stdio.in.h (__attribute__): Likewise.
58806         * lib/string.in.h (__attribute__): Likewise.
58807         * lib/utimens.c (__attribute__): Likewise.
58808         * lib/vasnprintf.h (__attribute__): Likewise.
58809         * lib/xalloc.h (__attribute__): Likewise.
58810         * lib/xprintf.h (__attribute__): Likewise.
58811         * lib/xstrtol.h (__attribute__): Likewise.
58812         * lib/xvasprintf.h (__attribute__): Likewise.
58813
58814 2008-01-12  Bruno Haible  <bruno@clisp.org>
58815
58816         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58817         * doc/glibc-headers/a.out.texi: New file.
58818         * doc/glibc-headers/aliases.texi: New file.
58819         * doc/glibc-headers/alloca.texi: New file.
58820         * doc/glibc-headers/ar.texi: New file.
58821         * doc/glibc-headers/argp.texi: New file.
58822         * doc/glibc-headers/argz.texi: New file.
58823         * doc/glibc-headers/byteswap.texi: New file.
58824         * doc/glibc-headers/crypt.texi: New file.
58825         * doc/glibc-headers/endian.texi: New file.
58826         * doc/glibc-headers/envz.texi: New file.
58827         * doc/glibc-headers/err.texi: New file.
58828         * doc/glibc-headers/error.texi: New file.
58829         * doc/glibc-headers/execinfo.texi: New file.
58830         * doc/glibc-headers/fpu_control.texi: New file.
58831         * doc/glibc-headers/fstab.texi: New file.
58832         * doc/glibc-headers/fts.texi: New file.
58833         * doc/glibc-headers/getopt.texi: New file.
58834         * doc/glibc-headers/ieee754.texi: New file.
58835         * doc/glibc-headers/ifaddrs.texi: New file.
58836         * doc/glibc-headers/libintl.texi: New file.
58837         * doc/glibc-headers/mcheck.texi: New file.
58838         * doc/glibc-headers/mntent.texi: New file.
58839         * doc/glibc-headers/obstack.texi: New file.
58840         * doc/glibc-headers/paths.texi: New file.
58841         * doc/glibc-headers/printf.texi: New file.
58842         * doc/glibc-headers/pty.texi: New file.
58843         * doc/glibc-headers/resolv.texi: New file.
58844         * doc/glibc-headers/shadow.texi: New file.
58845         * doc/glibc-headers/sysexits.texi: New file.
58846         * doc/glibc-headers/ttyent.texi: New file.
58847
58848 2008-01-12  Jim Meyering  <meyering@redhat.com>
58849
58850         announce-gen: emit Gnulib's git-based version string.
58851         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58852         New option --gnulib-version=V, where V is expected to be
58853         the output of running git describe in the gnulib directory.
58854         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58855         not useful, and plan to stop publishing an xdelta file with each
58856         coreutils release.
58857
58858         * build-aux/announce-gen: Also check for lzma-compressed files.
58859
58860 2008-01-11  Bruno Haible  <bruno@clisp.org>
58861
58862         * tests/test-memmem.c (main): Increase maximum allowed time.
58863         * tests/test-strstr.c (main): Likewise.
58864
58865 2008-01-11  Bruno Haible  <bruno@clisp.org>
58866
58867         * doc/functions/memmem.texi: Add more precisions about platforms.
58868         * doc/functions/strstr.texi: Likewise.
58869
58870 2008-01-10  Eric Blake  <ebb9@byu.net>
58871
58872         * m4/strstr.m4: Delete cruft from copy-n-paste.
58873         Reported by Bruno Haible.
58874
58875 2008-01-10  Bruno Haible  <bruno@clisp.org>
58876
58877         Make c-strstr rely on strstr.
58878         * lib/c-strstr.c: Don't include str-kmp.h.
58879         (c_strstr): Define in terms of strstr.
58880         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58881         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58882
58883 2008-01-10  Bruno Haible  <bruno@clisp.org>
58884
58885         * doc/gnulib.texi (String Functions in C Locale): New section.
58886         * doc/c-ctype.texi: New file.
58887         * doc/c-strcase.texi: New file.
58888         * doc/c-strcaseeq.texi: New file.
58889         * doc/c-strcasestr.texi: New file.
58890         * doc/c-strstr.texi: New file.
58891         * doc/c-strtod.texi: New file.
58892         * doc/c-strtold.texi: New file.
58893
58894 2008-01-10  Eric Blake  <ebb9@byu.net>
58895
58896         * lib/relocatable.h: Fix a comment.
58897
58898 2008-01-10  Eric Blake  <ebb9@byu.net>
58899
58900         Share two-way algorithm.
58901         * lib/str-two-way.h: New file, merged from...
58902         * lib/memmem.c: ...here...
58903         * lib/strstr.c: ...and here.
58904         * modules/memmem (Files): Use it.
58905         * modules/strstr (Files): Likewise.
58906
58907         Avoid quadratic strstr implementations.
58908         * lib/strstr.c: New file.
58909         * m4/strstr.m4: Likewise.
58910         * modules/strstr: Likewise.
58911         * modules/strstr-tests: Likewise.
58912         * tests/test-strstr.c: Likewise.
58913         * lib/string.in.h (rpl_strstr): Declare.
58914         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58915         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58916         * modules/string (Makefile.am): Likewise.
58917         * MODULES.html.sh (string handling): Mention new module.
58918         * doc/functions/strstr.texi (strstr): Document the bug.
58919
58920 2008-01-10  Bruno Haible  <bruno@clisp.org>
58921
58922         * lib/relocatable.h (relocate): State whether result is freshly
58923         allocated or not.
58924         * lib/relocatable.c (relocate): Return a freshly allocated string
58925         instead of a pointer to a privately held string.
58926         Reported by Sylvain Beucler <beuc@gnu.org>.
58927
58928 2008-01-10  Colin Watson  <cjwatson@debian.org>
58929
58930         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58931         s/S_ISNLK/S_ISLNK/.
58932
58933 2008-01-09  Bruno Haible  <bruno@clisp.org>
58934
58935         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58936         and other files.
58937         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58938         if it's only a guess.
58939         * modules/memmem: Simplify by depending on memmem-simple.
58940
58941 2008-01-09  Bruno Haible  <bruno@clisp.org>
58942
58943         Work around OpenBSD 4.0 tdelete() bug.
58944         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58945         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58946         macros and don't redefine the enum values.
58947         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58948         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58949         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58950
58951 2008-01-09  Bruno Haible  <bruno@clisp.org>
58952
58953         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58954         (main): Don't perform the tests if setlocale did not install a UTF-8
58955         locale. Needed on OpenBSD 4.0.
58956         * modules/wcwidth-tests (Depends-on): Add localcharset.
58957
58958 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58959
58960         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58961         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58962         * NEWS: announce this.
58963         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58964
58965 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58966         and Eric Blake  <ebb9@byu.net>
58967
58968         Add memmem-simple module.
58969         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58970         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58971         * modules/memmem-simple: New file.
58972         * modules/memmem (Description): Tweak.
58973         * MODULES.html.sh (string handling): Mention new module.
58974         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58975         addressed by memmem-simple.
58976         * NEWS: Document the difference.
58977
58978 2008-01-09  Eric Blake  <ebb9@byu.net>
58979
58980         Give gcc some memmem optimization hints.
58981         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58982         (strcasestr): Declare as pure.
58983         * modules/memmem (Maintainer): Claim my implementation.
58984
58985 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58986
58987         Support AIX 6.1 and higher.
58988         * build-aux/config.libpath: Likewise.
58989         * build-aux/config.rpath: Likewise.
58990
58991 2008-01-08  Jim Meyering  <meyering@redhat.com>
58992             Bruno Haible  <bruno@clisp.org>
58993
58994         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58995         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58996         Reported by Peter Fales in
58997         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58998
58999 2008-01-08  Bruno Haible  <bruno@clisp.org>
59000
59001         * modules/unictype/category-of (Depends-on): Add
59002         unictype/category-none.
59003         * modules/unictype/category-and-tests (Depends-on): Add
59004         unictype/category-{L,N,Lu,Nd}.
59005         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
59006         * modules/unictype/category-or-tests (Depends-on): Add
59007         unictype/category-{L,N}.
59008         * modules/unictype/category-name-tests (Depends-on): Add
59009         unictype/category-{Z,Nl}.
59010         Reported by Simon Josefsson.
59011
59012 2008-01-08  Bruno Haible  <bruno@clisp.org>
59013
59014         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
59015         convention better.
59016         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
59017         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
59018         Reported by Peter Miller <millerp@canb.auug.org.au>.
59019
59020 2008-01-08  Eric Blake  <ebb9@byu.net>
59021
59022         Rewrite memmem to guarantee linear complexity without malloc.
59023         * lib/memmem.c (memmem): Use Two-Way rather than
59024         Knuth-Morris-Pratt, to allow O(1) space usage.
59025         (critical_factorization, two_way_short_needle)
59026         (two_way_long_needle): New functions.
59027         (knuth_morris_pratt): Delete.
59028         * modules/memmem (Depends-on): No longer need malloca or stdbool.
59029         Add stdint.
59030         * tests/test-memmem.c (main): Add tests for periodic needle and
59031         sublinear performance.
59032         * doc/functions/memmem.texi (memmem): Document other deficiencies
59033         in cygwin and older glibc.
59034
59035 2008-01-08  Bruno Haible  <bruno@clisp.org>
59036
59037         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
59038         augmentation.
59039
59040 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
59041
59042         Add a configure time option: --disable-acl.
59043         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
59044         AC_ARG_ENABLE(acl).
59045
59046 2008-01-06  Simon Josefsson  <simon@josefsson.org>
59047
59048         * tests/test-localename.c: Don't include obsolete "setenv.h".
59049
59050         * modules/localename-tests (Depends-on): Need unsetenv.
59051
59052 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59053
59054         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
59055
59056 2008-01-06  Colin Watson  <cjwatson@debian.org>
59057
59058         * users.txt: Add man-db.
59059
59060 2008-01-07  Bruno Haible  <bruno@clisp.org>
59061
59062         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
59063         previous section name.
59064
59065 2008-01-07  Bruno Haible  <bruno@clisp.org>
59066
59067         * lib/progname.c (set_program_name): Don't strip off a leading
59068         "lt-" prefix outside a .libs directory.
59069         Suggested by Paul Eggert.
59070
59071 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
59072             Bruno Haible  <bruno@clisp.org>
59073
59074         Improve memory cleanup in 'relocatable' module.
59075         * lib/relocatable.h (compute_curr_prefix): Change return type to
59076         'char *'.
59077         * lib/relocatable.c (compute_curr_prefix): Change return type to
59078         'char *'. Free curr_installdir after use.
59079         (relocate): Free curr_prefix_better after use.
59080         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
59081
59082 2008-01-01  Bruno Haible  <bruno@clisp.org>
59083
59084         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
59085         failure on older glibc systems.
59086         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59087
59088 2008-01-05  Eric Blake  <ebb9@byu.net>
59089
59090         Avoid quadratic system memmem.
59091         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
59092         Reported by Ralf Wildenhues.
59093
59094         Fix memmem test for mingw.
59095         * modules/memmem-tests (configure.ac): Check for alarm.
59096         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
59097         it.
59098         * doc/functions/memmem.texi: New file.
59099         * doc/gnulib.texi (Function Substitutes): Add memmem.
59100         Reported by Bruno Haible.
59101
59102 2008-01-04  Bruno Haible  <bruno@clisp.org>
59103
59104         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
59105         Require gl_HEADER_STRINGS_H_DEFAULTS, not
59106         gl_HEADER_STRING_H_DEFAULTS.
59107
59108 2008-01-04  Eric Blake  <ebb9@byu.net>
59109
59110         Shorten duration of memmem test.
59111         * tests/test-memmem.c (main): Use alarm to declare failure if test
59112         is taking too long.
59113         Reported by Ralf Wildenhues.
59114
59115 2007-12-21  Simon Josefsson  <simon@josefsson.org>
59116
59117         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
59118         string, needed by strerror.
59119
59120 2008-01-03  Colin Watson  <cjwatson@debian.org>
59121             Bruno Haible  <bruno@clisp.org>
59122
59123         * doc/gnulib-tool.texi (Localization): New section.
59124
59125 2008-01-02  Bruno Haible  <bruno@clisp.org>
59126
59127         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
59128         variables to 'unsigned char *' type.
59129         Reported by Paul Eggert.
59130
59131 2008-01-02  Jim Meyering  <jim@meyering.net>
59132
59133         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
59134
59135 2007-12-31  Jim Meyering  <jim@meyering.net>
59136
59137         Avoid use of private FTS type name.
59138         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
59139
59140 2007-12-30  Karl Berry  <karl@gnu.org>
59141
59142         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
59143         work around defect in Texinfo and/or the standalone Info browser.
59144
59145 2007-12-30  Bruno Haible  <bruno@clisp.org>
59146
59147         Unify 5 copies of the KMP code.
59148         * lib/str-kmp.h: New file.
59149         * lib/c-strcasestr.c: Include str-kmp.h.
59150         (knuth_morris_pratt): Remove function.
59151         (c_strcasestr): Update.
59152         * lib/c-strstr.c: Include str-kmp.h.
59153         (knuth_morris_pratt): Remove function.
59154         (c_strcasestr): Update.
59155         * lib/mbscasestr.c: Include str-kmp.h.
59156         (knuth_morris_pratt_unibyte): Remove function.
59157         * lib/mbsstr.c: Include str-kmp.h.
59158         (knuth_morris_pratt_unibyte): Remove function.
59159         * lib/strcasestr.c: Include str-kmp.h.
59160         (knuth_morris_pratt): Remove function.
59161         (strcasestr): Update.
59162         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
59163         * modules/c-strstr (Files): Likewise.
59164         * modules/mbscasestr (Files): Likewise.
59165         * modules/mbsstr (Files): Likewise.
59166         * modules/strcasestr (Files): Likewise.
59167         Suggested by Paul Eggert.
59168
59169 2007-12-30  Bruno Haible  <bruno@clisp.org>
59170
59171         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
59172         defined.
59173
59174 2007-12-30  Bruno Haible  <bruno@clisp.org>
59175
59176         * lib/xmalloca.h: Include xalloc.h.
59177         (xnmalloca): New macro.
59178
59179 2007-12-30  Bruno Haible  <bruno@clisp.org>
59180
59181         * lib/malloca.h (nmalloca): New macro.
59182         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
59183         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
59184         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
59185         knuth_morris_pratt_multibyte): Likewise.
59186         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
59187         knuth_morris_pratt_multibyte): Likewise.
59188         * lib/memmem.c (knuth_morris_pratt): Likewise.
59189         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
59190
59191 2007-12-25  Bruno Haible  <bruno@clisp.org>
59192
59193         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
59194         * lib/glob.c: Don't include openat.h.
59195         (link_exists2_p): Add back the code that deals with the
59196         !GLOB_ALTDIRFUNC case.
59197         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
59198         let it do the filename concatenation.
59199         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
59200         * modules/glob (Depends-on): Remove openat.
59201
59202 2007-12-31  Bruno Haible  <bruno@clisp.org>
59203
59204         * modules/dirfd (License): Change to LGPLv2+.
59205         Approved by Jim Meyering.
59206
59207 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59208
59209         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
59210         when multiplying M by sizeof (size_t).
59211
59212 2007-12-10  Martin Lambers  <marlam@marlam.de>
59213
59214         Override getpagesize on mingw.
59215         * lib/getpagesize.c: New file.
59216         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
59217         * modules/getpagesize (Files): Add lib/getpagesize.c.
59218         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
59219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59220         REPLACE_GETPAGESIZE.
59221         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
59222
59223 2007-12-25  Bruno Haible  <bruno@clisp.org>
59224
59225         * modules/localcharset (Notice): New field.
59226         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
59227         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
59228
59229 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59230             Bruno Haible  <bruno@clisp.org>
59231
59232         Avoid using the syntax symbol() in formatted documentation.
59233         * MODULES.html.sh (func_module): When replacing symbol() with a
59234         hyperlink, remove the parentheses. Show an error if some remain.
59235         Recognize and render the '...' syntax.
59236         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
59237         Rework. Add paragraph about GCC's inlining.
59238         * doc/alloca.texi: Likewise.
59239         * doc/error.texi: Remove parentheses from symbol reference.
59240         * doc/gnulib-intro.texi: Likewise.
59241         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
59242         * modules/fnmatch (Description): Reword to say "the ... function".
59243         * modules/full-read (Description): Likewise.
59244         * modules/full-write (Description): Likewise.
59245         * modules/safe-read (Description): Likewise.
59246         * modules/safe-write (Description): Likewise.
59247         * modules/strchrnul (Description): Likewise.
59248         * modules/trim (Description): Likewise.
59249         * modules/error (Description): Remove parentheses from symbol
59250         references.
59251         * modules/verror (Description): Likewise.
59252         Reported by Karl Berry.
59253
59254 2007-12-25  Bruno Haible  <bruno@clisp.org>
59255
59256         Fixup after 2007-10-16 commit.
59257         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
59258
59259 2007-12-24  Bruno Haible  <bruno@clisp.org>
59260
59261         Make --enable-relocatable work with DESTDIR.
59262         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
59263         to compute installdir from destprog.
59264         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
59265         also set the RELOC_DESTDIR variable.
59266         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
59267
59268 2007-12-24  Bruno Haible  <bruno@clisp.org>
59269
59270         Fix link error due to xalloc_die().
59271         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
59272         of xreadlink.
59273         * lib/relocwrapper.c: Update comments.
59274         * build-aux/install-reloc: Remove xreadlink.c from file list.
59275         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
59276         xreadlink.c.
59277         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
59278
59279 2007-12-24  Bruno Haible  <bruno@clisp.org>
59280
59281         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
59282         * lib/setenv.h: Remove file.
59283         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
59284         lib/setenv.h.
59285         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
59286         (Depends-on): Add stdlib.
59287         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
59288         gl_FUNC_UNSETENV.
59289         (Include): Replace setenv.h with <stdlib.h>.
59290         * modules/unsetenv: New file.
59291         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
59292         * lib/unsetenv.c: Include <stdlib.h> first.
59293         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
59294         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
59295         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
59296         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
59297         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
59298         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59299         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
59300         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59301         * doc/functions/unsetenv.texi: Update.
59302         * modules/xsetenv (Depends-on): Add unsetenv.
59303         * modules/getdate (Depends-on): Likewise.
59304         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
59305         * lib/xsetenv.c: Don't include setenv.h.
59306         * lib/getdate.y: Likewise.
59307         * lib/relocwrapper.c: Likewise.
59308         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
59309         (Depends-on): Add stdlib.
59310         * NEWS: Mention the changes.
59311         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
59312
59313 2007-12-23  Bruno Haible  <bruno@clisp.org>
59314
59315         * lib/memmem.c (memmem): Use lowercase variable names. Tab
59316         indentation.
59317
59318 2007-12-23  Bruno Haible  <bruno@clisp.org>
59319
59320         * lib/c-strcasestr.c: Add more comments.
59321         * lib/c-strstr.c: Likewise.
59322         * lib/mbscasestr.c: Likewise.
59323         * lib/mbsstr.c: Likewise.
59324         * lib/strcasestr.c: Likewise.
59325         * lib/memmem.c: Likewise.
59326
59327 2007-12-23  Bruno Haible  <bruno@clisp.org>
59328
59329         * tests/test-memmem.c: Include <string.h> first.
59330
59331 2007-12-22  Bruno Haible  <bruno@clisp.org>
59332
59333         * gnulib-tool (func_create_testdir): Change $auxdir while generating
59334         the contents of $testsbase.
59335         Reported by Ralf Wildenhues.
59336
59337 2007-12-22  Bruno Haible  <bruno@clisp.org>
59338
59339         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
59340         two variables local_ldadd_before, local_ldadd_last.
59341
59342 2007-12-20  Eric Blake  <ebb9@byu.net>
59343
59344         Work around circular library issue when cross-compiling.
59345         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
59346         that progname.o does not need to pull in rpl_memcmp.
59347
59348 2007-12-19  Eric Blake  <ebb9@byu.net>
59349
59350         Fix memmem to avoid O(n^2) worst-case complexity.
59351         * lib/memmem.c (knuth_morris_pratt): New function.
59352         (memmem): Use it if first few naive iterations fail.
59353         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
59354         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
59355         * modules/memchr (License): Likewise.
59356         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
59357         malloca.
59358         * tests/test-memmem.c: Rewrite, borrowing ideas from
59359         test-mbsstr1.c; the old version wouldn't even compile!
59360         * modules/memmem-tests: New file.
59361         * lib/string.in.h (rpl_memmem): Add declaration.
59362         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
59363         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
59364         REPLACE_MEMMEM.
59365
59366 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59367
59368         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
59369         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
59370         before any system include files, and undef after them all.  This
59371         should fix a problem on VMS reported by John E. Malmberg in
59372         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
59373
59374 2007-12-17  Eric Blake  <ebb9@byu.net>
59375
59376         Revert addition of verify, for BSD/OS.
59377         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
59378         can't handle large files, for the sake of obsolete platforms.
59379         * modules/fseeko (Depends-on): Remove verify.
59380         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
59381         * doc/functions/ftello.texi (ftello): Likewise.
59382         * doc/functions/fgetpos.texi (fgetpos): Likewise.
59383         Reported by Larry Jones.
59384
59385 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
59386
59387         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
59388         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
59389
59390 2007-12-17  Jim Meyering  <meyering@redhat.com>
59391
59392         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
59393         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
59394         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
59395         * modules/getcwd (Depends-on): Add openat.
59396         Reported by Petr Salinger.
59397
59398 2007-12-17  Bruno Haible  <bruno@clisp.org>
59399
59400         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
59401         avoid a segmentation fault of the configure test on x86_64 systems.
59402
59403 2007-12-15  Jim Meyering  <meyering@redhat.com>
59404
59405         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
59406
59407 2007-12-13  Eric Blake  <ebb9@byu.net>
59408
59409         Another fseek test.
59410         * tests/test-fseek.c (main): Also test ungetc handling.
59411         * tests/test-fseeko.c (main): Likewise.
59412         * modules/fseeko (Depends-on): Add verify.
59413         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
59414         large.
59415         Reported by Larry Jones.
59416
59417         Fix fseeko on mingw.
59418         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
59419         seek.
59420
59421         Beef up fseek tests.
59422         * tests/test-fseek.c (main): Also test eof handling.
59423         * tests/test-fseeko.c (main): Likewise.
59424         Reported by Larry Jones.
59425
59426 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
59427
59428         Fix fseeko on BSD-based platforms.
59429         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
59430         successful seek.
59431
59432 2007-12-12  Eric Blake  <ebb9@byu.net>
59433
59434         Allow circular dependency of separate libtests.a
59435         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
59436         when use_libtests.
59437
59438 2007-12-11  Eric Blake  <ebb9@byu.net>
59439
59440         Fix bug with -0.0L in previous patch.
59441         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
59442         * tests/test-isnan.c (main): Also test on zeroes.
59443         * tests/test-isnanf.c (main): Likewise.
59444         * tests/test-isnanl.h (main): Likewise.
59445
59446         Detect pseudo-denormals on x86 even when cross-compiling.
59447         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
59448         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
59449         invalid bit patterns that happen to satisfy ==.
59450
59451         Avoid link failures with separate libtests.a.
59452         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
59453         last, to satisfy circular dependencies.
59454
59455 2007-12-11  Eric Blake  <ebb9@byu.net>
59456         and Bruno Haible  <bruno@clisp.org>
59457
59458         Fix OpenBSD 4.0 <float.h> handling of long double.
59459         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
59460         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
59461         * doc/headers/float.texi (float.h): Document OpenBSD bug.
59462
59463 2007-12-11  Jim Meyering  <meyering@redhat.com>
59464
59465         * users.txt: Add libvirt.
59466
59467         Support versions of autoconf prior to 2.59c.
59468         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
59469         if it is not already defined.
59470
59471 2007-12-09  Bruno Haible  <bruno@clisp.org>
59472
59473         Let 'gnulib-tool --import' collect sources needed for the tests in
59474         tests/ rather than in lib/.
59475         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
59476         argument. If true, add rules to generate libtests.a, and put libtests.a
59477         into $(LDADD). Consider source files in subdirectories and set
59478         uses_subdirs.
59479         (func_emit_initmacro_start, func_emit_initmacro_end,
59480         func_emit_initmacro_done): Pass all arguments explicitly.
59481         (func_import): Determine two module lists main_modules,
59482         testsrelated_modules. Determine use_libtests. Determine two variables
59483         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
59484         instead of just sed_transform_lib_file. Determine two variables
59485         main_files and testsrelated_files. Compute 'files' as the union of
59486         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
59487         func_add_or_update. In the generated gnulib-comp.m4, collect the
59488         object files for tests/ in different variables than those for lib/.
59489         Substitute LIBTESTS_LIBDEPS.
59490         (func_create_testdir): Combine the uses_subdirs results from
59491         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
59492
59493 2007-12-09  Bruno Haible  <bruno@clisp.org>
59494
59495         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
59496         the build-aux directory.
59497
59498 2007-12-09  Bruno Haible  <bruno@clisp.org>
59499
59500         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
59501         introduced on 2006-09-09.
59502
59503 2007-12-07  Jim Meyering  <meyering@redhat.com>
59504
59505         Let these macros work also with autoconf-2.59.
59506         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
59507         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
59508         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59509
59510 2007-12-06  Jim Meyering  <meyering@redhat.com>
59511
59512         Avoid a configure-time syntax error in gl_FUNC_ACL.
59513         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
59514         function in each branch, before testing the cache variable.
59515
59516 2007-12-04  Eric Blake  <ebb9@byu.net>
59517
59518         Make scripts executable.
59519         * build-aux/config.guess: Add execute permissions.
59520         * build-aux/config.sub: Likewise.
59521         * build-aux/gendocs.sh: Likewise.
59522
59523         Fix frexp on mingw.
59524         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
59525         cross-compiling.
59526         * doc/functions/frexp.texi (frexp): Document the bug.
59527
59528         Make cygwin fseeko check more reliable.
59529         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
59530         version numbers, rather than unrelated feature check.
59531         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
59532         * doc/functions/ftello.texi (ftello): Likewise.
59533         Reported by Bruno Haible.
59534
59535         * m4/strerror.m4: Bump version number.
59536
59537 2007-12-03  Bruno Haible  <bruno@clisp.org>
59538
59539         * doc/functions/mprotect.texi: Mention the mingw problem.
59540
59541 2007-12-03  Eric Blake  <ebb9@byu.net>
59542
59543         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
59544         REPLACE_STRERROR is initialized before this macro.
59545
59546 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59547
59548         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
59549         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
59550         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
59551         put -lsec in even for programs other than 'ls'.  This fixes a problem
59552         for gettext reported by Bruno Haible in
59553         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
59554         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
59555         Add support for Solaris 10.  This isn't efficient, but should get the
59556         job done for now.
59557
59558 2007-12-03  James Youngman  <jay@gnu.org>
59559
59560         * doc/regexprops-generic.texi: change "an close-group" to "a
59561         close-group" and "illegal" to "not allowed".
59562
59563 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59564
59565         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59566         pr_byname.h. Needed for the rare case when the maintainer has done
59567         "make maintainer-clean" in the source directory and then attempts a
59568         build outside the source directory.
59569         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59570         scripts_byname.h.
59571
59572 2007-12-02  Martin Lambers <marlam@marlam.de>
59573             Bruno Haible  <bruno@clisp.org>
59574
59575         * lib/getpagesize.h: Remove file.
59576         * lib/unistd.in.h: Include declaration of getpagesize here.
59577         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59578         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59579         HAVE_SYS_PARAM_H.
59580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59581         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59582         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59583         (Depends-on): Add unistd.
59584         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59585         (Include): Use <unistd.h> instead of getpagesize.h.
59586         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59587         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59588         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59589         gl_GETPAGESIZE invocation, already handled by module dependency.
59590         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59591
59592 2007-12-02  Bruno Haible  <bruno@clisp.org>
59593
59594         * modules/strings-tests: New file.
59595         * tests/test-strings.c: New file.
59596
59597         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59598         * lib/strings.in.h: New file.
59599         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59600         * m4/strings_h.m4: New file.
59601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59602         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59603         * modules/strings: New file.
59604         * modules/string (Makefile.am): Update.
59605         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59606         Reported by Karl Berry.
59607
59608 2007-12-01  Eric Blake  <ebb9@byu.net>
59609
59610         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59611         accommodate fix in cygwin 1.5.25.
59612
59613 2007-12-01  Jim Meyering  <meyering@redhat.com>
59614
59615         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59616         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59617         that would inhibit utf8-optimization of a regexp containing line-
59618         or buffer-anchors, e.g., `^', `$'.
59619
59620 2007-11-30  Bruno Haible  <bruno@clisp.org>
59621
59622         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59623         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59624         glthread_recursive_lock_init.
59625         * lib/lock.c (glthread_recursive_lock_init)
59626         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59627         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59628
59629 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59630
59631         New function qset_acl, like set_acl but with syscall semantics.
59632         * lib/acl.h (qset_acl): New decl.
59633         * lib/acl.c (qset_acl): New function.
59634         (set_acl): Use new function.  Use more-consistent diagnostics.
59635
59636 2007-11-28  Jim Meyering  <meyering@redhat.com>
59637
59638         * modules/physmem (License): Change from GPL to LGPLv2+.
59639
59640 2007-11-26  Bruno Haible  <bruno@clisp.org>
59641
59642         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59643         'long double' type has excess precision.
59644         Reported by Jim Meyering in
59645         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59646
59647 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59648
59649         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59650         Sync from <http://gnu.org/licenses>.
59651         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59652         with license text from same location.
59653         * doc/maintain.texi, doc/standards.texi:  Sync from
59654         <http://savannah.gnu.org/projects/gnustandards>.
59655
59656 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
59657         and Jim Meyering  <meyering@redhat.com>
59658
59659         Adjust getdate' grammar to accept a slightly more regular language.
59660         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59661         Before, the former was rejected.
59662         * lib/getdate.y (digits_to_date_time): New function, factored
59663         out of ...
59664         (number): ...here.  Just call digits_to_date_time.
59665         (hybrid): New non-terminal to handle an <unsigned number,
59666         signed relative offset> sequence consistently.
59667
59668 2007-11-18  Jim Meyering  <meyering@redhat.com>
59669
59670         Pull my changes from coreutils:
59671         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59672         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59673         use of $gnulib_tool_option_extras, so that it's separated from the
59674         preceding argument.
59675
59676         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59677         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59678         parent destination directories before copying a file into place.
59679
59680 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59681
59682         bootstrap: work also with 4-argument variant of AC_INIT
59683         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59684
59685 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59686
59687         Port test-getaddrinfo to Solaris.
59688         Problem reported by Bruno Haible in
59689         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59690         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59691         explanation of setting 'hints'.
59692         Don't reject an implementation merely because it returns EAI_SERVICE.
59693         (EAI_SERVICE): Define to 0 if not defined.
59694
59695 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59696
59697         The license of gnu-make and posix-shell is now "GPLed build tool".
59698         * modules/gnu-make (License): Likewise.
59699         * modules/posix-shell (License): Likewise.
59700
59701         New module posix-shell, for determining a POSIX shell
59702         or perhaps something that is close enough to a POSIX shell.
59703         * m4/posix-shell.m4: New file.
59704         * modules/posix-shell: New file.
59705
59706         * MODULES.html.sh: Mention new module.
59707
59708         New module gnu-make, for determining whether we're using GNU Make.
59709         * m4/gnu-make.m4: New file.
59710         * modules/gnu-make: New file.
59711         * MODULES.html.sh: Mention new module.
59712
59713 2007-11-14  Jim Meyering  <meyering@redhat.com>
59714
59715         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59716         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59717         use this macro to create a function _definition_.
59718         Remove useless "#undef ARGMATCH_DIE".
59719
59720 2007-11-14  Bruno Haible  <bruno@clisp.org>
59721
59722         * lib/config.charset: Update for OpenBSD 4.1.
59723         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59724
59725 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59726
59727         Document 64-bit #if problems in stdint.texi.
59728         * doc/headers/stdint.texi (stdint.h): Mention problems with
59729         64-bit-#if, and how to work around them.
59730
59731         Don't insist on 'long long int' support in the preprocessor.  It
59732         breaks too many things.  For example, PRIdMAX still uses a 'long
59733         long int' format with the latest Sun compiler, even though
59734         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59735         preprocessor problem.  This causes the latest coreutils to dump
59736         core on Solaris 10 sparc with the Sun C compiler.
59737         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59738         the troublesome expressions at configure-time, not at #if-time.
59739         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59740         preprocessor.
59741         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59742         compile-time C checks, done at 'configure'-time.
59743         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59744         * modules/inttypes (Makefile): Substitute the new symbols that
59745         gl_INTTYPES_H now generates.
59746         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59747
59748 2007-11-12  Bruno Haible  <bruno@clisp.org>
59749
59750         Tests for Unicode character classification functions.
59751
59752         * modules/unictype/bidicategory-byname-tests: New file.
59753         * modules/unictype/bidicategory-name-tests: New file.
59754         * modules/unictype/bidicategory-of-tests: New file.
59755         * modules/unictype/bidicategory-test-tests: New file.
59756         * modules/unictype/block-list-tests: New file.
59757         * modules/unictype/block-of-tests: New file.
59758         * modules/unictype/block-test-tests: New file.
59759         * modules/unictype/category-C-tests: New file.
59760         * modules/unictype/category-Cc-tests: New file.
59761         * modules/unictype/category-Cf-tests: New file.
59762         * modules/unictype/category-Cn-tests: New file.
59763         * modules/unictype/category-Co-tests: New file.
59764         * modules/unictype/category-Cs-tests: New file.
59765         * modules/unictype/category-L-tests: New file.
59766         * modules/unictype/category-Ll-tests: New file.
59767         * modules/unictype/category-Lm-tests: New file.
59768         * modules/unictype/category-Lo-tests: New file.
59769         * modules/unictype/category-Lt-tests: New file.
59770         * modules/unictype/category-Lu-tests: New file.
59771         * modules/unictype/category-M-tests: New file.
59772         * modules/unictype/category-Mc-tests: New file.
59773         * modules/unictype/category-Me-tests: New file.
59774         * modules/unictype/category-Mn-tests: New file.
59775         * modules/unictype/category-N-tests: New file.
59776         * modules/unictype/category-Nd-tests: New file.
59777         * modules/unictype/category-Nl-tests: New file.
59778         * modules/unictype/category-No-tests: New file.
59779         * modules/unictype/category-P-tests: New file.
59780         * modules/unictype/category-Pc-tests: New file.
59781         * modules/unictype/category-Pd-tests: New file.
59782         * modules/unictype/category-Pe-tests: New file.
59783         * modules/unictype/category-Pf-tests: New file.
59784         * modules/unictype/category-Pi-tests: New file.
59785         * modules/unictype/category-Po-tests: New file.
59786         * modules/unictype/category-Ps-tests: New file.
59787         * modules/unictype/category-S-tests: New file.
59788         * modules/unictype/category-Sc-tests: New file.
59789         * modules/unictype/category-Sk-tests: New file.
59790         * modules/unictype/category-Sm-tests: New file.
59791         * modules/unictype/category-So-tests: New file.
59792         * modules/unictype/category-Z-tests: New file.
59793         * modules/unictype/category-Zl-tests: New file.
59794         * modules/unictype/category-Zp-tests: New file.
59795         * modules/unictype/category-Zs-tests: New file.
59796         * modules/unictype/category-and-not-tests: New file.
59797         * modules/unictype/category-and-tests: New file.
59798         * modules/unictype/category-byname-tests: New file.
59799         * modules/unictype/category-name-tests: New file.
59800         * modules/unictype/category-none-tests: New file.
59801         * modules/unictype/category-of-tests: New file.
59802         * modules/unictype/category-or-tests: New file.
59803         * modules/unictype/category-test-withtable-tests: New file.
59804         * modules/unictype/combining-class-tests: New file.
59805         * modules/unictype/ctype-alnum-tests: New file.
59806         * modules/unictype/ctype-alpha-tests: New file.
59807         * modules/unictype/ctype-blank-tests: New file.
59808         * modules/unictype/ctype-cntrl-tests: New file.
59809         * modules/unictype/ctype-digit-tests: New file.
59810         * modules/unictype/ctype-graph-tests: New file.
59811         * modules/unictype/ctype-lower-tests: New file.
59812         * modules/unictype/ctype-print-tests: New file.
59813         * modules/unictype/ctype-punct-tests: New file.
59814         * modules/unictype/ctype-space-tests: New file.
59815         * modules/unictype/ctype-upper-tests: New file.
59816         * modules/unictype/ctype-xdigit-tests: New file.
59817         * modules/unictype/decimal-digit-tests: New file.
59818         * modules/unictype/digit-tests: New file.
59819         * modules/unictype/mirror-tests: New file.
59820         * modules/unictype/numeric-tests: New file.
59821         * modules/unictype/property-alphabetic-tests: New file.
59822         * modules/unictype/property-ascii-hex-digit-tests: New file.
59823         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59824         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59825         * modules/unictype/property-bidi-block-separator-tests: New file.
59826         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59827         * modules/unictype/property-bidi-common-separator-tests: New file.
59828         * modules/unictype/property-bidi-control-tests: New file.
59829         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59830         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59831         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59832         * modules/unictype/property-bidi-european-digit-tests: New file.
59833         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59834         * modules/unictype/property-bidi-left-to-right-tests: New file.
59835         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59836         * modules/unictype/property-bidi-other-neutral-tests: New file.
59837         * modules/unictype/property-bidi-pdf-tests: New file.
59838         * modules/unictype/property-bidi-segment-separator-tests: New file.
59839         * modules/unictype/property-bidi-whitespace-tests: New file.
59840         * modules/unictype/property-byname-tests: New file.
59841         * modules/unictype/property-combining-tests: New file.
59842         * modules/unictype/property-composite-tests: New file.
59843         * modules/unictype/property-currency-symbol-tests: New file.
59844         * modules/unictype/property-dash-tests: New file.
59845         * modules/unictype/property-decimal-digit-tests: New file.
59846         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59847         * modules/unictype/property-deprecated-tests: New file.
59848         * modules/unictype/property-diacritic-tests: New file.
59849         * modules/unictype/property-extender-tests: New file.
59850         * modules/unictype/property-format-control-tests: New file.
59851         * modules/unictype/property-grapheme-base-tests: New file.
59852         * modules/unictype/property-grapheme-extend-tests: New file.
59853         * modules/unictype/property-grapheme-link-tests: New file.
59854         * modules/unictype/property-hex-digit-tests: New file.
59855         * modules/unictype/property-hyphen-tests: New file.
59856         * modules/unictype/property-id-continue-tests: New file.
59857         * modules/unictype/property-id-start-tests: New file.
59858         * modules/unictype/property-ideographic-tests: New file.
59859         * modules/unictype/property-ids-binary-operator-tests: New file.
59860         * modules/unictype/property-ids-trinary-operator-tests: New file.
59861         * modules/unictype/property-ignorable-control-tests: New file.
59862         * modules/unictype/property-iso-control-tests: New file.
59863         * modules/unictype/property-join-control-tests: New file.
59864         * modules/unictype/property-left-of-pair-tests: New file.
59865         * modules/unictype/property-line-separator-tests: New file.
59866         * modules/unictype/property-logical-order-exception-tests: New file.
59867         * modules/unictype/property-lowercase-tests: New file.
59868         * modules/unictype/property-math-tests: New file.
59869         * modules/unictype/property-non-break-tests: New file.
59870         * modules/unictype/property-not-a-character-tests: New file.
59871         * modules/unictype/property-numeric-tests: New file.
59872         * modules/unictype/property-other-alphabetic-tests: New file.
59873         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59874         * modules/unictype/property-other-grapheme-extend-tests: New file.
59875         * modules/unictype/property-other-id-continue-tests: New file.
59876         * modules/unictype/property-other-id-start-tests: New file.
59877         * modules/unictype/property-other-lowercase-tests: New file.
59878         * modules/unictype/property-other-math-tests: New file.
59879         * modules/unictype/property-other-uppercase-tests: New file.
59880         * modules/unictype/property-paired-punctuation-tests: New file.
59881         * modules/unictype/property-paragraph-separator-tests: New file.
59882         * modules/unictype/property-pattern-syntax-tests: New file.
59883         * modules/unictype/property-pattern-white-space-tests: New file.
59884         * modules/unictype/property-private-use-tests: New file.
59885         * modules/unictype/property-punctuation-tests: New file.
59886         * modules/unictype/property-quotation-mark-tests: New file.
59887         * modules/unictype/property-radical-tests: New file.
59888         * modules/unictype/property-sentence-terminal-tests: New file.
59889         * modules/unictype/property-soft-dotted-tests: New file.
59890         * modules/unictype/property-space-tests: New file.
59891         * modules/unictype/property-terminal-punctuation-tests: New file.
59892         * modules/unictype/property-test-tests: New file.
59893         * modules/unictype/property-titlecase-tests: New file.
59894         * modules/unictype/property-unassigned-code-value-tests: New file.
59895         * modules/unictype/property-unified-ideograph-tests: New file.
59896         * modules/unictype/property-uppercase-tests: New file.
59897         * modules/unictype/property-variation-selector-tests: New file.
59898         * modules/unictype/property-white-space-tests: New file.
59899         * modules/unictype/property-xid-continue-tests: New file.
59900         * modules/unictype/property-xid-start-tests: New file.
59901         * modules/unictype/property-zero-width-tests: New file.
59902         * modules/unictype/scripts-tests: New file.
59903         * modules/unictype/syntax-c-ident-tests: New file.
59904         * modules/unictype/syntax-c-whitespace-tests: New file.
59905         * modules/unictype/syntax-java-ident-tests: New file.
59906         * modules/unictype/syntax-java-whitespace-tests: New file.
59907         * tests/unictype/test-bidi_byname.c: New file.
59908         * tests/unictype/test-bidi_name.c: New file.
59909         * tests/unictype/test-bidi_of.c: New file.
59910         * tests/unictype/test-bidi_test.c: New file.
59911         * tests/unictype/test-block_list.c: New file.
59912         * tests/unictype/test-block_of.c: New file.
59913         * tests/unictype/test-block_test.c: New file.
59914         * tests/unictype/test-categ_and.c: New file.
59915         * tests/unictype/test-categ_and_not.c: New file.
59916         * tests/unictype/test-categ_byname.c: New file.
59917         * tests/unictype/test-categ_name.c: New file.
59918         * tests/unictype/test-categ_none.c: New file.
59919         * tests/unictype/test-categ_of.c: New file.
59920         * tests/unictype/test-categ_or.c: New file.
59921         * tests/unictype/test-categ_test_withtable.c: New file.
59922         * tests/unictype/test-combining.c: New file.
59923         * tests/unictype/test-decdigit.c: New file.
59924         * tests/unictype/test-digit.c: New file.
59925         * tests/unictype/test-mirror.c: New file.
59926         * tests/unictype/test-numeric.c: New file.
59927         * tests/unictype/test-pr_byname.c: New file.
59928         * tests/unictype/test-pr_test.c: New file.
59929         * tests/unictype/test-predicate-part1.h: New file.
59930         * tests/unictype/test-predicate-part2.h: New file.
59931         * tests/unictype/test-scripts.c: New file.
59932         * tests/unictype/test-sy_c_ident.c: New file.
59933         * tests/unictype/test-sy_java_ident.c: New file.
59934
59935         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59936         for Unicode 5.0.0.
59937         * tests/unictype/test-categ_Cc.c: Likewise.
59938         * tests/unictype/test-categ_Cf.c: Likewise.
59939         * tests/unictype/test-categ_Cn.c: Likewise.
59940         * tests/unictype/test-categ_Co.c: Likewise.
59941         * tests/unictype/test-categ_Cs.c: Likewise.
59942         * tests/unictype/test-categ_L.c: Likewise.
59943         * tests/unictype/test-categ_Ll.c: Likewise.
59944         * tests/unictype/test-categ_Lm.c: Likewise.
59945         * tests/unictype/test-categ_Lo.c: Likewise.
59946         * tests/unictype/test-categ_Lt.c: Likewise.
59947         * tests/unictype/test-categ_Lu.c: Likewise.
59948         * tests/unictype/test-categ_M.c: Likewise.
59949         * tests/unictype/test-categ_Mc.c: Likewise.
59950         * tests/unictype/test-categ_Me.c: Likewise.
59951         * tests/unictype/test-categ_Mn.c: Likewise.
59952         * tests/unictype/test-categ_N.c: Likewise.
59953         * tests/unictype/test-categ_Nd.c: Likewise.
59954         * tests/unictype/test-categ_Nl.c: Likewise.
59955         * tests/unictype/test-categ_No.c: Likewise.
59956         * tests/unictype/test-categ_P.c: Likewise.
59957         * tests/unictype/test-categ_Pc.c: Likewise.
59958         * tests/unictype/test-categ_Pd.c: Likewise.
59959         * tests/unictype/test-categ_Pe.c: Likewise.
59960         * tests/unictype/test-categ_Pf.c: Likewise.
59961         * tests/unictype/test-categ_Pi.c: Likewise.
59962         * tests/unictype/test-categ_Po.c: Likewise.
59963         * tests/unictype/test-categ_Ps.c: Likewise.
59964         * tests/unictype/test-categ_S.c: Likewise.
59965         * tests/unictype/test-categ_Sc.c: Likewise.
59966         * tests/unictype/test-categ_Sk.c: Likewise.
59967         * tests/unictype/test-categ_Sm.c: Likewise.
59968         * tests/unictype/test-categ_So.c: Likewise.
59969         * tests/unictype/test-categ_Z.c: Likewise.
59970         * tests/unictype/test-categ_Zl.c: Likewise.
59971         * tests/unictype/test-categ_Zp.c: Likewise.
59972         * tests/unictype/test-categ_Zs.c: Likewise.
59973         * tests/unictype/test-ctype_alnum.c: Likewise.
59974         * tests/unictype/test-ctype_alpha.c: Likewise.
59975         * tests/unictype/test-ctype_blank.c: Likewise.
59976         * tests/unictype/test-ctype_cntrl.c: Likewise.
59977         * tests/unictype/test-ctype_digit.c: Likewise.
59978         * tests/unictype/test-ctype_graph.c: Likewise.
59979         * tests/unictype/test-ctype_lower.c: Likewise.
59980         * tests/unictype/test-ctype_print.c: Likewise.
59981         * tests/unictype/test-ctype_punct.c: Likewise.
59982         * tests/unictype/test-ctype_space.c: Likewise.
59983         * tests/unictype/test-ctype_upper.c: Likewise.
59984         * tests/unictype/test-ctype_xdigit.c: Likewise.
59985         * tests/unictype/test-decdigit.h: Likewise.
59986         * tests/unictype/test-digit.h: Likewise.
59987         * tests/unictype/test-numeric.h: Likewise.
59988         * tests/unictype/test-pr_alphabetic.c: Likewise.
59989         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59990         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59991         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59992         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59993         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59994         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59995         * tests/unictype/test-pr_bidi_control.c: Likewise.
59996         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59997         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59998         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59999         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60000         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60001         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60002         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60003         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60004         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
60005         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
60006         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
60007         * tests/unictype/test-pr_combining.c: Likewise.
60008         * tests/unictype/test-pr_composite.c: Likewise.
60009         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60010         * tests/unictype/test-pr_dash.c: Likewise.
60011         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60012         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
60013         * tests/unictype/test-pr_deprecated.c: Likewise.
60014         * tests/unictype/test-pr_diacritic.c: Likewise.
60015         * tests/unictype/test-pr_extender.c: Likewise.
60016         * tests/unictype/test-pr_format_control.c: Likewise.
60017         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60018         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60019         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60020         * tests/unictype/test-pr_hex_digit.c: Likewise.
60021         * tests/unictype/test-pr_hyphen.c: Likewise.
60022         * tests/unictype/test-pr_id_continue.c: Likewise.
60023         * tests/unictype/test-pr_id_start.c: Likewise.
60024         * tests/unictype/test-pr_ideographic.c: Likewise.
60025         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
60026         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
60027         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60028         * tests/unictype/test-pr_iso_control.c: Likewise.
60029         * tests/unictype/test-pr_join_control.c: Likewise.
60030         * tests/unictype/test-pr_left_of_pair.c: Likewise.
60031         * tests/unictype/test-pr_line_separator.c: Likewise.
60032         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60033         * tests/unictype/test-pr_lowercase.c: Likewise.
60034         * tests/unictype/test-pr_math.c: Likewise.
60035         * tests/unictype/test-pr_non_break.c: Likewise.
60036         * tests/unictype/test-pr_not_a_character.c: Likewise.
60037         * tests/unictype/test-pr_numeric.c: Likewise.
60038         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60039         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
60040         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
60041         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60042         * tests/unictype/test-pr_other_id_start.c: Likewise.
60043         * tests/unictype/test-pr_other_lowercase.c: Likewise.
60044         * tests/unictype/test-pr_other_math.c: Likewise.
60045         * tests/unictype/test-pr_other_uppercase.c: Likewise.
60046         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
60047         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
60048         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
60049         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
60050         * tests/unictype/test-pr_private_use.c: Likewise.
60051         * tests/unictype/test-pr_punctuation.c: Likewise.
60052         * tests/unictype/test-pr_quotation_mark.c: Likewise.
60053         * tests/unictype/test-pr_radical.c: Likewise.
60054         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60055         * tests/unictype/test-pr_soft_dotted.c: Likewise.
60056         * tests/unictype/test-pr_space.c: Likewise.
60057         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60058         * tests/unictype/test-pr_titlecase.c: Likewise.
60059         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60060         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60061         * tests/unictype/test-pr_uppercase.c: Likewise.
60062         * tests/unictype/test-pr_variation_selector.c: Likewise.
60063         * tests/unictype/test-pr_white_space.c: Likewise.
60064         * tests/unictype/test-pr_xid_continue.c: Likewise.
60065         * tests/unictype/test-pr_xid_start.c: Likewise.
60066         * tests/unictype/test-pr_zero_width.c: Likewise.
60067         * tests/unictype/test-sy_c_whitespace.c: Likewise.
60068         * tests/unictype/test-sy_java_whitespace.c: Likewise.
60069
60070 2007-11-12  Bruno Haible  <bruno@clisp.org>
60071
60072         Unicode character classification functions.
60073         * lib/unictype.h: New file.
60074         * modules/unictype/base: New file.
60075         * modules/unictype/category-L: New file.
60076         * modules/unictype/category-Lu: New file.
60077         * modules/unictype/category-Ll: New file.
60078         * modules/unictype/category-Lt: New file.
60079         * modules/unictype/category-Lm: New file.
60080         * modules/unictype/category-Lo: New file.
60081         * modules/unictype/category-M: New file.
60082         * modules/unictype/category-Mn: New file.
60083         * modules/unictype/category-Mc: New file.
60084         * modules/unictype/category-Me: New file.
60085         * modules/unictype/category-N: New file.
60086         * modules/unictype/category-Nd: New file.
60087         * modules/unictype/category-Nl: New file.
60088         * modules/unictype/category-No: New file.
60089         * modules/unictype/category-P: New file.
60090         * modules/unictype/category-Pc: New file.
60091         * modules/unictype/category-Pd: New file.
60092         * modules/unictype/category-Ps: New file.
60093         * modules/unictype/category-Pe: New file.
60094         * modules/unictype/category-Pi: New file.
60095         * modules/unictype/category-Pf: New file.
60096         * modules/unictype/category-Po: New file.
60097         * modules/unictype/category-S: New file.
60098         * modules/unictype/category-Sm: New file.
60099         * modules/unictype/category-Sc: New file.
60100         * modules/unictype/category-Sk: New file.
60101         * modules/unictype/category-So: New file.
60102         * modules/unictype/category-Z: New file.
60103         * modules/unictype/category-Zs: New file.
60104         * modules/unictype/category-Zl: New file.
60105         * modules/unictype/category-Zp: New file.
60106         * modules/unictype/category-C: New file.
60107         * modules/unictype/category-Cc: New file.
60108         * modules/unictype/category-Cf: New file.
60109         * modules/unictype/category-Cs: New file.
60110         * modules/unictype/category-Co: New file.
60111         * modules/unictype/category-Cn: New file.
60112         * modules/unictype/category-or: New file.
60113         * modules/unictype/category-of: New file.
60114         * modules/unictype/category-test: New file.
60115         * modules/unictype/category-test-withtable: New file.
60116         * modules/unictype/category-byname: New file.
60117         * modules/unictype/category-none: New file.
60118         * modules/unictype/category-and: New file.
60119         * modules/unictype/category-and-not: New file.
60120         * modules/unictype/category-name: New file.
60121         * modules/unictype/combining-class: New file.
60122         * modules/unictype/category-all: New file.
60123         * modules/unictype/bidicategory-all: New file.
60124         * modules/unictype/bidicategory-byname: New file.
60125         * modules/unictype/bidicategory-name: New file.
60126         * modules/unictype/bidicategory-of: New file.
60127         * modules/unictype/bidicategory-test: New file.
60128         * modules/unictype/decimal-digit: New file.
60129         * modules/unictype/digit: New file.
60130         * modules/unictype/numeric: New file.
60131         * modules/unictype/mirror: New file.
60132         * modules/unictype/property-white-space: New file.
60133         * modules/unictype/property-alphabetic: New file.
60134         * modules/unictype/property-other-alphabetic: New file.
60135         * modules/unictype/property-not-a-character: New file.
60136         * modules/unictype/property-default-ignorable-code-point: New file.
60137         * modules/unictype/property-other-default-ignorable-code-point: New
60138         file.
60139         * modules/unictype/property-deprecated: New file.
60140         * modules/unictype/property-logical-order-exception: New file.
60141         * modules/unictype/property-variation-selector: New file.
60142         * modules/unictype/property-private-use: New file.
60143         * modules/unictype/property-unassigned-code-value: New file.
60144         * modules/unictype/property-uppercase: New file.
60145         * modules/unictype/property-other-uppercase: New file.
60146         * modules/unictype/property-lowercase: New file.
60147         * modules/unictype/property-other-lowercase: New file.
60148         * modules/unictype/property-titlecase: New file.
60149         * modules/unictype/property-soft-dotted: New file.
60150         * modules/unictype/property-id-start: New file.
60151         * modules/unictype/property-other-id-start: New file.
60152         * modules/unictype/property-id-continue: New file.
60153         * modules/unictype/property-other-id-continue: New file.
60154         * modules/unictype/property-xid-start: New file.
60155         * modules/unictype/property-xid-continue: New file.
60156         * modules/unictype/property-pattern-white-space: New file.
60157         * modules/unictype/property-pattern-syntax: New file.
60158         * modules/unictype/property-join-control: New file.
60159         * modules/unictype/property-grapheme-base: New file.
60160         * modules/unictype/property-grapheme-extend: New file.
60161         * modules/unictype/property-other-grapheme-extend: New file.
60162         * modules/unictype/property-grapheme-link: New file.
60163         * modules/unictype/property-bidi-control: New file.
60164         * modules/unictype/property-bidi-left-to-right: New file.
60165         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
60166         * modules/unictype/property-bidi-arabic-right-to-left: New file.
60167         * modules/unictype/property-bidi-european-digit: New file.
60168         * modules/unictype/property-bidi-eur-num-separator: New file.
60169         * modules/unictype/property-bidi-eur-num-terminator: New file.
60170         * modules/unictype/property-bidi-arabic-digit: New file.
60171         * modules/unictype/property-bidi-common-separator: New file.
60172         * modules/unictype/property-bidi-block-separator: New file.
60173         * modules/unictype/property-bidi-segment-separator: New file.
60174         * modules/unictype/property-bidi-whitespace: New file.
60175         * modules/unictype/property-bidi-non-spacing-mark: New file.
60176         * modules/unictype/property-bidi-boundary-neutral: New file.
60177         * modules/unictype/property-bidi-pdf: New file.
60178         * modules/unictype/property-bidi-embedding-or-override: New file.
60179         * modules/unictype/property-bidi-other-neutral: New file.
60180         * modules/unictype/property-hex-digit: New file.
60181         * modules/unictype/property-ascii-hex-digit: New file.
60182         * modules/unictype/property-ideographic: New file.
60183         * modules/unictype/property-unified-ideograph: New file.
60184         * modules/unictype/property-radical: New file.
60185         * modules/unictype/property-ids-binary-operator: New file.
60186         * modules/unictype/property-ids-trinary-operator: New file.
60187         * modules/unictype/property-zero-width: New file.
60188         * modules/unictype/property-space: New file.
60189         * modules/unictype/property-non-break: New file.
60190         * modules/unictype/property-iso-control: New file.
60191         * modules/unictype/property-format-control: New file.
60192         * modules/unictype/property-dash: New file.
60193         * modules/unictype/property-hyphen: New file.
60194         * modules/unictype/property-punctuation: New file.
60195         * modules/unictype/property-line-separator: New file.
60196         * modules/unictype/property-paragraph-separator: New file.
60197         * modules/unictype/property-quotation-mark: New file.
60198         * modules/unictype/property-sentence-terminal: New file.
60199         * modules/unictype/property-terminal-punctuation: New file.
60200         * modules/unictype/property-currency-symbol: New file.
60201         * modules/unictype/property-math: New file.
60202         * modules/unictype/property-other-math: New file.
60203         * modules/unictype/property-paired-punctuation: New file.
60204         * modules/unictype/property-left-of-pair: New file.
60205         * modules/unictype/property-combining: New file.
60206         * modules/unictype/property-composite: New file.
60207         * modules/unictype/property-decimal-digit: New file.
60208         * modules/unictype/property-numeric: New file.
60209         * modules/unictype/property-diacritic: New file.
60210         * modules/unictype/property-extender: New file.
60211         * modules/unictype/property-ignorable-control: New file.
60212         * modules/unictype/property-test: New file.
60213         * modules/unictype/property-byname: New file.
60214         * modules/unictype/property-all: New file.
60215         * modules/unictype/scripts: New file.
60216         * modules/unictype/scripts-all: New file.
60217         * modules/unictype/block-of: New file.
60218         * modules/unictype/block-test: New file.
60219         * modules/unictype/block-list: New file.
60220         * modules/unictype/block-all: New file.
60221         * modules/unictype/syntax-c-whitespace: New file.
60222         * modules/unictype/syntax-java-whitespace: New file.
60223         * modules/unictype/syntax-c-ident: New file.
60224         * modules/unictype/syntax-java-ident: New file.
60225         * modules/unictype/ctype-alnum: New file.
60226         * modules/unictype/ctype-alpha: New file.
60227         * modules/unictype/ctype-cntrl: New file.
60228         * modules/unictype/ctype-digit: New file.
60229         * modules/unictype/ctype-graph: New file.
60230         * modules/unictype/ctype-lower: New file.
60231         * modules/unictype/ctype-print: New file.
60232         * modules/unictype/ctype-punct: New file.
60233         * modules/unictype/ctype-space: New file.
60234         * modules/unictype/ctype-upper: New file.
60235         * modules/unictype/ctype-xdigit: New file.
60236         * modules/unictype/ctype-blank: New file.
60237         * lib/unictype/bidi_byname.c: New file.
60238         * lib/unictype/bidi_name.c: New file.
60239         * lib/unictype/bidi_of.c: New file.
60240         * lib/unictype/bidi_test.c: New file.
60241         * lib/unictype/bitmap.h: New file.
60242         * lib/unictype/block_test.c: New file.
60243         * lib/unictype/blocks.c: New file.
60244         * lib/unictype/categ_C.c: New file.
60245         * lib/unictype/categ_Cc.c: New file.
60246         * lib/unictype/categ_Cf.c: New file.
60247         * lib/unictype/categ_Cn.c: New file.
60248         * lib/unictype/categ_Co.c: New file.
60249         * lib/unictype/categ_Cs.c: New file.
60250         * lib/unictype/categ_L.c: New file.
60251         * lib/unictype/categ_Ll.c: New file.
60252         * lib/unictype/categ_Lm.c: New file.
60253         * lib/unictype/categ_Lo.c: New file.
60254         * lib/unictype/categ_Lt.c: New file.
60255         * lib/unictype/categ_Lu.c: New file.
60256         * lib/unictype/categ_M.c: New file.
60257         * lib/unictype/categ_Mc.c: New file.
60258         * lib/unictype/categ_Me.c: New file.
60259         * lib/unictype/categ_Mn.c: New file.
60260         * lib/unictype/categ_N.c: New file.
60261         * lib/unictype/categ_Nd.c: New file.
60262         * lib/unictype/categ_Nl.c: New file.
60263         * lib/unictype/categ_No.c: New file.
60264         * lib/unictype/categ_P.c: New file.
60265         * lib/unictype/categ_Pc.c: New file.
60266         * lib/unictype/categ_Pd.c: New file.
60267         * lib/unictype/categ_Pe.c: New file.
60268         * lib/unictype/categ_Pf.c: New file.
60269         * lib/unictype/categ_Pi.c: New file.
60270         * lib/unictype/categ_Po.c: New file.
60271         * lib/unictype/categ_Ps.c: New file.
60272         * lib/unictype/categ_S.c: New file.
60273         * lib/unictype/categ_Sc.c: New file.
60274         * lib/unictype/categ_Sk.c: New file.
60275         * lib/unictype/categ_Sm.c: New file.
60276         * lib/unictype/categ_So.c: New file.
60277         * lib/unictype/categ_Z.c: New file.
60278         * lib/unictype/categ_Zl.c: New file.
60279         * lib/unictype/categ_Zp.c: New file.
60280         * lib/unictype/categ_Zs.c: New file.
60281         * lib/unictype/categ_and.c: New file.
60282         * lib/unictype/categ_and_not.c: New file.
60283         * lib/unictype/categ_byname.c: New file.
60284         * lib/unictype/categ_name.c: New file.
60285         * lib/unictype/categ_none.c: New file.
60286         * lib/unictype/categ_of.c: New file.
60287         * lib/unictype/categ_or.c: New file.
60288         * lib/unictype/categ_test.c: New file.
60289         * lib/unictype/combining.c: New file.
60290         * lib/unictype/ctype_alnum.c: New file.
60291         * lib/unictype/ctype_alpha.c: New file.
60292         * lib/unictype/ctype_blank.c: New file.
60293         * lib/unictype/ctype_cntrl.c: New file.
60294         * lib/unictype/ctype_digit.c: New file.
60295         * lib/unictype/ctype_graph.c: New file.
60296         * lib/unictype/ctype_lower.c: New file.
60297         * lib/unictype/ctype_print.c: New file.
60298         * lib/unictype/ctype_punct.c: New file.
60299         * lib/unictype/ctype_space.c: New file.
60300         * lib/unictype/ctype_upper.c: New file.
60301         * lib/unictype/ctype_xdigit.c: New file.
60302         * lib/unictype/decdigit.c: New file.
60303         * lib/unictype/digit.c: New file.
60304         * lib/unictype/identsyntaxmap.h: New file.
60305         * lib/unictype/mirror.c: New file.
60306         * lib/unictype/numeric.c: New file.
60307         * lib/unictype/pr_alphabetic.c: New file.
60308         * lib/unictype/pr_ascii_hex_digit.c: New file.
60309         * lib/unictype/pr_bidi_arabic_digit.c: New file.
60310         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
60311         * lib/unictype/pr_bidi_block_separator.c: New file.
60312         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
60313         * lib/unictype/pr_bidi_common_separator.c: New file.
60314         * lib/unictype/pr_bidi_control.c: New file.
60315         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
60316         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
60317         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
60318         * lib/unictype/pr_bidi_european_digit.c: New file.
60319         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
60320         * lib/unictype/pr_bidi_left_to_right.c: New file.
60321         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
60322         * lib/unictype/pr_bidi_other_neutral.c: New file.
60323         * lib/unictype/pr_bidi_pdf.c: New file.
60324         * lib/unictype/pr_bidi_segment_separator.c: New file.
60325         * lib/unictype/pr_bidi_whitespace.c: New file.
60326         * lib/unictype/pr_byname.c: New file.
60327         * lib/unictype/pr_byname.gperf: New file.
60328         * lib/unictype/pr_combining.c: New file.
60329         * lib/unictype/pr_composite.c: New file.
60330         * lib/unictype/pr_currency_symbol.c: New file.
60331         * lib/unictype/pr_dash.c: New file.
60332         * lib/unictype/pr_decimal_digit.c: New file.
60333         * lib/unictype/pr_default_ignorable_code_point.c: New file.
60334         * lib/unictype/pr_deprecated.c: New file.
60335         * lib/unictype/pr_diacritic.c: New file.
60336         * lib/unictype/pr_extender.c: New file.
60337         * lib/unictype/pr_format_control.c: New file.
60338         * lib/unictype/pr_grapheme_base.c: New file.
60339         * lib/unictype/pr_grapheme_extend.c: New file.
60340         * lib/unictype/pr_grapheme_link.c: New file.
60341         * lib/unictype/pr_hex_digit.c: New file.
60342         * lib/unictype/pr_hyphen.c: New file.
60343         * lib/unictype/pr_id_continue.c: New file.
60344         * lib/unictype/pr_id_start.c: New file.
60345         * lib/unictype/pr_ideographic.c: New file.
60346         * lib/unictype/pr_ids_binary_operator.c: New file.
60347         * lib/unictype/pr_ids_trinary_operator.c: New file.
60348         * lib/unictype/pr_ignorable_control.c: New file.
60349         * lib/unictype/pr_iso_control.c: New file.
60350         * lib/unictype/pr_join_control.c: New file.
60351         * lib/unictype/pr_left_of_pair.c: New file.
60352         * lib/unictype/pr_line_separator.c: New file.
60353         * lib/unictype/pr_logical_order_exception.c: New file.
60354         * lib/unictype/pr_lowercase.c: New file.
60355         * lib/unictype/pr_math.c: New file.
60356         * lib/unictype/pr_non_break.c: New file.
60357         * lib/unictype/pr_not_a_character.c: New file.
60358         * lib/unictype/pr_numeric.c: New file.
60359         * lib/unictype/pr_other_alphabetic.c: New file.
60360         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
60361         * lib/unictype/pr_other_grapheme_extend.c: New file.
60362         * lib/unictype/pr_other_id_continue.c: New file.
60363         * lib/unictype/pr_other_id_start.c: New file.
60364         * lib/unictype/pr_other_lowercase.c: New file.
60365         * lib/unictype/pr_other_math.c: New file.
60366         * lib/unictype/pr_other_uppercase.c: New file.
60367         * lib/unictype/pr_paired_punctuation.c: New file.
60368         * lib/unictype/pr_paragraph_separator.c: New file.
60369         * lib/unictype/pr_pattern_syntax.c: New file.
60370         * lib/unictype/pr_pattern_white_space.c: New file.
60371         * lib/unictype/pr_private_use.c: New file.
60372         * lib/unictype/pr_punctuation.c: New file.
60373         * lib/unictype/pr_quotation_mark.c: New file.
60374         * lib/unictype/pr_radical.c: New file.
60375         * lib/unictype/pr_sentence_terminal.c: New file.
60376         * lib/unictype/pr_soft_dotted.c: New file.
60377         * lib/unictype/pr_space.c: New file.
60378         * lib/unictype/pr_terminal_punctuation.c: New file.
60379         * lib/unictype/pr_test.c: New file.
60380         * lib/unictype/pr_titlecase.c: New file.
60381         * lib/unictype/pr_unassigned_code_value.c: New file.
60382         * lib/unictype/pr_unified_ideograph.c: New file.
60383         * lib/unictype/pr_uppercase.c: New file.
60384         * lib/unictype/pr_variation_selector.c: New file.
60385         * lib/unictype/pr_white_space.c: New file.
60386         * lib/unictype/pr_xid_continue.c: New file.
60387         * lib/unictype/pr_xid_start.c: New file.
60388         * lib/unictype/pr_zero_width.c: New file.
60389         * lib/unictype/scripts.c: New file.
60390         * lib/unictype/sy_c_ident.c: New file.
60391         * lib/unictype/sy_c_whitespace.c: New file.
60392         * lib/unictype/sy_java_ident.c: New file.
60393         * lib/unictype/sy_java_whitespace.c: New file.
60394
60395         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
60396         Unicode 5.0.0.
60397         * lib/unictype/blocks.h: Likewise.
60398         * lib/unictype/categ_C.h: Likewise.
60399         * lib/unictype/categ_Cc.h: Likewise.
60400         * lib/unictype/categ_Cf.h: Likewise.
60401         * lib/unictype/categ_Cn.h: Likewise.
60402         * lib/unictype/categ_Co.h: Likewise.
60403         * lib/unictype/categ_Cs.h: Likewise.
60404         * lib/unictype/categ_L.h: Likewise.
60405         * lib/unictype/categ_Ll.h: Likewise.
60406         * lib/unictype/categ_Lm.h: Likewise.
60407         * lib/unictype/categ_Lo.h: Likewise.
60408         * lib/unictype/categ_Lt.h: Likewise.
60409         * lib/unictype/categ_Lu.h: Likewise.
60410         * lib/unictype/categ_M.h: Likewise.
60411         * lib/unictype/categ_Mc.h: Likewise.
60412         * lib/unictype/categ_Me.h: Likewise.
60413         * lib/unictype/categ_Mn.h: Likewise.
60414         * lib/unictype/categ_N.h: Likewise.
60415         * lib/unictype/categ_Nd.h: Likewise.
60416         * lib/unictype/categ_Nl.h: Likewise.
60417         * lib/unictype/categ_No.h: Likewise.
60418         * lib/unictype/categ_P.h: Likewise.
60419         * lib/unictype/categ_Pc.h: Likewise.
60420         * lib/unictype/categ_Pd.h: Likewise.
60421         * lib/unictype/categ_Pe.h: Likewise.
60422         * lib/unictype/categ_Pf.h: Likewise.
60423         * lib/unictype/categ_Pi.h: Likewise.
60424         * lib/unictype/categ_Po.h: Likewise.
60425         * lib/unictype/categ_Ps.h: Likewise.
60426         * lib/unictype/categ_S.h: Likewise.
60427         * lib/unictype/categ_Sc.h: Likewise.
60428         * lib/unictype/categ_Sk.h: Likewise.
60429         * lib/unictype/categ_Sm.h: Likewise.
60430         * lib/unictype/categ_So.h: Likewise.
60431         * lib/unictype/categ_Z.h: Likewise.
60432         * lib/unictype/categ_Zl.h: Likewise.
60433         * lib/unictype/categ_Zp.h: Likewise.
60434         * lib/unictype/categ_Zs.h: Likewise.
60435         * lib/unictype/categ_of.h: Likewise.
60436         * lib/unictype/combining.h: Likewise.
60437         * lib/unictype/ctype_alnum.h: Likewise.
60438         * lib/unictype/ctype_alpha.h: Likewise.
60439         * lib/unictype/ctype_blank.h: Likewise.
60440         * lib/unictype/ctype_cntrl.h: Likewise.
60441         * lib/unictype/ctype_digit.h: Likewise.
60442         * lib/unictype/ctype_graph.h: Likewise.
60443         * lib/unictype/ctype_lower.h: Likewise.
60444         * lib/unictype/ctype_print.h: Likewise.
60445         * lib/unictype/ctype_punct.h: Likewise.
60446         * lib/unictype/ctype_space.h: Likewise.
60447         * lib/unictype/ctype_upper.h: Likewise.
60448         * lib/unictype/ctype_xdigit.h: Likewise.
60449         * lib/unictype/decdigit.h: Likewise.
60450         * lib/unictype/digit.h: Likewise.
60451         * lib/unictype/mirror.h: Likewise.
60452         * lib/unictype/numeric.h: Likewise.
60453         * lib/unictype/pr_alphabetic.h: Likewise.
60454         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60455         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60456         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60457         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60458         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60459         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60460         * lib/unictype/pr_bidi_control.h: Likewise.
60461         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60462         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60463         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60464         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60465         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60466         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60467         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60468         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60469         * lib/unictype/pr_bidi_pdf.h: Likewise.
60470         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60471         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60472         * lib/unictype/pr_combining.h: Likewise.
60473         * lib/unictype/pr_composite.h: Likewise.
60474         * lib/unictype/pr_currency_symbol.h: Likewise.
60475         * lib/unictype/pr_dash.h: Likewise.
60476         * lib/unictype/pr_decimal_digit.h: Likewise.
60477         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60478         * lib/unictype/pr_deprecated.h: Likewise.
60479         * lib/unictype/pr_diacritic.h: Likewise.
60480         * lib/unictype/pr_extender.h: Likewise.
60481         * lib/unictype/pr_format_control.h: Likewise.
60482         * lib/unictype/pr_grapheme_base.h: Likewise.
60483         * lib/unictype/pr_grapheme_extend.h: Likewise.
60484         * lib/unictype/pr_grapheme_link.h: Likewise.
60485         * lib/unictype/pr_hex_digit.h: Likewise.
60486         * lib/unictype/pr_hyphen.h: Likewise.
60487         * lib/unictype/pr_id_continue.h: Likewise.
60488         * lib/unictype/pr_id_start.h: Likewise.
60489         * lib/unictype/pr_ideographic.h: Likewise.
60490         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60491         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60492         * lib/unictype/pr_ignorable_control.h: Likewise.
60493         * lib/unictype/pr_iso_control.h: Likewise.
60494         * lib/unictype/pr_join_control.h: Likewise.
60495         * lib/unictype/pr_left_of_pair.h: Likewise.
60496         * lib/unictype/pr_line_separator.h: Likewise.
60497         * lib/unictype/pr_logical_order_exception.h: Likewise.
60498         * lib/unictype/pr_lowercase.h: Likewise.
60499         * lib/unictype/pr_math.h: Likewise.
60500         * lib/unictype/pr_non_break.h: Likewise.
60501         * lib/unictype/pr_not_a_character.h: Likewise.
60502         * lib/unictype/pr_numeric.h: Likewise.
60503         * lib/unictype/pr_other_alphabetic.h: Likewise.
60504         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60505         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60506         * lib/unictype/pr_other_id_continue.h: Likewise.
60507         * lib/unictype/pr_other_id_start.h: Likewise.
60508         * lib/unictype/pr_other_lowercase.h: Likewise.
60509         * lib/unictype/pr_other_math.h: Likewise.
60510         * lib/unictype/pr_other_uppercase.h: Likewise.
60511         * lib/unictype/pr_paired_punctuation.h: Likewise.
60512         * lib/unictype/pr_paragraph_separator.h: Likewise.
60513         * lib/unictype/pr_pattern_syntax.h: Likewise.
60514         * lib/unictype/pr_pattern_white_space.h: Likewise.
60515         * lib/unictype/pr_private_use.h: Likewise.
60516         * lib/unictype/pr_punctuation.h: Likewise.
60517         * lib/unictype/pr_quotation_mark.h: Likewise.
60518         * lib/unictype/pr_radical.h: Likewise.
60519         * lib/unictype/pr_sentence_terminal.h: Likewise.
60520         * lib/unictype/pr_soft_dotted.h: Likewise.
60521         * lib/unictype/pr_space.h: Likewise.
60522         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60523         * lib/unictype/pr_titlecase.h: Likewise.
60524         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60525         * lib/unictype/pr_unified_ideograph.h: Likewise.
60526         * lib/unictype/pr_uppercase.h: Likewise.
60527         * lib/unictype/pr_variation_selector.h: Likewise.
60528         * lib/unictype/pr_white_space.h: Likewise.
60529         * lib/unictype/pr_xid_continue.h: Likewise.
60530         * lib/unictype/pr_xid_start.h: Likewise.
60531         * lib/unictype/pr_zero_width.h: Likewise.
60532         * lib/unictype/scripts.h: Likewise.
60533         * lib/unictype/scripts_byname.gperf: Likewise.
60534         * lib/unictype/sy_c_ident.h: Likewise.
60535         * lib/unictype/sy_c_whitespace.h: Likewise.
60536         * lib/unictype/sy_java_ident.h: Likewise.
60537         * lib/unictype/sy_java_whitespace.h: Likewise.
60538
60539         * lib/unictype/Makefile: New file.
60540         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
60541         glibc.
60542         * lib/unictype/3level.h: New file, copied from glibc.
60543         * lib/unictype/3levelbit.h: New file.
60544
60545 2007-11-11  Bruno Haible  <bruno@clisp.org>
60546
60547         * modules/gperf: New file.
60548         * modules/iconv_open (Depends-on): Add it.
60549         (Makefile.am): Remove the GPERF definition.
60550
60551 2007-11-11  Bruno Haible  <bruno@clisp.org>
60552
60553         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
60554         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
60555
60556 2007-11-11  Bruno Haible  <bruno@clisp.org>
60557
60558         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60559         (usage): Remove function.
60560
60561 2007-11-11  Bruno Haible  <bruno@clisp.org>
60562
60563         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60564         gl_FUNC_CEILF_LIBS.
60565         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60566         gl_FUNC_CEIL_LIBS.
60567         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60568         gl_FUNC_CEILL_LIBS.
60569         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60570         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60571         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60572
60573 2007-11-11  Bruno Haible  <bruno@clisp.org>
60574
60575         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60576         roundf were declared but do not exist on functions.
60577         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60578         roundl were declared but do not exist on functions.
60579         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60580         HAVE_FLOORL_AND_CEILL, respectively.
60581         Needed for Sun C on Solaris 10.
60582
60583 2007-11-11  Bruno Haible  <bruno@clisp.org>
60584
60585         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60586         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60587         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60588         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60589         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60590         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60591         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60592         HAVE_DECL_ROUNDF.
60593         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60594         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60595         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60596         of HAVE_DECL_ROUND*.
60597         * modules/math (Makefile.am): Update.
60598
60599 2007-11-10  Bruno Haible  <bruno@clisp.org>
60600
60601         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60602         ptrdiff_t as m4/intl.m4.
60603
60604 2007-11-10  Jim Meyering  <meyering@redhat.com>
60605
60606         Avoid link failure for the argmatch test.
60607         * tests/test-argmatch.c (usage): Define function to avoid a link
60608         failure: argmatch_die requires a usage function.
60609
60610 2007-11-09  Bruno Haible  <bruno@clisp.org>
60611
60612         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60613         * doc/functions/vsnprintf.texi: Likewise.
60614         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60615         with a size argument < 2.
60616
60617 2007-11-09  Bruno Haible  <bruno@clisp.org>
60618
60619         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60620         buffer. Fixes an inefficiency introduced on 2007-11-03.
60621
60622 2007-11-09  Bruno Haible  <bruno@clisp.org>
60623
60624         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60625         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60626
60627 2007-11-08  Jim Meyering  <meyering@redhat.com>
60628
60629         Change cache variable name prefix "jm_" to "gl_" everywhere.
60630         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60631         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60632         * m4/uptime.m4: s/gl_/jm_/
60633
60634 2007-11-07  Bruno Haible  <bruno@clisp.org>
60635
60636         Update to GNU gettext 0.17.
60637         * m4/intl.m4: Update to GNU gettext 0.17.
60638         * m4/po.m4: Likewise.
60639         * modules/gettext (Files): Remove m4/ulonglong.m4.
60640         (configure.ac): Require gettext infrastructure from version 0.17.
60641
60642 2007-11-06  Bruno Haible  <bruno@clisp.org>
60643
60644         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60645         symbolic values are not defined in a public header.
60646         * lib/freadable.c (freadable) [QNX]: Likewise.
60647         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60648         * lib/freading.c (freading) [QNX]: Likewise.
60649         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60650         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60651         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60652         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60653         Reported by Alain Magloire.
60654
60655         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60656
60657 2007-11-05  Bruno Haible  <bruno@clisp.org>
60658
60659         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60660         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60661         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60662         Reported by Eric Blake.
60663
60664 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60665             Bruno Haible  <bruno@clisp.org>
60666
60667         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60668         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60669         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60670         (malloc): Undefine also before including <stdlib.h>.
60671         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60672         Needed on OSF/1 4.0.
60673
60674 2007-11-05  Jim Meyering  <meyering@redhat.com>
60675
60676         git-version-gen: sync from coreutils.
60677         * build-aux/git-version-gen: Add comments.
60678         Change the first '-' to '.' in the snapshot version string,
60679         e.g., 6.9-377-08144 -> 6.9.377-08144
60680         Remove first parameter.
60681         Don't declare a version "-dirty" merely because a time
60682         stamp has changed.
60683
60684 2007-11-04  Bruno Haible  <bruno@clisp.org>
60685
60686         * lib/lock.h: Protect all macro definitions containing an 'if'
60687         statement through a "do { ... } while (0)".
60688         * lib/tls.h: Likewise.
60689
60690 2007-11-04  Bruno Haible  <bruno@clisp.org>
60691
60692         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60693
60694 2007-11-04  Bruno Haible  <bruno@clisp.org>
60695
60696         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60697         * modules/fprintf-posix (Depends-on): Add nocrash.
60698         * modules/snprintf-posix (Depends-on): Likewise.
60699         * modules/sprintf-posix (Depends-on): Likewise.
60700         * modules/vasnprintf-posix (Depends-on): Likewise.
60701         * modules/vasprintf-posix (Depends-on): Likewise.
60702         * modules/vfprintf-posix (Depends-on): Likewise.
60703         * modules/vsnprintf-posix (Depends-on): Likewise.
60704         * modules/vsprintf-posix (Depends-on): Likewise.
60705         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60706         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60707         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60708         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60709         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60710         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60711         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60712
60713 2007-11-04  Bruno Haible  <bruno@clisp.org>
60714
60715         * modules/nocrash: New file.
60716         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60717         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60718
60719 2007-11-04  Bruno Haible  <bruno@clisp.org>
60720
60721         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60722         precision handling.
60723         * tests/test-vasprintf-posix.c (test_function): Likewise.
60724         * tests/test-snprintf-posix.h (test_function): Likewise.
60725         * tests/test-sprintf-posix.h (test_function): Likewise.
60726
60727         Fix *printf behaviour for large precisions on mingw and BeOS.
60728         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60729         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60730         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60731         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60732         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60733         gl_PRINTF_PRECISION and test its result. Invoke
60734         gl_PREREQ_VASNPRINTF_PRECISION.
60735         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60736         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60737         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60738         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60739         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60740         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60741         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60742         * doc/functions/fprintf.texi: Update.
60743         * doc/functions/printf.texi: Update.
60744         * doc/functions/snprintf.texi: Update.
60745         * doc/functions/sprintf.texi: Update.
60746         * doc/functions/vfprintf.texi: Update.
60747         * doc/functions/vprintf.texi: Update.
60748         * doc/functions/vsnprintf.texi: Update.
60749         * doc/functions/vsprintf.texi: Update.
60750
60751 2007-11-04  Bruno Haible  <bruno@clisp.org>
60752
60753         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60754
60755 2007-11-04  Bruno Haible  <bruno@clisp.org>
60756
60757         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60758         Reported by Sylvain Beucler <beuc@gnu.org>.
60759
60760 2007-11-03  Bruno Haible  <bruno@clisp.org>
60761
60762         * tests/test-fprintf-posix2.sh: New file.
60763         * tests/test-fprintf-posix2.c: New file.
60764         * modules/fprintf-posix-tests (Files): Add them.
60765         (TESTS): Add test-fprintf-posix2.sh.
60766         (configure.ac): Check for getrlimit and setrlimit.
60767         (check_PROGRAMS): Add test-fprintf-posix2.
60768
60769         * tests/test-printf-posix2.sh: New file.
60770         * tests/test-printf-posix2.c: New file.
60771         * modules/printf-posix-tests (Files): Add them.
60772         (TESTS): Add test-printf-posix2.sh.
60773         (configure.ac): Check for getrlimit and setrlimit.
60774         (check_PROGRAMS): Add test-printf-posix2.
60775
60776         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60777         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60778         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60779         (decode_double): New function, copied from decode_long_double.
60780         (scale10_round_decimal_decoded): New function, extracted from
60781         scale10_round_decimal_long_double.
60782         (scale10_round_decimal_long_double): Use it.
60783         (scale10_round_decimal_double): New function.
60784         (floorlog10): New function.
60785         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60786         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60787         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60788         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60789         gl_PRINTF_ENOMEM and test its result. Invoke
60790         gl_PREREQ_VASNPRINTF_ENOMEM.
60791         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60792         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60793         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60794         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60795         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60796         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60797         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60798         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60799         * modules/snprintf-posix (Depends-on): Likewise.
60800         * modules/sprintf-posix (Depends-on): Likewise.
60801         * modules/vasnprintf-posix (Depends-on): Likewise.
60802         * modules/vasprintf-posix (Depends-on): Likewise.
60803         * modules/vfprintf-posix (Depends-on): Likewise.
60804         * modules/vsnprintf-posix (Depends-on): Likewise.
60805         * modules/vsprintf-posix (Depends-on): Likewise.
60806         * doc/functions/fprintf.texi: Update.
60807         * doc/functions/printf.texi: Update.
60808         * doc/functions/snprintf.texi: Update.
60809         * doc/functions/sprintf.texi: Update.
60810         * doc/functions/vfprintf.texi: Update.
60811         * doc/functions/vprintf.texi: Update.
60812         * doc/functions/vsnprintf.texi: Update.
60813         * doc/functions/vsprintf.texi: Update.
60814
60815 2007-11-03  Bruno Haible  <bruno@clisp.org>
60816
60817         * modules/frexp-nolibm-tests: New file.
60818
60819         * modules/frexp-nolibm: New file.
60820         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60821
60822 2007-11-03  Bruno Haible  <bruno@clisp.org>
60823
60824         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60825         value is C99 compliant.
60826         Needed for OSF/1 5.1.
60827
60828 2007-11-03  Bruno Haible  <bruno@clisp.org>
60829
60830         Fix out-of-memory handling of vasnprintf.
60831         * lib/printf-parse.c: Include <errno.h>.
60832         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60833         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60834         is already set.
60835
60836 2007-11-02  Eric Blake  <ebb9@byu.net>
60837
60838         Fix tests on cygwin.
60839         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60840
60841 2007-11-01  Bruno Haible  <bruno@clisp.org>
60842
60843         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60844         warning.
60845         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60846         needed for POSIX compatibility.
60847
60848 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60849
60850         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60851         for compatibility with GNU.
60852
60853 2007-11-01  Bruno Haible  <bruno@clisp.org>
60854
60855         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60856         (putenv): Renamed from rpl_putenv. Change argument type from
60857         'const char *' to 'char *'.
60858         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60859         of defining putenv in config.h, just set REPLACE_PUTENV.
60860         * modules/putenv (Depends-on): Add stdlib.
60861         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60862         (Include): Use <stdlib.h>.
60863         * lib/stdlib.in.h (putenv): New declaration.
60864         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60865         REPLACE_PUTENV.
60866         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60867         REPLACE_PUTENV.
60868         Needed for MacOS X 10.5.0.
60869         Reported by Peter O'Gorman <peter@pogma.com>.
60870
60871 2007-11-01  Jim Meyering  <meyering@redhat.com>
60872
60873         Treat an empty date string exactly like "0".
60874         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60875         if the remaining date string (to be parsed) is empty, use "0".
60876         Reported by Mischa Molhoek and discussed in this thread:
60877         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60878
60879 2007-10-31  Bruno Haible  <bruno@clisp.org>
60880
60881         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60882         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60883         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60884         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60885         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60886         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60887
60888 2007-10-31  Bruno Haible  <bruno@clisp.org>
60889
60890         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60891         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60892         (AC_TYPE_LONG_LONG_INT): Use it.
60893         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60894         it as well.
60895         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60896         to m4/longlong.m4.
60897         * modules/stdint (Files): Remove m4/ulonglong.m4.
60898         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60899         m4/ulonglong.m4.
60900         * modules/strtoumax (Files): Likewise.
60901
60902 2007-10-30  Bruno Haible  <bruno@clisp.org>
60903
60904         * modules/xvasprintf-posix: New file.
60905         Suggested by Eric Blake.
60906
60907 2007-10-30  Bruno Haible  <bruno@clisp.org>
60908
60909         * modules/xprintf-posix-tests: New file.
60910         * tests/test-xprintf-posix.sh: New file.
60911         * tests/test-xprintf-posix.c: New file.
60912         * tests/test-xfprintf-posix.c: New file.
60913
60914         * modules/xprintf-posix: New file.
60915
60916 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60917
60918         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60919         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60920         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60921
60922 2007-10-29  Bruno Haible  <bruno@clisp.org>
60923
60924         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60925         contain the special marker '_cv_'.
60926         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60927         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60928         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60929         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60930         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60931         Reported by Ralf Wildenhues.
60932
60933 2007-10-29  Bruno Haible  <bruno@clisp.org>
60934
60935         * gnulib-tool (func_import): When --lgpl is not specified, set
60936         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60937         GPLv3.
60938         Reported by Simon Josefsson.
60939
60940 2007-10-28  Bruno Haible  <bruno@clisp.org>
60941
60942         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60943         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60944         HAVE_DECL_ISFINITE.
60945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60946         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60947         HAVE_DECL_ISFINITE.
60948
60949 2007-10-28  Bruno Haible  <bruno@clisp.org>
60950
60951         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60952         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60953
60954 2007-10-28  Bruno Haible  <bruno@clisp.org>
60955
60956         Fix link errors with Sun C 5.0 on Solaris 10.
60957         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60958         function is declared but not present in the compiler's libm.
60959         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60960         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60961         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60962         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60963         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60964         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60965         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60967         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60968         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60969         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60970         HAVE_DECL_FLOORL.
60971
60972 2007-10-28  Bruno Haible  <bruno@clisp.org>
60973
60974         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60975         gl_FUNC_FLOORL. Cache the result.
60976         (gl_FUNC_FLOORL): Use it.
60977         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60978         gl_FUNC_CEILL. Cache the result.
60979         (gl_FUNC_CEILL): Use it.
60980
60981         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60982         gl_FUNC_FLOOR. Cache the result.
60983         (gl_FUNC_FLOOR): Use it.
60984         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60985         gl_FUNC_CEIL. Cache the result.
60986         (gl_FUNC_CEIL): Use it.
60987
60988         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60989         gl_FUNC_FLOORF. Cache the result.
60990         (gl_FUNC_FLOORF): Use it.
60991         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60992         gl_FUNC_CEILF. Cache the result.
60993         (gl_FUNC_CEILF): Use it.
60994
60995 2007-10-28  Bruno Haible  <bruno@clisp.org>
60996
60997         * gnulib-tool: Allow specifying the LGPL version number through
60998         --lgpl=2 or --lgpl=3.
60999         (func_usage): Document --lgpl with argument.
61000         Handle --lgpl=... arguments.
61001         (func_import): Recognize also gl_LGPL calls with an argument. When
61002         --lgpl=2 is used and the module's license is just LGPL, report an
61003         error. Set sed_transform_lib_file according to the lgpl variable. In
61004         the generated files, use --lgpl or gl_LGPL invocations with argument,
61005         if necessary.
61006         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
61007         an LGPv2+ license.
61008         * doc/gnulib-tool.texi (Modified imports): Update explanation of
61009         gl_LGPL macro.
61010
61011 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61012             Bruno Haible  <bruno@clisp.org>
61013
61014         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
61015         (u16_uctomb_aux): Likewise.
61016         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
61017         !HAVE_INLINE.
61018         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
61019
61020 2007-10-28  Bruno Haible  <bruno@clisp.org>
61021
61022         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
61023         Invoke AM_GETTEXT_OPTION if it exists.
61024         * modules/vasprintf: Likewise.
61025         * modules/verror: Likewise.
61026         * modules/xprintf: Likewise.
61027         * modules/xvasprintf: Likewise.
61028
61029 2007-10-27  Ben Pfaff  <blp@gnu.org>
61030
61031         * lib/math.in.h: Define isfinite macro and prototypes for
61032         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
61033         implementations.
61034         * m4/math_h.m4: New substitutions for isfinite module.
61035         * lib/isfinite.c: New file.
61036         * m4/isfinite.m4: New file.
61037         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
61038         * modules/isfinite: New file.
61039         * modules/isfinite-tests: New file.
61040         * tests/tests-isfinite.c: New file.
61041         * doc/functions/isfinite.texi: Mention isfinite module.
61042         * MODULES.html.sh: Mention new module.
61043
61044 2007-10-27  Ben Pfaff  <blp@gnu.org>
61045
61046         Ralf Wildenhues reported that Tru64 4.0D declares the round
61047         functions but does not have definitions.
61048         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
61049         cannot be found in any library, set the output variable to
61050         "missing" instead of "".
61051         * m4/round.m4: Also use our substitute if we cannot find round in
61052         any library, even if it is declared.
61053         * m4/roundf.m4: Likewise for roundf.
61054         * m4/roundl.m4: Likewise for roundl.
61055         * lib/math.in.h: Undefine roundf, round, roundl before defining
61056         their replacements, to allow for hypothetical systems where these
61057         may be defined as macros but not available in libraries.
61058
61059 2007-10-27  Bruno Haible  <bruno@clisp.org>
61060
61061         * doc/gnulib.texi: Invoke @firstparagraphindent.
61062         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
61063         changes in gnulib.
61064         (Source changes): New section.
61065
61066 2007-10-26  Bruno Haible  <bruno@clisp.org>
61067
61068         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
61069         borrowed from autoconf.
61070
61071 2007-10-26  Bruno Haible  <bruno@clisp.org>
61072
61073         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
61074         strerror returned the empty string. Needed on HP-UX 11.00.
61075
61076 2007-10-24  Micah Cowan  <micah@cowan.name>
61077
61078         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
61079         * build-aux/bootstrap: Remove support for now-unnecessary option,
61080         --cvs-user, and envvars CVS_USER, CVS_RSH.
61081
61082 2007-10-24  Jim Meyering  <meyering@redhat.com>
61083
61084         Avoid diagnostics from sha1sum when there is no cached checksum.
61085         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
61086         if the po.s1 file hasn't been created yet.
61087
61088         * build-aux/bootstrap: Sync from coreutils:
61089         2007-10-24  Jim Meyering  <meyering@redhat.com>
61090         Get gnulib from the git repository, not from an obsolete cvs one.
61091         * build-aux/bootstrap: Suggestion from Micah Cowan.
61092         2007-10-04  Jim Meyering  <jim@meyering.net>
61093         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
61094         (update_po_files): Work also when there are no .po files in po/.
61095
61096 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61097
61098         * README: Append ".git" to git and cg examples.
61099         Problem reported by Benoit Sigoure.
61100
61101 2007-10-23  Micah Cowan  <micah@cowan.name>
61102
61103         * users.txt: Add wget.
61104
61105 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61106
61107         Fix linking of some unistdio tests on FreeBSD.
61108         * modules/unistdio/u16-vsnprintf-tests
61109         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
61110         * modules/unistdio/u16-vsprintf-tests
61111         (test_u16_vsnprintf1_LDADD): Likewise.
61112         * modules/unistdio/u32-vsnprintf-tests
61113         (test_u32_vsnprintf1_LDADD): Likewise.
61114         * modules/unistdio/u32-vsprintf-tests
61115         (test_u32_vsprintf1_LDADD): Likewise.
61116         * modules/unistdio/u8-vsnprintf-tests
61117         (test_u8_vsnprintf1_LDADD): Likewise.
61118         * modules/unistdio/u8-vsprintf-tests
61119         (test_u8_vsprintf1_LDADD): Likewise.
61120         * modules/unistdio/ulc-vsnprintf-tests
61121         (test_ulc_vsnprintf1_LDADD): Likewise.
61122         * modules/unistdio/ulc-vsprintf-tests
61123         (test_ulc_vsprintf1_LDADD): Likewise.
61124
61125         Fix linking of some uniconv tests on FreeBSD.
61126         * modules/uniconv/u16-conv-from-enc-tests
61127         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
61128         * modules/uniconv/u16-conv-to-enc-tests
61129         (test_u16_conv_to_enc_LDADD): Likewise.
61130         * modules/uniconv/u16-strconv-from-enc-tests
61131         (test_u16_strconv_from_enc_LDADD): Likewise.
61132         * modules/uniconv/u16-strconv-to-enc-tests
61133         (test_u16_strconv_to_enc_LDADD): Likewise.
61134         * modules/uniconv/u32-conv-from-enc-tests
61135         (test_u32_conv_from_enc_LDADD): Likewise.
61136         * modules/uniconv/u32-conv-to-enc-tests
61137         (test_u32_conv_to_enc_LDADD): Likewise.
61138         * modules/uniconv/u32-strconv-from-enc-tests
61139         (test_u32_strconv_from_enc_LDADD): Likewise.
61140         * modules/uniconv/u32-strconv-to-enc-tests
61141         (test_u32_strconv_to_enc_LDADD): Likewise.
61142         * modules/uniconv/u8-conv-from-enc-tests
61143         (test_u8_conv_from_enc_LDADD): Likewise.
61144         * modules/uniconv/u8-conv-to-enc-tests
61145         (test_u8_conv_to_enc_LDADD): Likewise.
61146         * modules/uniconv/u8-strconv-from-enc-tests
61147         (test_u8_strconv_from_enc_LDADD): Likewise.
61148         * modules/uniconv/u8-strconv-to-enc-tests
61149         (test_u8_strconv_to_enc_LDADD): Likewise.
61150
61151 2007-10-22  Bruno Haible  <bruno@clisp.org>
61152
61153         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
61154         size.
61155
61156 2007-10-22  Eric Blake  <ebb9@byu.net>
61157
61158         Tweak x*printf documentation.
61159         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
61160         variable name and comments.
61161         Suggested by Bruno Haible.
61162
61163 2007-10-22  Bruno Haible  <bruno@clisp.org>
61164
61165         * lib/acl.c (copy_acl): Fix file name in comment.
61166
61167 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61168
61169         Fix Tru64 problem with stdbool.h.
61170         * lib/stdbool.in.h (false, true):
61171         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
61172         Don't declare as an enum in this situation; it runs afoul of Tru64.
61173         Problem reported by Steven M. Schweda in
61174         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
61175
61176 2007-10-22  Eric Blake  <ebb9@byu.net>
61177
61178         Also wrap vf?printf.
61179         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
61180         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
61181         (xvprintf, xvfprintf): New functions.
61182
61183 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61184
61185         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
61186         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
61187
61188         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
61189         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
61190
61191 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61192
61193         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
61194         by Bruno Haible.
61195
61196 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61197
61198         * lib/getloadavg.c
61199         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
61200         Undef `sys' after including sys/table.h, for Tru64 4.0D.
61201
61202         * tests/test-i-ring.c: Work for C89.
61203
61204 2007-10-22  Bruno Haible  <bruno@clisp.org>
61205
61206         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
61207         -1u, in preprocessor expression, so that we don't test for the bug
61208         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
61209         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
61210
61211 2007-10-22  Eric Blake  <ebb9@byu.net>
61212
61213         * tests/test-yesno.sh: Silence stderr during test.
61214
61215 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61216
61217         * modules/crypto/gc-camellia: New file.
61218
61219         * m4/gc-camellia.m4: New file.
61220
61221         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
61222
61223         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
61224
61225 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61226
61227         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
61228         --help to stdout.  Reported by sms@antinode.org (Steven
61229         M. Schweda).
61230
61231 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61232
61233         * users.txt: Fix link to libksba.
61234
61235 2007-10-21  Ben Pfaff  <blp@gnu.org>
61236
61237         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
61238         round.c roundf implementation that depends on floorf and ceilf to
61239         be tested unconditionally.
61240
61241 2007-10-21  Ben Pfaff  <blp@gnu.org>
61242
61243         * m4/check-libm-func.m4: Removed.
61244         * m4/check-math-lib.m4: New file.
61245         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
61246         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
61247         definition and lack of AC_LIBOBJ([roundf]).
61248         * m4/roundl.m4: Ditto, and similarly for roundl.
61249         * modules/round: Reference new m4 file.
61250         * modules/roundf: Ditto.
61251         * modules/roundl: Ditto.
61252         * tests/test-round2.c (main): Use ROUND instead of round.
61253         Bug report from Bruno Haible.
61254
61255 2007-10-21  Bruno Haible  <bruno@clisp.org>
61256
61257         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
61258         context.
61259
61260 2007-10-21  Bruno Haible  <bruno@clisp.org>
61261
61262         * tests/test-wcwidth.c (main): Allow negative result for some control
61263         characters.
61264
61265         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
61266         Needed on OSF/1 5.1.
61267
61268 2007-10-21  Bruno Haible  <bruno@clisp.org>
61269
61270         * tests/test-floorf1.c: Include isnanf.h.
61271         (main): Use isnanf() instead of isnan().
61272         * tests/test-ceilf1.c: Include isnanf.h.
61273         (main): Use isnanf() instead of isnan().
61274         * tests/test-truncf1.c: Include isnanf.h.
61275         (main): Use isnanf() instead of isnan().
61276         * tests/test-roundf1.c: Include isnanf.h.
61277         (main): Use isnanf() instead of isnan().
61278
61279 2007-10-21  Eric Blake  <ebb9@byu.net>
61280
61281         * users.txt: Update URL for m4.
61282
61283 2007-10-21  Bruno Haible  <bruno@clisp.org>
61284
61285         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
61286
61287 2007-10-21  Bruno Haible  <bruno@clisp.org>
61288
61289         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
61290         Git's management files if the CVS files are not present.
61291
61292 2007-10-20  Bruno Haible  <bruno@clisp.org>
61293
61294         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
61295         gcc-3.4.x.
61296
61297 2007-10-20  Ben Pfaff  <blp@gnu.org>
61298
61299         * lib/math.in.h: Declare round, roundf, roundl if we are providing
61300         implementations.
61301         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
61302         * lib/round.c: New file.
61303         * lib/roundf.c: New file.
61304         * lib/roundl.c: New file.
61305         * m4/round.m4: New file.
61306         * m4/roundf.m4: New file.
61307         * m4/roundl.m4: New file.
61308         * m4/check-libm-func-m4: New file.
61309         * modules/math: Replace round, roundf, roundl related @VARS@ in
61310         math.in.h.
61311         * modules/round: New file.
61312         * modules/round-tests: New file.
61313         * modules/roundf: New file.
61314         * modules/roundf-tests: New file.
61315         * modules/roundl: New file.
61316         * modules/roundl-tests: New file.
61317         * tests/test-round1.c: New file.
61318         * tests/test-round2.c: New file.
61319         * tests/test-roundf1.c: New file.
61320         * tests/test-roundf2.c: New file.
61321         * tests/test-roundl.c: New file.
61322         * doc/functions/round.texi: Mention round module.
61323         * doc/functions/roundf.texi: Mention roundf module.
61324         * doc/functions/roundl.texi: Mention roundl module.
61325         * MODULES.html.sh: Mention new modules.
61326         Thanks to Bruno Haible for suggestions.
61327
61328 2007-10-20  Jim Meyering  <meyering@redhat.com>
61329
61330         * lib/xprintf.c: Include <config.h> unconditionally.
61331
61332         Change xprintf's license to GPL.
61333         * modules/xprintf (License): s/LGPL/GPL/, since this module
61334         depends on modules (exit and exitfail) which are GPL.
61335         Suggestion from Bruno Haible.
61336
61337         xprintf fixes.
61338         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
61339         Use a clearer diagnostic.
61340         Patch from Bruno Haible.
61341
61342 2007-10-20  Bruno Haible  <bruno@clisp.org>
61343
61344         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
61345         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
61346         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61347
61348 2007-10-20  Bruno Haible  <bruno@clisp.org>
61349
61350         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
61351         precision in the comparison result > x - 1 or similar.
61352         * tests/test-ceilf2.c (correct_result_p): Likewise.
61353         * tests/test-truncf2.c (correct_result_p): Likewise.
61354         * tests/test-trunc2.c (correct_result_p): Likewise.
61355         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61356
61357 2007-10-20  Bruno Haible  <bruno@clisp.org>
61358
61359         * modules/ceil: New file.
61360         * m4/ceil.m4: New file.
61361         * doc/functions/ceil.texi: Mention the 'ceil' module.
61362
61363 2007-10-20  Bruno Haible  <bruno@clisp.org>
61364
61365         * modules/floor: New file.
61366         * m4/floor.m4: New file.
61367         * doc/functions/floor.texi: Mention the 'floor' module.
61368
61369 2007-10-20  Bruno Haible  <bruno@clisp.org>
61370
61371         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
61372         of %a.
61373         * modules/floorf-tests (Depends-on): Likewise.
61374         * modules/truncf-tests (Depends-on): Likewise.
61375         * modules/trunc-tests (Depends-on): Likewise.
61376         Reported by Ben Pfaff.
61377
61378 2007-10-19  Jim Meyering  <meyering@redhat.com>
61379
61380         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
61381         Don't bother testing specific errno values.  Just test ferror.
61382
61383         New module: xprintf
61384         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
61385
61386 2007-10-19  Bruno Haible  <bruno@clisp.org>
61387
61388         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
61389         syntax.
61390         * modules/javaexec (Makefile.am): Likewise.
61391         * modules/relocatable-prog (Makefile.am): Likewise.
61392         Suggested by Jim Meyering.
61393
61394 2007-10-18  Bruno Haible  <bruno@clisp.org>
61395
61396         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
61397         Reported by Jim Meyering.
61398
61399 2007-10-18  Eric Blake  <ebb9@byu.net>
61400
61401         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
61402
61403 2007-10-18  Bruno Haible  <bruno@clisp.org>
61404
61405         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
61406         the format string into writable memory. Needed in Fortify conditions.
61407
61408 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
61409             Bruno Haible  <bruno@clisp.org>
61410
61411         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
61412         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
61413         * modules/trim (Depends-on): Add mbchar.
61414         (configure.ac): Add gl_FUNC_MBRTOWC.
61415         (Makefile.am): Augment lib_SOURCES.
61416
61417 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61418
61419         Modify glob.c to use fstatat and dirfd, to simplify it.
61420         Suggested by Eric Blake.
61421         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
61422         Don't include <stdbool.h>; not used.
61423         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
61424         (link_exists_p): Simplify implementation, since we can now assume
61425         dirfd and fstatat.
61426         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
61427
61428 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61429
61430         * gnulib-tool (func_get_dependencies): Fix sed script to
61431         match only tests.
61432
61433 2007-10-17  Bruno Haible  <bruno@clisp.org>
61434
61435         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
61436         allow locale names without encoding suffix.
61437         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61438         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61439
61440 2007-10-16  Bruno Haible  <bruno@clisp.org>
61441
61442         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
61443         * lib/getgroups.c (getgroups): Likewise.
61444         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
61445
61446 2007-10-16  Bruno Haible  <bruno@clisp.org>
61447
61448         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
61449         * modules/malloc-posix (License): Likewise.
61450         * modules/realloc-posix (License): Likewise.
61451         * modules/calloc-posix (License): Likewise.
61452         * modules/intprops (License): Change from GPL to LGPL, with
61453         Paul Eggert's approval.
61454
61455 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61456
61457         Merge glibc changes into lib/glob.c.
61458
61459         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
61460         2007-10-15 04:59:03 UTC.  Here are the changes:
61461
61462         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
61463
61464         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
61465
61466         * lib/glob.c: Add some branch prediction throughout.
61467
61468         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
61469
61470         [BZ #5103]
61471         * lib/glob.c (glob): Recognize patterns starting \/.
61472
61473         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
61474
61475         [BZ #3996]
61476         * lib/glob.c (attribute_hidden): Define if not defined.
61477         (glob): Unescape dirname, filename or username when needed and not
61478         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
61479         is NULL.  Handle unescaped [ in pattern without closing ].
61480         Don't pass GLOB_CHECK down to recursive glob for directories.
61481         (__glob_pattern_type): New function.
61482         (__glob_pattern_p): Implement using __glob_pattern_type.
61483         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
61484         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
61485         Remove unreachable code.
61486
61487         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
61488
61489         * lib/glob.c (glob_in_dir): Add some comments and asserts to
61490         explain why there are no leaks.
61491
61492         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
61493
61494         [BZ #3253]
61495         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
61496         time, rather allocate increasingly bigger arrays of pointers, if
61497         possible with alloca, if too large with malloc.
61498
61499 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61500
61501         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
61502         Problem reported by H.Merijn Brand in
61503         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
61504         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
61505         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61506
61507 2007-10-15  Bruno Haible  <bruno@clisp.org>
61508
61509         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
61510         with explicit rpl_ prefix.
61511         * lib/fopen.c (fopen): Likewise.
61512         * lib/freopen.c (freopen): Likewise.
61513         * lib/iconv.c (iconv): Likewise.
61514         * lib/iconv_close.c (iconv_close): Likewise.
61515
61516 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61517
61518         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
61519
61520 2007-10-15  Bruno Haible  <bruno@clisp.org>
61521
61522         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
61523         <stddef.h> instead of <stdlib.h> since we only need NULL.
61524         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61525
61526 2007-10-15  Bruno Haible  <bruno@clisp.org>
61527
61528         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
61529         Replace paragraph talking about LIBOBJS.
61530         Reported by Colin Watson <cjwatson@debian.org>.
61531
61532 2007-10-15  Bruno Haible  <bruno@clisp.org>
61533
61534         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
61535         <stdlib.h> before using NULL.
61536
61537 2007-10-15  Simon Josefsson  <simon@josefsson.org>
61538
61539         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
61540         Reported by Albert Chin <china@thewrittenword.com>.
61541
61542 2007-10-14  Bruno Haible  <bruno@clisp.org>
61543
61544         * modules/iconv_open-utf-tests: New file.
61545         * tests/test-iconv-utf.c: New file.
61546
61547         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
61548         * modules/iconv_open-utf: New file.
61549         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
61550         (iconv, iconv_close): New declarations.
61551         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
61552         be defined.
61553         (iconv_open): Add special handling of conversion between UTF-8 and
61554         UTF-{16,32}{BE,LE}.
61555         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
61556         * lib/iconv_close.c: New file.
61557         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61558         gl_FUNC_ICONV_OPEN.
61559         (gl_FUNC_ICONV_OPEN): Use it.
61560         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61561         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61562         and REPLACE_ICONV_UTF.
61563         * modules/iconv_open (Depends-on): Add c-strcase.
61564         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61565         ICONV_CONST.
61566         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61567
61568 2007-10-13  Albert Chin  <china@thewrittenword.com>
61569             Bruno Haible  <bruno@clisp.org>
61570
61571         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61572         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61573
61574 2007-10-13  Bruno Haible  <bruno@clisp.org>
61575
61576         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61577         defined, use the ISO C99 inline semantics.
61578         * lib/argp.h (ARGP_EI): Likewise.
61579
61580 2007-10-13  Bruno Haible  <bruno@clisp.org>
61581
61582         Handle 'inline' change in gcc 4.3.0.
61583         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61584         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61585         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61586         argp_fmtstream_point): Disable 'extern' declaration if the function
61587         definition is going to be provided inline.
61588         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61589         semantics, not the ISO C99 inline semantics.
61590         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61591         'extern' declaration if the function definition is going to be provided
61592         inline.
61593         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61594         the GNU C inline semantics, not the ISO C99 inline semantics. With
61595         GCC 4.2, avoid a warning.
61596
61597 2007-10-13  Bruno Haible  <bruno@clisp.org>
61598
61599         * lib/freading.h (freading): Enable the use of __freading for
61600         glibc >= 2.7.
61601         * lib/freading.c (freading): Likewise.
61602
61603 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61604
61605         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61606         "warning: C99 inline functions are not supported; using GNU89".
61607
61608 2007-10-12  Bruno Haible  <bruno@clisp.org>
61609
61610         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61611         of 2.
61612         * tests/test-ceilf2.c: New file.
61613         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61614
61615         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61616         * modules/ceilf-tests: Update.
61617
61618 2007-10-12  Bruno Haible  <bruno@clisp.org>
61619
61620         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61621         of 2.
61622         * tests/test-floorf2.c: New file.
61623         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61624
61625         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61626         * modules/floorf-tests: Update.
61627
61628 2007-10-12  Bruno Haible  <bruno@clisp.org>
61629
61630         * tests/test-trunc2.c: New file.
61631         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61632
61633         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61634         * modules/trunc-tests: Update.
61635
61636 2007-10-12  Bruno Haible  <bruno@clisp.org>
61637
61638         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61639         of 2.
61640         * tests/test-truncf2.c: New file.
61641         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61642
61643         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61644         * modules/truncf-tests: Update.
61645
61646 2007-10-11  Eric Blake  <ebb9@byu.net>
61647
61648         Don't claim strerror is broken on Interix.
61649         * doc/functions/strerror.texi (strerror): Known broken systems are
61650         now Solaris 8, and not Interix.
61651         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61652         Interix on cross-compile.
61653         Reported by Martin Koeppe in
61654         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61655
61656 2007-10-11  Bruno Haible  <bruno@clisp.org>
61657
61658         * modules/i-ring-tests: New file.
61659         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61660         instead of assert.
61661
61662 2007-10-11  Bruno Haible  <bruno@clisp.org>
61663
61664         * modules/filenamecat-tests: New file.
61665         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61666         * lib/filenamecat.c: Remove test code.
61667
61668 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61669
61670         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61671
61672         * lib/strerror.c: Include <string.h> always, to test interface,
61673         and to remove the need for the dummy.
61674         Include intprops.h to compute width instead of doing it ourselves
61675         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61676         (strerror): Define it to return NULL if there's no system strerror.
61677         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61678         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61679         ancient pre-strerror Unix systems well any more.  Saying "unknown
61680         system error" is enough.
61681         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61682         simpler strerror.c implementation.
61683         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61684         Simplify the tests to reflect the simpler strerror implementation.
61685         * modules/strerror (Depends-on): Add intprops.
61686
61687 2007-10-09  Eric Blake  <ebb9@byu.net>
61688
61689         Silence test-fpending.
61690         * modules/fpending-tests (Files): Add wrapper script.
61691         * tests/test-fpending.sh: New file.
61692
61693 2007-10-09  Bruno Haible  <bruno@clisp.org>
61694
61695         * MODULES.html.sh (func_module): Don't create a hyperlink for
61696         function names like 'printf_frexp'.
61697         (Misc): Add crc, memxor.
61698         (Characteristics of floating types): New section.
61699         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61700         isnanf-nolibm, signbit, trunc, truncf, truncl.
61701         (Enhancements for ISO C 99 functions): New subsection Input/output.
61702         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61703         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61704         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61705         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61706         (Enhancements for POSIX:2001 functions): Add chdir-long.
61707         (File system functions): Add areadlink, chdir-safer, read-file.
61708         Remove cycle-check.
61709         (File system as inode set): New section.
61710         (Date and time): Add gethrxtime.
61711         (Multithreading): Add openmp.
61712         (Internationalization functions): Add localename.
61713         (Unicode string functions): Add unistr/u*-mbsnlen.
61714         (Support for maintaining and releasing projects): Add git-version-gen.
61715         (Lone files): Remove directories.
61716
61717 2007-10-08  Ben Pfaff  <blp@gnu.org>
61718
61719         * lib/xmalloca.h: Fix typo in comment.
61720
61721 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61722
61723         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61724         when avoiding problems with integer overflow.  Use a portable test
61725         instead.
61726
61727 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61728
61729         * modules/dummy (License): Change to LGPLv2+.
61730         * modules/float (License): Likewise
61731         * modules/realloc (License): Likewise
61732         * modules/stdlib (License): Likewise
61733
61734 2007-10-07  Bruno Haible  <bruno@clisp.org>
61735
61736         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61737         * floor.c (TWO_MANT_DIG): Likewise.
61738         * ceil.c (TWO_MANT_DIG): Likewise.
61739         Reported by Ben Pfaff.
61740
61741 2007-10-07  Bruno Haible  <bruno@clisp.org>
61742
61743         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61744         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61745         * lib/frexp.c (FUNC): Likewise.
61746         * lib/printf-frexp.h (printf_frexp): Likewise.
61747         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61748         * lib/printf-frexp.c (FUNC): Likewise.
61749         Suggested by Jim Meyering.
61750
61751 2007-10-07  Jim Meyering  <meyering@redhat.com>
61752
61753         Make xnanosleep's integer overflow test more robust.
61754         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61755         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61756
61757 2007-10-07  Bruno Haible  <bruno@clisp.org>
61758
61759         * NEWS: Mention the license change.
61760
61761         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61762         abbreviations in the modules files.
61763
61764         Change copyright notice from GPLv2+ to GPLv3+.
61765         * README: Change copyright notice.
61766         * MODULES.html.sh: Likewise.
61767         * build-aux/bootstrap.conf: Likewise.
61768         * build-aux/config.libpath: Likewise.
61769         * build-aux/csharpcomp.sh.in: Likewise.
61770         * build-aux/csharpexec.sh.in: Likewise.
61771         * build-aux/install-reloc: Likewise.
61772         * build-aux/javacomp.sh.in: Likewise.
61773         * build-aux/javaexec.sh.in: Likewise.
61774         * build-aux/ldd.sh.in: Likewise.
61775         * build-aux/reloc-ldflags: Likewise.
61776         * build-aux/relocatable.sh.in: Likewise.
61777         * build-aux/x-to-1.in: Likewise.
61778         * check-module: Likewise.
61779         * config/srclistvars.sh: Likewise.
61780         * gnulib-tool: Likewise.
61781         * lib/acl-internal.h: Likewise.
61782         * lib/acl.c: Likewise.
61783         * lib/acl.h: Likewise.
61784         * lib/acl_entries.c: Likewise.
61785         * lib/areadlink-with-size.c: Likewise.
61786         * lib/areadlink.c: Likewise.
61787         * lib/areadlink.h: Likewise.
61788         * lib/argmatch.c: Likewise.
61789         * lib/argmatch.h: Likewise.
61790         * lib/argp-ba.c: Likewise.
61791         * lib/argp-eexst.c: Likewise.
61792         * lib/argp-fmtstream.c: Likewise.
61793         * lib/argp-fmtstream.h: Likewise.
61794         * lib/argp-fs-xinl.c: Likewise.
61795         * lib/argp-help.c: Likewise.
61796         * lib/argp-namefrob.h: Likewise.
61797         * lib/argp-parse.c: Likewise.
61798         * lib/argp-pin.c: Likewise.
61799         * lib/argp-pv.c: Likewise.
61800         * lib/argp-pvh.c: Likewise.
61801         * lib/argp-xinl.c: Likewise.
61802         * lib/argp.h: Likewise.
61803         * lib/at-func.c: Likewise.
61804         * lib/atanl.c: Likewise.
61805         * lib/backupfile.c: Likewise.
61806         * lib/backupfile.h: Likewise.
61807         * lib/basename.c: Likewise.
61808         * lib/binary-io.h: Likewise.
61809         * lib/byteswap.in.h: Likewise.
61810         * lib/c-stack.c: Likewise.
61811         * lib/c-stack.h: Likewise.
61812         * lib/c-strcasestr.c: Likewise.
61813         * lib/c-strcasestr.h: Likewise.
61814         * lib/c-strstr.c: Likewise.
61815         * lib/c-strstr.h: Likewise.
61816         * lib/c-strtod.c: Likewise.
61817         * lib/calloc.c: Likewise.
61818         * lib/canon-host.c: Likewise.
61819         * lib/canon-host.h: Likewise.
61820         * lib/canonicalize-lgpl.c: Likewise.
61821         * lib/canonicalize.c: Likewise.
61822         * lib/canonicalize.h: Likewise.
61823         * lib/ceil.c: Likewise.
61824         * lib/ceilf.c: Likewise.
61825         * lib/ceill.c: Likewise.
61826         * lib/chdir-long.c: Likewise.
61827         * lib/chdir-long.h: Likewise.
61828         * lib/chdir-safer.c: Likewise.
61829         * lib/chdir-safer.h: Likewise.
61830         * lib/chown.c: Likewise.
61831         * lib/classpath.c: Likewise.
61832         * lib/classpath.h: Likewise.
61833         * lib/clean-temp.c: Likewise.
61834         * lib/clean-temp.h: Likewise.
61835         * lib/cloexec.c: Likewise.
61836         * lib/close-stream.c: Likewise.
61837         * lib/closein.c: Likewise.
61838         * lib/closein.h: Likewise.
61839         * lib/closeout.c: Likewise.
61840         * lib/closeout.h: Likewise.
61841         * lib/concat-filename.c: Likewise.
61842         * lib/copy-file.c: Likewise.
61843         * lib/copy-file.h: Likewise.
61844         * lib/count-one-bits.h: Likewise.
61845         * lib/crc.c: Likewise.
61846         * lib/crc.h: Likewise.
61847         * lib/creat-safer.c: Likewise.
61848         * lib/csharpcomp.c: Likewise.
61849         * lib/csharpcomp.h: Likewise.
61850         * lib/csharpexec.c: Likewise.
61851         * lib/csharpexec.h: Likewise.
61852         * lib/cycle-check.c: Likewise.
61853         * lib/cycle-check.h: Likewise.
61854         * lib/diacrit.c: Likewise.
61855         * lib/diacrit.h: Likewise.
61856         * lib/diffseq.h: Likewise.
61857         * lib/dirchownmod.c: Likewise.
61858         * lib/dirent.in.h: Likewise.
61859         * lib/dirfd.c: Likewise.
61860         * lib/dirfd.h: Likewise.
61861         * lib/dirname.c: Likewise.
61862         * lib/dirname.h: Likewise.
61863         * lib/dummy.c: Likewise.
61864         * lib/dup-safer.c: Likewise.
61865         * lib/dup2.c: Likewise.
61866         * lib/eealloc.h: Likewise.
61867         * lib/error.c: Likewise.
61868         * lib/error.h: Likewise.
61869         * lib/euidaccess.c: Likewise.
61870         * lib/exclude.c: Likewise.
61871         * lib/exclude.h: Likewise.
61872         * lib/execute.c: Likewise.
61873         * lib/execute.h: Likewise.
61874         * lib/exitfail.c: Likewise.
61875         * lib/exitfail.h: Likewise.
61876         * lib/expl.c: Likewise.
61877         * lib/fatal-signal.c: Likewise.
61878         * lib/fatal-signal.h: Likewise.
61879         * lib/fbufmode.c: Likewise.
61880         * lib/fbufmode.h: Likewise.
61881         * lib/fchdir.c: Likewise.
61882         * lib/fchmodat.c: Likewise.
61883         * lib/fchownat.c: Likewise.
61884         * lib/fcntl--.h: Likewise.
61885         * lib/fcntl-safer.h: Likewise.
61886         * lib/fcntl.in.h: Likewise.
61887         * lib/fd-safer.c: Likewise.
61888         * lib/fflush.c: Likewise.
61889         * lib/file-has-acl.c: Likewise.
61890         * lib/file-set.c: Likewise.
61891         * lib/file-type.c: Likewise.
61892         * lib/file-type.h: Likewise.
61893         * lib/fileblocks.c: Likewise.
61894         * lib/filemode.c: Likewise.
61895         * lib/filemode.h: Likewise.
61896         * lib/filename.h: Likewise.
61897         * lib/filenamecat.c: Likewise.
61898         * lib/filenamecat.h: Likewise.
61899         * lib/findprog.c: Likewise.
61900         * lib/findprog.h: Likewise.
61901         * lib/float.in.h: Likewise.
61902         * lib/floor.c: Likewise.
61903         * lib/floorf.c: Likewise.
61904         * lib/floorl.c: Likewise.
61905         * lib/fopen-safer.c: Likewise.
61906         * lib/fopen.c: Likewise.
61907         * lib/fpending.c: Likewise.
61908         * lib/fpending.h: Likewise.
61909         * lib/fprintf.c: Likewise.
61910         * lib/fprintftime.h: Likewise.
61911         * lib/fpucw.h: Likewise.
61912         * lib/fpurge.c: Likewise.
61913         * lib/fpurge.h: Likewise.
61914         * lib/freadable.c: Likewise.
61915         * lib/freadable.h: Likewise.
61916         * lib/freadahead.c: Likewise.
61917         * lib/freadahead.h: Likewise.
61918         * lib/freading.c: Likewise.
61919         * lib/freading.h: Likewise.
61920         * lib/free.c: Likewise.
61921         * lib/freopen.c: Likewise.
61922         * lib/frexp.c: Likewise.
61923         * lib/frexpl.c: Likewise.
61924         * lib/fseek.c: Likewise.
61925         * lib/fseterr.c: Likewise.
61926         * lib/fseterr.h: Likewise.
61927         * lib/fstatat.c: Likewise.
61928         * lib/fstrcmp.c: Likewise.
61929         * lib/fstrcmp.h: Likewise.
61930         * lib/fsusage.c: Likewise.
61931         * lib/fsusage.h: Likewise.
61932         * lib/ftell.c: Likewise.
61933         * lib/ftello.c: Likewise.
61934         * lib/fts-cycle.c: Likewise.
61935         * lib/fts.c: Likewise.
61936         * lib/fts_.h: Likewise.
61937         * lib/full-read.c: Likewise.
61938         * lib/full-read.h: Likewise.
61939         * lib/full-write.c: Likewise.
61940         * lib/full-write.h: Likewise.
61941         * lib/fwritable.c: Likewise.
61942         * lib/fwritable.h: Likewise.
61943         * lib/fwriteerror.c: Likewise.
61944         * lib/fwriteerror.h: Likewise.
61945         * lib/fwriting.c: Likewise.
61946         * lib/fwriting.h: Likewise.
61947         * lib/gcd.c: Likewise.
61948         * lib/gcd.h: Likewise.
61949         * lib/getcwd.c: Likewise.
61950         * lib/getdate.h: Likewise.
61951         * lib/getdate.y: Likewise.
61952         * lib/getdomainname.c: Likewise.
61953         * lib/getdomainname.h: Likewise.
61954         * lib/getgroups.c: Likewise.
61955         * lib/gethostname.c: Likewise.
61956         * lib/gethrxtime.c: Likewise.
61957         * lib/gethrxtime.h: Likewise.
61958         * lib/getloadavg.c: Likewise.
61959         * lib/getndelim2.c: Likewise.
61960         * lib/getndelim2.h: Likewise.
61961         * lib/getnline.c: Likewise.
61962         * lib/getnline.h: Likewise.
61963         * lib/getopt.c: Likewise.
61964         * lib/getopt.in.h: Likewise.
61965         * lib/getopt1.c: Likewise.
61966         * lib/getopt_int.h: Likewise.
61967         * lib/getpagesize.h: Likewise.
61968         * lib/getsubopt.c: Likewise.
61969         * lib/gettime.c: Likewise.
61970         * lib/getugroups.c: Likewise.
61971         * lib/getugroups.h: Likewise.
61972         * lib/getusershell.c: Likewise.
61973         * lib/gl_anyavltree_list1.h: Likewise.
61974         * lib/gl_anyavltree_list2.h: Likewise.
61975         * lib/gl_anyhash_list1.h: Likewise.
61976         * lib/gl_anyhash_list2.h: Likewise.
61977         * lib/gl_anylinked_list1.h: Likewise.
61978         * lib/gl_anylinked_list2.h: Likewise.
61979         * lib/gl_anyrbtree_list1.h: Likewise.
61980         * lib/gl_anyrbtree_list2.h: Likewise.
61981         * lib/gl_anytree_list1.h: Likewise.
61982         * lib/gl_anytree_list2.h: Likewise.
61983         * lib/gl_anytree_oset.h: Likewise.
61984         * lib/gl_anytreehash_list1.h: Likewise.
61985         * lib/gl_anytreehash_list2.h: Likewise.
61986         * lib/gl_array_list.c: Likewise.
61987         * lib/gl_array_list.h: Likewise.
61988         * lib/gl_array_oset.c: Likewise.
61989         * lib/gl_array_oset.h: Likewise.
61990         * lib/gl_avltree_list.c: Likewise.
61991         * lib/gl_avltree_list.h: Likewise.
61992         * lib/gl_avltree_oset.c: Likewise.
61993         * lib/gl_avltree_oset.h: Likewise.
61994         * lib/gl_avltreehash_list.c: Likewise.
61995         * lib/gl_avltreehash_list.h: Likewise.
61996         * lib/gl_carray_list.c: Likewise.
61997         * lib/gl_carray_list.h: Likewise.
61998         * lib/gl_linked_list.c: Likewise.
61999         * lib/gl_linked_list.h: Likewise.
62000         * lib/gl_linkedhash_list.c: Likewise.
62001         * lib/gl_linkedhash_list.h: Likewise.
62002         * lib/gl_list.c: Likewise.
62003         * lib/gl_list.h: Likewise.
62004         * lib/gl_oset.c: Likewise.
62005         * lib/gl_oset.h: Likewise.
62006         * lib/gl_rbtree_list.c: Likewise.
62007         * lib/gl_rbtree_list.h: Likewise.
62008         * lib/gl_rbtree_oset.c: Likewise.
62009         * lib/gl_rbtree_oset.h: Likewise.
62010         * lib/gl_rbtreehash_list.c: Likewise.
62011         * lib/gl_rbtreehash_list.h: Likewise.
62012         * lib/gl_sublist.c: Likewise.
62013         * lib/gl_sublist.h: Likewise.
62014         * lib/group-member.c: Likewise.
62015         * lib/group-member.h: Likewise.
62016         * lib/hard-locale.c: Likewise.
62017         * lib/hard-locale.h: Likewise.
62018         * lib/hash-pjw.c: Likewise.
62019         * lib/hash-pjw.h: Likewise.
62020         * lib/hash-triple.c: Likewise.
62021         * lib/hash.c: Likewise.
62022         * lib/hash.h: Likewise.
62023         * lib/human.c: Likewise.
62024         * lib/human.h: Likewise.
62025         * lib/i-ring.c: Likewise.
62026         * lib/i-ring.h: Likewise.
62027         * lib/idcache.c: Likewise.
62028         * lib/imaxabs.c: Likewise.
62029         * lib/imaxdiv.c: Likewise.
62030         * lib/inet_pton.c: Likewise.
62031         * lib/inet_pton.h: Likewise.
62032         * lib/intprops.h: Likewise.
62033         * lib/inttostr.c: Likewise.
62034         * lib/inttostr.h: Likewise.
62035         * lib/inttypes.in.h: Likewise.
62036         * lib/isapipe.c: Likewise.
62037         * lib/isdir.c: Likewise.
62038         * lib/isnan.c: Likewise.
62039         * lib/isnan.h: Likewise.
62040         * lib/isnanf.c: Likewise.
62041         * lib/isnanf.h: Likewise.
62042         * lib/isnanl-nolibm.h: Likewise.
62043         * lib/isnanl.c: Likewise.
62044         * lib/isnanl.h: Likewise.
62045         * lib/javacomp.c: Likewise.
62046         * lib/javacomp.h: Likewise.
62047         * lib/javaexec.c: Likewise.
62048         * lib/javaexec.h: Likewise.
62049         * lib/javaversion.c: Likewise.
62050         * lib/javaversion.h: Likewise.
62051         * lib/javaversion.java: Likewise.
62052         * lib/lbrkprop.h: Likewise.
62053         * lib/lchmod.h: Likewise.
62054         * lib/lchown.c: Likewise.
62055         * lib/ldexpl.c: Likewise.
62056         * lib/linebreak.c: Likewise.
62057         * lib/linebreak.h: Likewise.
62058         * lib/linebuffer.c: Likewise.
62059         * lib/linebuffer.h: Likewise.
62060         * lib/locale.in.h: Likewise.
62061         * lib/logl.c: Likewise.
62062         * lib/long-options.c: Likewise.
62063         * lib/long-options.h: Likewise.
62064         * lib/lstat.c: Likewise.
62065         * lib/lstat.h: Likewise.
62066         * lib/math.in.h: Likewise.
62067         * lib/mbchar.c: Likewise.
62068         * lib/mbchar.h: Likewise.
62069         * lib/mbfile.h: Likewise.
62070         * lib/mbiter.h: Likewise.
62071         * lib/mbscasecmp.c: Likewise.
62072         * lib/mbscasestr.c: Likewise.
62073         * lib/mbschr.c: Likewise.
62074         * lib/mbscspn.c: Likewise.
62075         * lib/mbslen.c: Likewise.
62076         * lib/mbsncasecmp.c: Likewise.
62077         * lib/mbsnlen.c: Likewise.
62078         * lib/mbspbrk.c: Likewise.
62079         * lib/mbspcasecmp.c: Likewise.
62080         * lib/mbsrchr.c: Likewise.
62081         * lib/mbssep.c: Likewise.
62082         * lib/mbsspn.c: Likewise.
62083         * lib/mbsstr.c: Likewise.
62084         * lib/mbstok_r.c: Likewise.
62085         * lib/mbswidth.c: Likewise.
62086         * lib/mbswidth.h: Likewise.
62087         * lib/mbuiter.h: Likewise.
62088         * lib/memcasecmp.c: Likewise.
62089         * lib/memcasecmp.h: Likewise.
62090         * lib/memchr.c: Likewise.
62091         * lib/memcmp.c: Likewise.
62092         * lib/memcoll.c: Likewise.
62093         * lib/memcoll.h: Likewise.
62094         * lib/memcpy.c: Likewise.
62095         * lib/memrchr.c: Likewise.
62096         * lib/mkancesdirs.c: Likewise.
62097         * lib/mkdir-p.c: Likewise.
62098         * lib/mkdir-p.h: Likewise.
62099         * lib/mkdir.c: Likewise.
62100         * lib/mkdirat.c: Likewise.
62101         * lib/mkdtemp.c: Likewise.
62102         * lib/mkstemp-safer.c: Likewise.
62103         * lib/mkstemp.c: Likewise.
62104         * lib/modechange.c: Likewise.
62105         * lib/modechange.h: Likewise.
62106         * lib/mountlist.c: Likewise.
62107         * lib/mountlist.h: Likewise.
62108         * lib/mpsort.c: Likewise.
62109         * lib/nanosleep.c: Likewise.
62110         * lib/obstack.c: Likewise.
62111         * lib/obstack.h: Likewise.
62112         * lib/open-safer.c: Likewise.
62113         * lib/open.c: Likewise.
62114         * lib/openat-die.c: Likewise.
62115         * lib/openat-priv.h: Likewise.
62116         * lib/openat-proc.c: Likewise.
62117         * lib/openat.c: Likewise.
62118         * lib/openat.h: Likewise.
62119         * lib/pagealign_alloc.c: Likewise.
62120         * lib/pagealign_alloc.h: Likewise.
62121         * lib/physmem.c: Likewise.
62122         * lib/physmem.h: Likewise.
62123         * lib/pipe-safer.c: Likewise.
62124         * lib/pipe.c: Likewise.
62125         * lib/pipe.h: Likewise.
62126         * lib/posixtm.c: Likewise.
62127         * lib/posixtm.h: Likewise.
62128         * lib/posixver.c: Likewise.
62129         * lib/printf-frexp.c: Likewise.
62130         * lib/printf-frexp.h: Likewise.
62131         * lib/printf-frexpl.c: Likewise.
62132         * lib/printf-frexpl.h: Likewise.
62133         * lib/printf.c: Likewise.
62134         * lib/progname.c: Likewise.
62135         * lib/progname.h: Likewise.
62136         * lib/progreloc.c: Likewise.
62137         * lib/putenv.c: Likewise.
62138         * lib/quote.c: Likewise.
62139         * lib/quote.h: Likewise.
62140         * lib/quotearg.c: Likewise.
62141         * lib/quotearg.h: Likewise.
62142         * lib/raise.c: Likewise.
62143         * lib/readline.c: Likewise.
62144         * lib/readline.h: Likewise.
62145         * lib/readlink.c: Likewise.
62146         * lib/readtokens.c: Likewise.
62147         * lib/readtokens.h: Likewise.
62148         * lib/readtokens0.c: Likewise.
62149         * lib/readtokens0.h: Likewise.
62150         * lib/readutmp.c: Likewise.
62151         * lib/readutmp.h: Likewise.
62152         * lib/realloc.c: Likewise.
62153         * lib/relocwrapper.c: Likewise.
62154         * lib/rename-dest-slash.c: Likewise.
62155         * lib/rename.c: Likewise.
62156         * lib/rmdir.c: Likewise.
62157         * lib/rpmatch.c: Likewise.
62158         * lib/safe-read.c: Likewise.
62159         * lib/safe-read.h: Likewise.
62160         * lib/safe-write.c: Likewise.
62161         * lib/safe-write.h: Likewise.
62162         * lib/same-inode.h: Likewise.
62163         * lib/same.c: Likewise.
62164         * lib/same.h: Likewise.
62165         * lib/save-cwd.c: Likewise.
62166         * lib/save-cwd.h: Likewise.
62167         * lib/savedir.c: Likewise.
62168         * lib/savedir.h: Likewise.
62169         * lib/savewd.c: Likewise.
62170         * lib/savewd.h: Likewise.
62171         * lib/search.in.h: Likewise.
62172         * lib/setenv.c: Likewise.
62173         * lib/setenv.h: Likewise.
62174         * lib/settime.c: Likewise.
62175         * lib/sh-quote.c: Likewise.
62176         * lib/sh-quote.h: Likewise.
62177         * lib/sig2str.c: Likewise.
62178         * lib/sig2str.h: Likewise.
62179         * lib/signal.in.h: Likewise.
62180         * lib/signbitd.c: Likewise.
62181         * lib/signbitf.c: Likewise.
62182         * lib/signbitl.c: Likewise.
62183         * lib/sigprocmask.c: Likewise.
62184         * lib/sincosl.c: Likewise.
62185         * lib/sleep.c: Likewise.
62186         * lib/sprintf.c: Likewise.
62187         * lib/sqrtl.c: Likewise.
62188         * lib/stat-time.h: Likewise.
62189         * lib/stdio--.h: Likewise.
62190         * lib/stdio-safer.h: Likewise.
62191         * lib/stdlib--.h: Likewise.
62192         * lib/stdlib-safer.h: Likewise.
62193         * lib/stdlib.in.h: Likewise.
62194         * lib/stpcpy.c: Likewise.
62195         * lib/stpncpy.c: Likewise.
62196         * lib/strchrnul.c: Likewise.
62197         * lib/strcspn.c: Likewise.
62198         * lib/strerror.c: Likewise.
62199         * lib/strftime.c: Likewise.
62200         * lib/strftime.h: Likewise.
62201         * lib/striconveh.c: Likewise.
62202         * lib/striconveh.h: Likewise.
62203         * lib/striconveha.c: Likewise.
62204         * lib/striconveha.h: Likewise.
62205         * lib/stripslash.c: Likewise.
62206         * lib/strnlen1.c: Likewise.
62207         * lib/strnlen1.h: Likewise.
62208         * lib/strtod.c: Likewise.
62209         * lib/strtoimax.c: Likewise.
62210         * lib/strtok_r.c: Likewise.
62211         * lib/strtol.c: Likewise.
62212         * lib/strtoll.c: Likewise.
62213         * lib/strtoul.c: Likewise.
62214         * lib/strtoull.c: Likewise.
62215         * lib/sysexits.in.h: Likewise.
62216         * lib/tempname.c: Likewise.
62217         * lib/tempname.h: Likewise.
62218         * lib/timespec.h: Likewise.
62219         * lib/tls.c: Likewise.
62220         * lib/tls.h: Likewise.
62221         * lib/tmpdir.c: Likewise.
62222         * lib/tmpdir.h: Likewise.
62223         * lib/tmpfile-safer.c: Likewise.
62224         * lib/tmpfile.c: Likewise.
62225         * lib/trigl.c: Likewise.
62226         * lib/trigl.h: Likewise.
62227         * lib/trim.c: Likewise.
62228         * lib/trim.h: Likewise.
62229         * lib/trunc.c: Likewise.
62230         * lib/truncf.c: Likewise.
62231         * lib/truncl.c: Likewise.
62232         * lib/tsearch.c: Likewise.
62233         * lib/unicodeio.c: Likewise.
62234         * lib/unicodeio.h: Likewise.
62235         * lib/unistd--.h: Likewise.
62236         * lib/unistd-safer.h: Likewise.
62237         * lib/unistdio/ulc-fprintf.c: Likewise.
62238         * lib/unistdio/ulc-vfprintf.c: Likewise.
62239         * lib/unlinkdir.c: Likewise.
62240         * lib/unlinkdir.h: Likewise.
62241         * lib/unlocked-io.h: Likewise.
62242         * lib/unsetenv.c: Likewise.
62243         * lib/userspec.c: Likewise.
62244         * lib/utime.c: Likewise.
62245         * lib/utimecmp.c: Likewise.
62246         * lib/utimecmp.h: Likewise.
62247         * lib/utimens.c: Likewise.
62248         * lib/verify.h: Likewise.
62249         * lib/verror.c: Likewise.
62250         * lib/verror.h: Likewise.
62251         * lib/version-etc-fsf.c: Likewise.
62252         * lib/version-etc.c: Likewise.
62253         * lib/version-etc.h: Likewise.
62254         * lib/vfprintf.c: Likewise.
62255         * lib/vprintf.c: Likewise.
62256         * lib/vsprintf.c: Likewise.
62257         * lib/w32spawn.h: Likewise.
62258         * lib/wait-process.c: Likewise.
62259         * lib/wait-process.h: Likewise.
62260         * lib/wcwidth.c: Likewise.
62261         * lib/write-any-file.c: Likewise.
62262         * lib/xalloc-die.c: Likewise.
62263         * lib/xalloc.h: Likewise.
62264         * lib/xasprintf.c: Likewise.
62265         * lib/xgetcwd.c: Likewise.
62266         * lib/xgetcwd.h: Likewise.
62267         * lib/xgetdomainname.c: Likewise.
62268         * lib/xgetdomainname.h: Likewise.
62269         * lib/xgethostname.c: Likewise.
62270         * lib/xmalloc.c: Likewise.
62271         * lib/xmalloca.c: Likewise.
62272         * lib/xmalloca.h: Likewise.
62273         * lib/xmemcoll.c: Likewise.
62274         * lib/xnanosleep.c: Likewise.
62275         * lib/xreadlink.c: Likewise.
62276         * lib/xreadlink.h: Likewise.
62277         * lib/xsetenv.c: Likewise.
62278         * lib/xsetenv.h: Likewise.
62279         * lib/xstriconv.c: Likewise.
62280         * lib/xstriconv.h: Likewise.
62281         * lib/xstrndup.c: Likewise.
62282         * lib/xstrndup.h: Likewise.
62283         * lib/xstrtod.c: Likewise.
62284         * lib/xstrtod.h: Likewise.
62285         * lib/xstrtol-error.c: Likewise.
62286         * lib/xstrtol.c: Likewise.
62287         * lib/xstrtol.h: Likewise.
62288         * lib/xtime.h: Likewise.
62289         * lib/xvasprintf.c: Likewise.
62290         * lib/xvasprintf.h: Likewise.
62291         * lib/yesno.c: Likewise.
62292         * lib/yesno.h: Likewise.
62293         * posix-modules: Likewise.
62294         * tests/test-alloca-opt.c: Likewise.
62295         * tests/test-arcfour.c: Likewise.
62296         * tests/test-arctwo.c: Likewise.
62297         * tests/test-argmatch.c: Likewise.
62298         * tests/test-argp-2.sh: Likewise.
62299         * tests/test-argp.c: Likewise.
62300         * tests/test-arpa_inet.c: Likewise.
62301         * tests/test-array_list.c: Likewise.
62302         * tests/test-array_oset.c: Likewise.
62303         * tests/test-atexit.c: Likewise.
62304         * tests/test-avltree_list.c: Likewise.
62305         * tests/test-avltree_oset.c: Likewise.
62306         * tests/test-avltreehash_list.c: Likewise.
62307         * tests/test-base64.c: Likewise.
62308         * tests/test-binary-io.c: Likewise.
62309         * tests/test-byteswap.c: Likewise.
62310         * tests/test-c-ctype.c: Likewise.
62311         * tests/test-c-strcasecmp.c: Likewise.
62312         * tests/test-c-strcasestr.c: Likewise.
62313         * tests/test-c-strncasecmp.c: Likewise.
62314         * tests/test-c-strstr.c: Likewise.
62315         * tests/test-canonicalize-lgpl.c: Likewise.
62316         * tests/test-canonicalize.c: Likewise.
62317         * tests/test-carray_list.c: Likewise.
62318         * tests/test-ceilf.c: Likewise.
62319         * tests/test-ceill.c: Likewise.
62320         * tests/test-count-one-bits.c: Likewise.
62321         * tests/test-crc.c: Likewise.
62322         * tests/test-dirname.c: Likewise.
62323         * tests/test-fbufmode.c: Likewise.
62324         * tests/test-fcntl.c: Likewise.
62325         * tests/test-fflush.c: Likewise.
62326         * tests/test-floorf.c: Likewise.
62327         * tests/test-floorl.c: Likewise.
62328         * tests/test-fopen.c: Likewise.
62329         * tests/test-fprintf-posix.c: Likewise.
62330         * tests/test-fprintf-posix.h: Likewise.
62331         * tests/test-fpurge.c: Likewise.
62332         * tests/test-freadable.c: Likewise.
62333         * tests/test-freadahead.c: Likewise.
62334         * tests/test-freading.c: Likewise.
62335         * tests/test-freopen.c: Likewise.
62336         * tests/test-frexp.c: Likewise.
62337         * tests/test-frexpl.c: Likewise.
62338         * tests/test-fseek.c: Likewise.
62339         * tests/test-fseeko.c: Likewise.
62340         * tests/test-fseterr.c: Likewise.
62341         * tests/test-fstrcmp.c: Likewise.
62342         * tests/test-ftell.c: Likewise.
62343         * tests/test-ftello.c: Likewise.
62344         * tests/test-fwritable.c: Likewise.
62345         * tests/test-fwriting.c: Likewise.
62346         * tests/test-getaddrinfo.c: Likewise.
62347         * tests/test-getpass.c: Likewise.
62348         * tests/test-gettimeofday.c: Likewise.
62349         * tests/test-hmac-md5.c: Likewise.
62350         * tests/test-hmac-sha1.c: Likewise.
62351         * tests/test-iconv.c: Likewise.
62352         * tests/test-iconvme.c: Likewise.
62353         * tests/test-inttypes.c: Likewise.
62354         * tests/test-isnan.c: Likewise.
62355         * tests/test-isnanf.c: Likewise.
62356         * tests/test-isnanl-nolibm.c: Likewise.
62357         * tests/test-isnanl.c: Likewise.
62358         * tests/test-isnanl.h: Likewise.
62359         * tests/test-ldexpl.c: Likewise.
62360         * tests/test-linked_list.c: Likewise.
62361         * tests/test-linkedhash_list.c: Likewise.
62362         * tests/test-locale.c: Likewise.
62363         * tests/test-localename.c: Likewise.
62364         * tests/test-lock.c: Likewise.
62365         * tests/test-lseek.c: Likewise.
62366         * tests/test-malloca.c: Likewise.
62367         * tests/test-math.c: Likewise.
62368         * tests/test-mbscasecmp.c: Likewise.
62369         * tests/test-mbscasestr1.c: Likewise.
62370         * tests/test-mbscasestr2.c: Likewise.
62371         * tests/test-mbscasestr3.c: Likewise.
62372         * tests/test-mbscasestr4.c: Likewise.
62373         * tests/test-mbschr.c: Likewise.
62374         * tests/test-mbscspn.c: Likewise.
62375         * tests/test-mbsncasecmp.c: Likewise.
62376         * tests/test-mbspbrk.c: Likewise.
62377         * tests/test-mbspcasecmp.c: Likewise.
62378         * tests/test-mbsrchr.c: Likewise.
62379         * tests/test-mbsspn.c: Likewise.
62380         * tests/test-mbsstr1.c: Likewise.
62381         * tests/test-mbsstr2.c: Likewise.
62382         * tests/test-mbsstr3.c: Likewise.
62383         * tests/test-md5.c: Likewise.
62384         * tests/test-memmem.c: Likewise.
62385         * tests/test-netinet_in.c: Likewise.
62386         * tests/test-open.c: Likewise.
62387         * tests/test-printf-frexp.c: Likewise.
62388         * tests/test-printf-frexpl.c: Likewise.
62389         * tests/test-printf-posix.c: Likewise.
62390         * tests/test-printf-posix.h: Likewise.
62391         * tests/test-rbtree_list.c: Likewise.
62392         * tests/test-rbtree_oset.c: Likewise.
62393         * tests/test-rbtreehash_list.c: Likewise.
62394         * tests/test-read-file.c: Likewise.
62395         * tests/test-rijndael.c: Likewise.
62396         * tests/test-search.c: Likewise.
62397         * tests/test-signbit.c: Likewise.
62398         * tests/test-sleep.c: Likewise.
62399         * tests/test-snprintf-posix.c: Likewise.
62400         * tests/test-snprintf-posix.h: Likewise.
62401         * tests/test-snprintf.c: Likewise.
62402         * tests/test-sprintf-posix.c: Likewise.
62403         * tests/test-sprintf-posix.h: Likewise.
62404         * tests/test-stat-time.c: Likewise.
62405         * tests/test-stdbool.c: Likewise.
62406         * tests/test-stdint.c: Likewise.
62407         * tests/test-stdio.c: Likewise.
62408         * tests/test-stdlib.c: Likewise.
62409         * tests/test-stpncpy.c: Likewise.
62410         * tests/test-strcasestr.c: Likewise.
62411         * tests/test-striconv.c: Likewise.
62412         * tests/test-striconveh.c: Likewise.
62413         * tests/test-striconveha.c: Likewise.
62414         * tests/test-string.c: Likewise.
62415         * tests/test-sys_select.c: Likewise.
62416         * tests/test-sys_socket.c: Likewise.
62417         * tests/test-sys_stat.c: Likewise.
62418         * tests/test-sys_time.c: Likewise.
62419         * tests/test-sysexits.c: Likewise.
62420         * tests/test-time.c: Likewise.
62421         * tests/test-tls.c: Likewise.
62422         * tests/test-trunc.c: Likewise.
62423         * tests/test-truncf.c: Likewise.
62424         * tests/test-truncl.c: Likewise.
62425         * tests/test-unistd.c: Likewise.
62426         * tests/test-vasnprintf-posix.c: Likewise.
62427         * tests/test-vasnprintf-posix2.c: Likewise.
62428         * tests/test-vasnprintf.c: Likewise.
62429         * tests/test-vasprintf-posix.c: Likewise.
62430         * tests/test-vasprintf.c: Likewise.
62431         * tests/test-verify.c: Likewise.
62432         * tests/test-vfprintf-posix.c: Likewise.
62433         * tests/test-vprintf-posix.c: Likewise.
62434         * tests/test-vsnprintf-posix.c: Likewise.
62435         * tests/test-vsnprintf.c: Likewise.
62436         * tests/test-vsprintf-posix.c: Likewise.
62437         * tests/test-wchar.c: Likewise.
62438         * tests/test-wctype.c: Likewise.
62439         * tests/test-wcwidth.c: Likewise.
62440         * tests/test-xstrtol.c: Likewise.
62441         * tests/test-xvasprintf.c: Likewise.
62442         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
62443         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
62444         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62445         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62446         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62447         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
62448         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62449         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62450         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62451         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
62452         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62453         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62454         * tests/uniname/test-uninames.c: Likewise.
62455         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
62456         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
62457         * tests/unistdio/test-u16-printf1.h: Likewise.
62458         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
62459         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
62460         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
62461         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
62462         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
62463         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
62464         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
62465         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
62466         * tests/unistdio/test-u32-printf1.h: Likewise.
62467         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
62468         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
62469         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
62470         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
62471         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
62472         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
62473         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
62474         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
62475         * tests/unistdio/test-u8-printf1.h: Likewise.
62476         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
62477         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
62478         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
62479         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
62480         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
62481         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
62482         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
62483         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
62484         * tests/unistdio/test-ulc-printf1.h: Likewise.
62485         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
62486         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
62487         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
62488         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
62489         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
62490         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
62491         * tests/uniwidth/test-u16-strwidth.c: Likewise.
62492         * tests/uniwidth/test-u16-width.c: Likewise.
62493         * tests/uniwidth/test-u32-strwidth.c: Likewise.
62494         * tests/uniwidth/test-u32-width.c: Likewise.
62495         * tests/uniwidth/test-u8-strwidth.c: Likewise.
62496         * tests/uniwidth/test-u8-width.c: Likewise.
62497         * tests/uniwidth/test-uc_width.c: Likewise.
62498         * config/srclist-update: Likewise.
62499         (fixlicense): Update to GPLv3+.
62500
62501         Change copyright notice from LGPLv2.1+ to LGPLv3+.
62502         * tests/test-tsearch.c: Change copyright notice.
62503
62504         Change copyright notice from LGPLv2.0+ to LGPLv3+.
62505         * lib/c-strcaseeq.h: Change copyright notice.
62506         * lib/streq.h: Likewise.
62507         * lib/uniconv.h: Likewise.
62508         * lib/uniconv/u-conv-from-enc.h: Likewise.
62509         * lib/uniconv/u-conv-to-enc.h: Likewise.
62510         * lib/uniconv/u-strconv-from-enc.h: Likewise.
62511         * lib/uniconv/u-strconv-to-enc.h: Likewise.
62512         * lib/uniconv/u16-conv-from-enc.c: Likewise.
62513         * lib/uniconv/u16-conv-to-enc.c: Likewise.
62514         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
62515         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
62516         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
62517         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
62518         * lib/uniconv/u32-conv-from-enc.c: Likewise.
62519         * lib/uniconv/u32-conv-to-enc.c: Likewise.
62520         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
62521         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
62522         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
62523         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
62524         * lib/uniconv/u8-conv-from-enc.c: Likewise.
62525         * lib/uniconv/u8-conv-to-enc.c: Likewise.
62526         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
62527         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
62528         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
62529         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
62530         * lib/uniname.h: Likewise.
62531         * lib/uniname/uniname.c: Likewise.
62532         * lib/unistdio.h: Likewise.
62533         * lib/unistdio/u-asnprintf.h: Likewise.
62534         * lib/unistdio/u-asprintf.h: Likewise.
62535         * lib/unistdio/u-printf-args.c: Likewise.
62536         * lib/unistdio/u-printf-args.h: Likewise.
62537         * lib/unistdio/u-printf-parse.h: Likewise.
62538         * lib/unistdio/u-snprintf.h: Likewise.
62539         * lib/unistdio/u-sprintf.h: Likewise.
62540         * lib/unistdio/u-vasprintf.h: Likewise.
62541         * lib/unistdio/u-vsnprintf.h: Likewise.
62542         * lib/unistdio/u-vsprintf.h: Likewise.
62543         * lib/unistdio/u16-asnprintf.c: Likewise.
62544         * lib/unistdio/u16-asprintf.c: Likewise.
62545         * lib/unistdio/u16-printf-parse.c: Likewise.
62546         * lib/unistdio/u16-snprintf.c: Likewise.
62547         * lib/unistdio/u16-sprintf.c: Likewise.
62548         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
62549         * lib/unistdio/u16-u16-asprintf.c: Likewise.
62550         * lib/unistdio/u16-u16-snprintf.c: Likewise.
62551         * lib/unistdio/u16-u16-sprintf.c: Likewise.
62552         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
62553         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
62554         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
62555         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
62556         * lib/unistdio/u16-vasnprintf.c: Likewise.
62557         * lib/unistdio/u16-vasprintf.c: Likewise.
62558         * lib/unistdio/u16-vsnprintf.c: Likewise.
62559         * lib/unistdio/u16-vsprintf.c: Likewise.
62560         * lib/unistdio/u32-asnprintf.c: Likewise.
62561         * lib/unistdio/u32-asprintf.c: Likewise.
62562         * lib/unistdio/u32-printf-parse.c: Likewise.
62563         * lib/unistdio/u32-snprintf.c: Likewise.
62564         * lib/unistdio/u32-sprintf.c: Likewise.
62565         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62566         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62567         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62568         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62569         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62570         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62571         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62572         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62573         * lib/unistdio/u32-vasnprintf.c: Likewise.
62574         * lib/unistdio/u32-vasprintf.c: Likewise.
62575         * lib/unistdio/u32-vsnprintf.c: Likewise.
62576         * lib/unistdio/u32-vsprintf.c: Likewise.
62577         * lib/unistdio/u8-asnprintf.c: Likewise.
62578         * lib/unistdio/u8-asprintf.c: Likewise.
62579         * lib/unistdio/u8-printf-parse.c: Likewise.
62580         * lib/unistdio/u8-snprintf.c: Likewise.
62581         * lib/unistdio/u8-sprintf.c: Likewise.
62582         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62583         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62584         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62585         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62586         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62587         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62588         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62589         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62590         * lib/unistdio/u8-vasnprintf.c: Likewise.
62591         * lib/unistdio/u8-vasprintf.c: Likewise.
62592         * lib/unistdio/u8-vsnprintf.c: Likewise.
62593         * lib/unistdio/u8-vsprintf.c: Likewise.
62594         * lib/unistdio/ulc-asnprintf.c: Likewise.
62595         * lib/unistdio/ulc-asprintf.c: Likewise.
62596         * lib/unistdio/ulc-printf-parse.c: Likewise.
62597         * lib/unistdio/ulc-snprintf.c: Likewise.
62598         * lib/unistdio/ulc-sprintf.c: Likewise.
62599         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62600         * lib/unistdio/ulc-vasprintf.c: Likewise.
62601         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62602         * lib/unistdio/ulc-vsprintf.c: Likewise.
62603         * lib/unistr.h: Likewise.
62604         * lib/unistr/u-cpy-alloc.h: Likewise.
62605         * lib/unistr/u-cpy.h: Likewise.
62606         * lib/unistr/u-endswith.h: Likewise.
62607         * lib/unistr/u-move.h: Likewise.
62608         * lib/unistr/u-set.h: Likewise.
62609         * lib/unistr/u-startswith.h: Likewise.
62610         * lib/unistr/u-stpcpy.h: Likewise.
62611         * lib/unistr/u-stpncpy.h: Likewise.
62612         * lib/unistr/u-strcat.h: Likewise.
62613         * lib/unistr/u-strcpy.h: Likewise.
62614         * lib/unistr/u-strcspn.h: Likewise.
62615         * lib/unistr/u-strdup.h: Likewise.
62616         * lib/unistr/u-strlen.h: Likewise.
62617         * lib/unistr/u-strncat.h: Likewise.
62618         * lib/unistr/u-strncpy.h: Likewise.
62619         * lib/unistr/u-strnlen.h: Likewise.
62620         * lib/unistr/u-strpbrk.h: Likewise.
62621         * lib/unistr/u-strspn.h: Likewise.
62622         * lib/unistr/u-strstr.h: Likewise.
62623         * lib/unistr/u-strtok.h: Likewise.
62624         * lib/unistr/u16-check.c: Likewise.
62625         * lib/unistr/u16-chr.c: Likewise.
62626         * lib/unistr/u16-cmp.c: Likewise.
62627         * lib/unistr/u16-cpy-alloc.c: Likewise.
62628         * lib/unistr/u16-cpy.c: Likewise.
62629         * lib/unistr/u16-endswith.c: Likewise.
62630         * lib/unistr/u16-mblen.c: Likewise.
62631         * lib/unistr/u16-mbsnlen.c: Likewise.
62632         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62633         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62634         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62635         * lib/unistr/u16-mbtouc.c: Likewise.
62636         * lib/unistr/u16-mbtoucr.c: Likewise.
62637         * lib/unistr/u16-move.c: Likewise.
62638         * lib/unistr/u16-next.c: Likewise.
62639         * lib/unistr/u16-prev.c: Likewise.
62640         * lib/unistr/u16-set.c: Likewise.
62641         * lib/unistr/u16-startswith.c: Likewise.
62642         * lib/unistr/u16-stpcpy.c: Likewise.
62643         * lib/unistr/u16-stpncpy.c: Likewise.
62644         * lib/unistr/u16-strcat.c: Likewise.
62645         * lib/unistr/u16-strchr.c: Likewise.
62646         * lib/unistr/u16-strcmp.c: Likewise.
62647         * lib/unistr/u16-strcpy.c: Likewise.
62648         * lib/unistr/u16-strcspn.c: Likewise.
62649         * lib/unistr/u16-strdup.c: Likewise.
62650         * lib/unistr/u16-strlen.c: Likewise.
62651         * lib/unistr/u16-strmblen.c: Likewise.
62652         * lib/unistr/u16-strmbtouc.c: Likewise.
62653         * lib/unistr/u16-strncat.c: Likewise.
62654         * lib/unistr/u16-strncmp.c: Likewise.
62655         * lib/unistr/u16-strncpy.c: Likewise.
62656         * lib/unistr/u16-strnlen.c: Likewise.
62657         * lib/unistr/u16-strpbrk.c: Likewise.
62658         * lib/unistr/u16-strrchr.c: Likewise.
62659         * lib/unistr/u16-strspn.c: Likewise.
62660         * lib/unistr/u16-strstr.c: Likewise.
62661         * lib/unistr/u16-strtok.c: Likewise.
62662         * lib/unistr/u16-to-u32.c: Likewise.
62663         * lib/unistr/u16-to-u8.c: Likewise.
62664         * lib/unistr/u16-uctomb-aux.c: Likewise.
62665         * lib/unistr/u16-uctomb.c: Likewise.
62666         * lib/unistr/u32-check.c: Likewise.
62667         * lib/unistr/u32-chr.c: Likewise.
62668         * lib/unistr/u32-cmp.c: Likewise.
62669         * lib/unistr/u32-cpy-alloc.c: Likewise.
62670         * lib/unistr/u32-cpy.c: Likewise.
62671         * lib/unistr/u32-endswith.c: Likewise.
62672         * lib/unistr/u32-mblen.c: Likewise.
62673         * lib/unistr/u32-mbsnlen.c: Likewise.
62674         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62675         * lib/unistr/u32-mbtouc.c: Likewise.
62676         * lib/unistr/u32-mbtoucr.c: Likewise.
62677         * lib/unistr/u32-move.c: Likewise.
62678         * lib/unistr/u32-next.c: Likewise.
62679         * lib/unistr/u32-prev.c: Likewise.
62680         * lib/unistr/u32-set.c: Likewise.
62681         * lib/unistr/u32-startswith.c: Likewise.
62682         * lib/unistr/u32-stpcpy.c: Likewise.
62683         * lib/unistr/u32-stpncpy.c: Likewise.
62684         * lib/unistr/u32-strcat.c: Likewise.
62685         * lib/unistr/u32-strchr.c: Likewise.
62686         * lib/unistr/u32-strcmp.c: Likewise.
62687         * lib/unistr/u32-strcpy.c: Likewise.
62688         * lib/unistr/u32-strcspn.c: Likewise.
62689         * lib/unistr/u32-strdup.c: Likewise.
62690         * lib/unistr/u32-strlen.c: Likewise.
62691         * lib/unistr/u32-strmblen.c: Likewise.
62692         * lib/unistr/u32-strmbtouc.c: Likewise.
62693         * lib/unistr/u32-strncat.c: Likewise.
62694         * lib/unistr/u32-strncmp.c: Likewise.
62695         * lib/unistr/u32-strncpy.c: Likewise.
62696         * lib/unistr/u32-strnlen.c: Likewise.
62697         * lib/unistr/u32-strpbrk.c: Likewise.
62698         * lib/unistr/u32-strrchr.c: Likewise.
62699         * lib/unistr/u32-strspn.c: Likewise.
62700         * lib/unistr/u32-strstr.c: Likewise.
62701         * lib/unistr/u32-strtok.c: Likewise.
62702         * lib/unistr/u32-to-u16.c: Likewise.
62703         * lib/unistr/u32-to-u8.c: Likewise.
62704         * lib/unistr/u32-uctomb.c: Likewise.
62705         * lib/unistr/u8-check.c: Likewise.
62706         * lib/unistr/u8-chr.c: Likewise.
62707         * lib/unistr/u8-cmp.c: Likewise.
62708         * lib/unistr/u8-cpy-alloc.c: Likewise.
62709         * lib/unistr/u8-cpy.c: Likewise.
62710         * lib/unistr/u8-endswith.c: Likewise.
62711         * lib/unistr/u8-mblen.c: Likewise.
62712         * lib/unistr/u8-mbsnlen.c: Likewise.
62713         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62714         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62715         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62716         * lib/unistr/u8-mbtouc.c: Likewise.
62717         * lib/unistr/u8-mbtoucr.c: Likewise.
62718         * lib/unistr/u8-move.c: Likewise.
62719         * lib/unistr/u8-next.c: Likewise.
62720         * lib/unistr/u8-prev.c: Likewise.
62721         * lib/unistr/u8-set.c: Likewise.
62722         * lib/unistr/u8-startswith.c: Likewise.
62723         * lib/unistr/u8-stpcpy.c: Likewise.
62724         * lib/unistr/u8-stpncpy.c: Likewise.
62725         * lib/unistr/u8-strcat.c: Likewise.
62726         * lib/unistr/u8-strchr.c: Likewise.
62727         * lib/unistr/u8-strcmp.c: Likewise.
62728         * lib/unistr/u8-strcpy.c: Likewise.
62729         * lib/unistr/u8-strcspn.c: Likewise.
62730         * lib/unistr/u8-strdup.c: Likewise.
62731         * lib/unistr/u8-strlen.c: Likewise.
62732         * lib/unistr/u8-strmblen.c: Likewise.
62733         * lib/unistr/u8-strmbtouc.c: Likewise.
62734         * lib/unistr/u8-strncat.c: Likewise.
62735         * lib/unistr/u8-strncmp.c: Likewise.
62736         * lib/unistr/u8-strncpy.c: Likewise.
62737         * lib/unistr/u8-strnlen.c: Likewise.
62738         * lib/unistr/u8-strpbrk.c: Likewise.
62739         * lib/unistr/u8-strrchr.c: Likewise.
62740         * lib/unistr/u8-strspn.c: Likewise.
62741         * lib/unistr/u8-strstr.c: Likewise.
62742         * lib/unistr/u8-strtok.c: Likewise.
62743         * lib/unistr/u8-to-u16.c: Likewise.
62744         * lib/unistr/u8-to-u32.c: Likewise.
62745         * lib/unistr/u8-uctomb-aux.c: Likewise.
62746         * lib/unistr/u8-uctomb.c: Likewise.
62747         * lib/unitypes.h: Likewise.
62748         * lib/uniwidth.h: Likewise.
62749         * lib/uniwidth/cjk.h: Likewise.
62750         * lib/uniwidth/u16-strwidth.c: Likewise.
62751         * lib/uniwidth/u16-width.c: Likewise.
62752         * lib/uniwidth/u32-strwidth.c: Likewise.
62753         * lib/uniwidth/u32-width.c: Likewise.
62754         * lib/uniwidth/u8-strwidth.c: Likewise.
62755         * lib/uniwidth/u8-width.c: Likewise.
62756         * lib/uniwidth/width.c: Likewise.
62757
62758 2007-10-07  Bruno Haible  <bruno@clisp.org>
62759
62760         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62761         The file is still under LGPL (see modules/inttypes).
62762
62763 2007-10-06  Bruno Haible  <bruno@clisp.org>
62764
62765         * modules/trunc (Dependencies): Add 'extensions'.
62766         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62767         Reported by Ben Pfaff <blp@gnu.org>.
62768
62769 2007-10-06  Bruno Haible  <bruno@clisp.org>
62770
62771         * modules/freopen-tests: New file.
62772         * tests/test-freopen.c: New file.
62773
62774         * modules/fopen-tests: New file.
62775         * tests/test-fopen.c: New file.
62776
62777         * modules/fopen: New file.
62778         * lib/fopen.c: New file.
62779         * m4/fopen.m4: New file.
62780         * modules/freopen: New file.
62781         * lib/freopen.c: New file.
62782         * m4/freopen.m4: New file.
62783         * lib/stdio.in.h (fopen, freopen): New declarations.
62784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62785         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62786         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62787         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62788         * doc/functions/fopen.texi: Mention the 'fopen' module.
62789         * doc/functions/freopen.texi: Mention the 'freopen' module.
62790
62791 2007-10-06  Bruno Haible  <bruno@clisp.org>
62792
62793         * modules/open-tests: New file.
62794         * tests/test-open.c: New file.
62795
62796         * modules/open: New file.
62797         * lib/open.c: New file.
62798         * m4/open.m4: New file.
62799         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62800         lib/open.c does.
62801         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62802         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62803         macros.
62804         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62805         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62806         REPLACE_OPEN.
62807         * doc/functions/open.texi: Mention the 'open' module.
62808
62809 2007-10-04  Bruno Haible  <bruno@clisp.org>
62810
62811         * modules/ceill-tests: New file.
62812         * tests/test-ceill.c: New file.
62813
62814         * modules/ceill: New file.
62815         * lib/ceill.c: Replace entire file.
62816         * m4/ceill.m4: New file.
62817         * lib/math.in.h (ceill): Replace declaration.
62818         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62819         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62820         * doc/functions/ceill.texi: Mention the 'ceill' module.
62821         * modules/mathl (Files): Remove lib/ceill.c.
62822         (Depends-on): Add ceill.
62823
62824 2007-10-04  Bruno Haible  <bruno@clisp.org>
62825
62826         * modules/ceilf-tests: New file.
62827         * tests/test-ceilf.c: New file.
62828
62829         * modules/ceilf: New file.
62830         * lib/ceil.c: New file.
62831         * lib/ceilf.c: New file.
62832         * m4/ceilf.m4: New file.
62833         * lib/math.in.h (ceilf): New declaration.
62834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62835         HAVE_DECL_CEILF.
62836         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62837         HAVE_DECL_CEILF.
62838         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62839
62840 2007-10-04  Bruno Haible  <bruno@clisp.org>
62841
62842         * modules/floorl-tests: New file.
62843         * tests/test-floorl.c: New file.
62844
62845         * modules/floorl: New file.
62846         * lib/floorl.c: Replace entire file.
62847         * m4/floorl.m4: New file.
62848         * lib/math.in.h (floorl): Replace declaration.
62849         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62850         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62851         * doc/functions/floorl.texi: Mention the 'floorl' module.
62852         * modules/mathl (Files): Remove lib/floorl.c.
62853         (Depends-on): Add floorl.
62854
62855 2007-10-04  Bruno Haible  <bruno@clisp.org>
62856
62857         * modules/floorf-tests: New file.
62858         * tests/test-floorf.c: New file.
62859
62860         * modules/floorf: New file.
62861         * lib/floor.c: New file.
62862         * lib/floorf.c: New file.
62863         * m4/floorf.m4: New file.
62864         * lib/math.in.h (floorf): New declaration.
62865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62866         HAVE_DECL_FLOORF.
62867         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62868         HAVE_DECL_FLOORF.
62869         * doc/functions/floorf.texi: Mention the 'floorf' module.
62870
62871 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62872             Bruno Haible  <bruno@clisp.org>
62873
62874         Advertise for the Git server instead of the CVS server.
62875         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62876         repository instead of the CVS one.
62877         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62878         about all VCS systems generically.
62879         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62880
62881 2007-10-04  Bruno Haible  <bruno@clisp.org>
62882
62883         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62884         means.
62885         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62886
62887 2007-10-04  Bruno Haible  <bruno@clisp.org>
62888
62889         * modules/truncl-tests: New file.
62890         * tests/test-truncl.c: New file.
62891
62892         * modules/truncl: New file.
62893         * lib/truncl.c: New file.
62894         * m4/truncl.m4: New file.
62895         * lib/math.in.h (truncl): New declaration.
62896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62897         HAVE_DECL_TRUNCL.
62898         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62899         HAVE_DECL_TRUNCL.
62900         * doc/functions/truncl.texi: Mention the 'truncl' module.
62901
62902 2007-10-04  Bruno Haible  <bruno@clisp.org>
62903
62904         * modules/truncf-tests: New file.
62905         * tests/test-truncf.c: New file.
62906
62907         * modules/truncf: New file.
62908         * lib/trunc.c: Make paramerizable through USE_* macros.
62909         * lib/truncf.c: New file.
62910         * m4/truncf.m4: New file.
62911         * lib/math.in.h (truncf): New declaration.
62912         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62913         HAVE_DECL_TRUNCF.
62914         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62915         HAVE_DECL_TRUNCF.
62916         * doc/functions/truncf.texi: Mention the 'truncf' module.
62917
62918 2007-10-03  Bruno Haible  <bruno@clisp.org>
62919
62920         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62921         augmentation also for tests modules.
62922         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62923         * modules/atexit-tests (Makefile.am): Likewise.
62924         * modules/binary-io-tests (Makefile.am): Likewise.
62925         * modules/c-strcase-tests (Makefile.am): Likewise.
62926         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62927         * modules/canonicalize-tests (Makefile.am): Likewise.
62928         * modules/closein-tests (Makefile.am): Likewise.
62929         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62930         * modules/freadahead-tests (Makefile.am): Likewise.
62931         * modules/fseek-tests (Makefile.am): Likewise.
62932         * modules/fseeko-tests (Makefile.am): Likewise.
62933         * modules/ftell-tests (Makefile.am): Likewise.
62934         * modules/ftello-tests (Makefile.am): Likewise.
62935         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62936         * modules/isnanl-tests (Makefile.am): Likewise.
62937         * modules/lseek-tests (Makefile.am): Likewise.
62938         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62939         * modules/mbscasestr-tests (Makefile.am): Likewise.
62940         * modules/mbschr-tests (Makefile.am): Likewise.
62941         * modules/mbscspn-tests (Makefile.am): Likewise.
62942         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62943         * modules/mbspbrk-tests (Makefile.am): Likewise.
62944         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62945         * modules/mbsrchr-tests (Makefile.am): Likewise.
62946         * modules/mbsspn-tests (Makefile.am): Likewise.
62947         * modules/mbsstr-tests (Makefile.am): Likewise.
62948         * modules/printf-posix-tests (Makefile.am): Likewise.
62949         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62950         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62951         * modules/tsearch-tests (Makefile.am): Likewise.
62952         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62953         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62954         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62955         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62956         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62957         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62958         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62959         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62960         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62961         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62962         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62963         * modules/xstrtol-tests (Makefile.am): Likewise.
62964         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62965         * modules/yesno-tests (Makefile.am): Likewise.
62966
62967 2007-10-03  Bruno Haible  <bruno@clisp.org>
62968
62969         * modules/trunc-tests: New file.
62970         * tests/test-trunc.c: New file.
62971
62972         * modules/trunc: New file.
62973         * lib/trunc.c: New file.
62974         * m4/trunc.m4: New file.
62975         * lib/math.in.h (trunc): New declaration.
62976         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62977         HAVE_DECL_TRUNC.
62978         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62979         HAVE_DECL_TRUNC.
62980         * doc/functions/trunc.texi: Mention the 'trunc' module.
62981
62982 2007-10-03  Bruno Haible  <bruno@clisp.org>
62983
62984         * tests/test-fpending.c: New file, mostly copied
62985         from coreutils/lib/t-fpending.c.
62986         * modules/fpending-tests: New file.
62987
62988 2007-10-03  Bruno Haible  <bruno@clisp.org>
62989
62990         Port the stdio extensions to QNX (untested).
62991         * lib/fseterr.c (fseterr): Add support for QNX.
62992         * lib/fbufmode.c (fbufmode): Likewise.
62993         * lib/freadable.c (freadable): Likewise.
62994         * lib/fwritable.c (fwritable): Likewise.
62995         * lib/freading.c (freading): Likewise.
62996         * lib/fwriting.c (fwriting): Likewise.
62997         * lib/freadahead.c (freadahed): Likewise.
62998         * lib/fpurge.c (fpurge): Likewise.
62999         * lib/fseeko.c (rpl_fseeko): Likewise.
63000
63001 2007-10-03  Bruno Haible  <bruno@clisp.org>
63002             Jim Meyering  <jim@meyering.net>
63003             Eric Blake  <ebb9@byu.net>
63004
63005         * doc/relocatable.texi: Use @command instead of @program.
63006
63007 2007-10-02  Jim Meyering  <jim@meyering.net>
63008
63009         Perform one more "_.h" -> ".in.h" substitution.
63010         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
63011         instead of unistd_.h here, too.
63012
63013 2007-10-01  Bruno Haible  <bruno@clisp.org>
63014
63015         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
63016         Needed for the alloca-opt module.
63017
63018 2007-09-30  Bruno Haible  <bruno@clisp.org>
63019
63020         * lib/alloca.in.h: Renamed from lib/alloca_.h.
63021         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
63022         alloca_.h.
63023         * lib/argz.in.h: Renamed from lib/argz_.h.
63024         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
63025         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
63026         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
63027         byteswap_.h.
63028         * lib/dirent.in.h: Renamed from lib/dirent_.h.
63029         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
63030         dirent_.h.
63031         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
63032         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
63033         fcntl_.h.
63034         * lib/float.in.h: Renamed from lib/float_.h.
63035         * modules/float (Files, Makefile.am): Use float.in.h instead of
63036         float_.h.
63037         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
63038         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
63039         fnmatch_.h.
63040         * lib/getopt.in.h: Renamed from lib/getopt_.h.
63041         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
63042         getopt_.h.
63043         * lib/glob.in.h: Renamed from lib/glob_.h.
63044         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
63045         * lib/iconv.in.h: Renamed from lib/iconv_.h.
63046         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
63047         iconv_.h.
63048         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
63049         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
63050         inttypes_.h.
63051         * lib/locale.in.h: Renamed from lib/locale_.h.
63052         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
63053         locale_.h.
63054         * lib/math.in.h: Renamed from lib/math_.h.
63055         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
63056         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
63057         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
63058         of netinet_in_.h. Add dependency.
63059         * lib/poll.in.h: Renamed from lib/poll_.h.
63060         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
63061         * lib/search.in.h: Renamed from lib/search_.h.
63062         * modules/search (Files, Makefile.am): Use search.in.h instead of
63063         search_.h.
63064         * lib/signal.in.h: Renamed from lib/signal_.h.
63065         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
63066         _signal.h.
63067         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
63068         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
63069         stdbool_.h.
63070         * lib/stdint.in.h: Renamed from lib/stdint_.h.
63071         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
63072         stdint_.h.
63073         * lib/stdio.in.h: Renamed from lib/stdio_.h.
63074         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
63075         stdio_.h.
63076         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
63077         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
63078         stdlib_.h.
63079         * lib/string.in.h: Renamed from lib/string_.h.
63080         * modules/string (Files, Makefile.am): Use string.in.h instead of
63081         string_.h.
63082         * doc/gnulib-tool.texi (Initial import): Update.
63083         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
63084         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
63085         of sys_select_.h. Add dependency.
63086         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
63087         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
63088         of sys_socket_.h.
63089         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
63090         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
63091         sys_stat_.h.
63092         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
63093         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
63094         sys_time_.h.
63095         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
63096         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
63097         sysexits_.h.
63098         * lib/time.in.h: Renamed from lib/time_.h.
63099         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
63100         * lib/unistd.in.h: Renamed from lib/unistd_.h.
63101         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
63102         unistd_.h.
63103         * lib/wchar.in.h: Renamed from lib/wchar_.h.
63104         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
63105         wchar_.h.
63106         * lib/wctype.in.h: Renamed from lib/wctype_.h.
63107         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
63108         wctype_.h.
63109         * build-aux/bootstrap (slurp): Update.
63110         * lib/.cppi-disable: Update.
63111
63112 2007-09-30  Bruno Haible  <bruno@clisp.org>
63113
63114         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
63115         Needed on BeOS.
63116
63117 2007-09-30  Bruno Haible  <bruno@clisp.org>
63118
63119         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
63120
63121 2007-09-29  Bruno Haible  <bruno@clisp.org>
63122
63123         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
63124
63125 2007-09-29  Bruno Haible  <bruno@clisp.org>
63126
63127         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
63128         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
63129         * build-aux/install-reloc: Compile also areadlink.c.
63130         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
63131
63132 2007-09-29  Bruno Haible  <bruno@clisp.org>
63133
63134         * gnulib-tool (func_emit_initmacro_done): Indentation.
63135
63136 2007-09-29  Bruno Haible  <bruno@clisp.org>
63137
63138         * README: Add CVS checkout update instructions.
63139         Info from Bob Proulx <bob@proulx.com>.
63140
63141 2007-09-28  Eric Blake  <ebb9@byu.net>
63142
63143         Provide move-if-change.
63144         * build-aux/move-if-change: New file, based on best practice
63145         rather than any canonical upstream location.
63146
63147 2007-09-28  Jim Meyering  <jim@meyering.net>
63148
63149         Fix canonicalize loop-detection corner case.
63150         Do not attempt to stat the symlink values stored via seen_triple.
63151         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
63152         on linux-2.6.18, (but not 2.6.22).
63153         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
63154         triple_compare.  The former compares dev,ino,filename, while the latter
63155         would actually stat dirname(filename) when dev and ino were equal.
63156         * lib/hash-triple.c: Install <string.h>.
63157         (STREQ): Define.
63158         (triple_compare_ino_str): New function.
63159         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
63160
63161 2007-09-28  Eric Blake  <ebb9@byu.net>
63162
63163         Enforce that AC_REPLACE_FUNCS files exist.
63164         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
63165         override check for typos.
63166
63167         Fix test-closein on Solaris 10.
63168         * tests/test-closein.c (main): Don't assume stdin can be inherited
63169         closed on all systems.
63170         * tests/test-closein.sh: Likewise.
63171         Reported by Piotr Tarnowski.
63172
63173 2007-09-28  Jim Meyering  <jim@meyering.net>
63174
63175         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
63176
63177 2007-09-27  Jim Meyering  <jim@meyering.net>
63178
63179         canonicalize: Avoid a false-positive cycle failure.
63180         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
63181         Sort.  Remove cycle-check.
63182         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
63183         not cycle-check.h.
63184         (seen_triple): New function.
63185         (canonicalize_filename_mode): Use it instead of cycle-check.
63186         * tests/test-canonicalize.c: Add a test for this bug.
63187         * tests/test-canonicalize.sh: Set up and run the test.
63188
63189         New module, file-set, from coreutils.
63190         * modules/file-set: Define it.
63191         * lib/file-set.c, lib/file-set.h: Implement.
63192
63193         New module, hash-triple, from coreutils.
63194         * modules/hash-triple: Define it.
63195         * lib/hash-triple.c, lib/hash-triple.h: Implement.
63196
63197 2007-09-25  Eric Blake  <ebb9@byu.net>
63198
63199         Fix strerror on Interix.
63200         * lib/string_.h (strerror): Declare replacement.
63201         * doc/functions/strerror.texi (strerror): Document the Interix
63202         shortcoming.
63203         * modules/string (Makefile.am): Support new hooks.
63204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
63205         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
63206         gl_FUNC_STRERROR_SEPARATE.
63207         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
63208         * lib/strerror.c (rpl_strerror): Provide replacement.
63209         * modules/strerror (Depends-on): Add string.
63210         (configure.ac): Detect use of module.
63211         * tests/test-strerror.c: New file.
63212         * modules/strerror-tests: New test module.
63213         * modules/argp (Depends-on): Add strerror.
63214         * modules/error (Depends-on): Likewise.
63215         Reported by Martin Koeppe.
63216
63217 2007-09-24  Bruno Haible  <bruno@clisp.org>
63218
63219         * README: Update git instructions.
63220
63221 2007-09-24  Eric Blake  <ebb9@byu.net>
63222
63223         Revert fpending breakage from 2007-09-08.
63224         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
63225         __fpending.c.
63226
63227 2007-09-24  Jim Meyering  <jim@meyering.net>
63228
63229         filenamecat.c: Add a test.
63230         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
63231         showing how the function works when DIR is the empty string.
63232
63233 2007-09-21  Simon Josefsson  <simon@josefsson.org>
63234
63235         * tests/test-canonicalize.sh: Turn on executable bit.
63236
63237 2007-09-19  Eric Blake  <ebb9@byu.net>
63238
63239         * README: Update CVS instructions.
63240
63241 2007-09-18  Bruno Haible  <bruno@clisp.org>
63242
63243         * modules/areadlink: New file.
63244         * lib/areadlink.h (areadlink): New declaration.
63245         * lib/areadlink.c: New file, based on lib/xreadlink.c.
63246
63247 2007-09-17  Jim Meyering  <jim@meyering.net>
63248
63249         * lib/savewd.c (ESTALE) [!defined]: Define.
63250         Reported to be required on Interix by Martin Koeppe.
63251
63252 2007-09-17  Bruno Haible  <bruno@clisp.org>
63253
63254         * gnulib-tool (func_version): Use $version.
63255
63256 2007-09-16  Bruno Haible  <bruno@clisp.org>
63257
63258         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
63259         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
63260         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
63261         Reported by Greg Schafer <gschafer@zip.com.au>.
63262
63263 2007-09-15  Bruno Haible  <bruno@clisp.org>
63264
63265         * gnulib-tool (sed): Try a little harder to make bash understand the
63266         alias.
63267         Reported by Bruce Korb <bruce.korb@gmail.com>.
63268
63269 2007-09-13  Eric Blake  <ebb9@byu.net>
63270
63271         * ChangeLog: Remove conflict markers.
63272
63273 2007-09-13  Simon Josefsson  <simon@josefsson.org>
63274
63275         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
63276         Reported by Bruno Haible <bruno@clisp.org>.
63277
63278 2007-09-12  Bruno Haible  <bruno@clisp.org>
63279
63280         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
63281         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
63282         is not defined.
63283
63284 2007-09-12  Eric Blake  <ebb9@byu.net>
63285
63286         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
63287         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
63288         Autoconf definition.
63289         * modules/euidaccess (Depends-on): Add extensions, for
63290         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
63291         * modules/fnmatch (Depends-on): Likewise.
63292         * modules/getaddrinfo (Depends-on): Likewise.
63293         * modules/getdelim (Depends-on): Likewise.
63294         * modules/getline (Depends-on): Likewise.
63295         * modules/getsubopt (Depends-on): Likewise.
63296         * modules/gettext (Depends-on): Likewise.
63297         * modules/group-member (Depends-on): Likewise.
63298         * modules/mbchar (Depends-on): Likewise.
63299         * modules/memmem (Depends-on): Likewise.
63300         * modules/mempcpy (Depends-on): Likewise.
63301         * modules/memrchr (Depends-on): Likewise.
63302         * modules/pagealign_alloc (Depends-on): Likewise.
63303         * modules/readutmp (Depends-on): Likewise.
63304         * modules/stpcpy (Depends-on): Likewise.
63305         * modules/stpncpy (Depends-on): Likewise.
63306         * modules/strchrnul (Depends-on): Likewise.
63307         * modules/strndup (Depends-on): Likewise.
63308         * modules/strsep (Depends-on): Likewise.
63309         * modules/strverscmp (Depends-on): Likewise.
63310         * modules/vasprintf (Depends-on): Likewise.
63311         * modules/wcwidth (Depends-on): Likewise.
63312         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
63313         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
63314         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
63315         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
63316         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63317         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63318         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
63319         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63320         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
63321         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
63322         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63323         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63324         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63325         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63326         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
63327         * m4/readutmp.m4 (gl_READUTMP): Likewise.
63328         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63329         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63330         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63331         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63332         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63333         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63334         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63335         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
63336         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
63337         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63338         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
63339         so that lock.m4 can be used in gettext without extensions module.
63340
63341 2007-09-11  Bruno Haible  <bruno@clisp.org>
63342
63343         * m4/isc-posix.m4: Remove file.
63344         Suggested by Eric Blake.
63345
63346 2007-09-11  Eric Blake  <ebb9@byu.net>
63347
63348         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
63349
63350 2007-09-10  Bruno Haible  <bruno@clisp.org>
63351
63352         * posix-modules: Fix typo in error message.
63353         Reported by Matt <mkraai@beckman.com>.
63354
63355 2007-09-09  Bruno Haible  <bruno@clisp.org>
63356
63357         * doc/functions/getdelim.texi: Update list of platforms lacking the
63358         function.
63359         * doc/functions/getline.texi: Likewise.
63360
63361 2007-09-09  Jim Meyering  <jim@meyering.net>
63362
63363         * lib/hash.c (hash_initialize): Detect calloc failure.
63364         Reported by Bruno Haible.
63365
63366 2007-09-09  Bruno Haible  <bruno@clisp.org>
63367
63368         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
63369         malloc or realloc fails.
63370
63371 2007-09-09  Bruno Haible  <bruno@clisp.org>
63372
63373         * modules/getcwd (Depends-on): Add malloc-posix.
63374         * modules/glob (Depends-on): Likewise.
63375         * modules/putenv (Depends-on): Likewise.
63376         * modules/strdup (Depends-on): Likewise.
63377         * modules/getdelim (Depends-on): Add realloc-posix.
63378         * modules/read-file (Depends-on): Likewise.
63379
63380 2007-09-09  Bruno Haible  <bruno@clisp.org>
63381
63382         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
63383         (gl_FUNC_MALLOC_POSIX): Require it.
63384         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
63385         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
63386         * modules/realloc (Files): Add m4/malloc.m4.
63387         * modules/calloc (Files): Likewise.
63388
63389 2007-09-09  Bruno Haible  <bruno@clisp.org>
63390
63391         * modules/malloc-posix: New file.
63392         * modules/malloc (Depends-on): Add malloc-posix.
63393         * lib/malloc.c: Include errno.h.
63394         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
63395         and a POSIX-compatible malloc into a single function. Set ENOMEM
63396         when returning NULL.
63397         * m4/malloc.m4: New file.
63398         * doc/functions/malloc.texi: Mention the malloc-posix module.
63399         * lib/stdlib_.h (malloc): New declaration.
63400         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63401         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
63402         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
63403         and HAVE_MALLOC_POSIX.
63404
63405 2007-09-09  Bruno Haible  <bruno@clisp.org>
63406
63407         * modules/realloc-posix: New file.
63408         * modules/realloc (Depends-on): Add realloc-posix.
63409         * lib/realloc.c: Include errno.h.
63410         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
63411         and a POSIX-compatible realloc into a single function. Set ENOMEM
63412         when returning NULL.
63413         * m4/realloc.m4: New file.
63414         * doc/functions/realloc.texi: Mention the realloc-posix module.
63415         * lib/stdlib_.h (realloc): New declaration.
63416         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63417         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
63418         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
63419         and HAVE_REALLOC_POSIX.
63420
63421 2007-09-09  Bruno Haible  <bruno@clisp.org>
63422
63423         * modules/calloc-posix: New file.
63424         * modules/calloc (Depends-on): Add calloc-posix.
63425         * lib/calloc.c: Include errno.h.
63426         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
63427         and a POSIX-compatible calloc into a single function. Set ENOMEM
63428         when returning NULL.
63429         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
63430         * doc/functions/calloc.texi: Mention the calloc-posix module.
63431         * lib/stdlib_.h (calloc): New declaration.
63432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63433         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
63434         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
63435         and HAVE_CALLOC_POSIX.
63436
63437 2007-09-09  Bruno Haible  <bruno@clisp.org>
63438
63439         Allow for modules to show an arbitrary notice.
63440         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
63441         * gnulib-tool: New option --extract-notice.
63442         (func_usage): Document it.
63443         (sed_extract_prog): Update.
63444         (func_get_notice): New function.
63445         (func_modules_notice): New function.
63446         (func_import, func_create_testdir): Invoke it.
63447         Suggested by Jim Meyering.
63448
63449 2007-09-09  Bruno Haible  <bruno@clisp.org>
63450
63451         * gnulib-tool: New options --verbose, --quiet.
63452         (func_usage): Document them.
63453         (verbose): New variable.
63454         (func_execute_command): New function.
63455         (func_import): Don't show the module list and the file list if
63456         $verbose < 0.
63457         (func_create_testdir): Likewise. Use func_execute_command.
63458         (func_create_megatestdir): Use func_execute_command.
63459
63460 2007-09-08  Bruno Haible  <bruno@clisp.org>
63461
63462         * gnulib-tool (func_import): Prefer rsync over wget when available,
63463         for fetching the PO files.
63464
63465 2007-09-08  Bruno Haible  <bruno@clisp.org>
63466
63467         * posix-modules: New file. Portions copied from gnulib-tool.
63468         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
63469
63470 2007-09-08  Jim Meyering  <jim@meyering.net>
63471
63472         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
63473         * lib/fpending.h: Rename from __fpending.h.
63474         * lib/fpending.c: Rename from __fpending.c.
63475         Include "fpending.h", not "__fpending.h".
63476         * lib/__fpending.h, lib/__fpending.c: Remove files.
63477         * modules/fpending (Files): Reflect new file names.
63478         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
63479
63480 2007-09-08  Bruno Haible  <bruno@clisp.org>
63481
63482         * m4/inttypes-h.m4: Remove stub file.
63483
63484 2007-09-07  Simon Josefsson  <simon@josefsson.org>
63485
63486         * doc/headers/stdint.texi: Discuss #include_next issue.
63487
63488 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63489
63490         * build-aux/bootstrap: Remove obsolete comment about wget --help.
63491
63492 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63493
63494         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
63495         in variable name.
63496
63497 2007-09-03  Jim Meyering  <jim@meyering.net>
63498
63499         New module: git-version-gen.
63500         * modules/git-version-gen: New file.
63501
63502         Import changes from coreutils for bootstrap script.
63503
63504         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
63505
63506         bootstrap: uses rsync to download the .po files
63507         * build-aux/bootstrap (po_download_command_format): New global.
63508         (download_po_files): Use rsync.
63509         (update_po_files): Don't remove .po files after download,
63510         so future rsync runs can take advantage of the copies.
63511
63512         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
63513
63514         Solve the unnecessary-.po-file-regeneration problem once and for all.
63515         * build-aux/bootstrap (download_po_files): New function, renamed from
63516         get_translations.  Now, downloads, but doesn't update LINGUAS.
63517         (update_po_files): New function.
63518
63519         bootstrap: Ignore more.
63520         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
63521         uniwidth to e.g., lib/.gitignore.
63522         (slurp): Handle the sys_stat_.h -> sys mapping, too.
63523
63524         * build-aux/bootstrap: New setting: vc_ignore.
63525         (insert_sorted_if_absent): Create $file if absent.
63526         Adapt to new, possibly empty, list: $vc_ignore.
63527
63528         bootstrap: generate more ignorable names
63529         * build-aux/bootstrap (slurp): When generating ignorable names,
63530         also map .sin to .sed, .gperf to .c, and .y to .c.
63531
63532 2007-09-03  Jim Meyering  <jim@meyering.net>
63533
63534         * build-aux/git-version-gen: New file, from coreutils.  For details, see
63535         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
63536
63537 2007-09-02  Bruno Haible  <bruno@clisp.org>
63538
63539         Fix mis-recognition of 'mcs' on QNX 6.
63540         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
63541         output contains the string "Mono".
63542         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
63543         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
63544
63545 2007-09-01  Bruno Haible  <bruno@clisp.org>
63546
63547         Fix collision between uniwidth/* and linebreak modules.
63548         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
63549         u32_width): Remove declarations.
63550         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
63551         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
63552         streq3, streq2, streq1, streq0): Remove functions.
63553         (STREQ): Remove macro.
63554         (is_cjk_encoding): Remove function.
63555         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
63556         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63557         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63558         * NEWS: Document the change.
63559
63560 2007-09-01  Bruno Haible  <bruno@clisp.org>
63561
63562         * lib/streq.h: Add double-inclusion guard.
63563
63564 2007-09-01  Karl Berry  <karl@gnu.org>
63565
63566         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63567
63568 2007-08-28  Jim Meyering  <jim@meyering.net>
63569
63570         Rename mreadlink_with_size to areadlink_with_size.
63571         * NEWS: Document the change.
63572         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63573         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63574         * lib/mreadlink.h: Rename this to...
63575         * lib/areadlink.h: ...this.
63576         * modules/mreadlink-with-size: Rename this to...
63577         * modules/areadlink-with-size: ...this.
63578         * lib/canonicalize.c: Reflect the renaming.
63579         * modules/canonicalize: Likewise.
63580
63581 2007-08-26  Bruno Haible  <bruno@clisp.org>
63582
63583         * gnulib-tool (func_import): When deciding which files to remove,
63584         consider also dangling symbolic links.
63585         Reported by Eric Blake.
63586
63587 2007-08-26  Bruno Haible  <bruno@clisp.org>
63588
63589         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63590
63591 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63592
63593         * lib/readline.c: Don't include getline.h, the prototype is now
63594         found in stdio.h.
63595
63596 2007-08-23  Jim Meyering  <jim@meyering.net>
63597
63598         Getdelim touchup.
63599         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63600         around the funlockfile call, since funlockfile never sets errno.
63601         Don't set errno upon failed realloc.
63602
63603 2007-08-22  Eric Blake  <ebb9@byu.net>
63604
63605         Getline touchups.
63606         * lib/getdelim.c (getdelim): Revert regression that required *n to
63607         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63608         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63609         getdelim, rather than whether implementation is missing.
63610         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63611         * lib/stdio_.h (getline): Also declare if replacement is
63612         required.
63613         * doc/functions/getdelim.texi: New file.
63614         * doc/functions/getline.texi: Likewise.
63615         * doc/gnulib.texi (Function Substitutes): Add new files.
63616         Reported by Bruno Haible.
63617
63618 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63619
63620         * users.txt: Add Guile.
63621
63622 2007-08-22  Eric Blake  <ebb9@byu.net>
63623
63624         * tests/test-getdelim.c (main): Use remove, not unlink.
63625         * tests/test-getline.c (main): Likewise.
63626
63627         Move getline and getdelim into stdio.h, per POSIX 200x.
63628         * modules/getline (Files): Remove getline.h.
63629         (Depends-on): Add stdio.
63630         (configure.ac): Add module indicator.
63631         * modules/getdelim (Files): Remove getdelim.h.
63632         (Depends-on): Add stdio.
63633         (configure.ac): Add module indicator.
63634         * modules/stdio (Makefile.am): Work with new indicators.
63635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63636         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63637         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63638         * lib/getdelim.h: Delete.
63639         * lib/getline.h: Delete.
63640         * lib/stdio_.h (getdelim, getline): Declare.
63641         * modules/getdelim-tests: New module.
63642         * modules/getline-tests: Likewise.
63643         * tests/test-getdelim.c: New file.
63644         * tests/test-getline.c: Likewise.
63645         * NEWS: Document the change.
63646         * lib/getline.c: Update choice of header.
63647         * lib/csharpcomp.c: Likewise.
63648         * lib/getpass.c: Likewise.
63649         * lib/javacomp.c: Likewise.
63650         * lib/javaversion.c: Likewise.
63651         * lib/yesno.c: Likewise.
63652         * lib/getdelim.c: Likewise.
63653         (getdelim): Set errno on failure, and avoid memory leak.
63654
63655 2007-08-19  Bruno Haible  <bruno@clisp.org>
63656
63657         * modules/closein (Depends-on): Add freadahead.
63658         * lib/closein.c: Include freadahead.h.
63659         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63660         is zero.
63661
63662 2007-08-19  Bruno Haible  <bruno@clisp.org>
63663
63664         * modules/freadahead-tests: New file.
63665         * tests/test-freadahead.sh: New file.
63666         * tests/test-freadahead.c: New file.
63667
63668         * modules/freadahead: New file.
63669         * lib/freadahead.h: New file.
63670         * lib/freadahead.c: New file.
63671         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63672         fbufmode, fpurge, freadable, fwritable.
63673
63674 2007-08-19  Eric Blake  <ebb9@byu.net>
63675
63676         Test yesno in combination with closein.
63677         * lib/yesno.c (yesno): Document use of stdin.
63678         * modules/yesno-tests (Files): New module.
63679         * tests/test-yesno.c (main): New file.
63680         * tests/test-yesno.sh: Likewise.
63681
63682 2007-08-19  Bruno Haible  <bruno@clisp.org>
63683
63684         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63685         * lib/fseeko.c (rpl_fseeko): Likewise.
63686         * lib/fseterr.c (fseterr): Likewise.
63687
63688 2007-08-19  Bruno Haible  <bruno@clisp.org>
63689
63690         * tests/test-lseek.c (main): Disable a test for BeOS.
63691         * doc/functions/lseek.texi: Document the BeOS bug.
63692
63693 2007-08-19  Bruno Haible  <bruno@clisp.org>
63694             Eric Blake  <ebb9@byu.net>
63695
63696         * lib/lseek.c: Include <sys/stat.h>.
63697         (rpl_lseek): Add workaround code also for Unix platforms.
63698         Needed for BeOS.
63699         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63700         * doc/functions/lseek.texi: Document BeOS definiency.
63701
63702 2007-08-18  Bruno Haible  <bruno@clisp.org>
63703
63704         * modules/fstrcmp-tests: New file.
63705         * tests/test-fstrcmp.c: New file.
63706
63707 2007-08-18  Bruno Haible  <bruno@clisp.org>
63708
63709         * modules/fstrcmp: New file, from GNU gettext with modifications.
63710         * lib/fstrcmp.h: New file, from GNU gettext.
63711         * lib/fstrcmp.c: New file, from GNU gettext.
63712         * MODULES.html.sh (String handling): Add fstrcmp.
63713
63714 2007-08-18  Bruno Haible  <bruno@clisp.org>
63715
63716         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63717         'bool'.
63718         (diag, compareseq): Remove const from the ctxt argument.
63719         (USE_HEURISTIC): Undefine at the end.
63720
63721 2007-08-18  Jim Meyering  <jim@meyering.net>
63722
63723         New file: lib/idcache.h
63724         * NEWS: Mention the addition.
63725         * modules/idcache (Files): Add lib/idcache.h
63726         * lib/idcache.c: Include "idcache.h".
63727         Don't include <sys/types.h>.
63728         Add a FIXME comment.
63729         Move file-scoped "static" declarations to the top.
63730         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63731
63732 2007-08-17  Bruno Haible  <bruno@clisp.org>
63733         and Paul Eggert  <eggert@cs.ucla.edu>
63734
63735         * MODULES.html.sh: Add diffseq.
63736         * modules/diffseq: New file.
63737         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63738         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63739
63740 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63741
63742         Import changes from coreutils for bootstrap script.
63743
63744         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63745
63746         * build-aux/bootstrap (slurp): Work even in environments where
63747         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63748         current code does not slurp files whose names start with ".", and
63749         this looks like it might be a troublesome area.
63750
63751         2007-07-11  Jim Meyering  <jim@meyering.net>
63752
63753         If there's a GPL vN copyright comment, require that N == 3.
63754
63755         2007-07-08  Jim Meyering  <jim@meyering.net>
63756
63757         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63758         * build-aux/bootstrap (mam_template): Move definition out of loop.
63759
63760         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63761
63762         * build-aux/bootstrap (symlink_to_dir): Rename function from
63763         symlink_to_gnulib.  Add a directory parameter.  Update all
63764         callers.
63765         (cp_mark_as_generated): Also check for -- and link to -- files in
63766         gl/.
63767
63768         2007-07-08  Jim Meyering  <jim@meyering.net>
63769
63770         Adapt to deeper hierarchy in gnulib.
63771         * build-aux/bootstrap (symlink_to_dir): If the destination
63772         directory doesn't exist, create it. This is required at least for
63773         "lib/uniwidth/cjk.h".
63774
63775         2007-05-15  Jim Meyering  <jim@meyering.net>
63776
63777         * build-aux/bootstrap: Now that generated Makefile.am files
63778         are no longer under version control, they must be created at
63779         bootstrap time.
63780
63781 2007-08-14  Ben Pfaff  <blp@gnu.org>
63782
63783         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63784
63785 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63786
63787         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63788         given the changes below.
63789         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63790         even on hosts that have padding bits beyond the supported 64.
63791
63792 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63793
63794         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63795         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63796         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63797         depends on it.
63798         (xstrtol_error): Remove.
63799         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63800         but with a different signature.
63801         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63802         * lib/xstrtol-error.c: Include exitfail.h.
63803         (xstrtol_fatal): New function, with a different signature from the
63804         old xstrtol_error, so that the caller need not worry about passing
63805         in an exit status, or about storage management of the option argument.
63806         (xstrtol_error): Now a static function.  Redo signature to
63807         implement xstrtol_fatal.  Output the correct number of hyphens in
63808         front of the option so that the caller need not worry about
63809         storage management.
63810         (N_): New macro.
63811         (_): Remove; not used now.
63812         * modules/xstrtol: Depend on getopt.
63813         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63814         of old STRTOL_FATAL_ERROR macro.
63815         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63816         of test program.
63817         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63818         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63819
63820 2007-08-08  Eric Blake  <ebb9@byu.net>
63821
63822         * lib/xstrtol-error.c: Add missing include.
63823
63824         Move xstrtol messages into gnulib domain, when --pobase is used.
63825         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63826         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63827         * modules/xstrtol (Files): Distribute new file.
63828         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63829         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63830         * tests/test-xstrtol.c: ...into new file.
63831         * tests/test-xstrtoul.c: Also test xstrtoul.
63832         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63833         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63834         * tests/test-xstrtol.sh: Drive the tests.
63835         * tests/test-xstrtoimax.sh: Likewise.
63836         * tests/test-xstrtoumax.sh: Likewise.
63837         * modules/xstrtol-tests: New module.
63838         * modules/xstrtoimax-tests: Likewise.
63839         * modules/xstrtoumax-tests: Likewise.
63840
63841 2007-08-08  Jim Meyering  <jim@meyering.net>
63842
63843         New function: mfile_name_concat.
63844         * lib/filenamecat.c (mfile_name_concat): New function, just like
63845         file_name_concat, but return NULL upon failure rather than exiting
63846         with a diagnostic.
63847         * lib/filenamecat.h: Declare it.
63848
63849 2007-08-07  Bruno Haible  <bruno@clisp.org>
63850
63851         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63852         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63853         warning from gcc.
63854         Reported by Eric Blake.
63855
63856 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63857
63858         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63859         * modules/crypto/arcfour (License): Likewise.
63860         * modules/crypto/des-tests (License): Likewise.
63861         * modules/crypto/gc-arctwo-tests (License): Likewise.
63862         * modules/crypto/gc-des-tests (License): Likewise.
63863         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63864         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63865         * modules/crypto/gc-md2-tests (License): Likewise.
63866         * modules/crypto/gc-md4-tests (License): Likewise.
63867         * modules/crypto/gc-md5-tests (License): Likewise.
63868         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63869         * modules/crypto/gc-rijndael-tests (License): Likewise.
63870         * modules/crypto/gc-sha1-tests (License): Likewise.
63871         * modules/crypto/gc-tests (License): Likewise.
63872         * modules/crypto/hmac-md5 (License): Likewise.
63873         * modules/crypto/hmac-sha1 (License): Likewise.
63874         * modules/crypto/md2-tests (License): Likewise.
63875         * modules/crypto/md4-tests (License): Likewise.
63876         * modules/crypto/md5 (License): Likewise.
63877         * modules/crypto/rijndael (License): Likewise.
63878         * modules/crypto/sha1 (License): Likewise.
63879         * modules/memxor (License): Likewise.
63880
63881 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63882         and Bruno Haible  <bruno@clisp.org>
63883
63884         * NEWS: Describe interface changes to human, xstrtol.
63885         * lib/human.h: Include <xstrtol.h>.
63886         (human_options): Return enum strtol_error, not int.  Remove
63887         bool arg; take int * instead.
63888         * lib/human.c: Don't include "gettext.h".
63889         (_): Remove; no longer used.
63890         Don't include <xstrtol.h>, since human.h does it.
63891         (human_options): Adjust to abovementioned interface changes.
63892         Do not report error to stderr; that's now the caller's
63893         responsibility.
63894         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63895         interface change.
63896         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63897         Str, Argument_type_string.  All uses changed.  Put " argument"
63898         in diagnostics to make them clearer.  Change wording of suffix
63899         message for clarity.
63900         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63901         Argument_type_string.
63902         (STRTOL_FATAL_WARN): Remove; no longer used.
63903         * modules/human (Depends-on): Remove gettext-h.
63904
63905 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63906
63907         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63908
63909 2007-07-31  Bruno Haible  <bruno@clisp.org>
63910
63911         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63912         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63913         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63914
63915 2007-07-31  Bruno Haible  <bruno@clisp.org>
63916
63917         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63918         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63919
63920 2007-07-30  Bruno Haible  <bruno@clisp.org>
63921
63922         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63923         * modules/c-ctype (License): Likewise.
63924         * modules/c-strcase (License): Likewise.
63925         * modules/check-version (License): Likewise.
63926         * modules/iconv (License): Likewise.
63927         * modules/iconv_open (License): Likewise.
63928         * modules/read-file (License): Likewise.
63929         * modules/striconv (License): Likewise.
63930         * modules/strverscmp (License): Likewise.
63931         * modules/vasprintf (License): Likewise.
63932         * modules/crypto/des (License): Likewise.
63933         * modules/crypto/gc (License): Likewise.
63934         * modules/crypto/gc-arcfour (License): Likewise.
63935         * modules/crypto/gc-arctwo (License): Likewise.
63936         * modules/crypto/gc-des (License): Likewise.
63937         * modules/crypto/gc-hmac-md5 (License): Likewise.
63938         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63939         * modules/crypto/gc-md2 (License): Likewise.
63940         * modules/crypto/gc-md4 (License): Likewise.
63941         * modules/crypto/gc-md5 (License): Likewise.
63942         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63943         * modules/crypto/gc-random (License): Likewise.
63944         * modules/crypto/gc-rijndael (License): Likewise.
63945         * modules/crypto/gc-sha1 (License): Likewise.
63946         * modules/crypto/md2 (License): Likewise.
63947         * modules/crypto/md4 (License): Likewise.
63948
63949 2007-07-30  Jim Meyering  <jim@meyering.net>
63950
63951         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63952         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63953         it has valid stat data.  This bug would cause du not to count the
63954         sizes of inaccessible directories.
63955         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63956         in <http://bugzilla.redhat.com/250077>.
63957
63958 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63959             Bruno Haible  <bruno@clisp.org>
63960
63961         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63962         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63963         #include_next, gives a diagnostic about it, but reports no error in
63964         the exit code.
63965         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63966
63967 2007-07-24  Ben Pfaff  <blp@gnu.org>
63968
63969         Improve name: "count-one-bits" is better than "popcount".
63970         * MODULES.html.sh: Update name.
63971         * lib/popcount.h: Renamed lib/count-one-bits.h.
63972         (popcount): Renamed count_one_bits.
63973         (popcountl): Renamed count_one_bits_l.
63974         (popcountll): Renamed count_one_bits_ll.
63975         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63976         * modules/popcount: Renamed module/count-one-bits.
63977         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63978         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63979
63980 2007-07-23  Ben Pfaff  <blp@gnu.org>
63981
63982         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63983         better code generation, and add U to large constants to avoid
63984         warnings, in non-GCC case.
63985         Suggested by Bruno Haible.
63986
63987 2007-07-23  Ben Pfaff  <blp@gnu.org>
63988
63989         * lib/popcount.h: Use verify_true instead of if...abort.
63990         * modules/popcount: Depend on verify module.
63991         Suggested by Jim Meyering.
63992
63993 2007-07-23  Bruno Haible  <bruno@clisp.org>
63994
63995         * gnulib-tool (func_import): Create a .cvsignore file also when the
63996         directory is not yet in CVS but the toplevel directory is. When
63997         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63998         Reported by Karl Berry.
63999
64000 2007-07-22  Ben Pfaff  <blp@gnu.org>
64001
64002         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
64003         case.
64004         Suggested by Eric Blake.
64005
64006 2007-07-22  Ben Pfaff  <blp@gnu.org>
64007
64008         New module: popcount.
64009         * MODULES.html.sh: Add popcount.
64010         * modules/popcount: New file.
64011         * modules/popcount-tests: New file.
64012         * tests/test-popcount.c: New file.
64013         * lib/popcount.h: New file.
64014         * m4/popcount.m4: New file.
64015
64016 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64017
64018         * build-aux/announce-gen: Update to GPLv3.
64019
64020         * build-aux/config.guess: Update from config.
64021
64022 2007-07-21  Bruno Haible  <bruno@clisp.org>
64023
64024         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
64025         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
64026
64027 2007-07-20  Jim Meyering  <jim@meyering.net>
64028
64029         * check-module: Diagnose a self-dependency.
64030
64031 2007-07-19  Bruno Haible  <bruno@clisp.org>
64032
64033         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
64034         empty.
64035         Reported by Eric Blake.
64036
64037 2007-07-18  Bruno Haible  <bruno@clisp.org>
64038
64039         * gnulib-tool: New options --po-base, --po-domain.
64040         (func_usage): Document them.
64041         (pobase, po_domain): New variables.
64042         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
64043         DEFAULT_TEXT_DOMAIN.
64044         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
64045         (func_import): Consider pobase and po_domain. Create a po/ directory.
64046         (func_create_testdir): Set pobase and po_domain to empty.
64047         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
64048         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
64049
64050 2007-07-18  Bruno Haible  <bruno@clisp.org>
64051
64052         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64053         EXTRA_DIST augmentation for files in build-aux/.
64054
64055 2007-07-16  Bruno Haible  <bruno@clisp.org>
64056
64057         * modules/lseek (License): Use the synonymous term "LGPLv2+".
64058         * modules/getdelim (License): Likewise.
64059
64060 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64061
64062         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
64063         * modules/d-type (License): Likewise.
64064         * modules/extensions (License): Likewise.
64065         * modules/fnmatch (License): Likewise.
64066         * modules/fseeko (License): Likewise.
64067         * modules/getaddrinfo (License): Likewise.
64068         * modules/getline (License): Likewise.
64069         * modules/getlogin_r (License): Likewise.
64070         * modules/getpass (License): Likewise.
64071         * modules/gettimeofday (License): Likewise.
64072         * modules/glob (License): Likewise.
64073         * modules/inet_ntop (License): Likewise.
64074         * modules/malloc (License): Likewise.
64075         * modules/malloca (License): Likewise.
64076         * modules/memmem (License): Likewise.
64077         * modules/mempcpy (License): Likewise.
64078         * modules/memset (License): Likewise.
64079         * modules/minmax (License): Likewise.
64080         * modules/mktime (License): Likewise.
64081         * modules/netinet_in (License): Likewise.
64082         * modules/pathmax (License): Likewise.
64083         * modules/poll (License): Likewise.
64084         * modules/regex (License): Likewise.
64085         * modules/snprintf (License): Likewise.
64086         * modules/stdbool (License): Likewise.
64087         * modules/stdint (License): Likewise.
64088         * modules/stdio (License): Likewise.
64089         * modules/strcase (License): Likewise.
64090         * modules/strcasestr (License): Likewise.
64091         * modules/strdup (License): Likewise.
64092         * modules/string (License): Likewise.
64093         * modules/strndup (License): Likewise.
64094         * modules/strnlen (License): Likewise.
64095         * modules/strpbrk (License): Likewise.
64096         * modules/strptime (License): Likewise.
64097         * modules/strsep (License): Likewise.
64098         * modules/sys_select (License): Likewise.
64099         * modules/sys_socket (License): Likewise.
64100         * modules/sys_stat (License): Likewise.
64101         * modules/sys_time (License): Likewise.
64102         * modules/time (License): Likewise.
64103         * modules/time_r (License): Likewise.
64104         * modules/timegm (License): Likewise.
64105         * modules/unistd (License): Likewise.
64106         * modules/vsnprintf (License): Likewise.
64107         * modules/wctype (License): Likewise.
64108
64109 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64110
64111         * modules/argz (License): LGPLv2+.
64112
64113 2007-07-15  Karl Berry  <karl@gnu.org>
64114
64115         * doc/gnulib.texi: revise node structure per new fdl.texi.
64116
64117 2007-07-14  Bruno Haible  <bruno@clisp.org>
64118
64119         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
64120         the output file.
64121         * lib/uniname/uninames.h: Regenerated.
64122
64123 2007-07-14  Karl Berry  <karl@gnu.org>
64124
64125         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
64126         omitting sectioning and index commands.
64127
64128 2007-07-13  Bruno Haible  <bruno@clisp.org>
64129
64130         New gnulib-tool option --more-symlinks.
64131         * gnulib-tool (func_usage): Document --more-symlinks.
64132         (do_copyrights): New variable.
64133         Recognize option --more-symlinks.
64134         (func_import): Don't add a copyright notice transform to
64135         sed_transform_lib_file if do_copyrights is empty.
64136
64137 2007-07-13  Bruno Haible  <bruno@clisp.org>
64138
64139         * lib/vasnprintf.c (decimal_point_char): Define also if
64140         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
64141         && !NEED_PRINTF_DIRECTIVE_A.
64142         Reported by Clemens Koller <clemens.koller@anagramm.de> via
64143         Gary V. Vaughan <gary@gnu.org>.
64144
64145 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
64146
64147         * lib/inttypes_.h: Undo previous change, since it was fixed
64148         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
64149
64150 2007-07-13  Bruno Haible  <bruno@clisp.org>
64151
64152         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
64153         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
64154
64155 2007-07-13  Jim Meyering  <jim@meyering.net>
64156
64157         df: Don't fail for Tru64's "file-on-file mount".
64158         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
64159         so we fall through and use statfs instead.  Details here:
64160         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
64161         Reported by Albert Chin.
64162
64163 2007-07-13  Bruno Haible  <bruno@clisp.org>
64164
64165         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
64166         * modules/configmake (License): Likewise.
64167         * modules/gettext (License): Likewise.
64168         * modules/gettext-h (License): Likewise.
64169         * modules/include_next (License): Likewise.
64170         * modules/link-warning (License): Likewise.
64171         * modules/localcharset (License): Likewise.
64172         * modules/localename (License): Likewise.
64173         * modules/lock (License): Likewise.
64174         * modules/relocatable-lib-lgpl (License): Likewise.
64175         * modules/size_max (License): Likewise.
64176         * modules/vasnprintf (License): Likewise.
64177         * modules/wchar (License): Likewise.
64178         * modules/xsize (License): Likewise.
64179
64180 2007-07-13  Bruno Haible  <bruno@clisp.org>
64181
64182         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
64183         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
64184
64185 2007-07-12  Bruno Haible  <bruno@clisp.org>
64186
64187         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
64188         in the modules files.
64189
64190 2007-07-11  Karl Berry  <karl@gnu.org>
64191
64192         * MODULES.html.sh (func_module): use
64193          sed -e '\|^'"${includefile}"'$|d'
64194          instead of /.../d, to avoid errors on $includefile's containing /.
64195
64196 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64197
64198         * gnulib-tool (func_import): Avoid duplication of --avoid
64199         statements
64200         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
64201         names to `_' in variable names.
64202
64203 2007-07-10  Eric Blake  <ebb9@byu.net>
64204
64205         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
64206         * NEWS: Document this change.
64207
64208 2007-07-08  Bruno Haible  <bruno@clisp.org>
64209
64210         Update to Unicode 5.0.
64211         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
64212         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
64213         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
64214         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
64215         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
64216         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
64217         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
64218         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
64219         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
64220         U+10A3F, U+1D242..U+1D244.
64221         (nonspacing_table_ind): Update.
64222         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
64223         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
64224
64225 2007-07-08  Bruno Haible  <bruno@clisp.org>
64226
64227         Update to Unicode 5.0.
64228         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
64229         code transform. Extend the name index field of unicode_name_to_code and
64230         unicode_code_to_name from 16 to 24 bits.
64231         * lib/uniname/uniname.c (unicode_character_name,
64232         unicode_name_character): Add the range 0x12xxx to the code transform.
64233         * lib/uniname/uninames.h: Regenerated.
64234         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
64235
64236 2007-07-07  Bruno Haible  <bruno@clisp.org>
64237
64238         * modules/wcwidth-tests: New file.
64239         * tests/test-wcwidth.c: New file.
64240
64241         Work around MacOS X wcwidth() bug.
64242         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
64243         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
64244         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
64245         original wcwidth in non-UTF-8 locales.
64246         * modules/wcwidth (Depends-on): Add localcharset, streq,
64247         uniwidth/width.
64248         * doc/functions/wcwidth.texi: Update.
64249
64250 2007-07-07  Bruno Haible  <bruno@clisp.org>
64251
64252         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
64253         (wcwidth): New declaration.
64254         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
64255         macros.
64256         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
64257         here. Prepare for creating <wchar.h> unconditionally.
64258         * modules/wchar (Depends-on): Add link-warning.
64259         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
64260         REPLACE_WCWIDTH, and GL_LINK_WARNING.
64261         * lib/wcwidth.h: Remove file.
64262         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
64263         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
64264         * modules/wcwidth (Files): Remove lib/wcwidth.h.
64265         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
64266         (Include): Replace wcwidth.h with <wchar.h>.
64267         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
64268         * lib/mbchar.h: Don't include wcwidth.h.
64269         * lib/mbswidth.c: Likewise.
64270         * NEWS: Mention the change.
64271
64272 2007-07-07  Bruno Haible  <bruno@clisp.org>
64273
64274         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
64275         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
64276         definition with an external declaration.
64277         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
64278         defined as a function. Remove AC_C_INLINE requirement.
64279         * modules/wcwidth (Files): Add lib/wcwidth.c.
64280         (Makefile.am): Remove redundant statement.
64281
64282 2007-07-07  Bruno Haible  <bruno@clisp.org>
64283
64284         * MODULES.html.sh (Unicode string functions): Add the new modules.
64285
64286         * tests/uniwidth/test-u32-strwidth.c: New file.
64287         * modules/uniwidth/u32-strwidth-tests: New file.
64288
64289         * lib/uniwidth/u32-strwidth.c: New file.
64290         * modules/uniwidth/u32-strwidth: New file.
64291
64292         * tests/uniwidth/test-u16-strwidth.c: New file.
64293         * modules/uniwidth/u16-strwidth-tests: New file.
64294
64295         * lib/uniwidth/u16-strwidth.c: New file.
64296         * modules/uniwidth/u16-strwidth: New file.
64297
64298         * tests/uniwidth/test-u8-strwidth.c: New file.
64299         * modules/uniwidth/u8-strwidth-tests: New file.
64300
64301         * lib/uniwidth/u8-strwidth.c: New file.
64302         * modules/uniwidth/u8-strwidth: New file.
64303
64304         * tests/uniwidth/test-u32-width.c: New file.
64305         * modules/uniwidth/u32-width-tests: New file.
64306
64307         * lib/uniwidth/u32-width.c: New file.
64308         * modules/uniwidth/u32-width: New file.
64309
64310         * tests/uniwidth/test-u16-width.c: New file.
64311         * modules/uniwidth/u16-width-tests: New file.
64312
64313         * lib/uniwidth/u16-width.c: New file.
64314         * modules/uniwidth/u16-width: New file.
64315
64316         * tests/uniwidth/test-u8-width.c: New file.
64317         * modules/uniwidth/u8-width-tests: New file.
64318
64319         * lib/uniwidth/u8-width.c: New file.
64320         * modules/uniwidth/u8-width: New file.
64321
64322         * tests/uniwidth/test-uc_width.c: New file.
64323         * modules/uniwidth/width-tests: New file.
64324
64325         * lib/uniwidth/width.c: New file, from GNU libiconv.
64326         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
64327         * modules/uniwidth/width: New file.
64328
64329         * lib/uniwidth.h: New file, from GNU libiconv.
64330         * modules/uniwidth/base: New file.
64331
64332 2007-07-07  Bruno Haible  <bruno@clisp.org>
64333
64334         * lib/uniname.h: New file, from GNU gettext.
64335         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
64336         * lib/uniname/uninames.h: New file, from GNU gettext.
64337         * lib/uniname/uniname.c: New file, from GNU gettext.
64338         * tests/uniname/test-uninames.sh: New file.
64339         * tests/uniname/test-uninames.c: New file, from GNU gettext.
64340         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
64341         * modules/uniname/base: New file.
64342         * modules/uniname/uniname: New file.
64343         * modules/uniname/uniname-tests: New file.
64344         * MODULES.html.sh (Unicode string functions): Add the new modules.
64345
64346 2007-07-06  Bruno Haible  <bruno@clisp.org>
64347
64348         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
64349
64350 2007-07-06  Bruno Haible  <bruno@clisp.org>
64351
64352         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
64353         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
64354         includes <cygwin/sys_time.h> which includes <sys/select.h> which
64355         include <sys/time.h>.
64356         Reported by Eric Blake.
64357
64358 2007-07-06  Eric Blake  <ebb9@byu.net>
64359
64360         Fix testing canonicalize on cygwin.
64361         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64362         Revert patch from 2007-06-19.
64363         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
64364         canonicalize module is also in use.
64365         * tests/test-canonicalize.c: New file.
64366         * tests/test-canonicalize.sh: Likewise.
64367         * modules/canonicalize-tests: Likewise.
64368
64369 2007-07-06  Jim Meyering  <jim@meyering.net>
64370
64371         * lib/getugroups.c (getugroups): Detect getgrent failure.
64372         Adjust comment to reflect reality: this function may return -1.
64373
64374 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
64375
64376         * build-aux/bootstrap (TP_URL,get_translations): Update to use
64377         the new TP address.
64378         (usage): Fix typo
64379         (gnulib_mk): New variable.
64380
64381 2007-07-05  Jim Meyering  <jim@meyering.net>
64382
64383         Don't let endgrent clobber errno, no matter how improbable.
64384         * lib/getugroups.c (getugroups): Save and restore errno around
64385         endgrent call.
64386
64387         Close the group DB even when failing with 2^31 or more members.
64388         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
64389
64390 2007-07-04  Jim Meyering  <jim@meyering.net>
64391
64392         * lib/getugroups.h: New file.
64393         * lib/getugroups.c: Include "getugroups.h".
64394         Remove uses of "register" keyword.
64395         Move local variable, "cp", down into scope where used.
64396         Give "username" parameter the "const" attribute.
64397         * modules/getugroups (Files): Add lib/getugroups.h
64398
64399 2007-07-04  Karl Berry  <karl@gnu.org>
64400
64401         * MODULES.html.sh (func_all_modules): Complete rename of
64402         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
64403
64404 2007-07-02  Bruno Haible  <bruno@clisp.org>
64405
64406         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
64407         mode, when inttypes.h comes from gnulib.
64408         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64409
64410 2007-07-02  Simon Josefsson  <simon@josefsson.org>
64411
64412         * NEWS: Mention lgpl module name change.
64413
64414         * modules/lgpl-2.1: Renamed from lgpl.
64415
64416         * NEWS: Mention gpl module name change.
64417
64418         * modules/gpl-3.0: New file, based on gpl-2.0.
64419
64420         * modules/gpl-2.0: Renamed from gpl.
64421
64422         * modules/gpl: Fix filename, doc/gpl.texi is now found at
64423         doc/gpl-2.0.texi.
64424
64425 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64426
64427         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
64428         #define __STDC_LIMIT_MACROS temporarily while including
64429         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
64430         Problem reported by Joel E. Denny in
64431         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
64432
64433 2007-07-01  Bruno Haible  <bruno@clisp.org>
64434
64435         * lib/unistdio.h: New file.
64436         * lib/unistdio/u-asnprintf.h: New file.
64437         * lib/unistdio/u-asprintf.h: New file.
64438         * lib/unistdio/u-printf-args.c: New file.
64439         * lib/unistdio/u-printf-args.h: New file.
64440         * lib/unistdio/u-printf-parse.h: New file.
64441         * lib/unistdio/u-snprintf.h: New file.
64442         * lib/unistdio/u-sprintf.h: New file.
64443         * lib/unistdio/u-vasprintf.h: New file.
64444         * lib/unistdio/u-vsnprintf.h: New file.
64445         * lib/unistdio/u-vsprintf.h: New file.
64446         * lib/unistdio/ulc-asnprintf.c: New file.
64447         * lib/unistdio/ulc-asprintf.c: New file.
64448         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
64449         * lib/unistdio/ulc-printf-parse.c: New file.
64450         * lib/unistdio/ulc-snprintf.c: New file.
64451         * lib/unistdio/ulc-sprintf.c: New file.
64452         * lib/unistdio/ulc-vasnprintf.c: New file.
64453         * lib/unistdio/ulc-vasprintf.c: New file.
64454         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
64455         * lib/unistdio/ulc-vsnprintf.c: New file.
64456         * lib/unistdio/ulc-vsprintf.c: New file.
64457         * lib/unistdio/u8-asnprintf.c: New file.
64458         * lib/unistdio/u8-asprintf.c: New file.
64459         * lib/unistdio/u8-printf-parse.c: New file.
64460         * lib/unistdio/u8-snprintf.c: New file.
64461         * lib/unistdio/u8-sprintf.c: New file.
64462         * lib/unistdio/u8-vasnprintf.c: New file.
64463         * lib/unistdio/u8-vasprintf.c: New file.
64464         * lib/unistdio/u8-vsnprintf.c: New file.
64465         * lib/unistdio/u8-vsprintf.c: New file.
64466         * lib/unistdio/u8-u8-asnprintf.c: New file.
64467         * lib/unistdio/u8-u8-asprintf.c: New file.
64468         * lib/unistdio/u8-u8-snprintf.c: New file.
64469         * lib/unistdio/u8-u8-sprintf.c: New file.
64470         * lib/unistdio/u8-u8-vasnprintf.c: New file.
64471         * lib/unistdio/u8-u8-vasprintf.c: New file.
64472         * lib/unistdio/u8-u8-vsnprintf.c: New file.
64473         * lib/unistdio/u8-u8-vsprintf.c: New file.
64474         * lib/unistdio/u16-asnprintf.c: New file.
64475         * lib/unistdio/u16-asprintf.c: New file.
64476         * lib/unistdio/u16-printf-parse.c: New file.
64477         * lib/unistdio/u16-snprintf.c: New file.
64478         * lib/unistdio/u16-sprintf.c: New file.
64479         * lib/unistdio/u16-vasnprintf.c: New file.
64480         * lib/unistdio/u16-vasprintf.c: New file.
64481         * lib/unistdio/u16-vsnprintf.c: New file.
64482         * lib/unistdio/u16-vsprintf.c: New file.
64483         * lib/unistdio/u16-u16-asnprintf.c: New file.
64484         * lib/unistdio/u16-u16-asprintf.c: New file.
64485         * lib/unistdio/u16-u16-snprintf.c: New file.
64486         * lib/unistdio/u16-u16-sprintf.c: New file.
64487         * lib/unistdio/u16-u16-vasnprintf.c: New file.
64488         * lib/unistdio/u16-u16-vasprintf.c: New file.
64489         * lib/unistdio/u16-u16-vsnprintf.c: New file.
64490         * lib/unistdio/u16-u16-vsprintf.c: New file.
64491         * lib/unistdio/u32-asnprintf.c: New file.
64492         * lib/unistdio/u32-asprintf.c: New file.
64493         * lib/unistdio/u32-printf-parse.c: New file.
64494         * lib/unistdio/u32-snprintf.c: New file.
64495         * lib/unistdio/u32-sprintf.c: New file.
64496         * lib/unistdio/u32-vasnprintf.c: New file.
64497         * lib/unistdio/u32-vasprintf.c: New file.
64498         * lib/unistdio/u32-vsnprintf.c: New file.
64499         * lib/unistdio/u32-vsprintf.c: New file.
64500         * lib/unistdio/u32-u32-asnprintf.c: New file.
64501         * lib/unistdio/u32-u32-asprintf.c: New file.
64502         * lib/unistdio/u32-u32-snprintf.c: New file.
64503         * lib/unistdio/u32-u32-sprintf.c: New file.
64504         * lib/unistdio/u32-u32-vasnprintf.c: New file.
64505         * lib/unistdio/u32-u32-vasprintf.c: New file.
64506         * lib/unistdio/u32-u32-vsnprintf.c: New file.
64507         * lib/unistdio/u32-u32-vsprintf.c: New file.
64508         * tests/unistdio/test-ulc-asnprintf1.c: New file.
64509         * tests/unistdio/test-ulc-asnprintf1.h: New file.
64510         * tests/unistdio/test-ulc-printf1.h: New file.
64511         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
64512         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
64513         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
64514         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
64515         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
64516         * tests/unistdio/test-ulc-vasprintf1.c: New file.
64517         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
64518         * tests/unistdio/test-ulc-vsprintf1.c: New file.
64519         * tests/unistdio/test-u8-asnprintf1.c: New file.
64520         * tests/unistdio/test-u8-asnprintf1.h: New file.
64521         * tests/unistdio/test-u8-printf1.h: New file.
64522         * tests/unistdio/test-u8-vasnprintf1.c: New file.
64523         * tests/unistdio/test-u8-vasnprintf2.c: New file.
64524         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
64525         * tests/unistdio/test-u8-vasnprintf3.c: New file.
64526         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
64527         * tests/unistdio/test-u8-vasprintf1.c: New file.
64528         * tests/unistdio/test-u8-vsnprintf1.c: New file.
64529         * tests/unistdio/test-u8-vsprintf1.c: New file.
64530         * tests/unistdio/test-u16-asnprintf1.c: New file.
64531         * tests/unistdio/test-u16-asnprintf1.h: New file.
64532         * tests/unistdio/test-u16-printf1.h: New file.
64533         * tests/unistdio/test-u16-vasnprintf1.c: New file.
64534         * tests/unistdio/test-u16-vasnprintf2.c: New file.
64535         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
64536         * tests/unistdio/test-u16-vasnprintf3.c: New file.
64537         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
64538         * tests/unistdio/test-u16-vasprintf1.c: New file.
64539         * tests/unistdio/test-u16-vsnprintf1.c: New file.
64540         * tests/unistdio/test-u16-vsprintf1.c: New file.
64541         * tests/unistdio/test-u32-asnprintf1.c: New file.
64542         * tests/unistdio/test-u32-asnprintf1.h: New file.
64543         * tests/unistdio/test-u32-printf1.h: New file.
64544         * tests/unistdio/test-u32-vasnprintf1.c: New file.
64545         * tests/unistdio/test-u32-vasnprintf2.c: New file.
64546         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
64547         * tests/unistdio/test-u32-vasnprintf3.c: New file.
64548         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
64549         * tests/unistdio/test-u32-vasprintf1.c: New file.
64550         * tests/unistdio/test-u32-vsnprintf1.c: New file.
64551         * tests/unistdio/test-u32-vsprintf1.c: New file.
64552         * modules/unistdio/base: New file.
64553         * modules/unistdio/u-printf-args: New file.
64554         * modules/unistdio/ulc-asnprintf: New file.
64555         * modules/unistdio/ulc-asprintf: New file.
64556         * modules/unistdio/ulc-fprintf: New file.
64557         * modules/unistdio/ulc-printf-parse: New file.
64558         * modules/unistdio/ulc-snprintf: New file.
64559         * modules/unistdio/ulc-sprintf: New file.
64560         * modules/unistdio/ulc-vasnprintf: New file.
64561         * modules/unistdio/ulc-vasprintf: New file.
64562         * modules/unistdio/ulc-vfprintf: New file.
64563         * modules/unistdio/ulc-vsnprintf: New file.
64564         * modules/unistdio/ulc-vsprintf: New file.
64565         * modules/unistdio/u8-asnprintf: New file.
64566         * modules/unistdio/u8-asprintf: New file.
64567         * modules/unistdio/u8-printf-parse: New file.
64568         * modules/unistdio/u8-snprintf: New file.
64569         * modules/unistdio/u8-sprintf: New file.
64570         * modules/unistdio/u8-vasnprintf: New file.
64571         * modules/unistdio/u8-vasprintf: New file.
64572         * modules/unistdio/u8-vsnprintf: New file.
64573         * modules/unistdio/u8-vsprintf: New file.
64574         * modules/unistdio/u8-u8-asnprintf: New file.
64575         * modules/unistdio/u8-u8-asprintf: New file.
64576         * modules/unistdio/u8-u8-snprintf: New file.
64577         * modules/unistdio/u8-u8-sprintf: New file.
64578         * modules/unistdio/u8-u8-vasnprintf: New file.
64579         * modules/unistdio/u8-u8-vasprintf: New file.
64580         * modules/unistdio/u8-u8-vsnprintf: New file.
64581         * modules/unistdio/u8-u8-vsprintf: New file.
64582         * modules/unistdio/u16-asnprintf: New file.
64583         * modules/unistdio/u16-asprintf: New file.
64584         * modules/unistdio/u16-printf-parse: New file.
64585         * modules/unistdio/u16-snprintf: New file.
64586         * modules/unistdio/u16-sprintf: New file.
64587         * modules/unistdio/u16-vasnprintf: New file.
64588         * modules/unistdio/u16-vasprintf: New file.
64589         * modules/unistdio/u16-vsnprintf: New file.
64590         * modules/unistdio/u16-vsprintf: New file.
64591         * modules/unistdio/u16-u16-asnprintf: New file.
64592         * modules/unistdio/u16-u16-asprintf: New file.
64593         * modules/unistdio/u16-u16-snprintf: New file.
64594         * modules/unistdio/u16-u16-sprintf: New file.
64595         * modules/unistdio/u16-u16-vasnprintf: New file.
64596         * modules/unistdio/u16-u16-vasprintf: New file.
64597         * modules/unistdio/u16-u16-vsnprintf: New file.
64598         * modules/unistdio/u16-u16-vsprintf: New file.
64599         * modules/unistdio/u32-asnprintf: New file.
64600         * modules/unistdio/u32-asprintf: New file.
64601         * modules/unistdio/u32-printf-parse: New file.
64602         * modules/unistdio/u32-snprintf: New file.
64603         * modules/unistdio/u32-sprintf: New file.
64604         * modules/unistdio/u32-vasnprintf: New file.
64605         * modules/unistdio/u32-vasprintf: New file.
64606         * modules/unistdio/u32-vsnprintf: New file.
64607         * modules/unistdio/u32-vsprintf: New file.
64608         * modules/unistdio/u32-u32-asnprintf: New file.
64609         * modules/unistdio/u32-u32-asprintf: New file.
64610         * modules/unistdio/u32-u32-snprintf: New file.
64611         * modules/unistdio/u32-u32-sprintf: New file.
64612         * modules/unistdio/u32-u32-vasnprintf: New file.
64613         * modules/unistdio/u32-u32-vasprintf: New file.
64614         * modules/unistdio/u32-u32-vsnprintf: New file.
64615         * modules/unistdio/u32-u32-vsprintf: New file.
64616         * modules/unistdio/ulc-asnprintf-tests: New file.
64617         * modules/unistdio/ulc-vasnprintf-tests: New file.
64618         * modules/unistdio/ulc-vasprintf-tests: New file.
64619         * modules/unistdio/ulc-vsnprintf-tests: New file.
64620         * modules/unistdio/ulc-vsprintf-tests: New file.
64621         * modules/unistdio/u8-asnprintf-tests: New file.
64622         * modules/unistdio/u8-vasnprintf-tests: New file.
64623         * modules/unistdio/u8-vasprintf-tests: New file.
64624         * modules/unistdio/u8-vsnprintf-tests: New file.
64625         * modules/unistdio/u8-vsprintf-tests: New file.
64626         * modules/unistdio/u16-asnprintf-tests: New file.
64627         * modules/unistdio/u16-vasnprintf-tests: New file.
64628         * modules/unistdio/u16-vasprintf-tests: New file.
64629         * modules/unistdio/u16-vsnprintf-tests: New file.
64630         * modules/unistdio/u16-vsprintf-tests: New file.
64631         * modules/unistdio/u32-asnprintf-tests: New file.
64632         * modules/unistdio/u32-vasnprintf-tests: New file.
64633         * modules/unistdio/u32-vasprintf-tests: New file.
64634         * modules/unistdio/u32-vsnprintf-tests: New file.
64635         * modules/unistdio/u32-vsprintf-tests: New file.
64636         * MODULES.html.sh (Unicode string functions): Add the new modules.
64637
64638 2007-07-01  Bruno Haible  <bruno@clisp.org>
64639
64640         * lib/sprintf.c (sprintf): Limit the available length estimation,
64641         to avoid address wraparound.
64642         * lib/vsprintf.c (vsprintf): Likewise.
64643         * modules/sprintf-posix (Dependencies): Add stdint.
64644         * modules/vsprintf-posix (Dependencies): Likewise.
64645
64646 2007-07-01  Bruno Haible  <bruno@clisp.org>
64647
64648         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64649         Windows PATH as well. Conservative double-quoting. Comments.
64650
64651 2007-07-01  Bruno Haible  <bruno@clisp.org>
64652             Eric Blake  <ebb9@byu.net>
64653             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64654
64655         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64656         empty components in $PATH, denoting '.'.
64657
64658 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64659
64660         * gnulib-tool: Fix indentation.
64661         (func_create_megatestdir): Likewise.
64662         Report by Bruno Haible.
64663
64664 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64665
64666         Sync from Automake.
64667         * build-aux/gnupload: Fix shell portability issues with for loops.
64668         Report by Karl Berry.
64669
64670 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64671
64672         * build-aux/maint.mk (POURL): Use translationproject.org.
64673
64674 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64675             Bruno Haible  <bruno@clisp.org>
64676
64677         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64678         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64679         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64680         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64681         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64682
64683 2007-06-27  Bruno Haible  <bruno@clisp.org>
64684
64685         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64686         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64687
64688 2007-06-26  Karl Berry  <karl@gnu.org>
64689
64690         * MODULES.html.sh: remove xreadlink-with-size.
64691
64692 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64693
64694         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64695         method that I hope also handles the double-include problem noted
64696         by Bruno Haible in
64697         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64698
64699 2007-06-23  Bruno Haible  <bruno@clisp.org>
64700
64701         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64702         Don't let the 'mostlyclean' target fail if the last subdirectory could
64703         not be removed.
64704         Reported by Karl Berry.
64705
64706 2007-06-23  Bruno Haible  <bruno@clisp.org>
64707
64708         * gnulib-tool (echo): Add a speedier workaround for ksh.
64709         * tests/test-echo.sh: Likewise.
64710
64711 2007-06-23  Bruno Haible  <bruno@clisp.org>
64712
64713         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64714         * tests/test-echo.sh: Likewise.
64715
64716 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64717
64718         * gnulib-tool (IFS): Initialize early, so we don't set it to
64719         empty later.
64720         (self_abspathname): Rewrite algorithm to set it, reindent.
64721         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64722         (func_create_megatestdir): Merge some sed scripts.
64723
64724 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64725
64726         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64727         exposed by Sun Studio 11 cc on Solaris 8.
64728
64729 2007-06-22  Bruno Haible  <bruno@clisp.org>
64730
64731         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64732         backslashes.
64733         * tests/test-echo.sh: New file.
64734
64735 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64736
64737         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64738         simplify `sed_replace_build_aux' scripts, they are portable but
64739         echoing them with `echo' is not.
64740         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64741
64742 2007-06-21  Karl Berry  <karl@gnu.org>
64743
64744         * config/srclist.txt: guess we can't handle the licenses via
64745         srclist at the moment.
64746
64747 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64748
64749         * MODULES.html.sh: Add include_next.
64750         * modules/include_next: New file.
64751
64752 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64753
64754         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64755         INCLUDE_NEXT.
64756         (gl_CHECK_NEXT_HEADERS): New macro.
64757         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64758         the obsolescent gl_ABSOLUTE_HEADER.
64759         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64760         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64761         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64762         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64763         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64764         * m4/math_h.m4 (gl_MATH_H): Likewise.
64765         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64766         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64767         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64768         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64769         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64770         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64771         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64772         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64773         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64774         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64775         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64776         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64777         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64778         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64779         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64780         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64781         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64782         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64783         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64784         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64785         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64786         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64787         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64788         * lib/float_.h: Likewise.
64789         * lib/inttypes_.h: Likewise.
64790         * lib/math_.h: Likewise.
64791         * lib/search_.h: Likewise.
64792         * lib/signal_.h: Likewise.
64793         * lib/stdint_.h: Likewise.
64794         * lib/stdio_.h: Likewise.
64795         * lib/stdlib_.h: Likewise.
64796         * lib/string_.h: Likewise.
64797         * lib/sys_stat_.h: Likewise.
64798         * lib/sys_time_.h: Likewise.
64799         * lib/time_.h: Likewise.
64800         * lib/unistd_.h: Likewise.
64801         * lib/wchar_.h: Likewise.
64802         * lib/wctype_.h: Likewise.
64803         * lib/dirent_.h: Likewise.
64804         * lib/iconv_.h: Likewise.
64805         * lib/locale_.h: Likewise.
64806         * lib/netinet_in_.h: Likewise.
64807         * lib/sys_select_.h: Likewise.
64808         * lib/sys_socket_.h: Likewise.
64809         * lib/sysexits_.h: Likewise.
64810         * modules/fcntl (Depends-on): Depend on include_next, not
64811         absolute_header.
64812         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64813         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64814         * modules/fchdir: Likewise.
64815         * modules/float: Likewise.
64816         * modules/iconv_open: Likewise.
64817         * modules/inttypes: Likewise.
64818         * modules/locale: Likewise.
64819         * modules/math: Likewise.
64820         * modules/netinet_in: Likewise.
64821         * modules/search: Likewise.
64822         * modules/signal: Likewise.
64823         * modules/stdint: Likewise.
64824         * modules/stdio: Likewise.
64825         * modules/stdlib: Likewise.
64826         * modules/string: Likewise.
64827         * modules/sys_select: Likewise.
64828         * modules/sys_socket: Likewise.
64829         * modules/sys_stat: Likewise.
64830         * modules/sys_time: Likewise.
64831         * modules/sysexits: Likewise.
64832         * modules/time: Likewise.
64833         * modules/unistd: Likewise.
64834         * modules/wchar: Likewise.
64835         * modules/wctype: Likewise.
64836         * modules/sys_stat: Change maintainer to "all".
64837         * modules/unistd: Likewise.
64838
64839 2007-06-20  Karl Berry  <karl@gnu.org>
64840
64841         * config/srclist.txt: track www changes in license files.
64842
64843 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64844
64845         * build-aux/bootstrap: Remove stray dot.
64846         Make sure build_aux settings are honored when linking
64847         gnulib_extra_files.
64848
64849 2007-06-19  Eric Blake  <ebb9@byu.net>
64850
64851         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64852         Allow compilation on cygwin.
64853
64854 2007-06-19  Jim Meyering  <jim@meyering.net>
64855
64856         xreadlink-with-size: Remove module.  No longer used.
64857         Ex-callers now use xreadlink or mreadlink-with-size.
64858         * modules/xreadlink-with-size: Remove module.
64859         * lib/xreadlink-with-size.c: Remove file.
64860         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64861         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64862         just before the function definition *is* accurate.
64863
64864         Eliminate one way canonicalize_filename_mode could exit.
64865         * lib/canonicalize.c (canonicalize_filename_mode):
64866         Use mreadlink_with_size, not xreadlink_with_size.
64867
64868 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64869
64870         Detect porting problems to FreeBSD/arm, which has time_t wider than
64871         long int.  Original problem reported for GNU diff by Xin Li in
64872         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64873         * modules/getdate (Depends-on): Add intprops, verify.
64874         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64875         is an integer type no wider than long int.
64876
64877 2007-06-18  Jim Meyering  <jim@meyering.net>
64878
64879         New module: mreadlink-with-size.
64880         * MODULES.html.sh: Add mreadlink-with-size.
64881         * modules/mreadlink-with-size: New module
64882         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64883         not xreadlink-with-size.
64884         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64885
64886 2007-06-16  Bruno Haible  <bruno@clisp.org>
64887
64888         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64889         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64890         Reported by Gary V. Vaughan <gary@gnu.org>.
64891
64892 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64893
64894         Revamp lchown so that it lives in unistd.h where it belongs.
64895         * lib/lchown.h: Remove.
64896         * lib/dirchownmod.c: Don't include lib/lchown.h.
64897         * lib/fchownat.c: Likewise.
64898         * lib/openat.c: Likewise.
64899         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64900         does not follow symlinks.
64901         (EOPNOTSUPP): Define if not defined.
64902         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64903         is defined to 0.
64904         (lchown): New decl.
64905         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64906         Do not check for lchown decl.
64907         Set REPLACE_LCHOWN.
64908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64909         REPLACE_LCHOWN.
64910         * modules/chown: Make it clear it follows symlinks.
64911         * modules/lchown: Make it clear it doesn't follow symlinks.
64912         (Files): Remove lib/lchown.h
64913         (Depends-on): Add unistd.
64914         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64915         (Include): Include <unistd.h>, not "lchown.h".
64916         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64917         REPLACE_LCHOWN.
64918
64919 2007-06-15  Jim Meyering  <jim@meyering.net>
64920
64921         Change license (GPL to LGPL) of fsusage and dependents.
64922         * modules/fsusage (License): Change to LGPL.
64923         * modules/full-read (License): Likewise.
64924         * modules/full-write (License): Likewise.
64925         * modules/safe-read (License): Likewise.
64926         * modules/safe-write (License): Likewise.
64927
64928 2007-06-14  Ben Pfaff  <blp@gnu.org>
64929
64930         Missing part of allocsa -> malloca transition.
64931         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64932         gl_MALLOCA.
64933
64934 2007-06-12  Bruno Haible  <bruno@clisp.org>
64935
64936         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64937         to ia64, x86_64, i386.
64938         Reported by Eric Blake.
64939
64940 2007-06-12  Bruno Haible  <bruno@clisp.org>
64941
64942         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64943         cross-compiling to x86_64.
64944
64945 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64946
64947         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64948         glitch reported by Ralf Wildenhues in
64949         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64950
64951         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64952         Vin Shelton.
64953
64954 2007-06-11  Bruno Haible  <bruno@clisp.org>
64955
64956         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64957         replacement string.
64958         Reported by Eric Blake.
64959
64960 2007-06-10  Bruno Haible  <bruno@clisp.org>
64961
64962         Prepare vasnprintf code for use with Unicode strings.
64963         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64964         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64965         TYPE_U32_STRING.
64966         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64967         a_u32_string variants.
64968         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64969         * lib/printf-args.c: Don't include config.h and the specification
64970         header if PRINTF_FETCHARGS is already defined.
64971         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64972         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64973         TYPE_U16_STRING, TYPE_U32_STRING.
64974         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64975         u16_directive, u16_directives, u32_directive, u32_directives): New
64976         types.
64977         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64978         New declarations.
64979         * lib/printf-parse.c: Don't include config.h and the specification
64980         header if PRINTF_PARSE is already defined. Eliminate the set of
64981         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64982         them now. Include c-ctype.h.
64983         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64984         directive and CHAR_T_ONLY_ASCII.
64985         * lib/vasnprintf.c: Don't include config.h and the specification header
64986         if VASNPRINTF is already defined.
64987         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64988         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64989         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64990         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64991         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64992         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64993         code accordingly.
64994         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64995         pad_ourselves also in this case, with the 'c' and 's' directives, and
64996         with a different notion of "width".
64997         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64998
64999 2007-06-10  Bruno Haible  <bruno@clisp.org>
65000
65001         * modules/unistr/u32-mbsnlen: New file.
65002         * lib/unistr/u32-mbsnlen.c: New file.
65003
65004         * modules/unistr/u16-mbsnlen: New file.
65005         * lib/unistr/u16-mbsnlen.c: New file.
65006
65007         * modules/unistr/u8-mbsnlen: New file.
65008         * lib/unistr/u8-mbsnlen.c: New file.
65009
65010         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
65011         declarations.
65012
65013 2007-06-10  Bruno Haible  <bruno@clisp.org>
65014
65015         * lib/string_.h (mbsnlen): New declaration.
65016         * lib/mbsnlen.c: New file.
65017         * m4/mbsnlen.m4: New file.
65018         * modules/mbsnlen: New file.
65019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
65020         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
65021         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
65022
65023 2007-06-10  Bruno Haible  <bruno@clisp.org>
65024
65025         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
65026
65027 2007-06-10  Bruno Haible  <bruno@clisp.org>
65028
65029         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
65030         * lib/mbuiter.h: Likewise.
65031
65032 2007-06-10  Bruno Haible  <bruno@clisp.org>
65033
65034         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
65035         declaration.
65036
65037 2007-06-10  Karl Berry  <karl@gnu.org>
65038
65039         * config/srclist.txt: remove gettext entries, Bruno prefers
65040         to update individually.
65041
65042 2007-06-10  Bruno Haible  <bruno@clisp.org>
65043
65044         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
65045         'maxlen'. Ensure only length + width bytes are allocated, not
65046         length + 1 + width.
65047
65048 2007-06-09  Bruno Haible  <bruno@clisp.org>
65049
65050         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
65051         (CHAR_T): Remove macro.
65052         (VASNPRINTF): Update.
65053
65054 2007-06-09  Bruno Haible  <bruno@clisp.org>
65055
65056         * MODULES.html.sh (Unicode string functions): Add the new modules.
65057
65058         * modules/uniconv/u32-conv-to-enc: New file.
65059         * lib/uniconv/u32-conv-to-enc.c: New file.
65060         * modules/uniconv/u32-conv-to-enc-tests: New file.
65061         * tests/uniconv/test-u32-conv-to-enc.c: New file.
65062
65063         * modules/uniconv/u16-conv-to-enc: New file.
65064         * lib/uniconv/u16-conv-to-enc.c: New file.
65065         * lib/uniconv/u-conv-to-enc.h: New file.
65066         * modules/uniconv/u16-conv-to-enc-tests: New file.
65067         * tests/uniconv/test-u16-conv-to-enc.c: New file.
65068
65069         * modules/uniconv/u8-conv-to-enc: New file.
65070         * lib/uniconv/u8-conv-to-enc.c: New file.
65071         * modules/uniconv/u8-conv-to-enc-tests: New file.
65072         * tests/uniconv/test-u8-conv-to-enc.c: New file.
65073
65074         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
65075         u32_conv_to_encoding): New declarations.
65076
65077 2007-06-09  Bruno Haible  <bruno@clisp.org>
65078
65079         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
65080
65081 2007-06-09  Bruno Haible  <bruno@clisp.org>
65082
65083         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
65084         * modules/malloca: Renamed from modules/allocsa, updated.
65085         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
65086         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
65087         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
65088         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
65089         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
65090         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
65091         * modules/xmalloca: Renamed from modules/xallocsa, updated.
65092         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
65093         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
65094         * modules/c-strcasestr (Depends-on): Update.
65095         * lib/c-strcasestr.c: Update.
65096         * modules/c-strstr (Depends-on): Update.
65097         * lib/c-strstr.c: Update.
65098         * modules/canonicalize-lgpl (Depends-on): Update.
65099         * lib/canonicalize-lgpl.c: Update.
65100         * modules/clean-temp (Depends-on): Update.
65101         * lib/clean-temp.c: Update.
65102         * modules/csharpcomp (Depends-on): Update.
65103         * lib/csharpcomp.c: Update.
65104         * modules/csharpexec (Depends-on): Update.
65105         * lib/csharpexec.c: Update.
65106         * modules/javacomp (Depends-on): Update.
65107         * lib/javacomp.c: Update.
65108         * modules/javaexec (Depends-on): Update.
65109         * lib/javaexec.c: Update.
65110         * modules/mbscasestr (Depends-on): Update.
65111         * lib/mbscasestr.c: Update.
65112         * modules/mbsstr (Depends-on): Update.
65113         * lib/mbsstr.c: Update.
65114         * modules/setenv (Depends-on): Update.
65115         * lib/setenv.c: Update.
65116         * modules/strcasestr (Depends-on): Update.
65117         * lib/strcasestr.c: Update.
65118         * modules/striconveha (Depends-on): Update.
65119         * lib/striconveha.c: Update.
65120         * modules/relocatable-prog-wrapper (Files): Update.
65121         * lib/relocwrapper.c: Update.
65122         * build-aux/install-reloc: Update.
65123         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
65124
65125 2007-06-08  Bruno Haible  <bruno@clisp.org>
65126
65127         Port to uClibc.
65128         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
65129         * lib/fpurge.c (fpurge): Likewise.
65130         * lib/freading.c (freading): Likewise.
65131         * lib/fseeko.c (rpl_fseeko): Likewise.
65132         * lib/fseterr.c (fseterr): Likewise.
65133         * lib/fwriting.c (fwriting): Likewise.
65134         * tests/test-fflush.c (main): Avoid a failure on uClibc.
65135
65136 2007-06-08  Bruno Haible  <bruno@clisp.org>
65137
65138         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
65139         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
65140         * modules/gettext (Files): Add m4/intlmacosx.m4.
65141
65142 2007-06-07  Bruno Haible  <bruno@clisp.org>
65143
65144         * modules/localename-tests: New file.
65145         * tests/test-localename.c: New file.
65146
65147         New module 'localename'.
65148         * lib/localename.h: New file.
65149         * lib/localename.c: New file, from GNU gettext.
65150         * m4/localename.m4: New file.
65151         * modules/localename: New file.
65152
65153 2007-06-07  Bruno Haible  <bruno@clisp.org>
65154
65155         Work around the lack of <wchar.h> on some builds of uClibc.
65156         * doc/headers/wchar.texi: Update.
65157         * lib/wchar_.h: Include <wchar.h> only if it exists.
65158         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
65159         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
65160         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
65161         doesn't exist.
65162         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
65163         * modules/mbfile (Depends-on): Add wchar.
65164         * modules/mbiter (Depends-on): Likewise.
65165         * modules/mbuiter (Depends-on): Likewise.
65166         Reported by Simon Josefsson.
65167
65168 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65169
65170         Work around problem reported by Steven M. Schweda in
65171         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
65172         Tru64 5.1B with the Compaq compiler environment installed declares
65173         an 'isblank' function but does not define it in the C library.
65174         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
65175         * lib/regex_internal.h (isblank): Likewise.
65176         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
65177         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65178
65179 2007-06-05  Bruno Haible  <bruno@clisp.org>
65180
65181         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
65182         ia64.
65183         * modules/printf-safe: New file.
65184         * modules/fprintf-posix (Depends-on): Add printf-safe.
65185         * modules/printf-posix (Depends-on): Likewise.
65186         * modules/snprintf-posix (Depends-on): Likewise.
65187         * modules/sprintf-posix (Depends-on): Likewise.
65188         * modules/vasnprintf-posix (Depends-on): Likewise.
65189         * modules/vasprintf-posix (Depends-on): Likewise.
65190         * modules/vfprintf-posix (Depends-on): Likewise.
65191         * modules/vprintf-posix (Depends-on): Likewise.
65192         * modules/vsnprintf-posix (Depends-on): Likewise.
65193         * modules/vsprintf-posix (Depends-on): Likewise.
65194         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
65195         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
65196         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
65197         "no" on i386, x86_64, ia64.
65198         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
65199         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65200         on i386, x86_64, ia64.
65201         * tests/test-sprintf-posix.h (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-vasnprintf-posix.c: Include float.h.
65205         (LDBL80_WORDS): New macro.
65206         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65207         on i386, x86_64, ia64.
65208         * tests/test-vasprintf-posix.c: Include float.h.
65209         (LDBL80_WORDS): New macro.
65210         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65211         on i386, x86_64, ia64.
65212         * tests/test-snprintf-posix.c: Include float.h.
65213         * tests/test-sprintf-posix.c: Likewise.
65214         * tests/test-vsnprintf-posix.c: Likewise.
65215         * tests/test-vsprintf-posix.c: Likewise.
65216
65217 2007-06-05  Bruno Haible  <bruno@clisp.org>
65218
65219         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
65220         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
65221         non-IEEE numbers on i386, x86_64, ia64.
65222         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
65223         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
65224         * tests/test-isnanl.h: Include float.h.
65225         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
65226
65227 2007-06-05  Bruno Haible  <bruno@clisp.org>
65228
65229         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
65230         also the %a / %A. Handle the %a / %A code before this extra handling.
65231
65232 2007-06-05  Bruno Haible  <bruno@clisp.org>
65233
65234         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
65235         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
65236
65237 2007-06-05  Bruno Haible  <bruno@clisp.org>
65238
65239         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
65240         typo in variable name.
65241
65242 2007-06-05  Eric Blake  <ebb9@byu.net>
65243
65244         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
65245         Reported by Simon Josefsson.
65246
65247 2007-06-04  Bruno Haible  <bruno@clisp.org>
65248
65249         Avoid test failures on some PowerPC platforms.
65250         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
65251         Define differently for PowerPC.
65252         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
65253         Reported by Gary V. Vaughan <gary@gnu.org>.
65254
65255 2007-06-02  Bruno Haible  <bruno@clisp.org>
65256
65257         Fix test-stdint failure on FreeBSD/ia64.
65258         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
65259         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
65260         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
65261         * doc/headers/stdint.texi: Update.
65262
65263 2007-06-01  Bruno Haible  <bruno@clisp.org>
65264
65265         * tests/test-binary-io.c (main): Pass a third argument to open().
65266         Reported by Gary V. Vaughan <gary@gnu.org>.
65267
65268 2007-06-01  Bruno Haible  <bruno@clisp.org>
65269
65270         * doc/functions/frexpl.texi: Update for mingw.
65271
65272 2007-06-01  Bruno Haible  <bruno@clisp.org>
65273
65274         * tests/test-lseek.c (main): Disable test of errno for invalid third
65275         argument.
65276         * doc/functions/lseek.texi: Update.
65277         Reported by Gary V. Vaughan <gary@gnu.org>.
65278
65279 2007-05-28  Bruno Haible  <bruno@clisp.org>
65280
65281         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
65282
65283 2007-05-31  Eric Blake  <ebb9@byu.net>
65284
65285         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
65286         cross compiling.
65287
65288 2007-05-30  Eric Blake  <ebb9@byu.net>
65289         and Bruno Haible  <bruno@clisp.org>
65290
65291         Work around mingw test failures exposed by m4-1.4.9b.
65292         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
65293         * tests/test-unistd.c: Disable uid_t and git_t tests for the
65294         moment.
65295
65296 2007-05-30  Bruno Haible  <bruno@clisp.org>
65297
65298         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
65299         assuming that they are closed. Needed on HP-UX 11.
65300
65301 2007-05-29  Bruno Haible  <bruno@clisp.org>
65302
65303         Fix a problem with #include_next.
65304         * lib/dirent_.h: Split the double-inclusion guard.
65305         * lib/fcntl_.h: Likewise.
65306         * lib/float_.h: Likewise.
65307         * lib/iconv_.h: Likewise.
65308         * lib/inttypes_.h: Likewise.
65309         * lib/locale_.h: Likewise.
65310         * lib/math_.h: Likewise.
65311         * lib/netinet_in_.h: Likewise.
65312         * lib/search_.h: Likewise.
65313         * lib/signal_.h: Likewise.
65314         * lib/stdint_.h: Likewise.
65315         * lib/stdio_.h: Likewise.
65316         * lib/stdlib_.h: Likewise.
65317         * lib/string_.h: Likewise.
65318         * lib/sys_select_.h: Likewise.
65319         * lib/sys_socket_.h: Likewise.
65320         * lib/sys_stat_.h: Likewise.
65321         * lib/sys_time_.h: Likewise.
65322         * lib/sysexits_.h: Likewise.
65323         * lib/time_.h: Likewise.
65324         * lib/unistd_.h: Likewise.
65325         * lib/wchar_.h: Likewise.
65326         * lib/wctype_.h: Likewise.
65327
65328 2007-05-29  Bruno Haible  <bruno@clisp.org>
65329
65330         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
65331         for the moment.
65332
65333 2007-05-29  Bruno Haible  <bruno@clisp.org>
65334
65335         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
65336         invocation.
65337         Reported by Eric Blake.
65338
65339 2007-05-29  Bruno Haible  <bruno@clisp.org>
65340
65341         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
65342         compiling case.
65343
65344 2007-05-29  Eric Blake  <ebb9@byu.net>
65345             Bruno Haible  <bruno@clisp.org>
65346
65347         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
65348         cross compiles.
65349
65350 2007-05-28  Eric Blake  <ebb9@byu.net>
65351
65352         * modules/closein-tests (test_closein_LDADD): Support test on
65353         cygwin with libtool.
65354
65355 2007-05-28  Bruno Haible  <bruno@clisp.org>
65356
65357         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
65358         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65359         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65360         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65361         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65362         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65363         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65364         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65365         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65366
65367 2007-05-28  Eric Blake  <ebb9@byu.net>
65368
65369         Unconditionally include <config.h> in unit tests.
65370         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
65371         * tests/test-allocsa.c, tests/test-arcfour.c,
65372         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
65373         tests/test-array_list.c, tests/test-array_oset.c,
65374         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
65375         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
65376         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
65377         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
65378         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
65379         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
65380         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
65381         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
65382         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
65383         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
65384         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
65385         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
65386         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
65387         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
65388         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
65389         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
65390         test-md5.c, test-memmem.c, test-printf-posix.c,
65391         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
65392         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
65393         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
65394         test-strcasestr.c, test-striconv.c, test-striconveh.c,
65395         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
65396         test-vasnprintf-posix2.c, test-vasnprintf.c,
65397         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
65398         test-vfprintf-posix.c, test-vprintf-posix.c,
65399         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
65400         test-xvasprintf.c: Likewise.
65401
65402 2007-05-28  Bruno Haible  <bruno@clisp.org>
65403
65404         * gnulib-tool (func_import): Remember the --with-tests command-line
65405         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
65406         Reported by Eric Blake.
65407
65408 2007-05-28  Bruno Haible  <bruno@clisp.org>
65409
65410         * modules/ftell-tests: New file.
65411         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
65412         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
65413
65414         * lib/ftell.c: New file.
65415         * modules/ftell: New file.
65416         * m4/ftell.m4: New file.
65417         * doc/functions/ftell.texi: Update.
65418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
65419         REPLACE_FTELL.
65420         * lib/stdio_.h (rpl_ftell): New declaration.
65421         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
65422         REPLACE_FTELL.
65423
65424 2007-05-28  Eric Blake  <ebb9@byu.net>
65425
65426         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
65427
65428 2007-05-28  Bruno Haible  <bruno@clisp.org>
65429
65430         * modules/fseek-tests: New file.
65431         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
65432         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
65433
65434         * lib/fseek.c: New file.
65435         * modules/fseek: New file.
65436         * m4/fseek.m4: New file.
65437         * doc/functions/fseek.texi: Update.
65438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
65439         REPLACE_FSEEK.
65440         * lib/stdio_.h (rpl_fseek): New declaration.
65441         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
65442         REPLACE_FSEEK.
65443
65444 2007-05-28  Bruno Haible  <bruno@clisp.org>
65445
65446         * lib/stdio_.h (fflush): More comments.
65447
65448 2007-05-28  Bruno Haible  <bruno@clisp.org>
65449
65450         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
65451         runtime test.
65452
65453 2007-05-28  Eric Blake  <ebb9@byu.net>
65454
65455         Improve lseek module.
65456         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
65457         * lib/unistd_.h (lseek): Scale back link warning message.
65458         * tests/test-lseek.c: Beef up test.
65459         * tests/test-lseek.sh: Exercise more facets of lseek.
65460         Reported by Bruno Haible.
65461
65462 2007-05-28  Bruno Haible  <bruno@clisp.org>
65463
65464         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
65465         to define.
65466
65467 2007-05-27  Bruno Haible  <bruno@clisp.org>
65468
65469         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
65470
65471 2007-05-27  Bruno Haible  <bruno@clisp.org>
65472
65473         * modules/openmp: New file.
65474         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
65475         Noah Misch.
65476
65477 2007-05-26  Bruno Haible  <bruno@clisp.org>
65478
65479         * modules/chdir-long (Depends-on): Add fchdir.
65480         * modules/chdir-safer (Depends-on): Likewise.
65481         * modules/fts (Depends-on): Likewise.
65482         * modules/fts-lgpl (Depends-on): Likewise.
65483         * modules/openat (Depends-on): Likewise.
65484         * modules/savewd (Depends-on): Likewise.
65485
65486 2007-05-24  Eric Blake  <ebb9@byu.net>
65487
65488         Fix lseek on mingw.
65489         * modules/lseek: New module.
65490         * m4/lseek.m4: New file.
65491         * lib/lseek.c: New file.
65492         * modules/lseek-tests: New file.
65493         * tests/test-lseek.c: New file.
65494         * tests/test-lseek.sh: New file.
65495         * MODULES.html.sh: Document lseek module.
65496         * modules/fflush (Depends-on): Add lseek, fseeko.
65497         * modules/fseeko (Depends-on): Likewise.
65498         * modules/ftello (Depends-on): Likewise.
65499         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
65500         broken.
65501         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
65502         broken.
65503         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
65504         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
65505         * lib/ftello.c (rpl_ftello): Likewise.
65506         * tests/test-fseeko.c (main): Test this.
65507         * tests/test-fseeko.sh: Likewise.
65508         * tests/test-ftello.c (main): Likewise.
65509         * tests/test-ftello.sh: Likewise.
65510         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
65511         implies replacing fseek.
65512         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
65513         HAVE_FTELLO.
65514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
65515         * modules/unistd (Makefile.am): Likewise.
65516         * lib/unistd_.h (lseek): Declare a replacement.
65517         * doc/functions/lseek.texi (lseek): Document this fix.
65518         * doc/functions/fseek.texi (fseek): Likewise.
65519         * doc/functions/ftell.texi (ftell): Likewise.
65520
65521 2007-05-24  Bruno Haible  <bruno@clisp.org>
65522
65523         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
65524         in the printed representation of a NaN.
65525         * tests/test-vasprintf-posix.c (test_function): Likewise.
65526         * tests/test-snprintf-posix.h (test_function): Likewise.
65527         * tests/test-sprintf-posix.h (test_function): Likewise.
65528         Reported by Eric Blake.
65529
65530 2007-05-23  Eric Blake  <ebb9@byu.net>
65531
65532         Fix fseeko/ftello on cygwin 1.5.24.
65533         * doc/functions/fseeko.texi (fseeko): Document the fix.
65534         * doc/functions/ftello.texi (ftello): Document the fix.
65535         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
65536         * doc/functions/stdout.text (stdout): New file.
65537         * doc/functions/stderr.text (stderr): New file.
65538         * doc/gnulib.texi (Function Substitutes): Use new files.
65539         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
65540         prior to 1.7.0.
65541         * tests/test-ftello.c (main): Likewise for ftello.
65542         * tests/test-fseeko.sh: New file.
65543         * tests/test-ftello.sh: New file.
65544         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
65545         with seekable stdin.
65546         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
65547         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
65548         (gl_REPLACE_FSEEKO): New macro.
65549         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
65550         * modules/fseeko (Files): Distribute fseeko.c.
65551         * modules/ftello (Files): Distribute ftello.c.
65552         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
65553         mode.
65554         * lib/ftello.c (rpl_ftello): New file.
65555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
65556         fseeko, ftello.
65557         (gl_STDIN_LARGE_OFFSET): New macro.
65558         * modules/stdio (Makefile.am): Perform the replacement.
65559         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65560
65561 2007-05-23  Bruno Haible  <bruno@clisp.org>
65562
65563         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65564         GNULIB_POSIXCHECK is defined.
65565
65566 2007-05-21  Bruno Haible  <bruno@clisp.org>
65567
65568         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65569         Check also the output for NaN arguments. When cross-compiling, guess
65570         no on IRIX.
65571         * lib/vasnprintf.c: Update comments.
65572         * tests/test-vasnprintf-posix.c (strisnan): New function.
65573         (test_function): Use it.
65574         * tests/test-vasprintf-posix.c (strisnan): New function.
65575         (test_function): Use it.
65576         * tests/test-snprintf-posix.h (strisnan): New function.
65577         (test_function): Use it.
65578         * tests/test-sprintf-posix.h (strisnan): New function.
65579         (test_function): Use it.
65580         Reported by Eric Blake.
65581
65582 2007-05-20  Bruno Haible  <bruno@clisp.org>
65583
65584         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65585         numbers that fails on BeOS.
65586         * doc/functions/frexpl.texi: Update.
65587
65588 2007-05-20  Jim Meyering  <jim@meyering.net>
65589
65590         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65591         forced upon us by glibc-2.6.
65592
65593 2007-05-20  Bruno Haible  <bruno@clisp.org>
65594
65595         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65596         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65597         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65598         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65599         NEED_PRINTF_INFINITE.
65600         (is_infinitel): New function.
65601         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65602         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65603         gl_PREREQ_VASNPRINTF_INFINITE.
65604         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65605         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65606         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65607         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65608         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65609         gl_PREREQ_VASNPRINTF_INFINITE.
65610         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65611         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65612         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65613         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65614         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65615         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65616         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65617         * doc/functions/fprintf.texi: Update.
65618         * doc/functions/printf.texi: Update.
65619         * doc/functions/snprintf.texi: Update.
65620         * doc/functions/sprintf.texi: Update.
65621         * doc/functions/vfprintf.texi: Update.
65622         * doc/functions/vprintf.texi: Update.
65623         * doc/functions/vsnprintf.texi: Update.
65624         * doc/functions/vsprintf.texi: Update.
65625
65626 2007-05-20  Bruno Haible  <bruno@clisp.org>
65627
65628         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65629         was not found in libc.
65630         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65631
65632 2007-05-20  Bruno Haible  <bruno@clisp.org>
65633
65634         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65635         printed as "-nan" instead of "nan".
65636         * tests/test-vasprintf-posix.c (test_function): Likewise.
65637         * tests/test-snprintf-posix.h (test_function): Likewise.
65638         * tests/test-sprintf-posix.h (test_function): Likewise.
65639         Needed for HP-UX 11.
65640
65641 2007-05-20  Jim Meyering  <jim@meyering.net>
65642
65643         Fix buggy test for the fchownat-deref bug.
65644         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65645         symlink required for the run-test.  Without it, this test would
65646         always declare that fchownat doesn't work, and client code would
65647         unnecessarily use the replacement function with fixed libc.
65648         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65649         Reported by Greg Schafer.
65650
65651 2007-05-19  Bruno Haible  <bruno@clisp.org>
65652
65653         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65654         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65655         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65656         Needed for IRIX 6.5 and Solaris 2.5.1.
65657
65658 2007-05-19  Bruno Haible  <bruno@clisp.org>
65659
65660         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65661         (test_function): Skip tests involving -0.0 on platforms where
65662         -0.0 = 0.0.
65663         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65664         (test_function): Skip tests involving -0.0 on platforms where
65665         -0.0 = 0.0.
65666         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65667         (test_function): Skip tests involving -0.0 on platforms where
65668         -0.0 = 0.0.
65669         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65670         (test_function): Skip tests involving -0.0 on platforms where
65671         -0.0 = 0.0.
65672         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65673         tests.
65674         * tests/test-printf-posix.h (test_function): Likewise.
65675         * tests/test-printf-posix.output: Remove all -0.0 related results.
65676         Needed for IRIX 6.5.
65677
65678 2007-05-19  Bruno Haible  <bruno@clisp.org>
65679
65680         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65681         printed as "nan0x7fffffff" instead of "nan".
65682         * tests/test-vasprintf-posix.c (test_function): Likewise.
65683         * tests/test-snprintf-posix.h (test_function): Likewise.
65684         * tests/test-sprintf-posix.h (test_function): Likewise.
65685         * tests/test-fprintf-posix.h (NaN): Remove macro.
65686         (test_function): Remove all NaN related tests.
65687         * tests/test-printf-posix.h (NaN): Remove macro.
65688         (test_function): Remove all NaN related tests.
65689         * tests/test-printf-posix.output: Remove all NaN related results.
65690         Needed for IRIX 6.5.
65691
65692 2007-05-19  Bruno Haible  <bruno@clisp.org>
65693
65694         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65695         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65696
65697 2007-05-19  Bruno Haible  <bruno@clisp.org>
65698
65699         * lib/float_.h: New file.
65700         * m4/float_h.m4: New file.
65701         * modules/float: New file.
65702         * modules/isnanl (Dependencies): Add float.
65703         * modules/isnanl-nolibm (Dependencies): Likewise.
65704         * modules/mathl (Dependencies): Likewise.
65705         * modules/printf-frexpl (Dependencies): Likewise.
65706         * modules/signbit (Dependencies): Likewise.
65707         * modules/vasnprintf (Dependencies): Likewise.
65708         * doc/headers/float.texi: Update.
65709
65710 2007-05-19  Jim Meyering  <jim@meyering.net>
65711
65712         * lib/utimens.c (gl_futimens): Rename from futimens,
65713         now that glibc-2.6 declares futimens.
65714         * lib/utimens.h: Likewise.
65715
65716 2007-05-19  Bruno Haible  <bruno@clisp.org>
65717
65718         Avoid test failures on mingw.
65719         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65720         * tests/test-printf-posix.sh: Likewise.
65721         * tests/test-vfprintf-posix.sh: Likewise.
65722         * tests/test-vprintf-posix.sh: Likewise.
65723
65724 2007-05-19  Bruno Haible  <bruno@clisp.org>
65725
65726         Fix *printf result for NaN, Inf, -0.0 on mingw.
65727         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65728         * lib/vasnprintf.c: Include math.h and isnan.h.
65729         (is_infinite_or_zero): New function.
65730         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65731         values in the %f, %F, %e, %E, %g, %G directives.
65732         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65733         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65734         gl_PRINTF_INFINITE and test its result. Invoke
65735         gl_PREREQ_VASNPRINTF_INFINITE.
65736         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65737         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65738         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65739         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65740         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65741         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65742         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65743         * doc/functions/fprintf.texi: Update.
65744         * doc/functions/printf.texi: Update.
65745         * doc/functions/snprintf.texi: Update.
65746         * doc/functions/sprintf.texi: Update.
65747         * doc/functions/vfprintf.texi: Update.
65748         * doc/functions/vprintf.texi: Update.
65749         * doc/functions/vsnprintf.texi: Update.
65750         * doc/functions/vsprintf.texi: Update.
65751
65752 2007-05-19  Bruno Haible  <bruno@clisp.org>
65753
65754         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65755         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65756         Instead of multiplying with 10^k, set extra_zeroes to k.
65757         (scale10_round_long_double): Remove function.
65758
65759 2007-05-18  Bruno Haible  <bruno@clisp.org>
65760
65761         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65762         introduced on 2007-05-06.
65763
65764 2007-05-18  Bruno Haible  <bruno@clisp.org>
65765
65766         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65767         %g directives.
65768         * tests/test-vasprintf-posix.c (test_function): Likewise.
65769         * tests/test-snprintf-posix.h (test_function): Likewise.
65770         * tests/test-sprintf-posix.h (test_function): Likewise.
65771
65772 2007-05-18  Bruno Haible  <bruno@clisp.org>
65773
65774         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65775         (strmatch): New function.
65776         (test_function): Test the %f directive on numbers of various exponents.
65777         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65778         (strmatch): New function.
65779         (test_function): Test the %f directive on numbers of various exponents.
65780         * tests/test-snprintf-posix.h (strmatch): New function.
65781         (test_function): Test the %f directive on numbers of various exponents.
65782         * tests/test-sprintf-posix.h (strmatch): New function.
65783         (test_function): Test the %f directive on numbers of various exponents.
65784         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65785         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65786         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65787         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65788
65789 2007-05-18  Bruno Haible  <bruno@clisp.org>
65790
65791         Add support for 'long double' number output.
65792         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65793         * lib/vasnprintf.c: Include math.h and float+.h.
65794         (mp_limb_t): New type.
65795         (GMP_LIMB_BITS): New macro.
65796         (mp_twolimb_t): New type.
65797         (GMP_TWOLIMB_BITS): New macro.
65798         (mpn_t): New type.
65799         (multiply, divide, convert_to_decimal, decode_long_double,
65800         scale10_round_long_double, scale10_round_decimal_long_double,
65801         floorlog10l): New functions.
65802         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65803         for the %f, %F, %e, %E, %g, %G directives.
65804         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65805         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65806         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65807         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65808         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65809         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65810         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65811         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65812         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65813         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65814         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65815         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65816         * modules/snprintf-posix (Depends-on): Likewise.
65817         * modules/sprintf-posix (Depends-on): Likewise.
65818         * modules/vasnprintf-posix (Depends-on): Likewise.
65819         * modules/vasprintf-posix (Depends-on): Likewise.
65820         * modules/vfprintf-posix (Depends-on): Likewise.
65821         * modules/vsnprintf-posix (Depends-on): Likewise.
65822         * modules/vsprintf-posix (Depends-on): Likewise.
65823         * modules/vasnprintf (Files): Add lib/float+.h.
65824         * doc/functions/fprintf.texi: Update.
65825         * doc/functions/printf.texi: Update.
65826         * doc/functions/snprintf.texi: Update.
65827         * doc/functions/sprintf.texi: Update.
65828         * doc/functions/vfprintf.texi: Update.
65829         * doc/functions/vprintf.texi: Update.
65830         * doc/functions/vsnprintf.texi: Update.
65831         * doc/functions/vsprintf.texi: Update.
65832
65833 2007-05-18  Bruno Haible  <bruno@clisp.org>
65834
65835         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65836
65837 2007-05-18  Bruno Haible  <bruno@clisp.org>
65838
65839         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65840         for printing 64-bit integers. Needed for mingw.
65841
65842 2007-05-18  Bruno Haible  <bruno@clisp.org>
65843
65844         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65845         gl_FUNC_FREXPL_WORKS.
65846         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65847
65848 2007-05-18  Bruno Haible  <bruno@clisp.org>
65849
65850         * modules/frexpl-nolibm-tests: New file.
65851
65852         * modules/frexpl-nolibm: New file.
65853         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65854
65855 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65856
65857         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65858         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65859         GCC 4.2, which otherwise issues a lot of warnings.
65860         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65861         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65862         Likewise.
65863         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65864         * modules/iconv_open (iconv.h): Likewise.
65865         * modules/locale (locale.h): Likewise.
65866         * modules/netinet_in (netinet/in.h): Likewise.
65867         * modules/sys_select (sys_select.h): Likewise.
65868         * modules/sys_socket (sys/socket.h): Likewise.
65869         * modules/sys_stat (sys/stat.h): Likewise.
65870         * modules/sysexits (sysexits.h): Likewise.
65871         * modules/unistd (unistd.h): Likewise.
65872
65873 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65874
65875         * modules/closein-tests (Makefile.am): Distribute
65876         `test-closein.sh'.
65877
65878 2007-05-17  Bruno Haible  <bruno@clisp.org>
65879
65880         * tests/test-printf-posix.output: Renamed from
65881         tests/test-fprintf-posix.out.
65882         * modules/fprintf-posix-tests: Update.
65883         * modules/printf-posix-tests: Update.
65884         * modules/vfprintf-posix-tests: Update.
65885         * modules/vprintf-posix-tests: Update.
65886         * tests/test-fprintf-posix.sh: Update.
65887         * tests/test-printf-posix.sh: Update.
65888         * tests/test-vfprintf-posix.sh: Update.
65889         * tests/test-vprintf-posix.sh: Update.
65890         Reported by Ralf Wildenhues.
65891
65892 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65893
65894         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65895         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65896         GCC 4.2, which otherwise issues a lot of warnings.
65897         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65898         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65899         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65900         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65901         it should no longer be needed.
65902         * lib/string_.h: Likewise.
65903         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65904         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65905         * modules/inttypes (inttypes.h): Likewise.
65906         * modules/math (math.h): Likewise.
65907         * modules/search (search.h): Likewise.
65908         * modules/signal (signal.h): Likewise.
65909         * modules/stdint (stdint.h): Likewise.
65910         * modules/stdio (stdio.h): Likewise.
65911         * modules/stdlib (stdlib.h): Likewise.
65912         * modules/string (string.h): Likewise.
65913         * modules/sys_time (sys/time.h): Likewise.
65914         * modules/time (time.h): Likewise.
65915         * modules/wchar (wchar.h): Likewise.
65916         * modules/wctype (wtype.h): Likewise.
65917
65918 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65919
65920         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65921
65922 2007-05-13  Bruno Haible  <bruno@clisp.org>
65923
65924         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65925         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65926         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65927         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65928         (gl_PREREQ_STRTOK_R): Don't require it here.
65929
65930 2007-05-13  Bruno Haible  <bruno@clisp.org>
65931
65932         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65933         when used in C++ mode.
65934
65935 2007-05-12  Bruno Haible  <bruno@clisp.org>
65936
65937         * lib/linebuffer.h: Tweak doc.
65938         * lib/linebuffer.c: Likewise.
65939
65940 2007-05-12  James Youngman  <jay@gnu.org>
65941
65942         * lib/linebuffer.c (readlinebuffer_delim): New function,
65943         like readlinebuffer, but use a caller-specified delimiter.
65944         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65945         as the delimiter.
65946         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65947
65948 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65949
65950         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65951         * modules/openat (Files): Remove openat-die.c.
65952         (Depends-on): Add openat-die.
65953         * modules/openat-die: New module.
65954
65955 2007-05-06  Bruno Haible  <bruno@clisp.org>
65956
65957         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65958         Update with info about Cygwin.
65959         * doc/functions/fprintf.texi: Update.
65960         * doc/functions/printf.texi: Update.
65961         * doc/functions/snprintf.texi: Update.
65962         * doc/functions/sprintf.texi: Update.
65963         * doc/functions/vfprintf.texi: Update.
65964         * doc/functions/vprintf.texi: Update.
65965         * doc/functions/vsnprintf.texi: Update.
65966         * doc/functions/vsprintf.texi: Update.
65967         Reported by Eric Blake.
65968
65969 2007-05-06  Bruno Haible  <bruno@clisp.org>
65970
65971         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65972         padding ourselves for the floating-point directives.
65973         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65974         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65975         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65976         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65977         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65978         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65979         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65980         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65981         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65982         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65983         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65984         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65985         * tests/test-snprintf-posix.h (test_function): Also check the width
65986         and some flags in the %f directive.
65987         * tests/test-sprintf-posix.h (test_function): Likewise.
65988         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65989         * tests/test-vasprintf-posix.c (test_function): Likewise.
65990         * doc/functions/fprintf.texi: Update.
65991         * doc/functions/printf.texi: Update.
65992         * doc/functions/snprintf.texi: Update.
65993         * doc/functions/sprintf.texi: Update.
65994         * doc/functions/vfprintf.texi: Update.
65995         * doc/functions/vprintf.texi: Update.
65996         * doc/functions/vsnprintf.texi: Update.
65997         * doc/functions/vsprintf.texi: Update.
65998
65999 2007-05-06  Bruno Haible  <bruno@clisp.org>
66000
66001         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
66002         pass the ' flag character to sprintf or snprintf.
66003         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
66004         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
66005         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66006         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
66007         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
66008         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66009         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66010         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66011         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66012         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66013         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66014         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66015         * tests/test-snprintf-posix.h (test_function): Also check the grouping
66016         flag.
66017         * tests/test-sprintf-posix.h (test_function): Likewise.
66018         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66019         * tests/test-vasprintf-posix.c (test_function): Likewise.
66020         * doc/functions/fprintf.texi: Update.
66021         * doc/functions/printf.texi: Update.
66022         * doc/functions/snprintf.texi: Update.
66023         * doc/functions/sprintf.texi: Update.
66024         * doc/functions/vfprintf.texi: Update.
66025         * doc/functions/vprintf.texi: Update.
66026         * doc/functions/vsnprintf.texi: Update.
66027         * doc/functions/vsprintf.texi: Update.
66028
66029 2007-05-01  Bruno Haible  <bruno@clisp.org>
66030
66031         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
66032
66033 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
66034
66035         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
66036         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
66037
66038 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66039
66040         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
66041         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
66042         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
66043
66044 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
66045
66046         * lib/argp-help.c (struct hol_entry): New member `ord'.
66047         (HOL_ENTRY_PTRCMP): Use ord for comparison
66048         (hol_sort): Initialize ord.
66049
66050 2007-05-01  Bruno Haible  <bruno@clisp.org>
66051
66052         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
66053         Reported by Eric Blake.
66054         * doc/gnulib.texi (Function Substitutes): Update.
66055
66056 2007-05-01  Bruno Haible  <bruno@clisp.org>
66057
66058         * doc/functions.texi: Remove file, now redundant through
66059         doc/functions/*.texi.
66060
66061 2007-05-01  Bruno Haible  <bruno@clisp.org>
66062
66063         * modules/argp (Depends-on): Add sleep.
66064
66065 2007-05-01  Bruno Haible  <bruno@clisp.org>
66066
66067         * modules/sleep-tests: New file.
66068         * tests/test-sleep.c: New file.
66069
66070         * modules/sleep: New file.
66071         * lib/sleep.c: New file.
66072         * m4/sleep.m4: New file.
66073         * lib/unistd_.h (sleep): New declaration.
66074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
66075         HAVE_SLEEP.
66076         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
66077         * doc/functions/sleep.texi: Document the sleep module.
66078
66079 2007-05-01  Bruno Haible  <bruno@clisp.org>
66080
66081         * lib/sigprocmask.h: Remove file.
66082         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
66083         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
66084         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
66085         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
66086         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
66087         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
66088         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
66089         HAVE_SIGSET_T as a shell variable.
66090         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
66091         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
66092         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
66093         (Depends-on): Add signal. Remove verify.
66094         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
66095         (Include): Mention <signal.h> instead of sigprocmask.h.
66096         * NEWS: Mention the change.
66097         * lib/fatal-signal.c: Don't include sigprocmask.h.
66098
66099 2007-05-01  Bruno Haible  <bruno@clisp.org>
66100
66101         * modules/signal: New file.
66102         * lib/signal_.h: New file.
66103         * m4/signal_h.m4: New file.
66104
66105 2007-05-01  Bruno Haible  <bruno@clisp.org>
66106
66107         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
66108         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
66109         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
66110         HAVE_WCTYPE_CTMP_BUG into wctype.h.
66111
66112 2007-05-01  Bruno Haible  <bruno@clisp.org>
66113
66114         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
66115         configure time.
66116         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
66117         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
66118         * modules/sys_stat (Makefile.am): Substitute their values into
66119         sys/stat.h.
66120
66121 2007-05-01  Bruno Haible  <bruno@clisp.org>
66122
66123         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
66124         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
66125         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
66126
66127 2007-05-01  Bruno Haible  <bruno@clisp.org>
66128
66129         * doc/header/assert.texi: Undo last change: don't mention the gnulib
66130         'assert' module here.
66131
66132 2007-05-01  Bruno Haible  <bruno@clisp.org>
66133
66134         * doc/functions/*.texi: New files.
66135         * doc/functions/google-ranking.txt: New file.
66136         * doc/gnulib.texi (Function Substitutes): New chapter.
66137         (ctime, inet_ntoa): Remove sections.
66138         * doc/ctime.texi: Remove file.
66139         * doc/inet_ntoa.texi: Remove file.
66140         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
66141         dependencies.
66142         (%.info): New rule, specifying a --reference-limit.
66143
66144 2007-05-01  Bruno Haible  <bruno@clisp.org>
66145
66146         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
66147
66148 2007-05-01  Bruno Haible  <bruno@clisp.org>
66149
66150         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
66151         the portability of 'mkdir' to mingw systems.
66152
66153 2007-05-01  Bruno Haible  <bruno@clisp.org>
66154
66155         * doc/headers/google-ranking.txt: New file.
66156
66157 2007-04-30  Eric Blake  <ebb9@byu.net>
66158
66159         Prefer fseeko to fseek.
66160         * modules/getpass (Depends-on): Add fseeko.
66161         * lib/getpass.c (getpass): Use fseeko, not fseek.
66162
66163 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
66164
66165         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
66166         assumes the sorting is stable, while most qsort implementations
66167         are not.  Use argument addresses to ensure they never compare as
66168         equal.
66169
66170         * tests/test-argp-2.sh (usage-indent test): Fix output
66171         (func_compare): Restore diff options
66172         * tests/test-argp.c: Restore #include "progname.h"
66173
66174 2007-04-29  Bruno Haible  <bruno@clisp.org>
66175
66176         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
66177         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66178         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
66179         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66180         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
66181         (configure.ac): Define CHECK_SNPRINTF_POSIX.
66182         (TESTS, check_PROGRAMS): Add test-snprintf.
66183         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
66184         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
66185         (TESTS, check_PROGRAMS): Add test-vsnprintf.
66186         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
66187         assertions that fail on HP-UX, OSF/1, or IRIX.
66188         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
66189
66190 2007-04-29  Bruno Haible  <bruno@clisp.org>
66191
66192         * MODULES.html.sh (posix_functions): Remove 'contents'.
66193
66194 2007-04-29  Karl Berry  <karl@gnu.org>
66195
66196         * config/srclist.txt (gendocs_template_min): new entry.
66197
66198 2007-04-29  Bruno Haible  <bruno@clisp.org>
66199
66200         Work around fpurge bug on BSD systems.
66201         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
66202         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
66203         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
66204         fpurge to rpl_fpurge if the system already has this function.
66205         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
66206         the case where the system already has this function. Correct invariants
66207         on BSD systems.
66208         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
66209         BSD systems.
66210
66211 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
66212
66213         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
66214         proposed by Sven Verdoolaege.
66215
66216         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
66217         options.
66218         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
66219         (usage and help tests): Update
66220
66221 2007-04-29  Bruno Haible  <bruno@clisp.org>
66222
66223         * tests/test-fflush.c (main): Use a file of size 17, not 10.
66224         Print more information in case of failure. Disable a test on BeOS.
66225
66226 2007-04-29  Bruno Haible  <bruno@clisp.org>
66227
66228         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
66229         This helps debugging on systems on which no gdb is available.
66230
66231 2007-04-29  Bruno Haible  <bruno@clisp.org>
66232
66233         * lib/freading.h: Improve comments.
66234         * lib/fwriting.h: Likewise.
66235         * tests/test-freading.c (main): Don't check freading immediately after
66236         repositioning. Needed for glibc.
66237
66238 2007-04-29  Bruno Haible  <bruno@clisp.org>
66239
66240         * lib/freading.c (freading): Trivial simplification.
66241
66242 2007-04-28  Bruno Haible  <bruno@clisp.org>
66243
66244         * tests/test-fwriting.c (main): Also test the interaction between
66245         fflush and fwriting.
66246         * modules/fwriting-tests (Depends-on): Add fflush.
66247
66248         * tests/test-freading.c (main): Also test the interaction between
66249         fflush and freading.
66250         * modules/freading-tests (Depends-on): Add fflush.
66251
66252 2007-04-28  Bruno Haible  <bruno@clisp.org>
66253
66254         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
66255         fseeko and ftello.
66256         Suggested by Eric Blake.
66257
66258 2007-04-28  Jim Meyering  <jim@meyering.net>
66259
66260         Avoid false-negative in gl_STDINT_H's C99 conformance test.
66261         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
66262         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
66263
66264 2007-04-27  Eric Blake  <ebb9@byu.net>
66265
66266         * doc/headers/assert.texi (assert.h): Document assert module use.
66267
66268 2007-04-27  Bruno Haible  <bruno@clisp.org>
66269
66270         * doc/headers/*.texi: New files.
66271         * doc/gnulib.texi (Header File Substitutes): New chapter.
66272         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
66273         dependencies.
66274         (standards.info ,standards.html, standards.dvi): Update dependencies.
66275         (mostlyclean, clean): New targets.
66276
66277 2007-04-27  Bruno Haible  <bruno@clisp.org>
66278
66279         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
66280         * modules/sysexits (Files, Makefile.am): Update.
66281
66282         * lib/sys_socket_.h: Renamed from lib/socket_.h.
66283         * modules/sys_socket (Files, Makefile.am): Update.
66284
66285         * lib/sys_stat_.h: Renamed from lib/stat_.h.
66286         * modules/sys_stat (Files, Makefile.am): Update.
66287
66288 2007-04-27  Eric Blake  <ebb9@byu.net>
66289
66290         * lib/freading.h: Improve comments.
66291         * lib/fwriting.h: Likewise.
66292         * lib/fflush.c: Likewise.
66293
66294         Fix closein for mingw.
66295         * modules/closein-tests: Add tests for closein.
66296         * tests/test-closein.c: New file.
66297         * tests/test-closein.sh: Likewise.
66298         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
66299         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
66300
66301 2007-04-27  Bruno Haible  <bruno@clisp.org>
66302
66303         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
66304         version is < 6.
66305         * lib/math_.h [__DECC]: Likewise.
66306         * lib/stdio_.h [__DECC]: Likewise.
66307         * lib/stdlib_.h [__DECC]: Likewise.
66308         * lib/string_.h [__DECC]: Likewise.
66309         * lib/time_.h [__DECC]: Likewise.
66310         * lib/wchar_.h [__DECC]: Likewise.
66311         * lib/wctype_.h [__DECC]: Likewise.
66312
66313 2007-04-27  Bruno Haible  <bruno@clisp.org>
66314
66315         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
66316
66317 2007-04-27  Bruno Haible  <bruno@clisp.org>
66318
66319         * lib/fflush.c: Add comments.
66320         * modules/fpurge-tests (Depends-on): Add fflush.
66321         * modules/freadable-tests (Depends-on): Likewise.
66322         * modules/fwritable-tests (Depends-on): Likewise.
66323
66324 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
66325
66326         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
66327         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
66328         Report by Bruno Haible <bruno@clisp.org>.
66329
66330 2007-04-26  Eric Blake  <ebb9@byu.net>
66331
66332         Fix fflush on mingw.
66333         * modules/fflush (Depends-on): Add freading.
66334         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
66335         but unread data.
66336
66337 2007-04-26  Eric Blake  <ebb9@byu.net>
66338         and Bruno Haible  <bruno@clisp.org>
66339
66340         Implement freading and fwriting.
66341         * lib/freading.c: New file.
66342         * lib/freading.h: Likewise.
66343         * m4/freading.m4: Likewise.
66344         * modules/freading: Likewise.
66345         * modules/freading-tests: Likewise.
66346         * tests/test-freading.c: Likewise.
66347         * lib/fwriting.c: New file.
66348         * lib/fwriting.h: Likewise.
66349         * m4/fwriting.m4: Likewise.
66350         * modules/fwriting: Likewise.
66351         * modules/fwriting-tests: Likewise.
66352         * tests/test-fwriting.c: Likewise.
66353         * MODULES.html.sh (File stream based Input/Output): Mention them.
66354
66355 2007-04-26  Bruno Haible  <bruno@clisp.org>
66356
66357         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
66358         'long' when we assume it.
66359         Suggested by Eric Blake.
66360
66361 2007-04-26  Bruno Haible  <bruno@clisp.org>
66362
66363         Ensure fseeko, ftello are declared on glibc systems.
66364         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
66365         * modules/fseeko (configure.ac-early): Likewise.
66366         * modules/ftello (configure.ac-early): Likewise.
66367         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
66368         AC_FUNC_FSEEKO for this.
66369         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
66370         (gl_CHECK_FSEEKO): Remove macro.
66371
66372 2007-04-26  Bruno Haible  <bruno@clisp.org>
66373
66374         * tests/test-fflush.c (main): Also check the ftell result after
66375         fflush and fseek/fseeko.
66376         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
66377         file descriptor position cache in the stream.
66378         * lib/fseeko.c (rpl_fseeko): Likewise.
66379
66380 2007-04-26  Bruno Haible  <bruno@clisp.org>
66381
66382         * modules/fflush-tests (Depends-on): Add fseeko.
66383
66384 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
66385             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66386
66387         * lib/argz_.h: ensure error_t definition is obtained in same
66388         mechanism system argz.h would have.
66389         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
66390         argz facilities are known bad.  Err on the side of caution if
66391         cross-compiling.
66392
66393 2007-04-25  Eric Blake  <ebb9@byu.net>
66394
66395         * lib/fpurge.c (includes): Use stdlib.h for free.
66396         * tests/test-fflush.c (main): Also test fflush-fseeko.
66397
66398 2007-04-25  Bruno Haible  <bruno@clisp.org>
66399
66400         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
66401         * lib/fseeko.c: New file.
66402         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
66403         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
66404         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
66405         gl_FUNC_FSEEKO.
66406         (gl_FUNC_FSEEKO): Invoke it.
66407         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
66408         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
66409         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
66410
66411 2007-04-25  Bruno Haible  <bruno@clisp.org>
66412
66413         * modules/fflush (Depends-on): Add ftello.
66414
66415 2007-04-25  Bruno Haible  <bruno@clisp.org>
66416
66417         * modules/ftello-tests: New file.
66418         * tests/test-ftello.c: New file.
66419
66420         * modules/ftello: New file.
66421         * m4/ftello.m4: New file.
66422         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
66423         HAVE_FTELLO.
66424         * lib/stdio_.h (ftello): New declaration.
66425         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
66426         HAVE_FTELLO.
66427
66428 2007-04-25  Bruno Haible  <bruno@clisp.org>
66429
66430         * modules/fseeko-tests: New file.
66431         * tests/test-fseeko.c: New file.
66432
66433         * modules/fseeko: New file.
66434         * m4/fseeko.m4: New file.
66435         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
66436         HAVE_FSEEKO.
66437         * lib/stdio_.h (fseeko): New declaration.
66438         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
66439         HAVE_FSEEKO.
66440
66441 2007-04-25  Bruno Haible  <bruno@clisp.org>
66442
66443         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
66444
66445 2007-04-25  Bruno Haible  <bruno@clisp.org>
66446
66447         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
66448         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
66449         * tests/test-unistd.c: Likewise.
66450         * tests/test-fcntl.c: Likewise.
66451
66452 2007-04-23  Eric Blake  <ebb9@byu.net>
66453
66454         * lib/fflush.c: Fix missing include.
66455         Reported by Bruno Haible.
66456
66457 2007-04-23  Bruno Haible  <bruno@clisp.org>
66458
66459         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
66460         Reported by Eric Blake.
66461
66462 2007-04-23  Bruno Haible  <bruno@clisp.org>
66463
66464         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
66465
66466 2007-04-23  Bruno Haible  <bruno@clisp.org>
66467
66468         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
66469
66470 2007-04-23  Bruno Haible  <bruno@clisp.org>
66471
66472         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
66473         Needed on HP-UX 11.
66474
66475 2007-04-16  Eric Blake  <ebb9@byu.net>
66476
66477         Make fflush rely on fpurge.
66478         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
66479         open coding all variants.
66480         * modules/fflush (Depends-on): Add fpurge and unistd.
66481         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
66482         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
66483
66484         Fix --with-tests compilation on cygwin.
66485         * modules/argmatch-tests (Makefile.am): List gnulib library first
66486         in LDADD.
66487         * modules/argp-tests (Makefile.am): Likewise.
66488         * modules/array-list-tests (Makefile.am): Likewise.
66489         * modules/array-oset-tests (Makefile.am): Likewise.
66490         * modules/avltree-list-tests (Makefile.am): Likewise.
66491         * modules/avltree-oset-tests (Makefile.am): Likewise.
66492         * modules/avltreehash-list-tests (Makefile.am): Likewise.
66493         * modules/carray-list-tests (Makefile.am): Likewise.
66494         * modules/dirname-tests (Makefile.am): Likewise.
66495         * modules/frexp-tests (Makefile.am): Likewise.
66496         * modules/isnanl-tests (Makefile.am): Likewise.
66497         * modules/linked-list-tests (Makefile.am): Likewise.
66498         * modules/linkedhash-list-tests (Makefile.am): Likewise.
66499         * modules/lock-tests (Makefile.am): Likewise.
66500         * modules/rbtree-list-tests (Makefile.am): Likewise.
66501         * modules/rbtree-oset-tests (Makefile.am): Likewise.
66502         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
66503         * modules/tls-tests (Makefile.am): Likewise.
66504         * modules/tsearch-tests (Makefile.am): Likewise.
66505         * modules/xvasprintf-tests (Makefile.am): Likewise.
66506
66507         Fix fpurge for cygwin.
66508         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
66509         value.
66510         * modules/fpurge-tests (Depends-on): Clean up trash.
66511
66512 2007-04-16  Simon Josefsson  <simon@josefsson.org>
66513
66514         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
66515
66516         * m4/autobuild.m4: Re-indent.
66517
66518 2007-04-13  Bruno Haible  <bruno@clisp.org>
66519
66520         * modules/fpurge-tests: New file.
66521         * tests/test-fpurge.c: New file.
66522
66523         * modules/fpurge: New file.
66524         * lib/fpurge.h: New file.
66525         * lib/fpurge.c: New file.
66526         * m4/fpurge.m4: New file.
66527
66528 2007-04-13  Bruno Haible  <bruno@clisp.org>
66529
66530         * modules/fbufmode-tests: New file.
66531         * tests/test-fbufmode.c: New file.
66532
66533         * modules/fbufmode: New file.
66534         * lib/fbufmode.h: New file.
66535         * lib/fbufmode.c: New file.
66536         * m4/fbufmode.m4: New file.
66537
66538 2007-04-13  Bruno Haible  <bruno@clisp.org>
66539
66540         * modules/fwritable-tests: New file.
66541         * tests/test-fwritable.c: New file.
66542
66543         * modules/fwritable: New file.
66544         * lib/fwritable.h: New file.
66545         * lib/fwritable.c: New file.
66546         * m4/fwritable.m4: New file.
66547
66548 2007-04-13  Bruno Haible  <bruno@clisp.org>
66549
66550         * modules/freadable-tests: New file.
66551         * tests/test-freadable.c: New file.
66552
66553         * modules/freadable: New file.
66554         * lib/freadable.h: New file.
66555         * lib/freadable.c: New file.
66556         * m4/freadable.m4: New file.
66557
66558 2007-04-13  Bruno Haible  <bruno@clisp.org>
66559
66560         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66561         MOSTLYCLEANFILES.
66562
66563 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66564
66565         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66566         gzip bootstrap.conf to avoid dragging in i18n machinery.
66567         (gnulib_tool_option): Use it.
66568
66569 2007-04-13  Bruno Haible  <bruno@clisp.org>
66570
66571         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66572         %F directives.
66573         * tests/test-vasprintf-posix.c (test_function): Likewise.
66574         * tests/test-snprintf-posix.h (test_function): Likewise.
66575         * tests/test-sprintf-posix.h (test_function): Likewise.
66576         * tests/test-fprintf-posix.h (test_function): Likewise.
66577         * tests/test-printf-posix.h (test_function): Likewise.
66578         * tests/test-fprintf-posix.out: Likewise.
66579
66580 2007-04-13  Bruno Haible  <bruno@clisp.org>
66581
66582         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66583         * modules/tls-tests (configure.ac): Likewise.
66584         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66585
66586 2007-04-13  Bruno Haible  <bruno@clisp.org>
66587
66588         * lib/tls.c (glthread_tls_get): Fix return type.
66589         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66590
66591 2007-04-12  Eric Blake  <ebb9@byu.net>
66592
66593         * modules/gettime (Depends-on): Remove gettime.
66594         Reported by Dmitry V. Levin.
66595
66596 2007-04-12  Bruno Haible  <bruno@clisp.org>
66597
66598         * modules/fflush (Include): Mention <stdio.h>.
66599         * modules/strtoimax (Include): Mention <inttypes.h>.
66600         * modules/strtoumax (Include): Likewise.
66601
66602 2007-04-12  Eric Blake  <ebb9@byu.net>
66603
66604         * .cvsignore: New file.
66605         * .gitignore: Likewise.
66606
66607 2007-04-12  Bruno Haible  <bruno@clisp.org>
66608
66609         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66610         not before, since $(LDADD) often contains libgnu.a.
66611         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66612         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66613         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66614         Needed on Cygwin.
66615
66616 2007-04-12  Eric Blake  <ebb9@byu.net>
66617
66618         Work around glibc's failure to flush stdin on fclose.
66619         * lib/closein.c (close_stdin): Flush stdin before closing.
66620
66621         Work around glibc's failure to reset seekable stdin on exit.
66622         * modules/closein: New module.
66623         * lib/closein.c: New file.
66624         * lib/closein.h: Likewise.
66625         * m4/closein.m4: Likewise.
66626         * MODULES.html.sh (File stream based Input/Output): Document it.
66627
66628 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66629
66630         * gnulib-tool: Rename generated 'autobuild' script to
66631         'do-autobuild' in --create-megatestdir output.
66632
66633         * doc/gnulib.texi (Build robot for gnulib): Fix.
66634
66635 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66636
66637         * modules/sysexits (Depends-on): Add absolute-header.
66638
66639 2007-04-12  Eric Blake  <ebb9@byu.net>
66640
66641         No need to preserve errno on success.
66642         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66643         Reported by Bruno Haible.
66644
66645 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66646
66647         * MODULES.html.sh (Support for maintaining and releasing
66648         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66649
66650 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66651
66652         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66653
66654 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66655
66656         * modules/autobuild: New module.
66657
66658         * m4/autobuild.m4: New file.
66659
66660 2007-04-11  Bruno Haible  <bruno@clisp.org>
66661
66662         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66663         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66664         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66665         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66666         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66667         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66668         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66669         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66670         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66671         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66672         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66673         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66674         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66675         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66676         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66677         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66678         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66679         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66680         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66681         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66682         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66683         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66684         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66685         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66686         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66687         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66688         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66689         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66690         Reported by Eric Blake.
66691
66692 2007-04-11  Bruno Haible  <bruno@clisp.org>
66693
66694         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66695
66696 2007-04-10  Bruno Haible  <bruno@clisp.org>
66697
66698         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66699         for NaN and Infinity. Needed on FreeBSD 6.1.
66700         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66701         regarding results for "%010a" of Infinity and NaN.
66702         * tests/test-vasprintf-posix.c (test_function): Likewise.
66703         * tests/test-snprintf-posix.h (test_function): Likewise.
66704         * tests/test-sprintf-posix.h (test_function): Likewise.
66705         * tests/test-fprintf-posix.h (test_function): Likewise.
66706         * tests/test-printf-posix.h (test_function): Likewise.
66707         * tests/test-fprintf-posix.out: Likewise.
66708
66709 2007-04-10  Bruno Haible  <bruno@clisp.org>
66710
66711         * modules/locale-tests: New file.
66712         * tests/test-locale.c: New file.
66713
66714         * modules/locale: New file.
66715         * lib/locale_.h: New file.
66716         * m4/locale_h.m4: New file.
66717
66718 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66719             Bruno Haible  <bruno@clisp.org>
66720
66721         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66722         be determined, test for availability of the copysignf, copysign,
66723         copysignl functions.
66724         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66725         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66726         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66727
66728 2007-04-09  Eric Blake  <ebb9@byu.net>
66729
66730         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66731         * modules/stdio (Makefile.am): Support fflush.
66732         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66733         * modules/fflush: New file.
66734         * lib/fflush.c: Likewise.
66735         * m4/fflush.m4: Likewise.
66736         * modules/fflush-tests: New test.
66737         * tests/test-fflush.c: Likewise.
66738         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66739
66740 2007-04-06  Bruno Haible  <bruno@clisp.org>
66741
66742         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66743         (VASNPRINTF): Use signbit for faster determination whether to print a
66744         minus sign.
66745         * modules/vasnprintf (Files): Remove lib/float+.h.
66746         * modules/fprintf-posix (Depends-on): Add signbit.
66747         * modules/snprintf-posix (Depends-on): Likewise.
66748         * modules/sprintf-posix (Depends-on): Likewise.
66749         * modules/vasnprintf-posix (Depends-on): Likewise.
66750         * modules/vasprintf-posix (Depends-on): Likewise.
66751         * modules/vfprintf-posix (Depends-on): Likewise.
66752         * modules/vsnprintf-posix (Depends-on): Likewise.
66753         * modules/vsprintf-posix (Depends-on): Likewise.
66754
66755 2007-04-06  Bruno Haible  <bruno@clisp.org>
66756
66757         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66758         * tests/test-frexpl.c (main): Likewise.
66759         * tests/test-ldexpl.c (main): Likewise.
66760         * modules/frexp-tests (Depends-on): Add signbit.
66761         * modules/frexpl-tests (Depdends-on): Likewise.
66762         * modules/ldexpl-tests (Depdends-on): Likewise.
66763
66764 2007-04-06  Bruno Haible  <bruno@clisp.org>
66765
66766         * modules/signbit-tests: New file.
66767         * tests/test-signbit.c: New file.
66768
66769         * modules/signbit: New file.
66770         * lib/signbitf.c: New file.
66771         * lib/signbitd.c: New file.
66772         * lib/signbitl.c: New file.
66773         * m4/signbit.m4: New file.
66774         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66775         (signbit): New macro.
66776         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66777         REPLACE_SIGNBIT.
66778         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66779         REPLACE_FREXPL into math.h.
66780
66781 2007-04-06  Bruno Haible  <bruno@clisp.org>
66782
66783         * modules/isnanf-nolibm-tests: New file.
66784         * tests/test-isnanf.c: New file.
66785
66786         * modules/isnanf-nolibm: New file.
66787         * lib/isnanf.h: New file.
66788         * lib/isnanf.c: New file.
66789         * lib/isnan.c: Consider the USE_FLOAT macro.
66790         * m4/isnanf.m4: New file.
66791
66792 2007-04-06  Bruno Haible  <bruno@clisp.org>
66793
66794         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66795         (Link): New section.
66796
66797         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66798
66799 2007-04-06  Bruno Haible  <bruno@clisp.org>
66800
66801         Assume the 'long double' type.
66802         * m4/longdouble.m4: Remove file.
66803         * config/srclist.txt: Don't mention longdouble.m4.
66804         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66805         * lib/float+.h: Likewise.
66806         * lib/frexp.c: Likewise.
66807         * lib/printf-args.h: Likewise.
66808         * lib/printf-args.c: Likewise.
66809         * lib/printf-frexp.c: Likewise.
66810         * lib/printf-parse.c: Likewise.
66811         * lib/vasnprintf.c: Likewise.
66812         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66813         * m4/intl.m4: Likewise.
66814         * m4/isnanl.m4: Likewise.
66815         * m4/printf.m4: Likewise.
66816         * m4/printf-frexpl.m4: Likewise.
66817         * m4/vasnprintf.m4: Likewise.
66818         * modules/allocsa (Files): Remove m4/longdouble.m4.
66819         * modules/gettext (Files): Likewise.
66820         * modules/relocatable-prog-wrapper (Files): Likewise.
66821         * modules/vasnprintf (Files): Likewise.
66822         * modules/isnanl (Files): Likewise.
66823         (Include): Simplify.
66824         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66825         (Include): Simplify.
66826         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66827         (Include): Simplify.
66828         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66829         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66830         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66831         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66832         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66833         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66834         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66835         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66836         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66837         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66838         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66839         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66840         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66841         * tests/test-isnanl.c: Likewise.
66842         * tests/test-snprintf-posix.h: Likewise.
66843         * tests/test-sprintf-posix.h: Likewise.
66844         * tests/test-vasnprintf-posix.c: Likewise.
66845         * tests/test-vasnprintf-posix2.c: Likewise.
66846         * tests/test-vasprintf-posix.c: Likewise.
66847
66848 2007-04-06  Bruno Haible  <bruno@clisp.org>
66849
66850         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66851         * lib/math_.h [__DECC]: Include the overridden include file through
66852         #include_next, outside the double-inclusion guard.
66853         * lib/stdio_.h [__DECC]: Likewise.
66854         * lib/stdlib_.h [__DECC]: Likewise.
66855         * lib/string_.h [__DECC]: Likewise.
66856         * lib/time_.h [__DECC]: Likewise.
66857         * lib/wchar_.h [__DECC]: Likewise.
66858         * lib/wctype_.h [__DECC]: Likewise.
66859         * lib/inttypes_.h [__DECC]: Likewise.
66860         Reported by Albert Chin <china@thewrittenword.com> in
66861         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66862
66863 2007-04-04  Eric Blake  <ebb9@byu.net>
66864
66865         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66866         1.5.x.
66867
66868 2007-04-04  Bruno Haible  <bruno@clisp.org>
66869
66870         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66871         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66872
66873 2007-04-04  Bruno Haible  <bruno@clisp.org>
66874
66875         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66876         results for "%010a" of Infinity and NaN.
66877         * tests/test-vasprintf-posix.c (test_function): Likewise.
66878         * tests/test-snprintf-posix.h (test_function): Likewise.
66879         * tests/test-sprintf-posix.h (test_function): Likewise.
66880         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66881         * tests/test-printf-posix.h (test_function): Likewise.
66882         * tests/test-fprintf-posix.out: Update.
66883         Needed for FreeBSD 6.1.
66884
66885 2007-04-04  Bruno Haible  <bruno@clisp.org>
66886
66887         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66888         directly used by the gnulib modules nor by gnulib-tool.
66889
66890 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66891
66892         * DEPENDENCIES: Give overall description of version dependency
66893         desirability.  Use more-typical names for apps.
66894         Add shell, coreutils, diffutils, grep, tar, gzip.
66895
66896 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66897
66898         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66899
66900 2007-04-04  Karl Berry  <karl@gnu.org>
66901
66902         * MODULES.html.sh (func_module): missing '.
66903
66904 2007-04-03  Bruno Haible  <bruno@clisp.org>
66905
66906         * modules/argmatch-tests (Makefile.am): New variable
66907         test_argmatch_LDADD.
66908         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66909         * modules/array-list-tests (Makefile.am): New variable
66910         test_array_list_LDADD.
66911         * modules/array-oset-tests (Makefile.am): New variable
66912         test_array_oset_LDADD.
66913         * modules/avltree-list-tests (Makefile.am): New variable
66914         test_avltree_list_LDADD.
66915         * modules/avltree-oset-tests (Makefile.am): New variable
66916         test_avltree_oset_LDADD.
66917         * modules/avltreehash-list-tests (Makefile.am): New variable
66918         test_avltreehash_list_LDADD.
66919         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66920         test_canonicalize_lgpl_LDADD.
66921         * modules/carray-list-tests (Makefile.am): New variable
66922         test_carray_list_LDADD.
66923         * modules/dirname-tests (Makefile.am): New variable
66924         test_dirname_LDADD.
66925         * modules/linked-list-tests (Makefile.am): New variable
66926         test_linked_list_LDADD.
66927         * modules/linkedhash-list-tests (Makefile.am): New variable
66928         test_linkedhash_list_LDADD.
66929         * modules/rbtree-list-tests (Makefile.am): New variable
66930         test_rbtree_list_LDADD.
66931         * modules/rbtree-oset-tests (Makefile.am): New variable
66932         test_rbtree_oset_LDADD.
66933         * modules/rbtreehash-list-tests (Makefile.am): New variable
66934         test_rbtreehash_list_LDADD.
66935         * modules/xvasprintf-tests (Makefile.am): New variable
66936         test_xvasprintf_LDADD.
66937         Reported by Eric Blake.
66938
66939 2007-04-03  Eric Blake  <ebb9@byu.net>
66940
66941         * DEPENDENCIES: Weaken m4 requirements.
66942
66943 2007-04-03  Bruno Haible  <bruno@clisp.org>
66944
66945         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66946         * modules/isnanl-tests (configure.ac): Likewise.
66947
66948 2007-04-03  Ben Pfaff  <blp@gnu.org>
66949
66950         * modules/iconv_open: Add $(srcdir)/ to source directory
66951         references in Makefile fragments that call gperf, to fix VPATH
66952         builds.
66953
66954 2007-04-03  Bruno Haible  <bruno@clisp.org>
66955
66956         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66957         * lib/ldexpl.c: Undo last change.
66958
66959 2007-04-03  Bruno Haible  <bruno@clisp.org>
66960
66961         * modules/printf-frexpl (Depends-on): Undo last change.
66962         (Files): Add m4/ldexpl.m4.
66963
66964 2007-04-03  Bruno Haible  <bruno@clisp.org>
66965
66966         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66967         * modules/isnanl (Link): New section.
66968
66969         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66970         * modules/frexp (Link): New section.
66971
66972         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66973         * modules/frexpl (Link): New section.
66974
66975         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66976         * modules/ldexpl (Link): New section.
66977
66978 2007-04-03  Bruno Haible  <bruno@clisp.org>
66979
66980         * modules/TEMPLATE-EXTENDED: New file.
66981         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66982
66983 2007-04-03  Bruno Haible  <bruno@clisp.org>
66984
66985         * DEPENDENCIES: New file.
66986         Suggested by Simon Josefsson.
66987
66988 2007-04-03  Bruno Haible  <bruno@clisp.org>
66989
66990         * doc/gnulib.texi: Escape @.
66991
66992 2007-04-03  James Youngman  <jay@gnu.org>
66993         and Paul Eggert  <eggert@cs.ucla.edu>
66994
66995         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66996         birthtime on all systems that have birthtime, not just those which
66997         use st_birthtimensec rather than st_birthtim.  Putting zero in
66998         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66999         that the birth time is not available for files on an NFS mount.
67000
67001 2007-04-03  Simon Josefsson  <simon@josefsson.org>
67002
67003         * modules/memxor: Move back from crypto/, suggested by Bruno.
67004         * modules/crypto/hmac-sha1: Fix memxor dependency.
67005
67006         * modules/crypto/gc: Moved from ../.
67007
67008 2007-04-02  Eric Blake  <ebb9@byu.net>
67009
67010         * lib/ldexpl.c (includes): Avoid libm.
67011
67012         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
67013
67014 2007-04-02  Bruno Haible  <bruno@clisp.org>
67015
67016         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
67017         on IRIX.
67018
67019 2007-04-02  Bruno Haible  <bruno@clisp.org>
67020
67021         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
67022         x86 or x86_64 platforms running MacOS X.
67023         Reported by Ryan Schmidt <@ryandesign.com>.
67024
67025 2007-04-02  Bruno Haible  <bruno@clisp.org>
67026
67027         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
67028         i386.
67029
67030 2007-04-01  Simon Josefsson  <simon@josefsson.org>
67031
67032         * modules/crypto/arcfour: Moved from ../.
67033         * modules/crypto/arcfour-tests: Moved from ../.
67034         * modules/crypto/arctwo: Moved from ../.
67035         * modules/crypto/arctwo-tests: Moved from ../.
67036         * modules/crypto/des: Moved from ../.
67037         * modules/crypto/des-tests: Moved from ../.
67038         * modules/crypto/gc-arcfour: Moved from ../.
67039         * modules/crypto/gc-arcfour-tests: Moved from ../.
67040         * modules/crypto/gc-arctwo: Moved from ../.
67041         * modules/crypto/gc-arctwo-tests: Moved from ../.
67042         * modules/crypto/gc-des: Moved from ../.
67043         * modules/crypto/gc-des-tests: Moved from ../.
67044         * modules/crypto/gc-hmac-md5: Moved from ../.
67045         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
67046         * modules/crypto/gc-hmac-sha1: Moved from ../.
67047         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
67048         * modules/crypto/gc-md2: Moved from ../.
67049         * modules/crypto/gc-md2-tests: Moved from ../.
67050         * modules/crypto/gc-md4: Moved from ../.
67051         * modules/crypto/gc-md4-tests: Moved from ../.
67052         * modules/crypto/gc-md5: Moved from ../.
67053         * modules/crypto/gc-md5-tests: Moved from ../.
67054         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
67055         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
67056         * modules/crypto/gc-random: Moved from ../.
67057         * modules/crypto/gc-rijndael: Moved from ../.
67058         * modules/crypto/gc-rijndael-tests: Moved from ../.
67059         * modules/crypto/gc-sha1: Moved from ../.
67060         * modules/crypto/gc-sha1-tests: Moved from ../.
67061         * modules/crypto/gc-tests: Moved from ../.
67062         * modules/crypto/hmac-md5: Moved from ../.
67063         * modules/crypto/hmac-md5-tests: Moved from ../.
67064         * modules/crypto/hmac-sha1: Moved from ../.
67065         * modules/crypto/hmac-sha1-tests: Moved from ../.
67066         * modules/crypto/md2: Moved from ../.
67067         * modules/crypto/md2-tests: Moved from ../.
67068         * modules/crypto/md4: Moved from ../.
67069         * modules/crypto/md4-tests: Moved from ../.
67070         * modules/crypto/md5: Moved from ../.
67071         * modules/crypto/md5-tests: Moved from ../.
67072         * modules/crypto/memxor: Moved from ../.
67073         * modules/crypto/rijndael: Moved from ../.
67074         * modules/crypto/rijndael-tests: Moved from ../.
67075         * modules/crypto/sha1: Moved from ../.
67076
67077 2007-03-30  James Youngman  <jay@gnu.org>
67078
67079         * tests/test-stat-time.c (prepare_test): use chmod() rather than
67080         rename() to change the ctime of a file (because ctime is unaffected
67081         by rename on jfs2 on AIX 5.1).
67082         (main): Start by doing cleanup, in case a previous run failed leaving
67083         test files behind.
67084
67085 2007-03-31  Bruno Haible  <bruno@clisp.org>
67086
67087         Support old proprietary implementations of iconv.
67088         * modules/iconv_open: New file.
67089         * lib/iconv_.h: New file.
67090         * m4/iconv_h.m4: New file.
67091         * lib/iconv_open.c: New file.
67092         * lib/iconv_open-aix.gperf: New file.
67093         * lib/iconv_open-hpux.gperf: New file.
67094         * lib/iconv_open-irix.gperf: New file.
67095         * lib/iconv_open-osf.gperf: New file.
67096         * m4/iconv_open.m4: New file.
67097         * modules/linebreak (Depends-on): Add iconv_open.
67098         * modules/striconv (Depends-on): Likewise.
67099         * modules/striconveh (Depends-on): Likewise.
67100         * modules/unicodeio (Depends-on): Likewise.
67101         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
67102         (iconv_t)(-1).
67103         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
67104         conversion if cd is (iconv_t)(-1).
67105         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
67106         is not possible.
67107
67108 2007-03-31  Bruno Haible  <bruno@clisp.org>
67109
67110         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67111         work on Solaris either. Protect also second use of "autodetect_jp".
67112
67113 2007-03-31  Bruno Haible  <bruno@clisp.org>
67114
67115         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
67116         the function is not present.
67117
67118 2007-03-31  Bruno Haible  <bruno@clisp.org>
67119
67120         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
67121         the function is not present.
67122
67123 2007-03-31  Bruno Haible  <bruno@clisp.org>
67124
67125         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
67126         a bug in HP-UX iconv_open().
67127
67128 2007-03-31  Bruno Haible  <bruno@clisp.org>
67129
67130         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
67131         (Mathematics <math.h>): New section, add fpieee.
67132         (Input/output <stdio.h>): Add fseterr.
67133         (Mathematics <math.h>): New section, add printf-frexp.
67134         (Container data structures): Add sublist.
67135         (Core language properties): Add fpucw, inline.
67136         (Functions for greatest-width integer types <inttypes.h>): Add
67137         imaxabs, imaxdiv, inttypes.
67138         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
67139         isnanl-nolibm, ldexp.
67140         (Mathematics <math.h>): New section, add printf-frexpl.
67141         (Support for systems lacking POSIX:2001): Add fprintf-posix,
67142         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
67143         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
67144         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
67145         (Unicode string functions): Add unistr/u*-mbtoucr.
67146         (Java): Add javacomp-script, javaexec-script.
67147         (C#): Add csharpcomp-script, csharpexec-script.
67148         (Support for building libraries and executables): Add havelib,
67149         relocatable-*.
67150         (Support for maintaining and releasing projects): Renamed from
67151         'Support for maintaining and release projects'. Add announce-gen.
67152
67153 2007-03-31  Bruno Haible  <bruno@clisp.org>
67154
67155         * README: Talk primarily about git.
67156         (git and CVS): Renamed from CVS.
67157         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
67158         gnulib is available through git.
67159         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
67160
67161 2007-03-30  Bruno Haible  <bruno@clisp.org>
67162
67163         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
67164         * lib/poll_.h: Likewise.
67165         * lib/stat_.h: Likewise.
67166         * lib/sys_time_.h: Likewise.
67167         * lib/sysexit_.h: Likewise.
67168         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
67169         * lib/stdbool_.h: Likewise.
67170         * lib/byteswap_.h: Add double-inclusion guard.
67171
67172 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
67173
67174         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
67175
67176 2007-03-30  Karl Berry  <karl@gnu.org>
67177
67178         * config/srclist-update: double space after USA in the license
67179         substitution, since that's how it's usually (?) written.
67180
67181 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
67182
67183         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
67184         reported by Bruno Haible.
67185
67186 2007-03-29  Bruno Haible  <bruno@clisp.org>
67187
67188         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
67189         a bug in AIX iconv().
67190
67191 2007-03-29  Bruno Haible  <bruno@clisp.org>
67192
67193         * modules/ldexpl-tests: New file.
67194         * tests/test-ldexpl.c: New file.
67195
67196 2007-03-29  Bruno Haible  <bruno@clisp.org>
67197
67198         * lib/ldexpl.c: Include fpucw.h.
67199         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
67200         multiplication.
67201         * modules/ldexpl (Depends-on): Add fpucw.
67202
67203 2007-03-29  Bruno Haible  <bruno@clisp.org>
67204
67205         * modules/ldexpl: New file.
67206         * m4/ldexpl.m4: New file.
67207         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
67208         set.
67209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
67210         REPLACE_LDEXPL.
67211         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
67212         REPLACE_LDEXPL.
67213         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67214         gl_FUNC_LDEXPL_WORKS.
67215         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
67216         * modules/mathl (Files): Remove lib/ldexpl.c.
67217         (Depends-on): Add ldexpl.
67218
67219 2007-03-29  Bruno Haible  <bruno@clisp.org>
67220
67221         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
67222
67223 2007-03-29  Bruno Haible  <bruno@clisp.org>
67224
67225         * tests/test-striconveh.c (main): Don't assume that a direct conversion
67226         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
67227         and possibly also HP-UX.
67228         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67229         work on AIX, IRIX, HP-UX, OSF/1.
67230         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
67231         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
67232         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
67233         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
67234         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
67235         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
67236
67237 2007-03-29  Bruno Haible  <bruno@clisp.org>
67238
67239         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
67240
67241 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67242
67243         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
67244         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
67245
67246 2007-03-29  Eric Blake  <ebb9@byu.net>
67247
67248         * lib/acl-internal.h: Remove redundant include.
67249         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
67250         Cygwin when a file is locked.
67251
67252 2007-03-29  Bruno Haible  <bruno@clisp.org>
67253
67254         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
67255         file.
67256         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
67257
67258 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67259
67260         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
67261         try to remove a parent directory if the child couldn't be removed
67262         (except for the first rmdir, which could fail because the child
67263         doesn't exist).  Problem reported by Jeff Blaine in
67264         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
67265
67266 2007-03-28  Bruno Haible  <bruno@clisp.org>
67267
67268         * lib/striconveh.c (utf8conv_carefully): New function.
67269         (mem_cd_iconveh_internal): Invoke it.
67270
67271 2007-03-28  Bruno Haible  <bruno@clisp.org>
67272
67273         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
67274         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
67275         input.
67276         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
67277         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
67278         unistr/u8-uctomb.
67279
67280 2007-03-28  Bruno Haible  <bruno@clisp.org>
67281
67282         * modules/unistr/u8-mbtoucr: New file.
67283         * lib/unistr/u8-mbtoucr.c: New file.
67284         * modules/unistr/u16-mbtoucr: New file.
67285         * lib/unistr/u16-mbtoucr.c: New file.
67286         * modules/unistr/u16-mbtoucr: New file.
67287         * lib/unistr/u16-mbtoucr.c: New file.
67288         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
67289
67290 2007-03-27  Simon Josefsson  <simon@josefsson.org>
67291             Bruno Haible  <bruno@clisp.org>
67292
67293         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
67294         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
67295         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
67296
67297         * m4/stdio_h.m4: Add stubs for vasprintf too.
67298
67299         * modules/stdio: Support vasprintf in sed command.
67300
67301         * modules/vasprintf: Depend on stdio for prototypes.  Remove
67302         vasprintf.h.  Add stdio module indicator.
67303
67304         * lib/stdio_.h: Declare asprintf and vasprintf, based on
67305         vasprintf.h.
67306
67307         * lib/vasprintf.h: File removed.
67308
67309         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
67310         * lib/vasprintf.c: Ditto.
67311         * lib/xvasprintf.c: Ditto.
67312         * tests/test-vasprintf-posix.c: Ditto.
67313         * tests/test-vasprintf.c: Ditto.
67314
67315 2007-03-27  Bruno Haible  <bruno@clisp.org>
67316
67317         Make vasnprintf multithread-safe.
67318         * lib/vasnprintf.c (decimal_point_char): New function.
67319         (VASNPRINTF): Use it.
67320         Suggested by Simon Josefsson.
67321
67322 2007-03-27  Eric Blake  <ebb9@byu.net>
67323
67324         Support sub-second birthtime on cygwin.
67325         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
67326         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
67327         (get_stat_birthtime): Also work with st_birthtim.
67328
67329 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
67330
67331         * lib/stat-time.h (USE_BIRTHTIME): Remove.
67332         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
67333         (get_stat_birthtime_ns): Do not try to use "spare" fields.
67334         (get_stat_birthtime_ns): Simplify compile-time tests.
67335         (get_stat_birthtime): Change the API to look like
67336         get_stat_mtime etc., except return a negative tv_nsec on error.
67337         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
67338         Don't check for "spare" fields.
67339         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
67340         or for struct stat.st_birthtime, as these tests aren't used.
67341         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
67342
67343 2007-03-27  Bruno Haible  <bruno@clisp.org>
67344
67345         * lib/stat-time.h: Include <sys/stat.h>.
67346
67347 2007-03-27  James Youngman  <jay@gnu.org>
67348
67349         * lib/stat-time.h (get_stat_birthtime): New function for
67350           retrieving st_birthtime as provided by UFS2 (hence *BSD).
67351         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
67352           and its variants.
67353         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
67354         * modules/stat-time-test: New file.
67355         * tests/test-stat-time.c: New test, devised by Bruno Haible.
67356
67357 2007-03-26  Bruno Haible  <bruno@clisp.org>
67358
67359         Better support of signalling NaNs.
67360         * lib/atanl.c: Include isnanl.h.
67361         (atanl): Perform test for NaN at the beginning of the function and
67362         through a call to isnanl.
67363         * lib/cosl.c: Include isnanl.h.
67364         (cosl): Perform test for NaN at the beginning of the function and
67365         through a call to isnanl.
67366         * lib/ldexpl.c: Include isnanl.h.
67367         (ldexpl): Perform test for NaN through a call to isnanl.
67368         * lib/logl.c: Include isnanl.h.
67369         (logl): Perform test for NaN at the beginning of the function and
67370         through a call to isnanl.
67371         * lib/sinl.c: Include isnanl.h.
67372         (sinl): Perform test for NaN at the beginning of the function and
67373         through a call to isnanl.
67374         * lib/sqrtl.c: Include isnanl.h.
67375         (sqrtl): Perform test for NaN at the beginning of the function and
67376         through a call to isnanl.
67377         * lib/tanl.c: Include isnanl.h.
67378         (tanl): Perform test for NaN at the beginning of the function and
67379         through a call to isnanl.
67380         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
67381         * modules/mathl (Depends-on): Add isnanl.
67382
67383 2007-03-26  Eric Blake  <ebb9@byu.net>
67384
67385         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
67386         regression in logic sense of previous patch.
67387
67388 2007-03-26  Bruno Haible  <bruno@clisp.org>
67389
67390         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
67391         unportable shell command "if ! ...".
67392         Reported by Ralf Wildenhues.
67393
67394 2007-03-25  Bruno Haible  <bruno@clisp.org>
67395
67396         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
67397         <sysexits.h> file, and only add EX_CONFIG.
67398         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
67399         absolute file name and whether it is sufficient. Substitute also
67400         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
67401         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
67402         ABSOLUTE_SYSEXITS_H into sysexits.h.
67403
67404 2007-03-25  Bruno Haible  <bruno@clisp.org>
67405
67406         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
67407         hints is NULL.
67408
67409 2007-03-25  Bruno Haible  <bruno@clisp.org>
67410
67411         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
67412         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
67413
67414 2007-03-25  Bruno Haible  <bruno@clisp.org>
67415
67416         * lib/vasnprintf.c: Include langinfo.h.
67417         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
67418         multithread-safe.
67419         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
67420         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
67421         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67422         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67423         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67424         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67425         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67426         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
67427         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67428         Reported by Simon Josefsson.
67429
67430 2007-03-25  Bruno Haible  <bruno@clisp.org>
67431
67432         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
67433         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
67434         * modules/vasnprintf (Depends-on): Add stdint.
67435
67436 2007-03-25  Bruno Haible  <bruno@clisp.org>
67437
67438         * modules/fpieee: New file.
67439         * m4/fpieee.m4: New file.
67440         * modules/isnan-nolibm (Depends-on): Add fpieee.
67441         * modules/isnanl-nolibm (Depends-on): Add fpieee.
67442         * modules/isnanl (Depends-on): Add fpieee.
67443
67444 2007-03-25  Bruno Haible  <bruno@clisp.org>
67445
67446         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
67447
67448 2007-03-25  Bruno Haible  <bruno@clisp.org>
67449
67450         Avoid test failures on IRIX 6.5.
67451         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
67452         (main): Use it.
67453         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
67454         macros.
67455         (main): Use them.
67456
67457 2007-03-25  Bruno Haible  <bruno@clisp.org>
67458
67459         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
67460         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
67461         exists but doesn't work.
67462         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
67463         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
67464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
67465         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
67466         math.h.
67467
67468 2007-03-25  Bruno Haible  <bruno@clisp.org>
67469
67470         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
67471         returns inf. Needed on IRIX 6.5.
67472
67473 2007-03-25  Bruno Haible  <bruno@clisp.org>
67474
67475         * tests/test-frexpl.c: Include isnanl-nolibm.h.
67476         (main): Use isnanl instead of x != x idiom.
67477         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
67478
67479         * tests/test-frexp.c: Include isnan.h.
67480         (main): Use isnan instead of x != x idiom.
67481         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
67482
67483 2007-03-25  Bruno Haible  <bruno@clisp.org>
67484
67485         * tests/test-frexp.c (NaN): New function/macro.
67486         (main): Use it instead of 0.0 / 0.0.
67487         * tests/test-isnan.c (NaN): New function/macro.
67488         (main): Use it instead of 0.0 / 0.0.
67489         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
67490         (test_function): Use it instead of 0.0 / 0.0.
67491         * tests/test-vasprintf-posix.c (NaN): New function/macro.
67492         (test_function): Use it instead of 0.0 / 0.0.
67493         * tests/test-snprintf-posix.h (NaN): New function/macro.
67494         (test_function): Use it instead of 0.0 / 0.0.
67495         * tests/test-sprintf-posix.h (NaN): New function/macro.
67496         (test_function): Use it instead of 0.0 / 0.0.
67497         * tests/test-fprintf-posix.h (NaN): New function/macro.
67498         (test_function): Use it instead of 0.0 / 0.0.
67499         * tests/test-printf-posix.h (NaN): New function/macro.
67500         (test_function): Use it instead of 0.0 / 0.0.
67501
67502         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
67503
67504 2007-03-25  Bruno Haible  <bruno@clisp.org>
67505
67506         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
67507
67508 2007-03-25  Bruno Haible  <bruno@clisp.org>
67509
67510         * lib/regexec.c (merge_state_with_log): Make static.
67511
67512 2007-03-25  Bruno Haible  <bruno@clisp.org>
67513
67514         * lib/trigl.c (kernel_rem_pio2): Make static.
67515
67516 2007-03-25  Bruno Haible  <bruno@clisp.org>
67517
67518         * lib/sincosl.c (sincosl_table): Make static.
67519
67520 2007-03-25  Bruno Haible  <bruno@clisp.org>
67521
67522         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
67523         if the compiler does not support C99.
67524
67525 2007-03-25  Bruno Haible  <bruno@clisp.org>
67526
67527         * modules/time (Makefile.am): Ensure all rule action lines start with a
67528         tab.
67529
67530 2007-03-24  Bruno Haible  <bruno@clisp.org>
67531
67532         * modules/tsearch-tests: New file.
67533         * tests/test-tsearch.sh: New file.
67534         * tests/test-tsearch.c: New file, mostly copied from glibc.
67535
67536         * modules/search-tests: New file.
67537         * tests/test-search.c: New file.
67538
67539         * modules/search: New file.
67540         * lib/search_.h: New file, incorporating lib/tsearch.h.
67541         * m4/search_h.m4: New file.
67542         * lib/tsearch.h: Remove file.
67543         * lib/tsearch.c: Include search.h instead of tsearch.h.
67544         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
67545         HAVE_TSEARCH.
67546         * modules/tsearch (Files): Remove lib/tsearch.h.
67547         (Depends-on): Add search.
67548         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
67549         (Include): Change tsearch.h into search.h.
67550
67551 2007-03-24  Bruno Haible  <bruno@clisp.org>
67552
67553         * modules/fpucw: New file.
67554         * lib/fpucw.h: New file.
67555         * lib/frexp.c: Include fpucw.h.
67556         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67557         (FUNC): Use them.
67558         * lib/printf-frexp.c: Include fpucw.h.
67559         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67560         (FUNC): Use them.
67561         * lib/vasnprintf.c: Include fpucw.h.
67562         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67563         'long double' calculations.
67564         * tests/test-frexpl.c: Include fpucw.h.
67565         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67566         * tests/test-printf-frexpl.c: Include fpucw.h.
67567         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67568         * modules/frexpl (Depends-on): Add fpucw.
67569         * modules/printf-frexpl (Depends-on): Likewise.
67570         * modules/fprintf-posix (Depends-on): Likewise.
67571         * modules/snprintf-posix (Depends-on): Likewise.
67572         * modules/sprintf-posix (Depends-on): Likewise.
67573         * modules/vasnprintf-posix (Depends-on): Likewise.
67574         * modules/vasprintf-posix (Depends-on): Likewise.
67575         * modules/vfprintf-posix (Depends-on): Likewise.
67576         * modules/vsnprintf-posix (Depends-on): Likewise.
67577         * modules/vsprintf-posix (Depends-on): Likewise.
67578         * modules/frexpl-tests (Depends-on): Likewise.
67579         * modules/printf-frexpl-tests (Depends-on): Likewise.
67580
67581 2007-03-24  Bruno Haible  <bruno@clisp.org>
67582
67583         * lib/float+.h: New file.
67584         * lib/isnan.c: Include float+.h.
67585         (SIZE): New macro.
67586         (FUNC): Compare only SIZE bytes of the value.
67587         * lib/vasnprintf.c: Include float+.h.
67588         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
67589         SIZEOF_LDBL or SIZEOF_DBL bytes.
67590         * modules/isnan-nolibm (Files): Add lib/float+.h.
67591         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67592         * modules/isnanl (Files): Add lib/float+.h.
67593         * modules/vasnprintf (Files): Add lib/float+.h.
67594
67595 2007-03-24  Bruno Haible  <bruno@clisp.org>
67596
67597         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67598         include isnanl-nolibm.h.
67599
67600 2007-03-24  Bruno Haible  <bruno@clisp.org>
67601
67602         * tests/test-read-file.c (main): Don't produce spurious output for
67603         expected situations. Make the test fail if it encountered unexpected
67604         results.
67605
67606 2007-03-24  Bruno Haible  <bruno@clisp.org>
67607
67608         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67609         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67610
67611 2007-03-24  Bruno Haible  <bruno@clisp.org>
67612
67613         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67614
67615 2007-03-24  Bruno Haible  <bruno@clisp.org>
67616
67617         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67618         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67619
67620         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67621         * modules/utf8-ucs4: Turn into a symbolic link to module
67622         unistr/u8-mbtouc.
67623
67624         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67625         utf8-ucs4-unsafe.
67626         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67627         unistr/u8-mbtouc-unsafe.
67628
67629         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67630         * modules/utf16-ucs4: Turn into a symbolic link to module
67631         unistr/u16-mbtouc.
67632
67633         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67634         utf16-ucs4-unsafe.
67635         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67636         unistr/u16-mbtouc-unsafe.
67637
67638         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67639         * modules/ucs4-utf8: Turn into a symbolic link to module
67640         unistr/u8-ubtomb.
67641
67642         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67643         * modules/ucs4-utf16: Turn into a symbolic link to module
67644         unistr/u16-ubtomb.
67645
67646 2007-03-24  Bruno Haible  <bruno@clisp.org>
67647
67648         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67649         Enable the function only if HAVE_INLINE.
67650         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67651         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67652         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67653         Enable the function only if HAVE_INLINE.
67654         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67655         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67656         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67657         Enable the function only if HAVE_INLINE.
67658         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67659         Enable the function only if HAVE_INLINE.
67660         * modules/utf8-ucs4: Update.
67661         * modules/utf8-ucs4-unsafe: Update.
67662         * modules/utf16-ucs4: Update.
67663         * modules/utf16-ucs4-unsafe: Update.
67664         * modules/ucs4-utf8: Update.
67665         * modules/ucs4-utf16: Update.
67666
67667 2007-03-24  Bruno Haible  <bruno@clisp.org>
67668
67669         * lib/utf8-ucs4.h: Remove file.
67670         * lib/utf8-ucs4-unsafe.h: Remove file.
67671         * lib/utf16-ucs4.h: Remove file.
67672         * lib/utf16-ucs4-unsafe.h: Remove file.
67673         * lib/ucs4-utf8.h: Remove file.
67674         * lib/ucs4-utf16.h: Remove file.
67675         * lib/unistr.h: Include their previous contents.
67676         * m4/utf-ucs4.m4: Remove file.
67677         * m4/ucs4-utf.m4: Remove file.
67678         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67679         (Depends-on): Add unistr/base.
67680         (configure.ac): Remove gl_UTF_UCS4.
67681         (Makefile.am): Update.
67682         (Include): Change to unistr.h.
67683         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67684         (Depends-on): Add unistr/base.
67685         (configure.ac): Remove gl_UTF_UCS4.
67686         (Makefile.am): Update.
67687         (Include): Change to unistr.h.
67688         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67689         (Depends-on): Add unistr/base.
67690         (configure.ac): Remove gl_UTF_UCS4.
67691         (Makefile.am): Update.
67692         (Include): Change to unistr.h.
67693         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67694         (Depends-on): Add unistr/base.
67695         (configure.ac): Remove gl_UTF_UCS4.
67696         (Makefile.am): Update.
67697         (Include): Change to unistr.h.
67698         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67699         (Depends-on): Add unistr/base.
67700         (configure.ac): Remove gl_UCS4_UTF.
67701         (Makefile.am): Update.
67702         (Include): Change to unistr.h.
67703         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67704         (Depends-on): Add unistr/base.
67705         (configure.ac): Remove gl_UCS4_UTF.
67706         (Makefile.am): Update.
67707         (Include): Change to unistr.h.
67708         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67709         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67710         utf8-ucs4-unsafe.h.
67711         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67712         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67713         utf16-ucs4-unsafe.h.
67714         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67715         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67716         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67717         * lib/unistr/u8-strchr.c: Likewise.
67718         * lib/unistr/u8-strrchr.c: Likewise.
67719         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67720         * lib/unistr/u16-strchr.c: Likewise.
67721         * lib/unistr/u16-strrchr.c: Likewise.
67722         * lib/striconveh.c: Update.
67723         * lib/linebreak.c: Update.
67724
67725 2007-03-24  Bruno Haible  <bruno@clisp.org>
67726
67727         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67728         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67729
67730 2007-03-22  Bruno Haible  <bruno@clisp.org>
67731
67732         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67733
67734 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67735
67736         * MODULES.html.sh (File system functions): New module write-any-file.
67737         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67738         * m4/write-any-file.m4: New files.
67739
67740 2007-03-23  Eric Blake  <ebb9@byu.net>
67741
67742         * gnulib-tool: Rearrange space-tab sequences, since some editors
67743         like to eat them.
67744
67745 2007-03-23  Eric Blake  <ebb9@byu.net>
67746
67747         * lib/version-etc.c (version_etc_va): Update license wording to
67748         be more concise.  Recommended by Richard Stallman.
67749
67750 2007-03-22  Bruno Haible  <bruno@clisp.org>
67751
67752         * lib/poll.c (MSG_PEEK): New fallback definition.
67753
67754 2007-03-22  Bruno Haible  <bruno@clisp.org>
67755
67756         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67757         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67758         (main): Update.
67759         Fixes a compilation error on BeOS.
67760
67761 2007-03-22  Bruno Haible  <bruno@clisp.org>
67762
67763         * modules/frexpl-tests: New file.
67764         * tests/test-frexpl.c: New file.
67765
67766         * modules/frexpl: New file.
67767         * m4/frexpl.m4: New file.
67768         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67769         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67771         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67772         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67773         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67774
67775 2007-03-22  Bruno Haible  <bruno@clisp.org>
67776
67777         * lib/frexpl.c: Share code with lib/frexp.c.
67778         * modules/mathl (Files): Add lib/frexp.c.
67779         (Depends-on): Add isnanl-nolibm.
67780
67781 2007-03-22  Bruno Haible  <bruno@clisp.org>
67782
67783         * modules/printf-frexp (Files): Add m4/frexp.m4.
67784         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67785         only if the found frexp function actually works.
67786
67787 2007-03-22  Bruno Haible  <bruno@clisp.org>
67788
67789         * lib/frexp.c: Remove older implementation that uses divisions.
67790
67791 2007-03-21  Bruno Haible  <bruno@clisp.org>
67792
67793         * modules/frexp-tests: New file.
67794         * tests/test-frexp.c: New file.
67795
67796         * modules/frexp: New file.
67797         * lib/frexp.c: New file.
67798         * m4/frexp.m4: New file.
67799         * lib/math_.h (frexp): New declaration.
67800         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67801         REPLACE_FREXP.
67802         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67803
67804 2007-03-21  Bruno Haible  <bruno@clisp.org>
67805
67806         * modules/isnanl-tests: New file.
67807         * tests/test-isnanl.c: New file.
67808
67809         * modules/isnanl: New file.
67810         * lib/isnanl.h: New file.
67811         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67812         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67813         gl_FUNC_ISNANL_WORKS.
67814         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67815         New macros.
67816
67817 2007-03-21  Bruno Haible  <bruno@clisp.org>
67818
67819         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67820         lib/isnanl.h.
67821         (Include): Update.
67822         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67823         * lib/vasnprintf.c: Update.
67824         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67825         tests/test-isnanl.h, remove tests/test-isnanl.c.
67826         (Makefile.am): Update.
67827         * tests/test-isnanl-nolibm.c: New file.
67828         * tests/test-isnanl.h: New file.
67829         * tests/test-isnanl.c: Remove file.
67830
67831 2007-03-21  Jim Meyering  <jim@meyering.net>
67832
67833         When trying to open ".", treat ESTALE like EACCES.
67834         * lib/savewd.c (savewd_save): Resort to forking not just upon
67835         failure with EACCES, but also when errno is ESTALE.
67836
67837 2007-03-20  Bruno Haible  <bruno@clisp.org>
67838
67839         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67840         Needed on AIX 5.1. Reported by Matthew Woehlke.
67841
67842 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67843
67844         Suggestions by Bruno Haible:
67845         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67846         our own.
67847         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67848         * modules/acl (Depends-on): Add gettext.
67849
67850 2007-03-19  Bruno Haible  <bruno@clisp.org>
67851
67852         * modules/iconvme: Remove file.
67853         * lib/iconvme.h: Remove file.
67854         * lib/iconvme.c: Remove file.
67855         * m4/iconvme.m4: Remove file.
67856
67857 2007-03-19  Bruno Haible  <bruno@clisp.org>
67858
67859         * doc/relocatable-maint.texi: Break long shell script line.
67860         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67861
67862 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67863
67864         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67865         handle file_has_acl.
67866         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67867         * lib/acl.c: Move header inclusions and related macro defns into
67868         lib/acl-internal.h.
67869         (S_ISLNK): Remove defn, since that's now done for us.
67870         (file_has_acl): Move to lib/file-has-acl.c.
67871         Call acl_trivial if available.  This is the crucial part of the fix.
67872         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67873         shared within the library.  Rewrite a bit, partly to make it compatible
67874         with the GNU coding style.
67875         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67876         Remove unnecessary double-quotes.
67877         Don't test for acl_to_text; the build will catch that.
67878         Replace acl_entries if it doesn't exist and it is needed.
67879         Check for -lsec and acl_trivial (as used on Solaris 10).
67880         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67881         lib/file-has-acl.c.
67882         (Depends-on): Add sys_stat, for S_ISLNK.
67883
67884 2007-03-19  Ben Pfaff  <blp@gnu.org>
67885
67886         * doc/gnulib.texi: Fix typos.
67887         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67888
67889 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67890
67891         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67892         If size is zero here, buf must be zero.
67893
67894 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67895
67896         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67897         <bruno@clisp.org>.
67898
67899 2007-03-18  Bruno Haible  <bruno@clisp.org>
67900
67901         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67902         Suggested by Eric Blake.
67903
67904 2007-03-18  Ben Pfaff  <blp@gnu.org>
67905
67906         * doc/relocatable.texi: Recommend using as prefix a directory
67907         that does not exist and will never be created.  Based on
67908         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67909         and others.
67910
67911 2007-03-17  Bruno Haible  <bruno@clisp.org>
67912
67913         * lib/fchownat.c: Include lchown.h.
67914
67915 2007-03-17  Bruno Haible  <bruno@clisp.org>
67916
67917         Fix endless loop when the given allocated size was > INT_MAX.
67918         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67919         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67920         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67921         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67922         * lib/sprintf.c (sprintf): Likewise.
67923
67924 2007-03-17  Bruno Haible  <bruno@clisp.org>
67925
67926         * tests/test-argp-2.sh (func_compare): Output a context diff.
67927
67928 2007-03-17  Bruno Haible  <bruno@clisp.org>
67929
67930         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67931         locale's decimal-point character.
67932
67933 2007-03-17  Bruno Haible  <bruno@clisp.org>
67934
67935         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67936         before comparing it. Needed because on some platforms (e.g. x86) a
67937         'long double' occupies less bytes than sizeof (long double).
67938
67939 2007-03-17  Bruno Haible  <bruno@clisp.org>
67940
67941         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67942         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67943         * tests/test-getaddrinfo.c (simple): Likewise.
67944         * tests/test-read-file.c (main): Likewise.
67945
67946 2007-03-17  Bruno Haible  <bruno@clisp.org>
67947
67948         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67949
67950 2007-03-17  Bruno Haible  <bruno@clisp.org>
67951
67952         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67953         unused variable.
67954
67955 2007-03-17  Bruno Haible  <bruno@clisp.org>
67956
67957         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67958         * tests/test-c-strncasecmp.c: Likewise.
67959
67960 2007-03-17  Bruno Haible  <bruno@clisp.org>
67961
67962         * modules/stdlib (Depends-on): Add unistd.
67963         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67964         Needed for MacOS X 10.3.
67965
67966 2007-03-17  Bruno Haible  <bruno@clisp.org>
67967
67968         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67969
67970 2007-03-17  Bruno Haible  <bruno@clisp.org>
67971
67972         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67973
67974 2007-03-17  Bruno Haible  <bruno@clisp.org>
67975
67976         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67977         to reflect files copied from gnulib (with or without modifications).
67978         Suggested by Jim Meyering.
67979
67980 2007-03-17  Eric Blake  <ebb9@byu.net>
67981
67982         * NEWS: Document stdlib change from 2007-02-18.
67983
67984 2007-03-17  Jim Meyering  <jim@meyering.net>
67985
67986         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67987         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67988         someone uses a name containing shell meta-characters.
67989         Reported by Alfred M. Szmidt.
67990
67991         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67992
67993 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67994
67995         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67996         and copy gettext configuration files only if configure.ac contains
67997         a use of AM_GNU_GETTEXT_VERSION.
67998
67999 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68000
68001         * build-aux/bootstrap (gnulib_name): New variable.
68002         (gnulib_tool_options): Use it.
68003
68004 2007-03-13  Simon Josefsson  <simon@josefsson.org>
68005
68006         * tests/test-des.c: Use new namespace.
68007
68008 2007-03-15  Bruno Haible  <bruno@clisp.org>
68009
68010         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
68011         Reported by James Youngman <jay@gnu.org>.
68012
68013 2007-03-15  Bruno Haible  <bruno@clisp.org>
68014
68015         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
68016         declared prototype. Needed with cc on OSF/1 5.1.
68017
68018 2007-03-15  Bruno Haible  <bruno@clisp.org>
68019
68020         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
68021         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
68022         (struct gl_list_implementation): Add dispose_fn argument to the
68023         'create_empty', 'create' methods.
68024         (struct gl_list_impl_base): Add field 'dispose_fn'.
68025         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
68026         argument.
68027         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
68028         dispose_fn argument.
68029         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
68030         dispose_fn on the dropped values.
68031         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
68032         dispose_fn argument.
68033         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
68034         dropped values.
68035         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
68036         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68037         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
68038         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68039         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
68040         argument.
68041         (gl_tree_list_free): Call dispose_fn on the dropped values.
68042         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
68043         the dropped values.
68044         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68045         Add dispose_fn argument.
68046         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
68047         Call dispose_fn on the dropped values.
68048         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
68049         Add dispose_fn argument.
68050         (gl_sublist_create): Initialize the 'dispose_fn' field.
68051         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
68052         * tests/test-array_list.c (main): Update.
68053         * tests/test-carray_list.c (main): Update.
68054         * tests/test-avltree_list.c (main): Update.
68055         * tests/test-rbtree_list.c (main): Update.
68056         * tests/test-avltreehash_list.c (main): Update.
68057         * tests/test-rbtreehash_list.c (main): Update.
68058         * tests/test-linked_list.c (main): Update.
68059         * tests/test-linkedhash_list.c (main): Update.
68060         * tests/test-array_oset.c (main): Update.
68061
68062 2007-03-15  Bruno Haible  <bruno@clisp.org>
68063
68064         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
68065         (gl_oset_create_empty): Add dispose_fn argument.
68066         (struct gl_oset_implementation): Add dispose_fn argument to
68067         'create_empty' method.
68068         (struct gl_oset_impl_base): Add dispose_fn field.
68069         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
68070         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
68071         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
68072         values.
68073         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
68074         (gl_tree_oset_free): Call dispose_fn on the dropped values.
68075         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68076         dropped value.
68077         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68078         dropped value.
68079         * tests/test-array_oset.c (main): Update.
68080         * tests/test-avltree_oset.c (main): Update.
68081         * tests/test-rbtree_oset.c (main): Update.
68082         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
68083
68084 2007-03-13  Bruno Haible  <bruno@clisp.org>
68085
68086         * tests/test-stdbool.c (i): Update after last patch.
68087
68088 2007-03-12  Bruno Haible  <bruno@clisp.org>
68089
68090         * lib/quotearg.c: Include <wctype.h> early, before the definition of
68091         the iswprint macro. Needed on Solaris 2.5.1.
68092
68093 2007-03-12  Bruno Haible  <bruno@clisp.org>
68094
68095         * tests/test-printf-frexp.c (main): Declare x as volatile.
68096
68097 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68098
68099         * doc/gnulib.texi (Build robot for gnulib): New section.
68100
68101 2007-03-12  Jim Meyering  <jim@meyering.net>
68102
68103         * build-aux/bootstrap: New file.
68104         * build-aux/bootstrap.conf: New file, from coreutils.
68105
68106 2007-03-11  Bruno Haible  <bruno@clisp.org>
68107
68108         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
68109
68110 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68111
68112         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
68113         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
68114         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
68115
68116 2007-03-11  Bruno Haible  <bruno@clisp.org>
68117
68118         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
68119         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
68120
68121 2007-03-11  Bruno Haible  <bruno@clisp.org>
68122
68123         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
68124         formula. Needed for SunPRO C 5.0.
68125
68126 2007-03-11  Bruno Haible  <bruno@clisp.org>
68127
68128         * modules/long-options (Depends-on): Add getopt.
68129
68130 2007-03-11  Bruno Haible  <bruno@clisp.org>
68131
68132         * modules/modechange (Depends-on): Add stdbool.
68133
68134 2007-03-11  Bruno Haible  <bruno@clisp.org>
68135
68136         * modules/i-ring (Depends-on): Add stdbool.
68137
68138 2007-03-11  Bruno Haible  <bruno@clisp.org>
68139
68140         * modules/gc-des (Depends-on): Add stdbool.
68141
68142 2007-03-11  Bruno Haible  <bruno@clisp.org>
68143
68144         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
68145
68146 2007-03-11  Bruno Haible  <bruno@clisp.org>
68147
68148         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
68149
68150 2007-03-11  Bruno Haible  <bruno@clisp.org>
68151
68152         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
68153
68154 2007-03-11  Bruno Haible  <bruno@clisp.org>
68155
68156         * lib/vasnprintf.c (sprintf): Undefine.
68157
68158 2007-03-11  Bruno Haible  <bruno@clisp.org>
68159
68160         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
68161         initializers in SunPRO C and Compaq C compilers.
68162
68163 2007-03-11  Bruno Haible  <bruno@clisp.org>
68164
68165         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
68166         decrementing code ANSI C compliant.
68167
68168 2007-03-11  Bruno Haible  <bruno@clisp.org>
68169
68170         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
68171         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
68172
68173 2007-03-11  Bruno Haible  <bruno@clisp.org>
68174
68175         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
68176         <stdbool.h> substitute doesn't pass.
68177
68178 2007-03-11  Bruno Haible  <bruno@clisp.org>
68179
68180         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
68181
68182 2007-03-11  Bruno Haible  <bruno@clisp.org>
68183
68184         * gnulib-tool (func_create_megatestdir): Create also an autobuild
68185         script, for submission to autobuild.josefsson.org.
68186
68187 2007-03-10  Bruno Haible  <bruno@clisp.org>
68188
68189         * modules/canonicalize-lgpl-tests: New file.
68190         * tests/test-canonicalize-lgpl.sh: New file.
68191         * tests/test-canonicalize-lgpl.c: New file.
68192
68193         * modules/c-strcase-tests: New file.
68194         * tests/test-c-strcase.sh: New file.
68195         * tests/test-c-strcasecmp.c: New file.
68196         * tests/test-c-strncasecmp.c: New file.
68197
68198         * modules/atexit-tests: New file.
68199         * tests/test-atexit.sh: New file.
68200         * tests/test-atexit.c: New file.
68201
68202 2007-03-10  Bruno Haible  <bruno@clisp.org>
68203
68204         * tests/test-binary-io.sh: Use temporary filenames that are not so
68205         likely to clash with those of other tests (in a parallel make).
68206         * tests/test-binary-io.c: Likewise.
68207
68208 2007-03-10  Bruno Haible  <bruno@clisp.org>
68209
68210         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
68211         fallback; use #error instead.
68212         Suggested by Simon Josefsson.
68213
68214 2007-03-10  Bruno Haible  <bruno@clisp.org>
68215
68216         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
68217         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
68218         first and the last.
68219
68220 2007-03-10  Bruno Haible  <bruno@clisp.org>
68221
68222         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
68223
68224 2007-03-10  Bruno Haible  <bruno@clisp.org>
68225
68226         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
68227         "make distcheck".
68228         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
68229         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
68230         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
68231
68232 2007-03-10  Bruno Haible  <bruno@clisp.org>
68233
68234         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
68235         variable.
68236         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
68237         variable.
68238
68239 2007-03-09  Eric Blake  <ebb9@byu.net>
68240         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
68241
68242         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
68243         types are not being provided by gnulib.
68244         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
68245         types are supported.
68246
68247 2007-03-10  Bruno Haible  <bruno@clisp.org>
68248
68249         * lib/stdio_.h (__attribute__): New macro.
68250         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
68251         vsprintf): Specify __attribute__ __format__ for GCC.
68252         Suggested by Eric Blake.
68253
68254 2007-03-09  Bruno Haible  <bruno@clisp.org>
68255
68256         * modules/printf-posix-tests: New file.
68257         * tests/test-printf-posix.sh: New file.
68258         * tests/test-printf-posix.c: New file.
68259
68260         * modules/printf-posix: New file.
68261         * lib/printf.c: New file.
68262         * m4/printf-posix-rpl.m4: New file.
68263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
68264         REPLACE_PRINTF.
68265         * lib/stdio_.h (printf): New declaration.
68266         (format, __format__, ____printf____, ____scanf____, ____strftime____,
68267         ____strfmon____): New macros.
68268         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
68269         REPLACE_PRINTF.
68270
68271 2007-03-09  Bruno Haible  <bruno@clisp.org>
68272
68273         * tests/test-vasnprintf-posix2.sh: New file.
68274         * tests/test-vasnprintf-posix2.c: New file.
68275         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
68276         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68277         (Makefile.am): Activate test-vasnprintf-posix2.sh.
68278
68279         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
68280         a locale dependent decimal point, rather than always '.'.
68281
68282 2007-03-09  Eric Blake  <ebb9@byu.net>
68283
68284         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
68285         spite of platforms like Tandem/NSK that define it to -1.
68286
68287 2007-03-08  Bruno Haible  <bruno@clisp.org>
68288
68289         * modules/vprintf-posix-tests: New file.
68290         * tests/test-vprintf-posix.sh: New file.
68291         * tests/test-vprintf-posix.c: New file.
68292         * tests/test-printf-posix.h: New file.
68293
68294         * modules/vprintf-posix: New file.
68295         * lib/vprintf.c: New file.
68296         * m4/vprintf-posix.m4: New file.
68297         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
68298         REPLACE_VPRINTF.
68299         * lib/stdio_.h (vprintf): New declaration.
68300         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
68301         REPLACE_VPRINTF.
68302
68303 2007-03-08  Bruno Haible  <bruno@clisp.org>
68304
68305         * modules/fprintf-posix-tests: New file.
68306         * tests/test-fprintf-posix.sh: New file.
68307         * tests/test-fprintf-posix.c: New file.
68308
68309         * modules/fprintf-posix: New file.
68310         * lib/fprintf.c: New file.
68311         * m4/fprintf-posix.m4: New file.
68312         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
68313         REPLACE_FPRINTF.
68314         * lib/stdio_.h (fprintf): New declaration.
68315         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
68316         REPLACE_FPRINTF.
68317
68318 2007-03-08  Bruno Haible  <bruno@clisp.org>
68319
68320         * modules/vfprintf-posix-tests: New file.
68321         * tests/test-vfprintf-posix.sh: New file.
68322         * tests/test-vfprintf-posix.c: New file.
68323         * tests/test-fprintf-posix.h: New file.
68324         * tests/test-fprintf-posix.out: New file.
68325
68326         * modules/vfprintf-posix: New file.
68327         * lib/vfprintf.c: New file.
68328         * m4/vfprintf-posix.m4: New file.
68329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
68330         REPLACE_VFPRINTF.
68331         * lib/stdio_.h (vfprintf): New declaration.
68332         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
68333         REPLACE_VFPRINTF.
68334
68335 2007-03-08  Bruno Haible  <bruno@clisp.org>
68336
68337         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
68338
68339 2007-03-08  Bruno Haible  <bruno@clisp.org>
68340
68341         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
68342         instead of 'expr' invocations.
68343         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68344         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68345         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68346         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68347         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68348         Suggested by Paul Eggert.
68349
68350 2007-03-08  Bruno Haible  <bruno@clisp.org>
68351
68352         * modules/fseterr-tests: New file.
68353         * tests/test-fseterr.c: New file.
68354
68355         * modules/fseterr: New file.
68356         * lib/fseterr.h: New file.
68357         * lib/fseterr.c: New file.
68358
68359 2007-03-08  Bruno Haible  <bruno@clisp.org>
68360
68361         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
68362         * lib/getopt_.h: Likewise.
68363         * lib/mbswidth.h: Likewise.
68364         * lib/setenv.h: Likewise.
68365         * lib/vasnprintf.h: Likewise.
68366         * lib/vasprintf.h: Likewise.
68367         * lib/verror.h: Likewise.
68368         * lib/xsetenv.h: Likewise.
68369         * lib/xvasprintf.h: Likewise.
68370
68371 2007-03-08  Jim Meyering  <jim@meyering.net>
68372
68373         * users.txt: Add parted.
68374
68375         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
68376
68377 2007-03-07  Bruno Haible  <bruno@clisp.org>
68378
68379         * m4/printf.m4: Make the shell script snippets copy&pastable.
68380
68381 2007-03-02  Bruno Haible  <bruno@clisp.org>
68382
68383         * lib/netinet_in_.h: New file.
68384         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
68385         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
68386         * modules/netinet_in (Files): Add lib/netinet_in_.h.
68387         (Depends-on): Add absolute-header.
68388         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
68389         into netinet/in.h.
68390
68391 2007-03-03  Bruno Haible  <bruno@clisp.org>
68392
68393         * lib/sys_select_.h: New file.
68394         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
68395         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
68396         * modules/sys_select (Files): Add lib/sys_select_.h.
68397         (Depends-on): Add absolute-header.
68398         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
68399         into sys/select.h.
68400
68401 2007-03-02  Bruno Haible  <bruno@clisp.org>
68402
68403         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
68404         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
68405         values.
68406         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
68407         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
68408         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
68409         * modules/sys_socket (Depends-on): Add absolute-header.
68410         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
68411         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
68412         (Include): Remove requirement of inclusion of <sys/types.h>.
68413
68414 2007-03-02  Bruno Haible  <bruno@clisp.org>
68415
68416         * lib/byteswap_.h (bswap_32): Fix formula.
68417
68418 2007-03-06  Bruno Haible  <bruno@clisp.org>
68419
68420         * modules/sprintf-posix-tests: New file.
68421         * tests/test-sprintf-posix.c: New file.
68422
68423         * modules/sprintf-posix: New file.
68424         * lib/sprintf.c: New file.
68425         * m4/sprintf-posix.m4: New file.
68426         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
68427         REPLACE_SPRINTF.
68428         * lib/stdio_.h (sprintf): New declaration.
68429         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
68430         REPLACE_SPRINTF.
68431
68432 2007-03-06  Bruno Haible  <bruno@clisp.org>
68433
68434         * modules/vsprintf-posix-tests: New file.
68435         * tests/test-vsprintf-posix.c: New file.
68436         * tests/test-sprintf-posix.h: New file.
68437
68438         * modules/vsprintf-posix: New file.
68439         * lib/vsprintf.c: New file.
68440         * m4/vsprintf-posix.m4: New file.
68441         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
68442         REPLACE_VSPRINTF.
68443         * lib/stdio_.h (vsprintf): New declaration.
68444         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
68445         REPLACE_VSPRINTF.
68446
68447 2007-03-06  Bruno Haible  <bruno@clisp.org>
68448
68449         * modules/vsnprintf (Depend-on): Remove minmax.
68450
68451 2007-03-06  Bruno Haible  <bruno@clisp.org>
68452
68453         * modules/snprintf-posix-tests: New file.
68454         * tests/test-snprintf-posix.c: New file.
68455
68456         * modules/snprintf-posix: New file.
68457         * m4/snprintf-posix.m4: New file.
68458         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
68459         gl_FUNC_SNPRINTF.
68460         (gl_FUNC_SNPRINTF): Invoke it.
68461         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
68462         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
68463         is set.
68464         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
68465
68466 2007-03-06  Bruno Haible  <bruno@clisp.org>
68467
68468         * modules/vsnprintf-posix-tests: New file.
68469         * tests/test-vsnprintf-posix.c: New file.
68470         * tests/test-snprintf-posix.h: New file.
68471
68472         * modules/vsnprintf-posix: New file.
68473         * m4/vsnprintf-posix.m4: New file.
68474         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
68475         gl_FUNC_VSNPRINTF.
68476         (gl_FUNC_VSNPRINTF): Invoke it.
68477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
68478         * lib/stdio_.h (vsnprintf): Define as a replacement if
68479         REPLACE_VSNPRINTF is set.
68480         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
68481
68482 2007-03-06  Bruno Haible  <bruno@clisp.org>
68483
68484         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
68485         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
68486
68487 2007-03-06  Bruno Haible  <bruno@clisp.org>
68488
68489         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
68490         (asinl): Declare also if HAVE_DECL_ASINL is set.
68491         (atanl): Declare also if HAVE_DECL_ATANL is set.
68492         (ceill): Declare also if HAVE_DECL_CEILL is set.
68493         (cosl): Declare also if HAVE_DECL_COSL is set.
68494         (expl): Declare also if HAVE_DECL_EXPL is set.
68495         (floorl): Declare also if HAVE_DECL_FLOORL is set.
68496         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
68497         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
68498         (logl): Declare also if HAVE_DECL_LOGL is set.
68499         (sinl): Declare also if HAVE_DECL_SINL is set.
68500         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
68501         (tanl): Declare also if HAVE_DECL_TANL is set.
68502         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
68503         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
68504         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
68505         declaration of frexpl, ldexpl.
68506         * modules/printf-frexpl (Depends-on): Add math.
68507         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
68508
68509 2007-03-05  Bruno Haible  <bruno@clisp.org>
68510
68511         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
68512         frexpl and ldexpl are declared.
68513         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
68514
68515 2007-03-05  Bruno Haible  <bruno@clisp.org>
68516
68517         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
68518         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
68519
68520 2007-03-05  Bruno Haible  <bruno@clisp.org>
68521
68522         * lib/stdio_.h: Include <stddef.h>.
68523
68524 2007-03-05  Bruno Haible  <bruno@clisp.org>
68525
68526         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
68527
68528 2007-03-05  Bruno Haible  <bruno@clisp.org>
68529
68530         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
68531         NetBSD 4, from Ralf Wildenhues.
68532
68533 2007-03-04  Bruno Haible  <bruno@clisp.org>
68534
68535         * lib/vasprintf.h: Update #if logic for the case when the functions
68536         exist but are overridden.
68537
68538 2007-03-04  Bruno Haible  <bruno@clisp.org>
68539
68540         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
68541         implementations: glibc-2.4 and MacOS X 10.3.
68542         * tests/test-vasnprintf-posix.c (test_function): Test also the case
68543         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
68544         * tests/test-vasprintf-posix.c (test_function): Likewise.
68545
68546 2007-03-04  Bruno Haible  <bruno@clisp.org>
68547
68548         * modules/vasprintf-posix-tests: New file.
68549         * tests/test-vasprintf-posix.c: New file.
68550
68551         * modules/vasprintf-posix: New file.
68552         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
68553         defined.
68554         * m4/vasprintf-posix.m4: New file.
68555         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
68556         gl_FUNC_VASPRINTF.
68557         (gl_FUNC_VASPRINTF): Invoke it.
68558         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68559         here.
68560         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68561
68562 2007-03-04  Bruno Haible  <bruno@clisp.org>
68563
68564         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68565         REPLACE_GETTIMEOFDAY.
68566         * modules/sys_time (Makefile.am): Likewise.
68567         * m4/sys_time_h.m4: Likewise.
68568         * m4/gettimeofday.m4: Likewise.
68569
68570 2007-03-04  Bruno Haible  <bruno@clisp.org>
68571
68572         * modules/vasnprintf-posix-tests: New file.
68573         * tests/test-vasnprintf-posix.c: New file.
68574
68575         * modules/vasnprintf-posix: New file.
68576         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68577         printf-frexpl.h.
68578         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68579         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68580         REPLACE_VASNPRINTF is defined.
68581         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68582         gl_FUNC_VASNPRINTF.
68583         (gl_FUNC_VASNPRINTF): Invoke it.
68584         * m4/vasnprintf-posix.m4: New file.
68585         * m4/printf.m4: New file.
68586
68587 2007-03-04  Bruno Haible  <bruno@clisp.org>
68588
68589         Compile progreloc.c only if --enable-relocatable is specified.
68590         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68591         if --enable-relocatable was specified.
68592         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68593         lib_SOURCES.
68594
68595 2007-03-04  Jim Meyering  <jim@meyering.net>
68596
68597         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68598         Use it consistently, rather than enumerating errno constants.
68599
68600 2007-03-04  Bruno Haible  <bruno@clisp.org>
68601
68602         * modules/xvasprintf-tests: New file.
68603         * tests/test-xvasprintf.c: New file.
68604
68605         * modules/vasprintf-tests: New file.
68606         * tests/test-vasprintf.c: New file.
68607
68608         * modules/vasnprintf-tests: New file.
68609         * tests/test-vasnprintf.c: New file.
68610
68611         * modules/vsnprintf-tests: New file.
68612         * tests/test-vsnprintf.c: New file.
68613
68614         * modules/snprintf-tests: New file.
68615         * tests/test-snprintf.c: New file.
68616
68617 2007-03-04  Bruno Haible  <bruno@clisp.org>
68618
68619         Compile relocatable.c only if --enable-relocatable is specified.
68620         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68621         gl_RELOCATABLE_LIBRARY.
68622         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68623         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68624         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68625         gl_RELOCATABLE_LIBRARY.
68626         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68627         (Makefile.am): Remove lib_SOURCES.
68628         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68629         gl_RELOCATABLE_LIBRARY.
68630         (Makefile.am): Remove lib_SOURCES.
68631         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68632         always.
68633         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68634         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68635
68636 2007-03-04  Bruno Haible  <bruno@clisp.org>
68637
68638         * modules/argmatch-tests: New file.
68639         * tests/test-argmatch.c: New file.
68640
68641         * tests/test-allocsa.c (main): Halve the number of loop runs.
68642
68643         * modules/alloca-opt-tests: New file.
68644         * tests/test-alloca-opt.c: New file.
68645
68646 2007-03-04  Jim Meyering  <jim@meyering.net>
68647
68648         Work around difference between Linux ACLs and Solaris 10 ZFS.
68649         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68650         for EINVAL.
68651
68652 2007-03-03  Bruno Haible  <bruno@clisp.org>
68653
68654         * modules/relocatable-prog (Depends-on): Add back progreloc's
68655         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68656
68657 2007-03-03  Bruno Haible  <bruno@clisp.org>
68658
68659         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68660         * modules/relocatable-lib: New file.
68661
68662 2007-03-03  Bruno Haible  <bruno@clisp.org>
68663
68664         * modules/relocatable-prog: Renamed from modules/relocatable.
68665         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68666
68667 2007-03-03  Bruno Haible  <bruno@clisp.org>
68668
68669         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68670         m4/relocatable-lib.m4.
68671         (Depends-on): Remove 'relocatable'.
68672         (configure.ac): Add gl_RELOCATABLE_NOP.
68673
68674 2007-03-03  Bruno Haible  <bruno@clisp.org>
68675
68676         * modules/relocatable-prog-wrapper: New file.
68677         * modules/relocatable (Depends-on): Add it. Remove all other
68678         dependencies except progname.
68679         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68680
68681         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68682         (gl_FUNC_STRERROR): Nop.
68683         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68684
68685         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68686         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68687
68688         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68689         (gl_FUNC_READLINK): Update.
68690
68691         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68692
68693 2007-03-03  Bruno Haible  <bruno@clisp.org>
68694
68695         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68696         * modules/xreadlink (Depends-on): Add unistd.
68697         * modules/xreadlink-with-size (Depends-on): Likewise.
68698
68699 2007-03-03  Bruno Haible  <bruno@clisp.org>
68700
68701         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68702         extracted from gt_FUNC_SETENV.
68703         (gt_FUNC_SETENV): Remove macro.
68704         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68705         remove gt_FUNC_SETENV.
68706
68707 2007-03-03  Bruno Haible  <bruno@clisp.org>
68708
68709         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68710         ENABLE_RELOCATABLE here.
68711         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68712
68713 2007-03-03  Bruno Haible  <bruno@clisp.org>
68714
68715         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68716         * tests/test-rbtreehash_list.c: Include progname.h.
68717         (main): Call set_program_name.
68718
68719         * modules/rbtree-oset-tests (Depends-on): Add progname.
68720         * tests/test-rbtree_oset.c: Include progname.h.
68721         (main): Call set_program_name.
68722
68723         * modules/rbtree-list-tests (Depends-on): Add progname.
68724         * tests/test-rbtree_list.c: Include progname.h.
68725         (main): Call set_program_name.
68726
68727         * modules/linked-list-tests (Depends-on): Add progname.
68728         * tests/test-linked_list.c: Include progname.h.
68729         (main): Call set_program_name.
68730
68731 2007-03-03  Bruno Haible  <bruno@clisp.org>
68732
68733         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68734         All uses of __restrict changed to _Restrict_.
68735         * lib/glob_.h (__restrict): Remove macro.
68736
68737 2007-03-02  Bruno Haible  <bruno@clisp.org>
68738
68739         * modules/gettext (configure.ac): Require gettext infrastructure
68740         from version 0.16.1.
68741
68742 2007-03-02  Bruno Haible  <bruno@clisp.org>
68743
68744         * modules/linkedhash-list-tests (Depends-on): Add progname.
68745         * tests/test-linkedhash_list.c: Include progname.h.
68746         (main): Call set_program_name.
68747
68748         * modules/carray-list-tests (Depends-on): Add progname.
68749         * tests/test-carray_list.c: Include progname.h.
68750         (main): Call set_program_name.
68751
68752         * modules/avltreehash-list-tests (Depends-on): Add progname.
68753         * tests/test-avltreehash_list.c: Include progname.h.
68754         (main): Call set_program_name.
68755
68756         * modules/avltree-oset-tests (Depends-on): Add progname.
68757         * tests/test-avltree_oset.c: Include progname.h.
68758         (main): Call set_program_name.
68759
68760         * modules/avltree-list-tests (Depends-on): Add progname.
68761         * tests/test-avltree_list.c: Include progname.h.
68762         (main): Call set_program_name.
68763
68764         * modules/array-oset-tests (Depends-on): Add progname.
68765         * tests/test-array_oset.c: Include progname.h.
68766         (main): Call set_program_name.
68767
68768         * modules/array-list-tests (Depends-on): Add progname.
68769         * tests/test-array_list.c: Include progname.h.
68770         (main): Call set_program_name.
68771
68772         * modules/argp-tests (Depends-on): Add progname.
68773         * tests/test-argp.c: Include argp.h first. Include progname.h.
68774         (main): Call set_program_name.
68775
68776 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68777
68778         * doc/gnulib-tool.texi (Initial import): Reword description of
68779         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68780         limited effect even if defined after the first system include.
68781
68782 2007-03-01  Bruno Haible  <bruno@clisp.org>
68783
68784         * build-aux/config.libpath: Update to libtool-1.5.22.
68785         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68786
68787 2007-03-01  Bruno Haible  <bruno@clisp.org>
68788
68789         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68790         foo_CFLAGS.
68791         Reported by Ralf Wildenhues.
68792
68793 2007-03-01  Bruno Haible  <bruno@clisp.org>
68794
68795         * build-aux/install-reloc: Remove object files left over by some
68796         compilers.
68797         Reported by Ralf Wildenhues.
68798
68799 2007-03-01  Bruno Haible  <bruno@clisp.org>
68800
68801         * build-aux/install-reloc: Break long lines.
68802
68803 2007-03-01  Bruno Haible  <bruno@clisp.org>
68804
68805         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68806         Reported by Ralf Wildenhues.
68807
68808 2007-03-01  Bruno Haible  <bruno@clisp.org>
68809
68810         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68811         include ordering constraints.
68812
68813 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68814
68815         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68816         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68817         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68818         as another example.
68819         * lib/time_.h: Fix misspelling.
68820         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68821         Require gl_HEADER_TIME_H_DEFAULTS.
68822         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68823         * m4/time_r.m4 (gl_TIME_R): Likewise.
68824         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68825
68826 2007-03-01  Bruno Haible  <bruno@clisp.org>
68827
68828         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68829         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68830
68831 2007-03-01  Jim Meyering  <jim@meyering.net>
68832
68833         * modules/xreadlink (Maintainer): Add my name.
68834         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68835
68836 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68837             Bruno Haible  <bruno@clisp.org>
68838
68839         * build-aux/install-reloc: Compile also c-ctype.c.
68840         * build-aux/relocatable.sh.in: New file.
68841         * doc/relocatable.texi: New file.
68842         * doc/relocatable-maint.texi: New file.
68843         * doc/gnulib.texi: Include relocatable-maint.texi.
68844         * lib/progreloc.c: Include unistd.h unconditionally.
68845         * lib/relocwrapper.c: Include unistd.h unconditionally.
68846         Include c-ctype.h.
68847         (add_dotbin): Use c_tolower.
68848         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68849         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68850         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68851         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68852         to m4/relocatable-lib.m4.
68853         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68854         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68855         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68856         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68857         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68858         * modules/relocatable: New file.
68859         * modules/relocatable-lib: New file.
68860         * modules/relocatable-script: New file.
68861
68862 2007-02-28  Bruno Haible  <bruno@clisp.org>
68863
68864         Import --enable-relocatable infrastructure.
68865         * build-aux/config.libpath: New file, from GNU gettext.
68866         * build-aux/install-reloc: New file, from GNU gettext.
68867         * build-aux/reloc-ldflags: New file, from GNU gettext.
68868         * lib/relocatable.h: New file, from GNU gettext.
68869         * lib/relocatable.c: New file, from GNU gettext.
68870         * lib/relocwrapper.c: New file, from GNU gettext.
68871         * m4/relocatable.m4: New file, from GNU gettext.
68872
68873 2007-02-28  Bruno Haible  <bruno@clisp.org>
68874
68875         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68876
68877         * modules/xreadlink: New file, from GNU gettext with modifications.
68878         * lib/xreadlink.c: New file, from GNU gettext.
68879         * lib/xreadlink.h: Add comments.
68880         (xreadlink): New declaration.
68881
68882         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68883         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68884         lib/xreadlink-with-size.c.
68885         (configure.ac): Remove gl_XREADLINK invocation.
68886         (Makefile.am): Augment lib_SOURCES.
68887         * m4/xreadlink.m4: Remove file.
68888         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68889         (xreadlink_with_size): Renamed from xreadink.
68890         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68891         * modules/canonicalize (Depends-on): Replace xreadlink with
68892         xreadlink-with-size.
68893         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68894
68895 2007-02-25  Jim Meyering  <jim@meyering.net>
68896
68897         * build-aux/announce-gen: When complaining about excess arguments,
68898         list them.
68899
68900 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68901
68902         * README: Document signed integer overflow situation more
68903         accurately.
68904
68905 2007-02-25  Bruno Haible  <bruno@clisp.org>
68906
68907         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68908         'a' or 'A' conversion.
68909
68910 2007-02-25  Bruno Haible  <bruno@clisp.org>
68911
68912         * modules/filename: Renamed from modules/pathname.
68913         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68914         lib/concatpath.c with lib/concat-filename.c.
68915         (Makefile.am): Update.
68916         (Include): Replace pathname.h with filename.h.
68917         * lib/filename.h: Renamed from lib/pathname.h.
68918         (concatenated_filename): Renamed from concatenated_pathname.
68919         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68920         (concatenated_filename): Renamed from concatenated_pathname.
68921         * lib/findprog.c: Include filename.h instead of pathname.h.
68922         (find_in_path): Update.
68923         * lib/javacomp.c: Include filename.h instead of pathname.h.
68924         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68925         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68926         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68927         is_oldgcj_14_13_usable, is_javac_usable): Update.
68928         * lib/javaexec.c: Include filename.h instead of pathname.h.
68929         (execute_java_class): Update.
68930         * modules/findprog: Update.
68931         * modules/javacomp: Update.
68932         * modules/javaexec: Update.
68933         * MODULES.html.sh (File system functions): Add 'filename', remove
68934         'pathname'.
68935
68936 2007-02-25  Bruno Haible  <bruno@clisp.org>
68937
68938         * modules/printf-frexpl-tests: New file.
68939         * tests/test-printf-frexpl.c: New file.
68940
68941         * modules/printf-frexpl: New file.
68942         * lib/printf-frexpl.h: New file.
68943         * lib/printf-frexpl.c: New file.
68944         * m4/printf-frexpl.m4: New file.
68945
68946 2007-02-25  Bruno Haible  <bruno@clisp.org>
68947
68948         * modules/printf-frexp-tests: New file.
68949         * tests/test-printf-frexp.c: New file.
68950
68951         * modules/printf-frexp: New file.
68952         * lib/printf-frexp.h: New file.
68953         * lib/printf-frexp.c: New file.
68954         * m4/printf-frexp.m4: New file.
68955
68956 2007-02-25  Bruno Haible  <bruno@clisp.org>
68957
68958         Assume automake >= 1.10 for the tests.
68959         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68960         * modules/arctwo-tests: Likewise.
68961         * modules/argp-tests: Likewise.
68962         * modules/avltree-list-tests: Likewise.
68963         * modules/avltree-oset-tests: Likewise.
68964         * modules/avltreehash-list-tests: Likewise.
68965         * modules/carray-list-tests: Likewise.
68966         * modules/crc-tests: Likewise.
68967         * modules/des-tests: Likewise.
68968         * modules/gc-arcfour-tests: Likewise.
68969         * modules/gc-arctwo-tests: Likewise.
68970         * modules/gc-des-tests: Likewise.
68971         * modules/gc-hmac-md5-tests: Likewise.
68972         * modules/gc-hmac-sha1-tests: Likewise.
68973         * modules/gc-md2-tests: Likewise.
68974         * modules/gc-md4-tests: Likewise.
68975         * modules/gc-md5-tests: Likewise.
68976         * modules/gc-pbkdf2-sha1-tests: Likewise.
68977         * modules/gc-rijndael-tests: Likewise.
68978         * modules/gc-sha1-tests: Likewise.
68979         * modules/gc-tests: Likewise.
68980         * modules/getaddrinfo-tests: Likewise.
68981         * modules/hmac-md5-tests: Likewise.
68982         * modules/hmac-sha1-tests: Likewise.
68983         * modules/linked-list-tests: Likewise.
68984         * modules/linkedhash-list-tests: Likewise.
68985         * modules/lock-tests: Likewise.
68986         * modules/md2-tests: Likewise.
68987         * modules/md4-tests: Likewise.
68988         * modules/md5-tests: Likewise.
68989         * modules/rbtree-list-tests: Likewise.
68990         * modules/rbtree-oset-tests: Likewise.
68991         * modules/rbtreehash-list-tests: Likewise.
68992         * modules/read-file-tests: Likewise.
68993         * modules/rijndael-tests: Likewise.
68994         * modules/stdint-tests: Likewise.
68995         * modules/tls-tests: Likewise.
68996
68997 2007-02-24  Bruno Haible  <bruno@clisp.org>
68998
68999         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
69000         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
69001         function; instead check whether isnan with a double argument links.
69002         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
69003         function; instead check whether isnan with a 'long double' argument
69004         links.
69005         Reported by Eric Blake <ebb9@byu.net>.
69006
69007 2007-02-24  Bruno Haible  <bruno@clisp.org>
69008
69009         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
69010         defined.
69011         * lib/isnanl.c: Remove all code. Just include isnan.c.
69012         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
69013
69014 2007-02-25  Jim Meyering  <jim@meyering.net>
69015
69016         Avoid conflicting types for 'unsetenv' on FreeBSD.
69017         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
69018         conflicting with FreeBSD's (5.0 and 6.1) function declaration
69019         in stdlib.h.
69020
69021 2007-02-24  Bruno Haible  <bruno@clisp.org>
69022
69023         * modules/isnanl-nolibm-tests: New file.
69024         * tests/test-isnanl.c: New file.
69025
69026         * modules/isnanl-nolibm: New file.
69027         * lib/isnanl.h: New file.
69028         * lib/isnanl.c: New file.
69029         * m4/isnanl.m4: New file.
69030
69031 2007-02-24  Bruno Haible  <bruno@clisp.org>
69032
69033         * modules/isnan-nolibm-tests: New file.
69034         * tests/test-isnan.c: New file.
69035
69036         * modules/isnan-nolibm: New file.
69037         * lib/isnan.h: New file.
69038         * lib/isnan.c: New file.
69039         * m4/isnan.m4: New file.
69040
69041 2007-02-24  Bruno Haible  <bruno@clisp.org>
69042
69043         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
69044         assume that an exponent fits in 20 bits.
69045
69046 2007-02-24  Jim Meyering  <jim@meyering.net>
69047
69048         * m4/regex.m4: Update the description of the configure-time option,
69049         --without-included-regex, to state accurately what the defaults are,
69050         and perhaps to give people an idea why using this option is risky.
69051
69052 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69053
69054         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
69055         loops on small arguments.  This attempts to avoid the problem
69056         Bruno Haible reported for AIX 4.3.2 in
69057         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
69058
69059 2007-02-23  Bruno Haible  <bruno@clisp.org>
69060
69061         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
69062         Needed for help2man.
69063
69064 2007-02-23  Karl Berry  <karl@gnu.org>
69065
69066         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
69067         exists, foo.h should be cvs-ignored, not committed.
69068
69069 2007-02-23  Eric Blake  <ebb9@byu.net>
69070
69071         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
69072         * lib/stat-time.h (includes): Likewise.
69073         * lib/utimecmp.c (includes): Likewise.
69074         * lib/utimens.h (includes): Likewise.
69075         * lib/getdate.y (includes): Also include "timespec.h" for use
69076         internal to the module.
69077         * modules/utimens (Depends-on): Revert yesterday's patch.
69078         * modules/nanosleep (Depends-on): Add missing dependency.
69079
69080 2007-02-22  Bruno Haible  <bruno@clisp.org>
69081
69082         * lib/glob.c: Don't include getlogin_r.h.
69083
69084 2007-02-22  Jim Meyering  <jim@meyering.net>
69085
69086         * modules/utimens (Depends-on): Add timespec, required for
69087         utimens.h's inclusion of timespec.h.
69088
69089 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
69090
69091         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
69092         long unreadable paths in GNU/Linux.  Problem reported by Andreas
69093         Schwab in
69094         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
69095         I'll try to think of a better way to fix the Solaris problem.
69096
69097         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
69098         like glibc; on Solaris 10, it fails with errno == EINVAL.
69099         POSIX says the behavior is unspecified if the first argument is NULL,
69100         so play it safe and never pass NULL to the system getcwd.
69101
69102 2007-02-21  Jim Meyering  <jim@meyering.net>
69103
69104         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
69105         of gettimeofday.  It would conflict with the one now always
69106         provided via sys_time_.h.  Reported by Matthew Woehlke, as
69107         an IRIX 6.5 build failure.
69108
69109 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69110
69111         Minor fixups to port to Solaris 10 with Sun C 5.8.
69112         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
69113         * modules/getcwd (Depends-on): Add dirfd.
69114         * lib/putenv.c (putenv): #undef it.
69115         (rpl_putenv): New decl.
69116         (malloc, free): Include <stdlib.h> rather than prototyping separately.
69117
69118 2007-02-20  Bruno Haible  <bruno@clisp.org>
69119
69120         * modules/stdio-tests: New file.
69121         * tests/test-stdio.c: New file.
69122
69123         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
69124         (Depends-on): Add stdio.
69125         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69126         (Include): Use <stdio.h> instead of vsnprintf.h.
69127         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69128         HAVE_DECL_VSNPRINTF.
69129         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
69130
69131         * modules/snprintf (Files): Remove lib/snprintf.h.
69132         (Depends-on): Add stdio.
69133         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69134         (Include): Use <stdio.h> instead of snprintf.h.
69135         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69136         HAVE_DECL_SNPRINTF.
69137         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
69138         * lib/getaddrinfo.c: Likewise.
69139
69140         * modules/stdio: New file.
69141         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
69142         * lib/snprintf.h: Remove file.
69143         * lib/vsnprintf.h: Remove file.
69144         * lib/.cppi-disable: Remove snprintf.h.
69145         * m4/stdio_h.m4: New file.
69146         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
69147
69148 2007-02-20  Jim Meyering  <jim@meyering.net>
69149
69150         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
69151         used by e.g., mingw.  From Bruno Haible.
69152
69153 2007-02-19  Bruno Haible  <bruno@clisp.org>
69154
69155         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
69156         warnings.
69157         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69158
69159 2007-02-19  Bruno Haible  <bruno@clisp.org>
69160
69161         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
69162         from mingw users.
69163
69164 2007-02-19  Bruno Haible  <bruno@clisp.org>
69165
69166         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
69167         warnings.
69168         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
69169
69170 2007-02-19  Jim Meyering  <jim@meyering.net>
69171
69172         Don't use FD after a successful "fdopendir (fd)".
69173         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
69174         Reset it by calling dirfd on the just-obtained DIR*.
69175
69176         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
69177         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
69178
69179 2007-02-18  Bruno Haible  <bruno@clisp.org>
69180
69181         * lib/readlink.c: Include <unistd.h>.
69182         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
69183         HAVE_READLINK.
69184         * modules/readlink (Depends-on): Add unistd.
69185         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69186         (Include): Add <unistd.h>.
69187
69188         * lib/getlogin_r.h: Remove file.
69189         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
69190         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
69191         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
69192         HAVE_DECL_GETLOGIN_R.
69193         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
69194         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69195         (Include): Use <unistd.h> instead of getlogin_r.h.
69196
69197         * lib/getcwd.h: Remove file.
69198         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
69199         * lib/xgetcwd.c: Likewise.
69200         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
69201         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
69202         * modules/getcwd (Files): Remove lib/getcwd.h.
69203         (Depends-on): Add unistd.
69204         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69205         (Include): Use <unistd.h> instad of getcwd.h.
69206
69207         * lib/ftruncate.c: Include <unistd.h> first.
69208         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
69209         Set HAVE_FTRUNCATE.
69210         * modules/ftruncate (Depends-on): Add unistd.
69211         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69212
69213         * lib/fchdir.c: Include <unistd.h> first.
69214         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
69215         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
69216         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
69217         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69218         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
69219
69220         * lib/dup2.c: Include <unistd.h> first.
69221         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
69222         HAVE_DUP2.
69223         * modules/dup2 (Depends-on): Add unistd.
69224         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69225
69226         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
69227         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
69228         REPLACE_CHOWN. Don't define chown as a macro here.
69229         * modules/chown (Depends-on): Add unistd.
69230         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69231
69232         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
69233         Add definition for GL_LINK_WARNING.
69234         (chown, dup2): New declarations.
69235         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
69236         link warning.
69237         (ftruncate): New declaration.
69238         (getcwd): New declaration, taken from old getcwd.h.
69239         (getlogin_r): New declaration, taken from old getlogin_r.h.
69240         (readlink): New declaration.
69241         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
69242         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
69243         (gl_PREREQ_UNISTD): Remove macro.
69244         (gl_UNISTD_MODULE_INDICATOR): New macro.
69245         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
69246         many new variables. Don't set UNISTD_H.
69247         * modules/unistd (Description): Change.
69248         (Depends-on): Add link-warning.
69249         (configure.ac): Update.
69250         (Makefile.am): Create unistd.h always. Substitute many new variables
69251         into it.
69252
69253 2007-02-18  Bruno Haible  <bruno@clisp.org>
69254
69255         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
69256         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
69257         HAVE_GETSUBOPT.
69258         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
69259         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
69260         * lib/getsubopt.h: Remove file.
69261         * modules/getsubopt (Files): Remove lib/getsubopt.h.
69262         (Depends-on): Add stdlib.
69263         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69264         (Includes): Use <stdlib.h> instead of getsubopt.h.
69265         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
69266         Set HAVE_GETSUBOPT.
69267         * lib/getsubopt.c: Don't include getsubopt.h.
69268
69269 2007-02-18  Bruno Haible  <bruno@clisp.org>
69270
69271         * modules/fchdir (Depends-on): Add dup2.
69272
69273 2007-02-18  Bruno Haible  <bruno@clisp.org>
69274
69275         * lib/stdlib_.h: Handle glibc's special invocation convention
69276         specially.
69277
69278 2007-02-18  Bruno Haible  <bruno@clisp.org>
69279
69280         * modules/stdlib-tests: New file.
69281         * tests/test-stdlib.c: New file.
69282
69283         * modules/mkstemp (Files): Remove lib/mkstemp.h.
69284         (Depends-on): Add stdlib.
69285         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69286         (Includes): Use <stdlib.h> instead of mkstemp.h.
69287         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69288         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
69289         * lib/mkstemp.c: Don't include mkstemp.h.
69290         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
69291         * lib/stdlib--.h: Don't include mkstemp.h.
69292
69293         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
69294         (Depends-on): Add stdlib.
69295         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69296         (Includes): Use <stdlib.h> instead of mkdtemp.h.
69297         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69298         HAVE_MKDTEMP.
69299         * lib/mkdtemp.c: Don't include mkdtemp.h.
69300         * lib/clean-temp.c: Don't include mkdtemp.h.
69301
69302         * modules/exit (Files): Remove lib/exit.h.
69303         (Depends-on): Add stdlib.
69304         (Makefile.am): Remove lib_SOURCES.
69305         (Include): Use <stdlib.h> instead of exit.h.
69306         * lib/argmatch.c: Don't include exit.h.
69307         * lib/execute.c: Likewise.
69308         * lib/pagealign_alloc.c: Likewise.
69309         * lib/pipe.c: Likewise.
69310         * lib/wait-process.c: Likewise.
69311         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
69312         * lib/exitfail.c: Likewise.
69313         * lib/savewd.c: Likewise.
69314         * lib/xsetenv.c: Likewise.
69315
69316         * modules/stdlib: New file.
69317         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
69318         and extra comments about mkstemp().
69319         * lib/exit.h: Remove file.
69320         * lib/mkdtemp.h: Remove file.
69321         * lib/mkstemp.h: Remove file.
69322         * m4/stdlib_h.m4: New file.
69323         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
69324
69325 2007-02-18  Bruno Haible  <bruno@clisp.org>
69326
69327         * modules/math-tests: New file.
69328         * tests/test-math.c: New file.
69329
69330         * modules/math: New file.
69331         * modules/mathl (Files): Remove lib/mathl.h.
69332         (Depends-on): Add math.
69333         (Makefile.am): Don't mention mathl.h.
69334         (Include): Use <math.h> instead of mathl.h.
69335         * lib/math_.h: New file.
69336         * lib/mathl.h: Remove file.
69337         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
69338         mathl.h.
69339         * lib/asinl.c: Likewise.
69340         * lib/atanl.c: Likewise.
69341         * lib/ceill.c: Likewise.
69342         * lib/cosl.c: Likewise.
69343         * lib/expl.c: Likewise.
69344         * lib/floorl.c: Likewise.
69345         * lib/frexpl.c: Likewise.
69346         * lib/ldexpl.c: Likewise.
69347         * lib/logl.c: Likewise.
69348         * lib/sincosl.c: Likewise.
69349         * lib/sinl.c: Likewise.
69350         * lib/sqrtl.c: Likewise.
69351         * lib/tanl.c: Likewise.
69352         * lib/trigl.c: Likewise.
69353         * m4/math_h.m4: New file.
69354         * MODULES.html.sh (Mathematics): Add math.
69355
69356 2007-02-17  Bruno Haible  <bruno@clisp.org>
69357
69358         * modules/wctype-tests: New file.
69359         * tests/test-wctype.c: New file.
69360
69361         * modules/wchar-tests: New file.
69362         * tests/test-wchar.c: New file.
69363
69364         * modules/unistd-tests: New file.
69365         * tests/test-unistd.c: New file.
69366
69367         * modules/time-tests: New file.
69368         * tests/test-time.c: New file.
69369
69370         * modules/sysexits-tests: New file.
69371         * tests/test-sysexits.c: New file.
69372
69373         * modules/sys_time-tests: New file.
69374         * tests/test-sys_time.c: New file.
69375
69376         * modules/sys_stat-tests: New file.
69377         * tests/test-sys_stat.c: New file.
69378
69379         * modules/sys_socket-tests: New file.
69380         * tests/test-sys_socket.c: New file.
69381
69382         * modules/sys_select-tests: New file.
69383         * tests/test-sys_select.c: New file.
69384
69385         * modules/string-tests: New file.
69386         * tests/test-string.c: New file.
69387
69388         * modules/stdbool-tests: New file.
69389         * tests/test-stdbool.c: New file.
69390
69391         * modules/netinet_in-tests: New file.
69392         * tests/test-netinet_in.c: New file.
69393
69394         * modules/inttypes-tests: New file.
69395         * tests/test-inttypes.c: New file.
69396
69397         * modules/fcntl-tests: New file.
69398         * tests/test-fcntl.c: New file.
69399
69400         * modules/byteswap-tests: New file.
69401         * tests/test-byteswap.c: New file.
69402
69403         * modules/arpa_inet-tests: New file.
69404         * tests/test-arpa_inet.c: New file.
69405
69406 2007-02-17  Bruno Haible  <bruno@clisp.org>
69407
69408         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
69409         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
69410         if the corresponding module is not enabled. Emit link warnings if
69411         the function is used nevertheless.
69412         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
69413         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
69414         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
69415         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
69416         * modules/inttypes (Depends-on): Add link-warning.
69417         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69418         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
69419         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
69420         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
69421         * modules/imaxdiv (configure.ac): Likewise.
69422         * modules/strtoimax (configure.ac): Likewise.
69423         * modules/strtoumax (configure.ac): Likewise.
69424
69425 2007-02-17  Bruno Haible  <bruno@clisp.org>
69426
69427         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
69428         gl_STRING_MODULE_INDICATOR_DEFAULTS.
69429         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
69430         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
69431
69432 2007-02-17  Bruno Haible  <bruno@clisp.org>
69433
69434         * modules/link-warning: New file.
69435         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
69436         * lib/string_.h (GL_LINK_WARNING): Remove definition.
69437         * modules/string (Depends-on): Add link-warning.
69438         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69439         string.h.
69440         * MODULES.html.sh (Support for building libraries and executables): Add
69441         link-warning.
69442
69443 2007-02-17  Bruno Haible  <bruno@clisp.org>
69444
69445         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
69446         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
69447         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
69448         long lines.
69449
69450 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
69451             Bruno Haible  <bruno@clisp.org>
69452
69453         * modules/tmpfile: New file.
69454         * lib/tmpfile.c: New file.
69455         * m4/tmpfile.m4: New file.
69456         * MODULES.html.sh (func_all_modules): New section "Input/output".
69457
69458 2007-02-15  Bruno Haible  <bruno@clisp.org>
69459
69460         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
69461         (supports_delete_on_close): New function.
69462         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
69463
69464 2007-02-14  Bruno Haible  <bruno@clisp.org>
69465
69466         * modules/mbspcasecmp-tests: New file.
69467         * tests/test-mbspcasecmp.sh: New file.
69468         * tests/test-mbspcasecmp.c: New file.
69469
69470         New module mbspcasecmp.
69471         * modules/mbspcasecmp: New file.
69472         * lib/mbspcasecmp.c: New file.
69473         * lib/string_.h (strncasecmp): Change warning message.
69474         (mbspcasecmp): New declaration.
69475         * m4/mbspcasecmp.m4: New file.
69476         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69477         GNULIB_MBSPCASECMP.
69478         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
69479         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
69480
69481 2007-02-14  Bruno Haible  <bruno@clisp.org>
69482
69483         * modules/mbsncasecmp-tests: New file.
69484         * tests/test-mbsncasecmp.sh: New file.
69485         * tests/test-mbsncasecmp.c: New file.
69486
69487         New module mbsncasecmp.
69488         * modules/mbsncasecmp: New file.
69489         * lib/mbsncasecmp.c: New file.
69490         * lib/string_.h (mbsncasecmp): New declaration.
69491         * m4/mbsncasecmp.m4: New file.
69492         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69493         GNULIB_MBSNCASECMP.
69494         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
69495         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
69496
69497 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69498
69499         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
69500         Verify that it doesn't overlap with our flags.
69501         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
69502         do not have the desired effect in multibyte locales; instead, use
69503         mbscasecmp.
69504         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
69505         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
69506         we don't require GNU fnmatch ourselves (if our users require it, they
69507         should do so explicitly).
69508
69509         Fix regex code so it doesn't rely on strcasecmp.
69510         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
69511         Otherwise, include gnulib's langinfo.h.
69512         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
69513         undesirable behavior in non-C locales.  Instead, rely on localecharset.
69514         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
69515         * modules/regex (FILES): Remove m4/codeset.m4.
69516         (Depends-on): Add localcharset.  Remove strcase.
69517
69518 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69519
69520         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
69521         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
69522
69523 2007-02-13  Bruno Haible  <bruno@clisp.org>
69524
69525         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
69526         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69527
69528 2007-02-12  Bruno Haible  <bruno@clisp.org>
69529
69530         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69531         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
69532         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
69533         time warning rather than a link error.
69534
69535 2007-02-12  Bruno Haible  <bruno@clisp.org>
69536
69537         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
69538         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
69539         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69540
69541 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69542
69543         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
69544         args, not 2.
69545
69546 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69547
69548         New module 'time', so that apps can include <time.h> as per
69549         POSIX and GNU instead of separate include files like time_r.h
69550         and timegm.h.  This implementation tries out a simpler approach
69551         for replacing decls in standard include files (as compared to
69552         the string module), somewhat as an experiment.
69553
69554         * config/srclist.txt: Comment out mktime.c for now.
69555         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
69556         since it doesn't apply any more.  Use generic wording instead.
69557         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69558         'time'.
69559         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69560         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69561         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69562         Don't include <sys/types.h>; no longer needed since we assume C89.
69563         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69564         * lib/strftime.c: Likewise.
69565         * lib/time_r.c: Likewise.
69566         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69567         * lib/nanosleep.c: Include <time.h> first, to check interface.
69568         * lib/strptime.c: Likewise.
69569         * lib/time_r.c: Likewise.
69570         * lib/timegm.c: Likewise.
69571         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69572         needed.
69573         * lib/timegm.c: Don't include timegm.h; no longer needed.
69574         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69575         time.h now handles any problems in that area.
69576         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69577         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69578         that time.h defines struct timespec.
69579         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69580         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69581         handles that.
69582         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69583         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69584         needed.  Set REPLACE_LOCALTIME.
69585         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69586         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69587         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69588         nanosleep; time_h.m4 now does that.  Don't require
69589         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69590         module handles this now.
69591         * modules/getdate (Depends-on): Remove timespec.  Add time.
69592         * modules/nanosleep (Depends-on): Likewise.
69593         * modules/stat-time (Depends-on): Likewise.
69594         * modules/nanosleep (Include): Include time.h, not timespec.h.
69595         * modules/strptime (Files): Remove lib/strptime.h.
69596         (Depends-on): Add extensions, time.
69597         (Include): Include time.h, not strptime.h.
69598         * modules/time_r (Files): Remove lib/time_r.h.
69599         (Depends-on): Add time.
69600         (Include): Include time.h, not time_r.h.
69601         * modules/timegm: Likewise.
69602         * modules/timespec (Description): Now does timespec-related decls
69603         of our own, instead of struct timespec itself.
69604         (Depends-on): Add time; remove extensions.
69605         (Maintainer): Add self.
69606         * modules/utimecmp (Depends-on): Add time; remove timespec.
69607         * modules/utimens (Depends-on): Likewise.
69608         * modules/xnanosleep (Depends-on): Likewise.
69609
69610 2007-02-11  Bruno Haible  <bruno@clisp.org>
69611
69612         * lib/c-strstr.c: Include allocsa.h.
69613         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69614         * lib/c-strcasestr.c: Include allocsa.h.
69615         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69616         * lib/strcasestr.c: Include allocsa.h.
69617         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69618         * lib/mbsstr.c: Include allocsa.h.
69619         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69620         allocsa/freesa instead of malloc/free.
69621         * lib/mbscasestr.c: Include allocsa.h.
69622         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69623         allocsa/freesa instead of malloc/free.
69624         * modules/c-strstr (Depends-on): Add allocsa.
69625         * modules/c-strcasestr (Depends-on): Likewise.
69626         * modules/strcasestr (Depends-on): Likewise.
69627         * modules/mbsstr (Depends-on): Likewise.
69628         * modules/mbscasestr (Depends-on): Likewise.
69629
69630 2007-02-11  Bruno Haible  <bruno@clisp.org>
69631
69632         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69633
69634         * modules/mbsspn-tests: New file.
69635         * tests/test-mbsspn.sh: New file.
69636         * tests/test-mbsspn.c: New file.
69637
69638 2007-02-11  Bruno Haible  <bruno@clisp.org>
69639
69640         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69641
69642         * modules/mbspbrk-tests: New file.
69643         * tests/test-mbspbrk.sh: New file.
69644         * tests/test-mbspbrk.c: New file.
69645
69646 2007-02-11  Bruno Haible  <bruno@clisp.org>
69647
69648         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69649         unneeded cast.
69650
69651         * modules/mbscspn-tests: New file.
69652         * tests/test-mbscspn.sh: New file.
69653         * tests/test-mbscspn.c: New file.
69654
69655 2007-02-11  Bruno Haible  <bruno@clisp.org>
69656
69657         * modules/mbscasecmp-tests: New file.
69658         * tests/test-mbscasecmp.sh: New file.
69659         * tests/test-mbscasecmp.c: New file.
69660
69661 2007-02-11  Bruno Haible  <bruno@clisp.org>
69662
69663         Ensure O(n) worst-case complexity of mbscasestr.
69664         * lib/mbscasestr.c: Include stdbool.h.
69665         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69666         functions.
69667         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69668         the bookkeeping indicates that it's worth it.
69669         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69670
69671         * modules/mbscasestr-tests: New file.
69672         * tests/test-mbscasestr1.c: New file.
69673         * tests/test-mbscasestr2.sh: New file.
69674         * tests/test-mbscasestr2.c: New file.
69675         * tests/test-mbscasestr3.sh: New file.
69676         * tests/test-mbscasestr3.c: New file.
69677         * tests/test-mbscasestr4.sh: New file.
69678         * tests/test-mbscasestr4.c: New file.
69679         * m4/locale-tr.m4: New file.
69680
69681 2007-02-11  Bruno Haible  <bruno@clisp.org>
69682
69683         Ensure O(n) worst-case complexity of mbsstr.
69684         * lib/mbsstr.c: Include stdbool.h.
69685         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69686         functions.
69687         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69688         bookkeeping indicates that it's worth it.
69689         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69690
69691         * modules/mbsstr-tests: New file.
69692         * tests/test-mbsstr1.c: New file.
69693         * tests/test-mbsstr2.sh: New file.
69694         * tests/test-mbsstr2.c: New file.
69695         * tests/test-mbsstr3.sh: New file.
69696         * tests/test-mbsstr3.c: New file.
69697         * m4/locale-fr.m4: New file.
69698
69699 2007-02-11  Bruno Haible  <bruno@clisp.org>
69700
69701         * lib/mbsrchr.c (mbsrchr): Fix bug.
69702
69703         * modules/mbsrchr-tests: New file.
69704         * tests/test-mbsrchr.sh: New file.
69705         * tests/test-mbsrchr.c: New file.
69706
69707 2007-02-11  Bruno Haible  <bruno@clisp.org>
69708
69709         * lib/mbschr.c (mbschr): Fix bug.
69710
69711         * modules/mbschr-tests: New file.
69712         * tests/test-mbschr.sh: New file.
69713         * tests/test-mbschr.c: New file.
69714         * m4/locale-zh.m4: New file.
69715
69716 2007-02-11  Bruno Haible  <bruno@clisp.org>
69717
69718         Support for copying multibyte string iterators.
69719         * lib/mbiter.h: Include <string.h>.
69720         (mbiter_multi_copy): New function.
69721         (mbi_copy): New macro.
69722         * lib/mbuiter.h: Include <string.h>.
69723         (mbuiter_multi_copy): New function.
69724         (mbui_copy): New macro.
69725
69726 2007-02-11  Bruno Haible  <bruno@clisp.org>
69727
69728         New module mbslen.
69729         * modules/mbslen: New file.
69730         * lib/mbslen.c: New file.
69731         * lib/string_.h (mbslen): New declaration.
69732         * m4/mbslen.m4: New file.
69733         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69734         GNULIB_MBSLEN.
69735         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69736         * MODULES.html.sh (Internationalization functions): Add mbslen.
69737
69738 2007-02-11  Bruno Haible  <bruno@clisp.org>
69739
69740         Ensure O(n) worst-case complexity of strcasestr substitute.
69741         * lib/strcasestr.c: Include stdbool.h.
69742         (knuth_morris_pratt): New function.
69743         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69744         bookkeeping indicates that it's worth it.
69745         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69746
69747         * modules/strcasestr-tests: New file.
69748         * tests/test-strcasestr.c: New file.
69749
69750 2007-02-11  Bruno Haible  <bruno@clisp.org>
69751
69752         Ensure O(n) worst-case complexity of c_strcasestr.
69753         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69754         (knuth_morris_pratt): New function.
69755         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69756         the bookkeeping indicates that it's worth it.
69757         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69758
69759         * modules/c-strcasestr-tests: New file.
69760         * tests/test-c-strcasestr.c: New file.
69761
69762 2007-02-11  Bruno Haible  <bruno@clisp.org>
69763
69764         Ensure O(n) worst-case complexity of c_strstr.
69765         * lib/c-strstr.c: Include stdbool.h, string.h.
69766         (knuth_morris_pratt): New function.
69767         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69768         bookkeeping indicates that it's worth it.
69769         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69770
69771         * lib/c-strstr.c: Complete rewrite for maintainability.
69772
69773         * modules/c-strstr-tests: New file.
69774         * tests/test-c-strstr.c: New file.
69775
69776 2007-02-11  Bruno Haible  <bruno@clisp.org>
69777
69778         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69779         5.2.1 and earlier, whereby \055 was treated just like the range
69780         delimiter '-'.
69781         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69782
69783 2007-02-08  Bruno Haible  <bruno@clisp.org>
69784
69785         * modules/regex (Depends-on): Add stdbool.
69786         Reported by Dalibor Topic <robilad@kaffe.org>.
69787
69788 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69789
69790         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69791         Prefer returning from main to exiting from it.
69792         Remove unnecessary parens after sizeof.
69793
69794 2007-02-05  Bruno Haible  <bruno@clisp.org>
69795
69796         New module mbssep.
69797         * modules/mbssep: New file.
69798         * lib/mbssep.c: New file.
69799         * lib/string_.h (strsep): Add a conditional link warning.
69800         (mbssep): New declaration.
69801         * m4/mbssep.m4: New file.
69802         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69803         GNULIB_MBSSEP.
69804         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69805         * MODULES.html.sh (Internationalization functions): Add mbssep.
69806
69807 2007-02-05  Bruno Haible  <bruno@clisp.org>
69808
69809         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69810         Optimize search in case of 1 delimiter.
69811
69812 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69813
69814         * lib/acl.h: Include sys/types.h before sys/acl.h.
69815
69816 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69817
69818         Merge upstream fix for glibc bugzilla #3957:
69819
69820         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69821
69822         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69823         bit for RE_HAT_LISTS_NOT_NEWLINE.
69824         (build_charclass_op): Remove bogus comment.
69825
69826 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69827
69828         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69829
69830 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69831
69832         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69833         * lib/memmem.c [!defined _LIBC]: Include config.h.
69834
69835 2007-02-04  Bruno Haible  <bruno@clisp.org>
69836
69837         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69838         warning message.
69839
69840 2007-02-04  Bruno Haible  <bruno@clisp.org>
69841
69842         New module mbstok_r.
69843         * modules/mbstok_r: New file.
69844         * lib/mbstok_r.c: New file.
69845         * lib/string_.h (strtok_r): Change argument names to match the
69846         comments. Add a conditional link warning.
69847         (mbstok_r): New declaration.
69848         * m4/mbstok_r.m4: New file.
69849         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69850         GNULIB_MBSTOK_R.
69851         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69852         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69853
69854 2007-02-04  Bruno Haible  <bruno@clisp.org>
69855
69856         New module mbsspn.
69857         * modules/mbsspn: New file.
69858         * lib/mbsspn.c: New file.
69859         * lib/string_.h (strspn): Add a conditional link warning.
69860         (mbsspn): New declaration.
69861         * m4/mbsspn.m4: New file.
69862         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69863         GNULIB_MBSSPN.
69864         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69865         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69866
69867 2007-02-04  Bruno Haible  <bruno@clisp.org>
69868
69869         New module mbspbrk.
69870         * modules/mbspbrk: New file.
69871         * lib/mbspbrk.c: New file.
69872         * lib/string_.h (strpbrk): Add a conditional link warning.
69873         (mbspbrk): New declaration.
69874         * m4/mbspbrk.m4: New file.
69875         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69876         GNULIB_MBSPBRK.
69877         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69878         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69879
69880 2007-02-04  Bruno Haible  <bruno@clisp.org>
69881
69882         New module mbscspn.
69883         * modules/mbscspn: New file.
69884         * lib/mbscspn.c: New file.
69885         * lib/string_.h (strcspn): Add a conditional link warning.
69886         (mbscspn): New declaration.
69887         * m4/mbscspn.m4: New file.
69888         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69889         GNULIB_MBSCSPN.
69890         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69891         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69892
69893 2007-02-04  Bruno Haible  <bruno@clisp.org>
69894
69895         New module mbscasestr, reduced goal of strcasestr.
69896         * modules/mbscasestr: New file.
69897         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69898         (mbscasestr): Renamed from strcasestr.
69899         * lib/strcasestr.c: Don't include mbuiter.h.
69900         (strcasestr): Remove support for multibyte locales.
69901         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69902         Change the conditional link warning.
69903         (mbscasestr): New declaration.
69904         * m4/mbscasestr.m4: New file.
69905         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69906         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69907         REPLACE_STRCASESTR.
69908         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69910         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69911         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69912         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69913         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69914         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69915         (Depends-on): Remove mbuiter.
69916         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69917
69918 2007-02-04  Bruno Haible  <bruno@clisp.org>
69919
69920         Simplify handling of strncasecmp.
69921         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69922         the conditional link warning.
69923         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69924         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69925         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69926         * modules/strcase (configure.ac): Don't invoke
69927         gl_STRING_MODULE_INDICATOR.
69928         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69929
69930 2007-02-04  Bruno Haible  <bruno@clisp.org>
69931
69932         New module mbscasecmp, reduced goal of strcasecmp.
69933         * modules/mbscasecmp: New file.
69934         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69935         (mbscasecmp): Renamed from strcasecmp.
69936         * lib/strcasecmp.c: Don't include mbuiter.h.
69937         (strcasecmp): Remove support for multibyte locales.
69938         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69939         Change the conditional link warning.
69940         (mbscasecmp): New declaration.
69941         * m4/mbscasecmp.m4: New file.
69942         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69943         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69944         REPLACE_STRCASECMP.
69945         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69946         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69947         GNULIB_MBSCASECMP.
69948         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69949         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69950         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69951         (Depends-on): Remove mbuiter.
69952         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69953
69954 2007-02-04  Bruno Haible  <bruno@clisp.org>
69955
69956         New module mbsstr. Remove module strstr.
69957         * modules/mbsstr: New file.
69958         * modules/strstr: Remove file.
69959         * lib/mbsstr.c: Renamed from lib/strstr.c.
69960         (mbsstr): Renamed from strstr.
69961         * lib/string_.h (strstr): Remove declaration. Change the conditional
69962         link warning.
69963         (mbsstr): New declaration.
69964         * m4/mbsstr.m4: New file.
69965         * m4/strstr.m4: Remove file.
69966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69967         REPLACE_STRSTR.
69968         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69969         Don't initialize GNULIB_STRSTR.
69970         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69971         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69972         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69973         (Support for systems lacking ANSI C 89): Remove strstr.
69974
69975 2007-02-04  Bruno Haible  <bruno@clisp.org>
69976
69977         New module mbsrchr.
69978         * modules/mbsrchr: New file.
69979         * lib/mbsrchr.c: New file.
69980         * lib/string_.h (strrchr): Add a conditional link warning.
69981         (mbsrchr): New declaration.
69982         * m4/mbsrchr.m4: New file.
69983         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69984         GNULIB_MBSRCHR.
69985         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69986         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69987
69988 2007-02-04  Bruno Haible  <bruno@clisp.org>
69989
69990         New module mbschr.
69991         * modules/mbschr: New file.
69992         * lib/mbschr.c: New file.
69993         * lib/string_.h (strchr): Add a conditional link warning.
69994         (mbschr): New declaration.
69995         * m4/mbschr.m4: New file.
69996         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69997         GNULIB_MBSCHR.
69998         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69999         * MODULES.html.sh (Internationalization functions): Add mbschr.
70000
70001 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70002
70003         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
70004
70005         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
70006
70007 2007-02-04  Bruno Haible  <bruno@clisp.org>
70008
70009         New module description section 'configure.ac-early'.
70010         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
70011         (func_get_autoconf_early_snippet): New function.
70012         (func_import, func_create_testdir): Use it. Remove special cases for
70013         modules 'extensions' and 'lock'.
70014         * modules/extensions (configure.ac-early): Require
70015         gl_USE_SYSTEM_EXTENSIONS.
70016         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
70017
70018 2007-02-04  Bruno Haible  <bruno@clisp.org>
70019
70020         Make use of gcj-4.3's -fsource and -ftarget option.
70021         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
70022         and if so try the options -fsource and -ftarget.
70023         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
70024         source_version, ftarget_option, target_version arguments.
70025         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
70026         (is_envjavac_oldgcj_14_14_usable): Renamed from
70027         is_envjavac_gcj_14_14_usable.
70028         (is_envjavac_oldgcj_14_13_usable): Renamed from
70029         is_envjavac_gcj_14_13_usable.
70030         (is_gcj_present): Update.
70031         (is_gcj_43, is_gcj43_usable): New functions.
70032         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
70033         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
70034         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
70035         try the options -fsource and -ftarget.
70036
70037 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70038
70039         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
70040         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
70041         larger value.
70042
70043 2007-02-03  Jim Meyering  <jim@meyering.net>
70044
70045         Give tools a better chance to allocate space for very large buffers.
70046         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
70047
70048         Make pwd and readlink work also when run with an unreadable parent dir
70049         on systems with openat support.
70050         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
70051         provided getcwd function, even when we have openat support.
70052         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
70053
70054 2007-02-02  Bruno Haible  <bruno@clisp.org>
70055
70056         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70057         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
70058         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
70059         portability problems if one of these functions is only used on specific
70060         platforms.
70061         Reported by Paul Eggert.
70062
70063 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
70064
70065         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
70066         is causing more trouble than it's curing.
70067         * lib/regex_internal.h (__mempcpy): Remove.
70068         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
70069         (and make the code a tad smaller to boot).
70070         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
70071
70072 2007-02-02  Jim Meyering  <jim@meyering.net>
70073
70074         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
70075         section, not in the Makefile.am: one.
70076
70077 2007-02-02  Eric Blake  <ebb9@byu.net>
70078
70079         * lib/strchrnul.c: Always include config.h first.
70080
70081         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
70082         gnulib strstr is not necessary here.
70083
70084 2007-02-02  Simon Josefsson  <simon@josefsson.org>
70085
70086         * m4/socklen.m4: Fix typo.
70087
70088 2007-02-02  Eric Blake  <ebb9@byu.net>
70089
70090         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
70091         * modules/netinet_in (Makefile.am): Likewise.
70092
70093 2007-02-01  Bruno Haible  <bruno@clisp.org>
70094
70095         * lib/string_.h (GL_LINK_WARNING): New macro.
70096         (strcasecmp, strstr, strcasestr): If provided by the system,
70097         conditionally define as a macro that leads to a warning instead of to
70098         an error.
70099         (strncasecmp): Conditionally define as a macro that leads to a warning.
70100
70101 2007-02-01  Karl Berry  <karl@gnu.org>
70102
70103         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
70104
70105 2007-02-01  Bruno Haible  <bruno@clisp.org>
70106
70107         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
70108         renamings.
70109
70110 2007-02-01  Eric Blake  <ebb9@byu.net>
70111
70112         * modules/regex (Depends-on): Revert dependence on mempcpy.
70113         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
70114         module's definition of mempcpy.
70115         Reported by Paul Eggert.
70116
70117 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70118
70119         * lib/string_.h: If the gnulib module XYZ is not present, undefine
70120         the symbol XYZ before redefining it.  This fixes a problem with
70121         programs that don't use XYZ, when compiled on systems that define
70122         XYZ to something else.
70123
70124 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
70125
70126         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
70127         occurs when "mkdir -m foo" creates a setgid directory that is (1)
70128         writeable to group or other and (2) is intended to have a special
70129         mode bit that is set or cleared.  In such a case, the directory
70130         should be neither group- nor other-writeable until the special
70131         mode bits are right.
70132
70133 2007-01-31  Eric Blake  <ebb9@byu.net>
70134
70135         * modules/mountlist (Depends-on): Add strstr.
70136
70137         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
70138         bug.
70139         * modules/string (Makefile.am): Remove redundant replacement.
70140         * modules/regex (Depends-on): Add mempcpy.
70141
70142 2007-01-31  Bruno Haible  <bruno@clisp.org>
70143
70144         New module description field 'Link'.
70145         * gnulib-tool (func_usage): Document --extract-link-directive.
70146         (sed_extract_prog): Recognize 'Link' directive.
70147         (func_get_link_directive): New function.
70148         (func_import): Show summary of link directives.
70149         Handle --extract-link-directive option.
70150         * modules/acl (Link): New section.
70151         * modules/clock-time (Link): New section.
70152         * modules/euidaccess (Link): New section.
70153         * modules/gettext (Link): New section.
70154         * modules/iconv (Link): New section.
70155         * modules/lock (Link): New section.
70156         * modules/nanosleep (Link): New section.
70157         * modules/readline (Link): New section.
70158
70159 2007-01-27  Bruno Haible  <bruno@clisp.org>
70160
70161         Enforce the use of gnulib modules for unportable <string.h> functions.
70162         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
70163         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
70164         (gl_HEADER_STRING_H_BODY): Require it.
70165         * lib/string_.h: If the gnulib module XYZ is not present, redefine
70166         the symbol XYZ to one that gives a link error.
70167         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
70168         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
70169         * modules/mempcpy (configure.ac): Likewise.
70170         * modules/memrchr (configure.ac): Likewise.
70171         * modules/stpcpy (configure.ac): Likewise.
70172         * modules/stpncpy (configure.ac): Likewise.
70173         * modules/strcase (configure.ac): Likewise.
70174         * modules/strcasestr (configure.ac): Likewise.
70175         * modules/strchrnul (configure.ac): Likewise.
70176         * modules/strdup (configure.ac): Likewise.
70177         * modules/strndup (configure.ac): Likewise.
70178         * modules/strnlen (configure.ac): Likewise.
70179         * modules/strpbrk (configure.ac): Likewise.
70180         * modules/strsep (configure.ac): Likewise.
70181         * modules/strstr (configure.ac): Likewise.
70182         * modules/strtok_r (configure.ac): Likewise.
70183
70184 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
70185
70186         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
70187
70188 2007-01-30  Jim Meyering  <jim@meyering.net>
70189
70190         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
70191
70192 2007-01-29  Bruno Haible  <bruno@clisp.org>
70193
70194         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
70195         * lib/execute.c: Likewise.
70196         * lib/pipe.c: Likewise.
70197         * lib/printf-args.h: Likewise.
70198         * lib/printf-args.c: Likewise.
70199         * lib/printf-parse.c: Likewise.
70200         * lib/vasnprintf.c: Likewise.
70201
70202 2007-01-29  Eric Blake  <ebb9@byu.net>
70203
70204         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
70205         declaration.
70206
70207 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
70208
70209         * lib/strptime.h (strptime): Use 'restrict' for args where
70210         POSIX requires this.
70211         * lib/strptime.c (strptime): Likewise.
70212         Change license notice from LGPL to GPL, since gnulib-tool will
70213         change this as needed.
70214         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
70215         defined.
70216         Include "strptime.h" first, to check interface.
70217         Do not #undef _LIBC and _NL_CURRENT.
70218         Do not include <stdlib.h>; no longer needed.
70219         Include "time_r.h" and declare ptime_locale_status
70220         only if _LIBC is not defined.
70221         (__P): Remove unused macro.
70222         (match_string): Bring back glibc version, but use it only if _LIBC
70223         is defined.
70224         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
70225         Remove unnecessary assertion and abort() call.
70226         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
70227         * m4/strptime.m4: Fix serial number comment.
70228         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
70229         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
70230         (Depends-on): Add time_r.
70231
70232 2007-01-29  Bruno Haible  <bruno@clisp.org>
70233
70234         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70235         strptime.
70236         * modules/strptime (Depends-on): Add stdbool.
70237         * lib/strptime.h: Include <time.h> always. Add comments.
70238
70239 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70240
70241         * modules/strptime: New file.
70242         * lib/strptime.h: New file.
70243         * lib/strptime.c: New file.
70244         * m4/strptime.m4: New file.
70245
70246 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70247
70248         * MODULES.html.sh: New module mpsort.
70249         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
70250
70251         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
70252         a circularity problem with HP-UX ia64 reported by Bob Proulx in
70253         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
70254         All uses changed.
70255         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
70256         All uses changed.
70257         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
70258         to _Restrict_.
70259         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
70260         the parameter matches the prototype.
70261
70262 2007-01-28  Jim Meyering  <jim@meyering.net>
70263
70264         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
70265         sys/time.h here, reverting that part of the previous patch:
70266         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
70267
70268 2007-01-28  Bruno Haible  <bruno@clisp.org>
70269
70270         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
70271         value of $(SYS_TIME_H).
70272         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
70273         remove it conditionally, too. [added by Jim Meyering]
70274         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
70275         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70276         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
70277         GETTIMEOFDAY_REPLACEMENT to 1.
70278
70279 2007-01-28  Bruno Haible  <bruno@clisp.org>
70280
70281         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
70282         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
70283         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
70284         Set UNISTD_H instead of UNISTD_H2.
70285         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
70286
70287 2007-01-28  Bruno Haible  <bruno@clisp.org>
70288
70289         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
70290         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
70291
70292 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70293
70294         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
70295         (func_create_testdir): Ensure C locale for `grep' and `tr'
70296         character ranges.
70297         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
70298         ACLOCAL_AMFLAGS parsing state machine.
70299
70300 2007-01-27  Bruno Haible  <bruno@clisp.org>
70301
70302         * modules/unistr/base: Update.
70303
70304 2007-01-27  Bruno Haible  <bruno@clisp.org>
70305
70306         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
70307         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
70308         * modules/unistr/u32-mbtouc-unsafe: Renamed from
70309         modules/unistr/u32-mbtouc.
70310         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
70311         * lib/unistr.h: Update.
70312         * lib/linebreak.c: Update.
70313         * modules/unistr/u32-mbtouc: Renamed from
70314         modules/unistr/u32-mbtouc-safe.
70315         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
70316         * lib/unistr.h: Update.
70317         * lib/unistr/u32-to-u8.c: Update.
70318         * lib/unistr/u32-to-u16.c: Update.
70319
70320 2007-01-27  Bruno Haible  <bruno@clisp.org>
70321
70322         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
70323         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
70324         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
70325         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
70326         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
70327         * modules/unistr/u16-mbtouc-unsafe: Renamed from
70328         modules/unistr/u16-mbtouc.
70329         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
70330         * lib/unistr.h: Update.
70331         * lib/linebreak.c: Update.
70332         * modules/linebreak: Update.
70333         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
70334         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
70335         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
70336         * modules/unistr/u16-mbtouc: Renamed from
70337         modules/unistr/u16-mbtouc-safe.
70338         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
70339         * lib/unistr.h: Update.
70340         * lib/unistr/u16-to-u8.c: Update.
70341         * modules/unistr/u16-to-u8: Update.
70342         * lib/unistr/u16-to-u32.c: Update.
70343         * modules/unistr/u16-to-u32: Update.
70344
70345 2007-01-27  Bruno Haible  <bruno@clisp.org>
70346
70347         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
70348         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
70349         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
70350         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
70351         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
70352         * modules/unistr/u8-mbtouc-unsafe: Renamed from
70353         modules/unistr/u8-mbtouc.
70354         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
70355         * lib/unistr.h: Update.
70356         * lib/striconveh.c: Update.
70357         * modules/striconveh: Update.
70358         * lib/linebreak.c: Update.
70359         * modules/linebreak: Update.
70360         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
70361         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
70362         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
70363         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
70364         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
70365         * lib/unistr.h: Update.
70366         * lib/striconveh.c: Update.
70367         * modules/striconveh: Update.
70368         * lib/unistr/u8-to-u16.c: Update.
70369         * modules/unistr/u8-to-u16: Update.
70370         * lib/unistr/u8-to-u32.c: Update.
70371         * modules/unistr/u8-to-u32: Update.
70372
70373 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70374
70375         Sync from Libtool.
70376         * lib/argz.c: Do not include strings.h nor memory.h, include
70377         string.h unconditionally.  Patch by Simon Josefsson.
70378
70379 2007-01-27  Bruno Haible  <bruno@clisp.org>
70380
70381         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
70382         from gl_HEADER_STRING_H_BODY.
70383         (gl_HEADER_STRING_H_BODY): Require it.
70384         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
70385         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
70386         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
70387         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
70388         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70389         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
70390         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70391         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
70392         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
70393         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
70394         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
70395         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
70396         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
70397         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70398         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70399
70400 2007-01-27  Bruno Haible  <bruno@clisp.org>
70401
70402         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
70403         check_PROGRAMS into noinst_PROGRAMS.
70404         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
70405         check_PROGRAMS in this case.
70406         (func_import): Set for_test to false.
70407         (func_create_testdir): Set for_test to true.
70408
70409 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70410             Bruno Haible  <bruno@clisp.org>
70411
70412         * modules/strcasestr (Files): Remove lib/strcasestr.h.
70413         (Depends-on): Add string.
70414         (Includes): Use <string.h> instead of strcasestr.h.
70415         * modules/string (Makefile.am): Also substitute the value of
70416         REPLACE_STRCASESTR.
70417         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
70418         assume strcasestr is declared in <string.h> not <strings.h>. Also
70419         set REPLACE_STRCASESTR.
70420         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
70421         REPLACE_STRCASESTR.
70422         * lib/strcasestr.h: Remove file.
70423         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
70424         * lib/string_.h (strcasestr): New declaration.
70425
70426 2007-01-27  Bruno Haible  <bruno@clisp.org>
70427
70428         * lib/string_.h: Use 'extern'.
70429
70430 2007-01-27  Jim Meyering  <jim@meyering.net>
70431
70432         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
70433         of set-but-not-used local, "q".
70434
70435         * lib/mempcpy.c: Include <config.h> before <string.h>.
70436         This fixes a compilation error on HP-UX, due to the system's
70437         "restrict"-using mempcpy prototype.
70438
70439 2007-01-26  Bruno Haible  <bruno@clisp.org>
70440
70441         Small optimization.
70442         * lib/javacomp.c: Include c-strstr.h.
70443          (is_envjavac_gcj): Use c_strstr instead of strstr.
70444         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
70445
70446 2007-01-26  Bruno Haible  <bruno@clisp.org>
70447
70448         * MODULES.html.sh (Unicode string functions): Add the new modules.
70449
70450         * modules/uniconv/u32-strconv-to-locale: New file.
70451         * lib/uniconv/u32-strconv-to-locale.c: New file.
70452
70453         * modules/uniconv/u16-strconv-to-locale: New file.
70454         * lib/uniconv/u16-strconv-to-locale.c: New file.
70455
70456         * modules/uniconv/u8-strconv-to-locale: New file.
70457         * lib/uniconv/u8-strconv-to-locale.c: New file.
70458
70459         * modules/uniconv/u32-strconv-from-locale: New file.
70460         * lib/uniconv/u32-strconv-from-locale.c: New file.
70461
70462         * modules/uniconv/u16-strconv-from-locale: New file.
70463         * lib/uniconv/u16-strconv-from-locale.c: New file.
70464
70465         * modules/uniconv/u8-strconv-from-locale: New file.
70466         * lib/uniconv/u8-strconv-from-locale.c: New file.
70467
70468         * modules/uniconv/u32-strconv-to-enc: New file.
70469         * lib/uniconv/u32-strconv-to-enc.c: New file.
70470         * modules/uniconv/u32-strconv-to-enc-tests: New file.
70471         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
70472
70473         * modules/uniconv/u16-strconv-to-enc: New file.
70474         * lib/uniconv/u16-strconv-to-enc.c: New file.
70475         * lib/uniconv/u-strconv-to-enc.h: New file.
70476         * modules/uniconv/u16-strconv-to-enc-tests: New file.
70477         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
70478
70479         * modules/uniconv/u8-strconv-to-enc: New file.
70480         * lib/uniconv/u8-strconv-to-enc.c: New file.
70481         * modules/uniconv/u8-strconv-to-enc-tests: New file.
70482         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
70483
70484         * modules/uniconv/u32-strconv-from-enc: New file.
70485         * lib/uniconv/u32-strconv-from-enc.c: New file.
70486         * modules/uniconv/u32-strconv-from-enc-tests: New file.
70487         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
70488
70489         * modules/uniconv/u16-strconv-from-enc: New file.
70490         * lib/uniconv/u16-strconv-from-enc.c: New file.
70491         * modules/uniconv/u16-strconv-from-enc-tests: New file.
70492         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
70493
70494         * modules/uniconv/u8-strconv-from-enc: New file.
70495         * lib/uniconv/u8-strconv-from-enc.c: New file.
70496         * lib/uniconv/u-strconv-from-enc.h: New file.
70497         * modules/uniconv/u8-strconv-from-enc-tests: New file.
70498         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
70499
70500         * modules/uniconv/u32-conv-from-enc: New file.
70501         * lib/uniconv/u32-conv-from-enc.c: New file.
70502         * modules/uniconv/u32-conv-from-enc-tests: New file.
70503         * tests/uniconv/test-u32-conv-from-enc.c: New file.
70504
70505         * modules/uniconv/u16-conv-from-enc: New file.
70506         * lib/uniconv/u16-conv-from-enc.c: New file.
70507         * lib/uniconv/u-conv-from-enc.h: New file.
70508         * modules/uniconv/u16-conv-from-enc-tests: New file.
70509         * tests/uniconv/test-u16-conv-from-enc.c: New file.
70510
70511         * modules/uniconv/u8-conv-from-enc: New file.
70512         * lib/uniconv/u8-conv-from-enc.c: New file.
70513         * modules/uniconv/u8-conv-from-enc-tests: New file.
70514         * tests/uniconv/test-u8-conv-from-enc.c: New file.
70515
70516         * modules/uniconv/base: New file.
70517         * lib/uniconv.h: New file.
70518
70519 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70520
70521         * doc/gnulib-tool.texi (Initial import): Update to match current
70522         behavior with strdup module.
70523         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
70524         * lib/memmem.h: Remove; all uses removed.  This is now done
70525         by <string.h>.
70526         * lib/mempcpy.h: Likewise.
70527         * lib/memrchr.h: Likewise.
70528         * lib/stpcpy.h: Likewise.
70529         * lib/stpncpy.h: Likewise.
70530         * lib/strcase.h: Likewise.
70531         * lib/strchrnul.h: Likewise.
70532         * lib/strdup.h: Likewise.
70533         * lib/strndup.h: Likewise.
70534         * lib/strnlen.h: Likewise.
70535         * lib/strpbrk.h: Likewise.
70536         * lib/strsep.h: Likewise.
70537         * lib/strstr.h: Likewise.
70538         * lib/strtok_r.h: Likewise.
70539         * lib/string_.h: New file.
70540         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
70541         Rely on <string.h> instead.
70542         * lib/canon-host.c: Likewise.
70543         * lib/chdir-long.c: Likewise.
70544         * lib/concatpath.c: Likewise.
70545         * lib/exclude.c: Likewise.
70546         * lib/fchdir.c: Likewise.
70547         * lib/getaddrinfo.c: Likewise.
70548         * lib/getcwd.c: Likewise.
70549         * lib/getsubopt.c: Likewise.
70550         * lib/glob.c: Likewise.
70551         * lib/hard-locale.c: Likewise.
70552         * lib/iconvme.c: Likewise.
70553         * lib/javacomp.c: Likewise.
70554         * lib/mempcpy.c: Likewise.
70555         * lib/memrchr.c: Likewise.
70556         * lib/regex_internal.h: Likewise.
70557         * lib/stpncpy.c: Likewise.
70558         * lib/strcasecmp.c: Likewise.
70559         * lib/strchrnul.c: Likewise.
70560         * lib/strdup.c: Likewise.
70561         * lib/striconv.c: Likewise.
70562         * lib/striconveh.c: Likewise.
70563         * lib/striconveha.c: Likewise.
70564         * lib/strncasecmp.c: Likewise.
70565         * lib/strndup.c: Likewise.
70566         * lib/strnlen.c: Likewise.
70567         * lib/strsep.c: Likewise.
70568         * lib/strstr.c: Likewise.
70569         * lib/strtok_r.c: Likewise.
70570         * lib/userspec.c: Likewise.
70571         * lib/w32spawn.h: Likewise.
70572         * lib/xstrndup.c: Likewise.
70573         * lib/mountlist.c (strstr): Remove decl.
70574         * m4/string_h.m4: New file.
70575         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70576         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70577         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70578         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70579         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70580         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70581         Set REPLACE_STRCASECMP if necessary.
70582         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70583         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70584         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70585         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70586         HAVE_DECL_STRDUP if necessary.
70587         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70588         since gl_FUNC_STRNDUP does that now.
70589         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70590         Check for decl here...
70591         (gl_PREREQ_STRNLEN): ... not here.
70592         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70593         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70594         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70595         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70596         necessary.
70597         * modules/string: New file.
70598         * modules/memmem (Files): Remove special-purpose include file.
70599         (Depends-on): Add string.
70600         (Include): Include <string.h>, not the removed file.
70601         * modules/mempcpy: Likewise.
70602         * modules/memrchr: Likewise.
70603         * modules/stpcpy: Likewise.
70604         * modules/stpncpy: Likewise.
70605         * modules/strcase: Likewise.
70606         * modules/strchrnul: Likewise.
70607         * modules/strdup: Likewise.
70608         * modules/strndup: Likewise.
70609         * modules/strnlen: Likewise.
70610         * modules/strpbrk: Likewise.
70611         * modules/strsep: Likewise.
70612         * modules/strstr: Likewise.
70613         * modules/strtok_r: Likewise.
70614         * tests/test-dirname.c: Don't include "strdup.h", since
70615         <string.h> now suffices.
70616         * tests/test-memmem.c: Don't include "memmem.h", since
70617         <string.h> now suffices.
70618
70619 2007-01-25  Bruno Haible  <bruno@clisp.org>
70620
70621         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70622         *resultp is 0.
70623
70624         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70625         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70626         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70627         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70628
70629         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70630         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70631         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70632         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70633         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70634         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70635
70636 2007-01-24  Bruno Haible  <bruno@clisp.org>
70637
70638         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70639         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70640         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70641         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70642         gl_FUNC_FTS_CORE.
70643         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70644         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70645         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70646         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70647         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70648         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70649         gl_FUNC_FCHOWNAT.
70650         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70651         gl_FUNC_STRFTIME.
70652         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70653         Reported by Ralf Wildenhues.
70654
70655 2007-01-24  Bruno Haible  <bruno@clisp.org>
70656
70657         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70658         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70659         gl_GETADDRINFO.
70660         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70661         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70662         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70663
70664 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70665
70666         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70667         Don't use 'exit'; just return from 'main'.
70668         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70669
70670         * lib/fnmatch_.h: Readjust white space and comments to match
70671         glibc, to avoid spurious diffs.
70672
70673 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70674
70675         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70676         2004-12-01 change by Jakub Jelinek, since this code won't compile
70677         if !LIBC.  Problem reported by Bob Proulx.
70678
70679 2007-01-23  Bruno Haible  <bruno@clisp.org>
70680
70681         * lib/striconveh.c: Include c-strcaseeq.h.
70682         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70683         * modules/striconveh (Depends-on): Add c-strcaseeq.
70684
70685 2007-01-23  Bruno Haible  <bruno@clisp.org>
70686
70687         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70688
70689         * modules/c-strcaseeq: New file.
70690         * lib/c-strcaseeq.h: New file.
70691
70692         * modules/streq: New file.
70693         * lib/streq.h: New file.
70694
70695 2007-01-23  Bruno Haible  <bruno@clisp.org>
70696
70697         * modules/striconveha-tests: New file.
70698         * tests/test-striconveha.c: New file.
70699
70700         * lib/striconveha.h: Include <stdbool.h>.
70701         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70702         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70703         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70704         (mem_iconveha): New function.
70705         (str_iconveha_notranslit): Renamed from str_iconveha.
70706         (str_iconveha): New function.
70707         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70708         c-strcase.
70709
70710 2007-01-23  Bruno Haible  <bruno@clisp.org>
70711
70712         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70713         encodings without forgiving before trying any encoding with handler.
70714         (str_iconveha): Try all encodings without forgiving before trying any
70715         encoding with handler.
70716
70717 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70718
70719         Import the following changes from libc.
70720
70721         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70722
70723         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70724
70725         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70726
70727         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70728         normal_bracket label.
70729
70730         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70731
70732         [BZ #361]
70733         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70734         to normal_bracket after fetching the next character.
70735
70736 2007-01-22  Bruno Haible  <bruno@clisp.org>
70737
70738         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70739         argument.
70740         * lib/striconveh.c (iconv_carefully_1): New function.
70741         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70742         argument.
70743         (str_cd_iconveh): Update.
70744         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70745         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70746         * tests/test-striconveh.c (MAGIC): New macro.
70747         (new_offsets): New function.
70748         (main): Test call with and without offsets.
70749
70750 2007-01-22  Bruno Haible  <bruno@clisp.org>
70751
70752         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70753         * modules/sys_select (Makefile.am): Likewise.
70754         * modules/sys_socket (Makefile.am): Likewise.
70755         * modules/sys_time (Makefile.am): Likewise.
70756
70757 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70758
70759         * modules/gettimeofday (License): Change from GPL to LGPL, since
70760         gettimeofday is a library function.
70761
70762 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70763
70764         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70765
70766 2007-01-21  Bruno Haible  <bruno@clisp.org>
70767
70768         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70769
70770 2007-01-21  Bruno Haible  <bruno@clisp.org>
70771
70772         * modules/striconveha: New file.
70773         * lib/striconveha.h: New file.
70774         * lib/striconveha.c: New file.
70775         * MODULES.html.sh (Internationalization functions): Add striconveha.
70776         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70777         string.
70778         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70779
70780 2007-01-21  Bruno Haible  <bruno@clisp.org>
70781
70782         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70783         * lib/striconveh.c (str_iconveh): Likewise.
70784
70785 2007-01-21  Bruno Haible  <bruno@clisp.org>
70786
70787         * lib/striconveh.h (mem_iconveh): New declaration.
70788         * lib/striconveh.c (mem_iconveh): New function.
70789         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70790
70791 2007-01-21  Bruno Haible  <bruno@clisp.org>
70792
70793         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70794
70795         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70796         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70797         original result buffer.
70798         (str_cd_iconveh): Update.
70799         * tests/test-striconveh.c (main): Update.
70800
70801         * lib/striconv.h (mem_cd_iconv): Change specification.
70802         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70803         result buffer.
70804         (str_cd_iconv): Update.
70805         * tests/test-striconv.c (main): Update.
70806
70807 2007-01-21  Bruno Haible  <bruno@clisp.org>
70808
70809         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70810
70811 2007-01-20  Jim Meyering  <jim@meyering.net>
70812
70813         * lib/userspec.c (parse_with_separator): If a user or group string
70814         starts with "+", skip the corresponding name-to-ID look-up, since
70815         such a look-up must fail: user and group names may not include "+".
70816
70817 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70818
70819         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70820         since we now assume the sys_time module.
70821         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70822         check for sys/time.h; no longer needed.
70823         * modules/poll (Depends-on): Depend on sys_time.
70824
70825 2007-01-18  Bruno Haible  <bruno@clisp.org>
70826
70827         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70828         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70829
70830         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70831         gettimeofday.
70832
70833         * tests/test-gettimeofday.c: Include <time.h>.
70834         (dummy): Remove variable.
70835
70836         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70837         gl_HEADER_SYS_TIME_H.
70838         (gl_HEADER_SYS_TIME_H): New macro.
70839
70840         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70841         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70842         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70843         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70844         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70845         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70846         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70847         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70848         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70849         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70850         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70851
70852         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70853         last change; it caused a compilation error when cross-compiling to
70854         Cygwin.
70855
70856 2007-01-18  Jim Meyering  <jim@meyering.net>
70857
70858         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70859         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70860         than the race-prone "test -d sys || mkdir sys".
70861         (configure.ac): Use AC_PROG_MKDIR_P.
70862         * modules/sys_select: Likewise.
70863         * modules/sys_socket: Likewise.
70864         * modules/sys_time: Likewise.
70865
70866 2007-01-18  Eric Blake  <ebb9@byu.net>
70867
70868         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70869         replace gettimeofday.
70870         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70871         name, to avoid infinite recursion.
70872
70873 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70874
70875         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70876         module sys_time.
70877         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70878         assume timespec.h defines struct timeval.
70879         * lib/settime.c: Likewise.
70880         * lib/utimens.c: Likewise.
70881         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70882         since we now assume the gettimeofday module.
70883         * lib/tempname.c (__gen_tempname): Likewise.
70884         * lib/gettimeofday.h: Remove.
70885         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70886         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70887         Include <time.h>, for 'time()'.
70888         (localtime_buffer_addr): Also use this workaround if
70889         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70890         to simplify the uses.  All uses changed.
70891         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70892         that #undef is inside {}, and 'const' follows type name consistently.
70893         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70894         (gettimeofday): Do not use the maximum possible value for
70895         tv->tv_usec, since that might break usages other than ls.c.
70896         Instead, we'll leave ls.c alone.  This undoes today's patch
70897         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70898         we've never observed the problem but might as well keep the
70899         canary.
70900         * lib/nanosleep.c: Include timespec.h first, for interface check.
70901         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70902         now assume the sys_time module.
70903         * lib/tempname.c: Likewise.
70904         * lib/timespec.h: Likewise.
70905         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70906         needed.
70907         * lib/strftime.c: Likewise.
70908         * lib/timespec.h: Likewise.
70909         * lib/posixtm.c: Include posixtm.h first, for interface check.
70910         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70911         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70912         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70913         * lib/sys_time_.h: New file.
70914         * lib/timespec.h (struct timespec): Use long int, not long.
70915         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70916         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70917         Remove obsolescent call to AC_HEADER_TIME.
70918         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70919         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70920         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70921         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70922         Likewise.
70923         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70924         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70925         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70926         into the sys_time module.  Check for gettimeofday just once.
70927         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70928         for gettimeofday signature to just check the signature.  Merely
70929         compile it, since linking doesn't test signature.  Improve test for
70930         whether gettimeofday.o is actually needed.
70931         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70932         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70933         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70934         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70935         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70936         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70937         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70938         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70939         than worrying about sys/time.h.
70940         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70941         Don't bother worrying about TIME_WITH_SYS_TIME.
70942         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70943         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70944         * m4/sys_time_h.m4: New file.
70945         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70946         Don't include sys/time.h.  Return from main rather than exiting.
70947         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70948         all uses changed.
70949         * modules/gethrxtime (Depends-on): Add sys_time.
70950         * modules/gettime (Depends-on): Likewise.
70951         * modules/gettimeofday (Depends-on): Likewise.
70952         * modules/nanosleep (Depends-on): Likewise.
70953         * modules/settime (Depends-on): Likewise.
70954         * modules/tempname (Depends-on): Likewise.
70955         * modules/utimens (Depends-on): Likewise.
70956         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70957         (Include): Change back to <sys/time.h>.
70958         (Maintainer): Add self.
70959         * modules/sys_time: New file.
70960         * modules/tempname (Depends-on): Add gettimeofday.
70961         * tests/test-gettimeofday.c: Include <sys/time.h>
70962         rather than gettimeofday.h.
70963
70964 2007-01-17  Bruno Haible  <bruno@clisp.org>
70965
70966         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70967         the license default to GPL.
70968         (func_create_testdir): Don't complain if a module is LGPL and its
70969         tests module depends on GPLed modules.
70970
70971 2007-01-17  Bruno Haible  <bruno@clisp.org>
70972
70973         * lib/gettimeofday.c (gettimeofday): Add code for the case
70974         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70975         maximum possible value for tv->tv_usec, rather than the minimum one.
70976
70977 2005-10-08  Martin Lambers  <marlam@marlam.de>
70978 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70979 2007-01-16  Bruno Haible  <bruno@clisp.org>
70980
70981         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70982         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70983         gl_FUNC_GETTIMEOFDAY.
70984         (Include): Add gettimeofday.h.
70985         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70986         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70987         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70988         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70989         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70990         * lib/gettimeofday.h: New file.
70991         * lib/gettimeofday.c: Include <sys/timeb.h>.
70992         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70993         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70994         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70995         fall back on time().
70996
70997         * tests/test-gettimeofday.c: New file.
70998         * modules/gettimeofday-tests: New file.
70999
71000 2007-01-16  Eric Blake  <ebb9@byu.net>
71001
71002         * modules/fnmatch (Depends-on): Depend on wchar.
71003         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
71004         * m4/fnmatch.m4: Likewise.
71005         * modules/mbchar (Makefile.am): Assume <wchar.h>.
71006         * m4/mbchar.m4: Likewise.
71007         * modules/mbswidth (Depends-on): Depend on wchar.
71008         * lib/mbswidth.c: Assume <wchar.h>.
71009         * m4/mbswidth.m4: Likewise.
71010         * modules/quotearg (Depends-on): Depend on wchar.
71011         * lib/quotearg.c: Assume <wchar.h>.
71012         * m4/quotearg.m4: Likewise.
71013         * modules/regex (Depends-on): Depend on wchar.
71014         * lib/regex_internal.h: Assume <wchar.h>.
71015         * m4/regex.m4: Likewise.
71016         * modules/stdint (Depends-on): Depend on wchar.
71017         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
71018         * m4/stdint.m4: Likewise.
71019         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
71020         * modules/strftime (Depends-on): Depend on wchar.
71021         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
71022         * modules/strtol (Depends-on): Depend on wchar.
71023         * lib/strtol.c: Assume <wchar.h>.
71024         * modules/wcwidth (Depends-on): Depend on wchar.
71025         * lib/wcwidth.h: Assume <wchar.h>.
71026         * m4/wcwidth.m4: Likewise.
71027
71028 2007-01-16  Bruno Haible  <bruno@clisp.org>
71029
71030         * modules/csharpexec-script: New, created from...
71031         * modules/csharpexec: ... this.
71032
71033 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
71034
71035         * modules/javaexec-script: New, created from...
71036         * modules/javaexec: ... this.
71037
71038 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71039
71040         * modules/poll (Dependencies): Add sys_select.
71041
71042 2007-01-15  Jim Meyering  <jim@meyering.net>
71043
71044         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
71045         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
71046         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
71047         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
71048
71049 2007-01-15  Bruno Haible  <bruno@clisp.org>
71050
71051         * modules/striconveh: New file.
71052         * lib/striconveh.h: New file.
71053         * lib/striconveh.c: New file.
71054         * MODULES.html.sh (Internationalization functions): Add striconveh.
71055
71056         * modules/striconveh-tests: New file.
71057         * tests/test-striconveh.c: New file.
71058
71059 2007-01-15  Bruno Haible  <bruno@clisp.org>
71060
71061         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
71062         not from GNU libiconv or GNU libc.
71063
71064 2007-01-15  Bruno Haible  <bruno@clisp.org>
71065
71066         * doc/gnulib-intro.texi (Copyright): Explain the different license
71067         terms for module descriptions, autoconf macros, tests, documentation.
71068
71069 2007-01-14  Bruno Haible  <bruno@clisp.org>
71070
71071         * modules/striconv-tests: New file.
71072         * tests/test-striconv.c: New file.
71073
71074 2007-01-14  Bruno Haible  <bruno@clisp.org>
71075
71076         * modules/iconv-tests: New file.
71077         * tests/test-iconv.c: New file.
71078
71079 2007-01-14  Bruno Haible  <bruno@clisp.org>
71080
71081         * gnulib-tool (func_get_license): For test modules, use the license of
71082         the main module.
71083
71084 2007-01-14  Bruno Haible  <bruno@clisp.org>
71085
71086         * modules/iconv (Include): Clarify that <iconv.h> can only be included
71087         if iconv is found to exist.
71088
71089 2007-01-14  Bruno Haible  <bruno@clisp.org>
71090
71091         * modules/c-ctype-tests: New file.
71092         * tests/test-c-ctype.c: New file.
71093
71094 2007-01-14  Bruno Haible  <bruno@clisp.org>
71095
71096         * modules/binary-io-tests: New file.
71097         * tests/test-binary-io.sh: New file.
71098         * tests/test-binary-io.c: New file.
71099
71100 2007-01-14  Bruno Haible  <bruno@clisp.org>
71101
71102         * modules/array-oset-tests: New file.
71103         * tests/test-array_oset.c: New file.
71104
71105 2007-01-14  Bruno Haible  <bruno@clisp.org>
71106
71107         * modules/array-list-tests: New file.
71108         * tests/test-array_list.c: New file.
71109
71110 2007-01-14  Bruno Haible  <bruno@clisp.org>
71111
71112         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
71113         and make.
71114         Reported by Simon Josefsson in
71115         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
71116
71117 2007-01-14  Bruno Haible  <bruno@clisp.org>
71118
71119         * modules/allocsa-tests: New file.
71120         * tests/test-allocsa.c: New file.
71121
71122 2007-01-14  Bruno Haible  <bruno@clisp.org>
71123
71124         * modules/fchdir (Depends-on): Add absolute-header.
71125         * modules/unistd (Depends-on): Likewise.
71126
71127 2006-12-30  Bruno Haible  <bruno@clisp.org>
71128
71129         * modules/fchdir: New file.
71130         * modules/unistd (Files): Add lib/unistd_.h.
71131         (Makefile.am): Generate unistd.h from unistd_.h.
71132         * lib/fchdir.c: New file.
71133         * lib/dirent_.h: New file.
71134         * lib/unistd_.h: New file.
71135         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
71136         * m4/fchdir.m4: New file.
71137         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
71138         (gl_HEADER_UNISTD): Invoke it.
71139         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
71140         function.
71141         * lib/backupfile.c (opendir, closedir): Undefine.
71142         * lib/chown.c (open, close): Undefine.
71143         * lib/clean-temp.c (open, close): Undefine.
71144         * lib/copy-file.c (open, close): Undefine.
71145         * lib/execute.c (open, close): Undefine.
71146         * lib/fsusage.c (open, close): Undefine.
71147         * lib/gc-gnulib.c (open, close): Undefine.
71148         * lib/getcwd.c (opendir, closedir): Undefine.
71149         * lib/glob.c (opendir, closedir): Undefine.
71150         * lib/javacomp.c (open, close): Undefine.
71151         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
71152         * lib/openat-proc.c (open, close): Undefine.
71153         * lib/pagealign_alloc.c (open, close): Undefine.
71154         * lib/pipe.c (open, close): Undefine.
71155         * lib/progreloc.c (open, close): Undefine.
71156         * lib/savedir.c (opendir, closedir): Undefine.
71157         * lib/utime.c (open, close): Undefine.
71158         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
71159
71160 2007-01-10  Bruno Haible  <bruno@clisp.org>
71161
71162         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
71163
71164 2007-01-12  Eric Blake  <ebb9@byu.net>
71165
71166         Provide a robust <wchar.h>.  Further simplifications are now
71167         possible in other modules, but not included here.
71168         * modules/wchar: New module.
71169         * m4/wchar.m4: New file.
71170         * lib/wchar_.h: Likewise.
71171         * modules/mbchar (Depends-on): Depend on wchar, as the first use
71172         of the new module.
71173         * MODULES.html.sh (Extended multibyte and wide character utilities):
71174         New section.
71175
71176 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
71177
71178         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
71179         to a reasonable default for memory allocation.
71180         (xreadlink): Don't allocate a huge buffer, to work around a buggy
71181         file system that reports garbage st_size values for symlinks.
71182         Problem reported by Liyang Hu.
71183
71184 2007-01-11  Simon Josefsson  <simon@josefsson.org>
71185
71186         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
71187         Emacs .#* auto-save files).
71188
71189 2007-01-11  Bruno Haible  <bruno@clisp.org>
71190
71191         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
71192         directory.
71193
71194 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71195
71196         Use @...@ consistently in lib/wctype_.h.
71197         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
71198         on it being set to 1 or 0.
71199         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
71200         go back to AC_SUBSTing it.
71201         * modules/wctype (Makefile.am): Undo previous change.
71202
71203 2007-01-10  Eric Blake  <ebb9@byu.net>
71204
71205         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
71206         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
71207         * modules/wctype (Makefile.am): Likewise.
71208         Reported by Chris McGuire.
71209
71210 2007-01-10  Jim Meyering  <jim@meyering.net>
71211
71212         fts.c: a small readability/maintainability improvement
71213         * lib/fts.c (fts_read): Make this code slightly more readable and
71214         maintainable by hoisting the "sp->fts_cur = p" assignments to
71215         immediately follow the statements that set P.  Derived from
71216         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
71217
71218 2007-01-10  Eric Blake  <ebb9@byu.net>
71219
71220         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
71221         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
71222         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71223         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71224         Reported by Chris McGuire.
71225
71226 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71227
71228         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
71229         in sed script.
71230
71231 2007-01-09  Bruno Haible  <bruno@clisp.org>
71232
71233         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
71234         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
71235         variables.
71236         (func_module): Use them.
71237
71238 2007-01-09  Bruno Haible  <bruno@clisp.org>
71239
71240         * modules/unistr/base: New file.
71241         * lib/unistr.h: New file.
71242
71243         * modules/unistr/u8-to-u16: New file.
71244         * lib/unistr/u8-to-u16.c: New file.
71245
71246         * modules/unistr/u8-to-u32: New file.
71247         * lib/unistr/u8-to-u32.c: New file.
71248
71249         * modules/unistr/u16-to-u8: New file.
71250         * lib/unistr/u16-to-u8.c: New file.
71251
71252         * modules/unistr/u16-to-u32: New file.
71253         * lib/unistr/u16-to-u32.c: New file.
71254
71255         * modules/unistr/u32-to-u8: New file.
71256         * lib/unistr/u32-to-u8.c: New file.
71257
71258         * modules/unistr/u32-to-u16: New file.
71259         * lib/unistr/u32-to-u16.c: New file.
71260
71261         * modules/unistr/u8-check: New file.
71262         * modules/unistr/u16-check: New file.
71263         * modules/unistr/u32-check: New file.
71264         * lib/unistr/u8-check.c: New file.
71265         * lib/unistr/u16-check.c: New file.
71266         * lib/unistr/u32-check.c: New file.
71267
71268         * modules/unistr/u8-chr: New file.
71269         * modules/unistr/u16-chr: New file.
71270         * modules/unistr/u32-chr: New file.
71271         * lib/unistr/u8-chr.c: New file.
71272         * lib/unistr/u16-chr.c: New file.
71273         * lib/unistr/u32-chr.c: New file.
71274
71275         * modules/unistr/u8-cmp: New file.
71276         * modules/unistr/u16-cmp: New file.
71277         * modules/unistr/u32-cmp: New file.
71278         * lib/unistr/u8-cmp.c: New file.
71279         * lib/unistr/u16-cmp.c: New file.
71280         * lib/unistr/u32-cmp.c: New file.
71281
71282         * modules/unistr/u8-cpy: New file.
71283         * modules/unistr/u16-cpy: New file.
71284         * modules/unistr/u32-cpy: New file.
71285         * lib/unistr/u8-cpy.c: New file.
71286         * lib/unistr/u16-cpy.c: New file.
71287         * lib/unistr/u32-cpy.c: New file.
71288         * lib/unistr/u-cpy.h: New file.
71289
71290         * modules/unistr/u8-cpy-alloc: New file.
71291         * modules/unistr/u16-cpy-alloc: New file.
71292         * modules/unistr/u32-cpy-alloc: New file.
71293         * lib/unistr/u8-cpy-alloc.c: New file.
71294         * lib/unistr/u16-cpy-alloc.c: New file.
71295         * lib/unistr/u32-cpy-alloc.c: New file.
71296         * lib/unistr/u-cpy-alloc.h: New file.
71297
71298         * modules/unistr/u8-endswith: New file.
71299         * modules/unistr/u16-endswith: New file.
71300         * modules/unistr/u32-endswith: New file.
71301         * lib/unistr/u8-endswith.c: New file.
71302         * lib/unistr/u16-endswith.c: New file.
71303         * lib/unistr/u32-endswith.c: New file.
71304         * lib/unistr/u-endswith.h: New file.
71305
71306         * modules/unistr/u8-mblen: New file.
71307         * modules/unistr/u16-mblen: New file.
71308         * modules/unistr/u32-mblen: New file.
71309         * lib/unistr/u8-mblen.c: New file.
71310         * lib/unistr/u16-mblen.c: New file.
71311         * lib/unistr/u32-mblen.c: New file.
71312
71313         * modules/unistr/u8-mbtouc: New file.
71314         * modules/unistr/u16-mbtouc: New file.
71315         * modules/unistr/u32-mbtouc: New file.
71316         * lib/unistr/u8-mbtouc.c: New file.
71317         * lib/unistr/u16-mbtouc.c: New file.
71318         * lib/unistr/u32-mbtouc.c: New file.
71319
71320         * modules/unistr/u8-mbtouc-safe: New file.
71321         * modules/unistr/u16-mbtouc-safe: New file.
71322         * modules/unistr/u32-mbtouc-safe: New file.
71323         * lib/unistr/u8-mbtouc-safe.c: New file.
71324         * lib/unistr/u16-mbtouc-safe.c: New file.
71325         * lib/unistr/u32-mbtouc-safe.c: New file.
71326
71327         * modules/unistr/u8-move: New file.
71328         * modules/unistr/u16-move: New file.
71329         * modules/unistr/u32-move: New file.
71330         * lib/unistr/u8-move.c: New file.
71331         * lib/unistr/u16-move.c: New file.
71332         * lib/unistr/u32-move.c: New file.
71333         * lib/unistr/u-move.h: New file.
71334
71335         * modules/unistr/u8-next: New file.
71336         * modules/unistr/u16-next: New file.
71337         * modules/unistr/u32-next: New file.
71338         * lib/unistr/u8-next.c: New file.
71339         * lib/unistr/u16-next.c: New file.
71340         * lib/unistr/u32-next.c: New file.
71341
71342         * modules/unistr/u8-prev: New file.
71343         * modules/unistr/u16-prev: New file.
71344         * modules/unistr/u32-prev: New file.
71345         * lib/unistr/u8-prev.c: New file.
71346         * lib/unistr/u16-prev.c: New file.
71347         * lib/unistr/u32-prev.c: New file.
71348
71349         * modules/unistr/u8-set: New file.
71350         * modules/unistr/u16-set: New file.
71351         * modules/unistr/u32-set: New file.
71352         * lib/unistr/u8-set.c: New file.
71353         * lib/unistr/u16-set.c: New file.
71354         * lib/unistr/u32-set.c: New file.
71355         * lib/unistr/u-set.h: New file.
71356
71357         * modules/unistr/u8-startswith: New file.
71358         * modules/unistr/u16-startswith: New file.
71359         * modules/unistr/u32-startswith: New file.
71360         * lib/unistr/u8-startswith.c: New file.
71361         * lib/unistr/u16-startswith.c: New file.
71362         * lib/unistr/u32-startswith.c: New file.
71363         * lib/unistr/u-startswith.h: New file.
71364
71365         * modules/unistr/u8-stpcpy: New file.
71366         * modules/unistr/u16-stpcpy: New file.
71367         * modules/unistr/u32-stpcpy: New file.
71368         * lib/unistr/u8-stpcpy.c: New file.
71369         * lib/unistr/u16-stpcpy.c: New file.
71370         * lib/unistr/u32-stpcpy.c: New file.
71371         * lib/unistr/u-stpcpy.h: New file.
71372
71373         * modules/unistr/u8-stpncpy: New file.
71374         * modules/unistr/u16-stpncpy: New file.
71375         * modules/unistr/u32-stpncpy: New file.
71376         * lib/unistr/u8-stpncpy.c: New file.
71377         * lib/unistr/u16-stpncpy.c: New file.
71378         * lib/unistr/u32-stpncpy.c: New file.
71379         * lib/unistr/u-stpncpy.h: New file.
71380
71381         * modules/unistr/u8-strcat: New file.
71382         * modules/unistr/u16-strcat: New file.
71383         * modules/unistr/u32-strcat: New file.
71384         * lib/unistr/u8-strcat.c: New file.
71385         * lib/unistr/u16-strcat.c: New file.
71386         * lib/unistr/u32-strcat.c: New file.
71387         * lib/unistr/u-strcat.h: New file.
71388
71389         * modules/unistr/u8-strchr: New file.
71390         * modules/unistr/u16-strchr: New file.
71391         * modules/unistr/u32-strchr: New file.
71392         * lib/unistr/u8-strchr.c: New file.
71393         * lib/unistr/u16-strchr.c: New file.
71394         * lib/unistr/u32-strchr.c: New file.
71395
71396         * modules/unistr/u8-strcmp: New file.
71397         * modules/unistr/u16-strcmp: New file.
71398         * modules/unistr/u32-strcmp: New file.
71399         * lib/unistr/u8-strcmp.c: New file.
71400         * lib/unistr/u16-strcmp.c: New file.
71401         * lib/unistr/u32-strcmp.c: New file.
71402
71403         * modules/unistr/u8-strcpy: New file.
71404         * modules/unistr/u16-strcpy: New file.
71405         * modules/unistr/u32-strcpy: New file.
71406         * lib/unistr/u8-strcpy.c: New file.
71407         * lib/unistr/u16-strcpy.c: New file.
71408         * lib/unistr/u32-strcpy.c: New file.
71409         * lib/unistr/u-strcpy.h: New file.
71410
71411         * modules/unistr/u8-strcspn: New file.
71412         * modules/unistr/u16-strcspn: New file.
71413         * modules/unistr/u32-strcspn: New file.
71414         * lib/unistr/u8-strcspn.c: New file.
71415         * lib/unistr/u16-strcspn.c: New file.
71416         * lib/unistr/u32-strcspn.c: New file.
71417         * lib/unistr/u-strcspn.h: New file.
71418
71419         * modules/unistr/u8-strdup: New file.
71420         * modules/unistr/u16-strdup: New file.
71421         * modules/unistr/u32-strdup: New file.
71422         * lib/unistr/u8-strdup.c: New file.
71423         * lib/unistr/u16-strdup.c: New file.
71424         * lib/unistr/u32-strdup.c: New file.
71425         * lib/unistr/u-strdup.h: New file.
71426
71427         * modules/unistr/u8-strlen: New file.
71428         * modules/unistr/u16-strlen: New file.
71429         * modules/unistr/u32-strlen: New file.
71430         * lib/unistr/u8-strlen.c: New file.
71431         * lib/unistr/u16-strlen.c: New file.
71432         * lib/unistr/u32-strlen.c: New file.
71433         * lib/unistr/u-strlen.h: New file.
71434
71435         * modules/unistr/u8-strmblen: New file.
71436         * modules/unistr/u16-strmblen: New file.
71437         * modules/unistr/u32-strmblen: New file.
71438         * lib/unistr/u8-strmblen.c: New file.
71439         * lib/unistr/u16-strmblen.c: New file.
71440         * lib/unistr/u32-strmblen.c: New file.
71441
71442         * modules/unistr/u8-strmbtouc: New file.
71443         * modules/unistr/u16-strmbtouc: New file.
71444         * modules/unistr/u32-strmbtouc: New file.
71445         * lib/unistr/u8-strmbtouc.c: New file.
71446         * lib/unistr/u16-strmbtouc.c: New file.
71447         * lib/unistr/u32-strmbtouc.c: New file.
71448
71449         * modules/unistr/u8-strncat: New file.
71450         * modules/unistr/u16-strncat: New file.
71451         * modules/unistr/u32-strncat: New file.
71452         * lib/unistr/u8-strncat.c: New file.
71453         * lib/unistr/u16-strncat.c: New file.
71454         * lib/unistr/u32-strncat.c: New file.
71455         * lib/unistr/u-strncat.h: New file.
71456
71457         * modules/unistr/u8-strncmp: New file.
71458         * modules/unistr/u16-strncmp: New file.
71459         * modules/unistr/u32-strncmp: New file.
71460         * lib/unistr/u8-strncmp.c: New file.
71461         * lib/unistr/u16-strncmp.c: New file.
71462         * lib/unistr/u32-strncmp.c: New file.
71463
71464         * modules/unistr/u8-strncpy: New file.
71465         * modules/unistr/u16-strncpy: New file.
71466         * modules/unistr/u32-strncpy: New file.
71467         * lib/unistr/u8-strncpy.c: New file.
71468         * lib/unistr/u16-strncpy.c: New file.
71469         * lib/unistr/u32-strncpy.c: New file.
71470         * lib/unistr/u-strncpy.h: New file.
71471
71472         * modules/unistr/u8-strnlen: New file.
71473         * modules/unistr/u16-strnlen: New file.
71474         * modules/unistr/u32-strnlen: New file.
71475         * lib/unistr/u8-strnlen.c: New file.
71476         * lib/unistr/u16-strnlen.c: New file.
71477         * lib/unistr/u32-strnlen.c: New file.
71478         * lib/unistr/u-strnlen.h: New file.
71479
71480         * modules/unistr/u8-strpbrk: New file.
71481         * modules/unistr/u16-strpbrk: New file.
71482         * modules/unistr/u32-strpbrk: New file.
71483         * lib/unistr/u8-strpbrk.c: New file.
71484         * lib/unistr/u16-strpbrk.c: New file.
71485         * lib/unistr/u32-strpbrk.c: New file.
71486         * lib/unistr/u-strpbrk.h: New file.
71487
71488         * modules/unistr/u8-strrchr: New file.
71489         * modules/unistr/u16-strrchr: New file.
71490         * modules/unistr/u32-strrchr: New file.
71491         * lib/unistr/u8-strrchr.c: New file.
71492         * lib/unistr/u16-strrchr.c: New file.
71493         * lib/unistr/u32-strrchr.c: New file.
71494
71495         * modules/unistr/u8-strspn: New file.
71496         * modules/unistr/u16-strspn: New file.
71497         * modules/unistr/u32-strspn: New file.
71498         * lib/unistr/u8-strspn.c: New file.
71499         * lib/unistr/u16-strspn.c: New file.
71500         * lib/unistr/u32-strspn.c: New file.
71501         * lib/unistr/u-strspn.h: New file.
71502
71503         * modules/unistr/u8-strstr: New file.
71504         * modules/unistr/u16-strstr: New file.
71505         * modules/unistr/u32-strstr: New file.
71506         * lib/unistr/u8-strstr.c: New file.
71507         * lib/unistr/u16-strstr.c: New file.
71508         * lib/unistr/u32-strstr.c: New file.
71509         * lib/unistr/u-strstr.h: New file.
71510
71511         * modules/unistr/u8-strtok: New file.
71512         * modules/unistr/u16-strtok: New file.
71513         * modules/unistr/u32-strtok: New file.
71514         * lib/unistr/u8-strtok.c: New file.
71515         * lib/unistr/u16-strtok.c: New file.
71516         * lib/unistr/u32-strtok.c: New file.
71517         * lib/unistr/u-strtok.h: New file.
71518
71519         * modules/unistr/u8-uctomb: New file.
71520         * modules/unistr/u16-uctomb: New file.
71521         * modules/unistr/u32-uctomb: New file.
71522         * lib/unistr/u8-uctomb.c: New file.
71523         * lib/unistr/u16-uctomb.c: New file.
71524         * lib/unistr/u32-uctomb.c: New file.
71525
71526         * MODULES.html.sh (Unicode string functions): Add the new modules.
71527
71528 2007-01-08  Bruno Haible  <bruno@clisp.org>
71529
71530         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
71531         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
71532         subdirectories.
71533
71534 2007-01-08  Karl Berry  <karl@gnu.org>
71535
71536         * doc/error.texi: mention that main() fns must set program_name
71537         when progname is used.
71538
71539 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
71540
71541         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
71542         WCTYPE_H is empty, for the benefit of builds from non-distclean
71543         directories.  Problem reported by Eric Blake in
71544         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
71545
71546 2007-01-08  Bruno Haible  <bruno@clisp.org>
71547
71548         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
71549         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
71550         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
71551         PROVIDE_CANONICALIZE_FILENAME_MODE.
71552         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
71553
71554 2007-01-08  Bruno Haible  <bruno@clisp.org>
71555
71556         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71557         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71558         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71559         * lib/fts.c: Likewise.
71560         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71561
71562 2006-12-25  Bruno Haible  <bruno@clisp.org>
71563
71564         * modules/utf8-ucs4-safe: New file.
71565         * lib/utf8-ucs4-safe.h: New file.
71566         * lib/unistr/utf8-ucs4-safe.c: New file.
71567
71568         * modules/utf16-ucs4-safe: New file.
71569         * lib/utf16-ucs4-safe.h: New file.
71570         * lib/unistr/utf16-ucs4-safe.c: New file.
71571
71572         * MODULES.html.sh (Unicode string functions): Add the new modules.
71573
71574 2007-01-08  Bruno Haible  <bruno@clisp.org>
71575
71576         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71577         (Depends-on): Add unitypes.
71578         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71579         (u8_mbtouc_aux): Move out to separate file.
71580         (u8_mbtouc): Use ucs4_t, uint8_t types.
71581         * lib/unistr/utf8-ucs4.c: New file.
71582
71583         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71584         (Depends-on): Add unitypes.
71585         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71586         (u16_mbtouc_aux): Move out to separate file.
71587         (u16_mbtouc): Use ucs4_t, uint16_t types.
71588         * lib/unistr/utf16-ucs4.c: New file.
71589
71590         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71591         (Depends-on): Add unitypes.
71592         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71593         (u8_uctomb_aux): Move out to separate file.
71594         (u8_uctomb): Use ucs4_t, uint8_t types.
71595         * lib/unistr/ucs4-utf8.c: New file.
71596
71597         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71598         (Depends-on): Add unitypes.
71599         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71600         (u16_uctomb_aux): Move out to separate file.
71601         (u16_uctomb): Use ucs4_t, uint16_t types.
71602         * lib/unistr/ucs4-utf16.c: New file.
71603
71604 2006-12-25  Bruno Haible  <bruno@clisp.org>
71605
71606         * modules/unitypes: New file.
71607         * lib/unitypes.h: New file.
71608         * MODULES.html.sh (func_all_modules): New section "Unicode string
71609         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71610         this section. Add unitypes.
71611
71612 2007-01-08  Bruno Haible  <bruno@clisp.org>
71613
71614         Avoid variable names that conflict with those from libtool.
71615         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71616         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71617         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71618         library_names_spec to acl_library_names_spec, hardcode_* to
71619         acl_hardcode_*.
71620         Reported by Ralf Wildenhues.
71621
71622 2007-01-08  Bruno Haible  <bruno@clisp.org>
71623
71624         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71625         definition.
71626         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71627         definition.
71628         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71629         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71630         definition.
71631         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71632         definition.
71633         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71634         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71635         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71636         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71637         definition.
71638         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71639         definition.
71640         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71641         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71642         GC_USE_<algorithm>.
71643         * lib/gc-libgcrypt.c: Likewise.
71644         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71645         * modules/gc-arctwo (configure.ac): Likewise.
71646         * modules/gc-des (configure.ac): Likewise.
71647         * modules/gc-hmac-md5 (configure.ac): Likewise.
71648         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71649         * modules/gc-md2 (configure.ac): Likewise.
71650         * modules/gc-md4 (configure.ac): Likewise.
71651         * modules/gc-md5 (configure.ac): Likewise.
71652         * modules/gc-random (configure.ac): Likewise.
71653         * modules/gc-rijndael (configure.ac): Likewise.
71654         * modules/gc-sha1 (configure.ac): Likewise.
71655
71656 2007-01-08  Bruno Haible  <bruno@clisp.org>
71657
71658         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71659         macro definition.
71660         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71661         definition.
71662         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71663         definition.
71664         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71665         * modules/fcntl-safer (configure.ac): Likewise.
71666         * modules/fopen-safer (configure.ac): Likewise.
71667         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71668         GNULIB_FWRITEERROR macro definition.
71669
71670 2007-01-08  Bruno Haible  <bruno@clisp.org>
71671
71672         * m4/gnulib-common.m4: New file.
71673         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71674         (func_get_filelist): Add m4/gnulib-common.m4.
71675
71676 2007-01-08  Bruno Haible  <bruno@clisp.org>
71677
71678         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71679         command.
71680
71681 2007-01-08  Jim Meyering  <jim@meyering.net>
71682
71683         Use a more robust test for a "can't happen" condition.
71684         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71685         narrowed the st_size value.  Presuming the "can't happen" condition
71686         is true, that narrowing could conceivably convert an invalid st_size
71687         value into a valid one.  Instead, use a change based on Matthew
71688         Woehlke's original patch.
71689
71690         Slight readability improvement: use an assert-like macro
71691         in place of literal "abort ()" uses.
71692         * lib/fts.c (fts_assert): Define.
71693         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71694         Use this macro instead of a bare 'abort'.
71695
71696 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71697
71698         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71699         simply work around them.
71700         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71701         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71702         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71703         declaring.
71704         Don't bother to define as macros, since the standard doesn't require it.
71705         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71706         longer worry about IRIX 5.3.
71707         (HAVE_WCTYPE_CTMP_BUG): Remove.
71708
71709 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71710
71711         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71712         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71713         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71714         Problems reported by Georg Schwarz for IRIX 5.3.
71715
71716         * gnulib-tool (autoconf_minversion): Take the maximum version number
71717         found, not the minimum.  Problem reported by James Youngman.
71718
71719 2007-01-03  Karl Berry  <karl@gnu.org>
71720
71721         * doc/error.texi: new file, explaining interaction with progname.
71722         * doc/gnulib.texi: include it.  Update copyright.
71723
71724 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71725
71726         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71727         AC_CANONICAL_HOST, to improve autobuild outputs.
71728
71729 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71730             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71731
71732         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71733         sockets, server sockets, and other file descriptors.  Count errors
71734         to compute the return value.  Reorder the code a bit to be easier
71735         to follow.  Don't set event bits that were not requested (except
71736         POLLERR and POLLHUP).
71737
71738 2007-01-01  Bruno Haible  <bruno@clisp.org>
71739
71740         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71741
71742 2007-01-03  Jim Meyering  <jim@meyering.net>
71743
71744         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71745
71746 2007-01-02  Bruno Haible  <bruno@clisp.org>
71747
71748         * modules/settime (Include): Require timespec.h.
71749         * modules/nanosleep (Include): Likewise.
71750
71751 2007-01-01  Bruno Haible  <bruno@clisp.org>
71752
71753         * gnulib-tool (func_emit_copyright_notice): Bump year.
71754         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71755
71756 2007-01-01  Bruno Haible  <bruno@clisp.org>
71757
71758         Improve support for OpenBSD.
71759         * build-aux/config.rpath (libname_spec): Export.
71760         (library_names_spec): New variable. Export.
71761         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71762         library_names_spec from the config.rpath output. Locate shared library
71763         through the name pattern in library_names_spec.
71764
71765 2007-01-01  Eric Blake  <ebb9@byu.net>
71766
71767         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71768
71769 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71770
71771         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71772         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71773         assume the C locale, and avoid an "eval" that could cause trouble.
71774         Problem with SORT reported by Bob Proulx.
71775
71776         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71777         Define.  Trivial patch from Henning Nielsen Lund, originally
71778         sent to bug-grep@gnu.org today.
71779
71780 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71781
71782         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71783         struct stat.  Problem reported by Henning Nielsen Lund.
71784         * lib/acl.c: Include acl.h first, to check interface.  Don't
71785         bother to include sys/types.h and sys/stat.h again.
71786
71787 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71788
71789         Import the following change from libc; problem reported by
71790         Sven Verdoolaege.
71791
71792         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71793
71794         [BZ #1373]
71795         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71796
71797 2006-12-28  Jim Meyering  <jim@meyering.net>
71798
71799         * build-aux/announce-gen: Do not assume that the package
71800         builds any of tar.gz, tar.bz2, and .xdelta files.
71801         Suggestion from Simon Josefsson.
71802
71803 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71804
71805         * modules/announce-gen: New file.
71806
71807 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71808
71809         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71810         handles its gotchas now.
71811         * lib/mbswidth.c: Likewise.
71812         * lib/wcwidth.h: Likewise.
71813         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71814         and iswcntrl; the wctype module does this stuff now.
71815         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71816         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71817         * modules/mbchar (Depends-on): Add wctype.
71818         * modules/mbswidth (Depends-on): Likewise.
71819         * modules/wcwidth (Depends-on): Likewise.
71820
71821 2006-12-27  Eric Blake  <ebb9@byu.net>
71822
71823         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71824         module uses more than what <wctype.h> is required to provide.
71825
71826 2006-12-26  Eric Blake  <ebb9@byu.net>
71827
71828         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71829
71830 2006-12-26  Eric Blake  <ebb9@byu.net>
71831
71832         * modules/absolute-header: New module.
71833         * modules/fcntl (Depends-on): Depend on it.
71834         * modules/inttypes (Depends-on): Likewise.
71835         * modules/stdint (Depends-on): Likewise.
71836         * modules/sys_stat (Depends-on): Likewise.
71837         * modules/wctype (Depends-on): Likewise.
71838         * MODULES.html.sh (Support for building libraries and
71839         executables): Document it.
71840
71841 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71842
71843         * gnulib-tool (SED): Remove, undoing previous change.
71844         The problem was that it broke coreutils on Solaris, because
71845         "sed --posix" leaked into a makefile.
71846         (sed): New alias, if 'alias' and GNU sed.
71847
71848 2006-12-24  Jim Meyering  <jim@meyering.net>
71849
71850         Work around an fchownat bug in glibc-2.4:
71851         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71852         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71853         in spite of the -P option.
71854         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71855         New macros.
71856         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71857         * modules/openat (Files): Add lib/fchownat.c.
71858         * lib/openat.c (fchownat): Don't define here.  Move to...
71859         * lib/fchownat.c: ...this new file.
71860
71861 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71862
71863         Fix bug reported by Bruno Haible in
71864         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71865         where quotearg.c didn't compile on Mac OS X 10.2 because it
71866         lacks <wchar.h> and wint_t.
71867         * lib/wctype_.h (__wctype_wint_t): New type.
71868         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71869         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71870         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71871         Arg is now of type __wctype_wint_t, not wint_t.
71872         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71873         substitute HAVE_WINT_T.
71874         * modules/wctype (Files): Add m4/wint_t.m4.
71875         (wctype.h): Substitute HAVE_WINT_T.
71876
71877 2006-12-23  Bruno Haible  <bruno@clisp.org>
71878
71879         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71880
71881 2006-12-23  Bruno Haible  <bruno@clisp.org>
71882
71883         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71884         S_ISLNK.
71885         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71886         mingw.
71887
71888 2006-12-22  Bruno Haible  <bruno@clisp.org>
71889
71890         * lib/copy-file.c: Include acl.h.
71891         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71892         Close the file descriptors only after being done with copy_acl.
71893         * modules/copy-file (Depends-on): Add acl.
71894
71895 2006-12-22  Bruno Haible  <bruno@clisp.org>
71896
71897         * gnulib-tool (SED): New variable.
71898         Use $SED instead of sed everywhere.
71899
71900 2006-12-22  Bruno Haible  <bruno@clisp.org>
71901
71902         * modules/no-c++: New file.
71903         * m4/no-c++.m4: New file.
71904         * MODULES.html.sh (Support for building libraries and executables):
71905         Add no-c++.
71906
71907 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71908
71909         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71910         Include <limits.h>, and use its INT_MAX to rewrite the
71911         j loop so that it does not overflow 'int'.  Problem reported by
71912         Ralf Wildenhues in
71913         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71914         Play it safe by shifting left by 1 rather than multiplying by 2,
71915         as GCC is less likely to optimize this away when the value
71916         is signed (when it assumes overflow leads to undefined behavior).
71917         Also, don't assume time_t uses two's complement.
71918
71919 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71920
71921         * MODULES.html.sh: New module wctype.
71922         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71923         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71924         <wctype.h>, since the new wctype module should fix this.
71925         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71926         the wctype module should arrange for it.
71927         * lib/regex_internal.h: Likewise.
71928         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71929         since the wctype module should handle this now.
71930         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71931         * modules/fnmatch (Depends-on): Add wctype.
71932         * modules/quotearg (Depends-on): Likewise.
71933         * modules/regex (Depends-on): Likewise.
71934
71935 2006-12-19  Bruno Haible  <bruno@clisp.org>
71936
71937         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71938         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71939
71940 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71941
71942         * modules/savewd (Depends-on): Fix dependency on fcntl.
71943
71944 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71945
71946         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71947         conforms to C99, rather than relying on the user's environment
71948         setting of STDINT_H.
71949
71950 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71951         and Eric Blake  <ebb9@byu.net>
71952
71953         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71954         This is more consistent with the other defines here.
71955         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71956         Port to z/OS.  Problem reported by Paul Gilmartin.
71957         Change local vars to use gl_ prefix rather than ac_.
71958         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71959         with other defines.
71960         * modules/double-slash-root: New module.
71961         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71962         (Depends-on): Add double-slash-root.
71963         * MODULES.html.sh (File system functions): Mention new module.
71964
71965 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71966
71967         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71968         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71969         This is for the benefit of gzip, which doesn't do i18n.
71970
71971 2006-12-12  Jim Meyering  <jim@meyering.net>
71972
71973         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71974         Reported by Andreas Schwab <schwab@suse.de>.
71975
71976 2006-12-12  Bruno Haible  <bruno@clisp.org>
71977
71978         Merge these changes.
71979         2006-09-05  Bruno Haible  <bruno@clisp.org>
71980         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71981         iconv_alloc succeeded.
71982         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71983         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71984         test for " && dest " at the end - dest is always != NULL there. Call
71985         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71986         with 2xNULL arguments, also to flush the state storage. Handle the
71987         IRIX iconv behaviour. Realloc the final result, to throw away unused
71988         memory.
71989
71990 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71991
71992         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71993         and fchmodat unconditionally, since glibc 2.4 has them.
71994         Problem reported by Arkadiusz Miskiewicz.
71995
71996 2006-12-10  Bruno Haible  <bruno@clisp.org>
71997
71998         * gnulib-tool (func_import): Show the include files only for those
71999         modules that are copied and specified.
72000         Reported by Karl Berry.
72001
72002 2006-12-08  Jim Meyering  <jim@meyering.net>
72003
72004         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
72005         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
72006
72007         * build-aux/announce-gen: Add two new options, both optional:
72008         --bootstrap-tools=TOOL_LIST
72009               a comma-separated list of tools, e.g.,
72010               autoconf,automake,bison,gnulib
72011         --gnulib-snapshot-date=DATE
72012               if gnulib is in the bootstrap tool list,
72013               then report this as the snapshot date.
72014               If not specified, use the current date/time.
72015               If you specify a date here, be sure it's UTC.
72016
72017 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72018
72019         * tests/test-argp-2.sh: Fix test to match actual output.
72020         (func_compare): Fix sed script to be portable.
72021
72022 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
72023
72024         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
72025         workaround for this case.  It is not autoconfigured now; offhand
72026         it's hard to see how to autoconfigure it.
72027
72028 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
72029
72030         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
72031         a directory that is about to be chowned.  Such a directory's
72032         initial file permissions should permit the owner only and this
72033         should not be changed until after the chown, since the group and
72034         other bits would be incorrect if they granted permission before
72035         the chown.
72036
72037         Fix porting problem for iswctype reported by Georg Schwarz in:
72038         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
72039         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
72040         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
72041         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
72042         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
72043
72044 2006-12-03  Jim Meyering  <jim@meyering.net>
72045
72046         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
72047         p->fts_statp may not yet be defined.
72048         (fts_read): Instead, set it in the caller, once p->fts_statp is
72049         sure to be defined, and corresponds to a top-level directory.
72050         This bug made du -x fail.  Here's the coreutils test case:
72051         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
72052         Reported by Mike Frysinger.
72053
72054 2006-12-01  Jim Meyering  <jim@meyering.net>
72055
72056         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
72057         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
72058         Reported by Simon Josefsson.
72059
72060 2006-11-30  Jim Meyering  <jim@meyering.net>
72061
72062         * m4/warning.m4: Use the all-permissive copyright notice
72063         recommended by RMS (rather than LGPL).
72064         * m4/vararrays.m4: Likewise.
72065         * m4/flexmember.m4: Likewise.
72066
72067 2006-11-29  Bruno Haible  <bruno@clisp.org>
72068
72069         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72070         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
72071         using +=.
72072         Reported by Simon Josefsson <simon@josefsson.org>.
72073
72074 2006-11-28  James Youngman <jay@gnu.org>
72075
72076         * README: Advise users that they might find the bug-gnulib@gnu.org
72077         and autotools-announce@gnu.org mailing lists useful.
72078
72079 2006-11-28  Bruno Haible  <bruno@clisp.org>
72080
72081         * m4/ptrdiff_max.m4: Remove file.
72082
72083 2006-11-21  Bruno Haible  <bruno@clisp.org>
72084
72085         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
72086         _AC_COMPUTE_INT.
72087         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72088         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
72089         _AC_COMPUTE_INT.
72090         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72091         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
72092         _AC_COMPUTE_INT.
72093         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72094
72095 2006-11-28  Jim Meyering  <jim@meyering.net>
72096
72097         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
72098         warning from "gcc -Wshadow" about shadowing the builtin.
72099
72100 2006-11-27  Bruno Haible  <bruno@clisp.org>
72101
72102         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
72103         _AC_COMPUTE_INT.
72104         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72105
72106 2006-11-27  Bruno Haible  <bruno@clisp.org>
72107             Paul Eggert  <eggert@cs.ucla.edu>
72108
72109         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
72110
72111 2006-11-26  Bruno Haible  <bruno@clisp.org>
72112
72113         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72114         noinst_LTLIBRARIES.
72115
72116 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72117             Bruno Haible  <bruno@clisp.org>
72118
72119         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
72120         if compiling with "gcc -ansi".
72121
72122 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72123
72124         Fix some incompatibilities with gcc -ansi -pedantic.
72125         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
72126         if compiling pedantically with GCC, unless it's C99 or later.
72127         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
72128         it mishandles gcc -ansi -pedantic as well.
72129         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
72130         if gcc -pedantic.
72131         * lib/regexec.c (check_node_accept_bytes): Don't use auto
72132         initializers for struct if -pedantic, unless it's C99 or later.
72133
72134 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
72135
72136         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
72137         Don't close an fd more than once. Identical atimes indicate
72138         success, not failure.
72139
72140 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
72141
72142         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
72143
72144 2006-11-23  Jim Meyering  <jim@meyering.net>
72145
72146         * build-aux/announce-gen: New file.  From coreutils.
72147
72148 2006-11-22  Jim Meyering  <jim@meyering.net>
72149
72150         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
72151         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
72152         (fts_read): Use a temporary to narrow the overused st_size member
72153         before using it in a switch statement.  Reported by Matthew Woehlke.
72154
72155         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
72156         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
72157
72158 2006-11-20  Bruno Haible  <bruno@clisp.org>
72159
72160         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
72161         changequote instead of pairs of brackets.
72162         Reported by Andreas Schwab <schwab@suse.de>.
72163
72164 2006-11-21  Jim Meyering  <jim@meyering.net>
72165
72166         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
72167         so as to remain compatible with older compilers.
72168         Patch from Michael Deutschmann.
72169
72170 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72171
72172         * MODULES.html.sh (File system functions): Add openat.
72173
72174         * lib/openat.h (rpl_fstatat): New macro, if
72175         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
72176         (fstatat): Define to rpl_fstatat under the same conditions,
72177         unless COMPILING_FSTATAT.
72178         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
72179         seems to have the bug.
72180         * lib/fstatat.c: New file.
72181         * modules/openat (Files): Add it.
72182
72183 2006-11-20  Bruno Haible  <bruno@clisp.org>
72184
72185         * Makefile: New file.
72186
72187 2006-11-20  Jim Meyering  <jim@meyering.net>
72188
72189         The beginnings of syntax-related checks for gnulib.
72190         * lib/Makefile: New file.
72191         * lib/t-idcache: New script.  Ensure that the two halves of
72192         idcache.c stay in sync.
72193
72194         * lib/idcache.c: Adjust comments in user- and group- portions to
72195         be more accurate, and to be consistent with one another.
72196
72197 2006-11-20  Jim Meyering  <jim@meyering.net>
72198
72199         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
72200         continue using the flexible array member (thus, this module performs
72201         half as many malloc calls), with the addition that...
72202         (getgroup, getuser): Consistently record a non-match via an empty
72203         "name" string, and map an empty string match to a NULL return value.
72204         * modules/idcache (Depends-on): Re-add flexmember.
72205
72206         * lib/idcache.c (getuser): Remove all uses of the register keyword.
72207         (getuidbyname, getgroup, getgidbyname): Likewise.
72208
72209         Use cleaner syntax: NULL rather than 0.
72210         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
72211
72212 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72213
72214         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
72215         It mishandled the case where the group was missing.
72216         Problem reported by Greg Schafer.
72217         * modules/idcache: Likewise.
72218
72219 2006-11-18  Jim Meyering  <jim@meyering.net>
72220
72221         * check-module (%exempt_header): Add exception for some
72222         conditionally-included headers.
72223
72224         * modules/i-ring (Depends-on): Add verify.
72225         (License): Change to LGPL.
72226
72227 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72228
72229         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
72230         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
72231         and inttostr.h.  Use snprintf rather than uinttostr, so that
72232         LGPLed code doesn't depend on GPLed.
72233
72234 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72235
72236         * modules/inline (License): Change from GPL to LGPL.
72237
72238 2006-11-17  Jim Meyering  <jim@meyering.net>
72239
72240         * modules/d-type (License): Switch to LGPL.
72241
72242 2006-11-15  Bruno Haible  <bruno@clisp.org>
72243
72244         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
72245
72246 2006-11-15  Eric Blake  <ebb9@byu.net>
72247
72248         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
72249         the module dependency.
72250
72251 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72252             Bruno Haible  <bruno@clisp.org>
72253
72254         * gnulib-tool (func_create_testdir): Add license consistency check.
72255
72256 2006-11-15  Eric Blake  <ebb9@byu.net>
72257
72258         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
72259         random "(cached)" in configure output.
72260
72261 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72262
72263         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
72264         test for conforming inttypes.h is both announced and cached.
72265
72266         * MODULES.html.sh (seen_modules, seen_files): New variables.
72267         (func_module): Rewrite to use a few less gnulib-tool and sed
72268         invocations.  Avoid a couple of quadratic algorithms for ...
72269         (missed_modules, missed_files): ... these, with ...
72270         (func_append, func_tmpdir): ... these new functions, from
72271         gnulib-tool.  Analogously, install traps for cleanup.
72272
72273         * tests/test-gc.c (main): Remove unused variables.
72274         * tests/test-read-file.c: Include stdlib.h, for 'free'.
72275
72276 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
72277
72278         * modules/inttostr (License): Change to LGPL.
72279
72280 2006-11-14  Eric Blake  <ebb9@byu.net>
72281
72282         * modules/tempname (License): Change to LGPL.
72283
72284 2006-11-14  Eric Blake  <ebb9@byu.net>
72285
72286         * doc/functions.texi (Function Portability): *printf functions on
72287         Cygwin now understand all POSIX size specifiers.
72288
72289 2006-11-14  Bruno Haible  <bruno@clisp.org>
72290
72291         * modules/c-ctype (License): Change to LGPL.
72292
72293 2006-11-12  Bruno Haible  <bruno@clisp.org>
72294
72295         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
72296         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
72297         for GNOME libraries, for which the include files are installed in
72298         subdirectories of $prefix/include.
72299
72300 2006-11-12  Bruno Haible  <bruno@clisp.org>
72301
72302         * m4/lib-link.m4: Require at least autoconf-2.54.
72303         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
72304         name to underscores for the --with option.
72305
72306 2006-11-13  Bruno Haible  <bruno@clisp.org>
72307
72308         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
72309         the tests directory.
72310         Reported by Ralf Wildenhues.
72311
72312 2006-11-13  Bruno Haible  <bruno@clisp.org>
72313
72314         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
72315         (func_emit_initmacro_end): Undo the override here.
72316         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
72317         Works around the famous automake error in coreutils.
72318
72319 2006-11-13  Eric Blake  <ebb9@byu.net>
72320
72321         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
72322         element, not its node.
72323
72324 2006-11-12  Bruno Haible  <bruno@clisp.org>
72325
72326         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
72327         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
72328
72329 2006-11-12  Bruno Haible  <bruno@clisp.org>
72330
72331         * gnulib-tool: New option --local-symlink.
72332         (func_usage): Document it.
72333         (lsymbolic): New variable.
72334         (func_import, func_create_testdir): If --symlink was not specified,
72335         test whether --local-symlink was specified and the file comes from
72336         the local_gnulib_dir.
72337
72338 2006-11-12  Bruno Haible  <bruno@clisp.org>
72339
72340         * gnulib-tool (func_ln): New function.
72341         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
72342
72343 2006-11-12  Bruno Haible  <bruno@clisp.org>
72344
72345         Finish support for source files in subdirectories.
72346         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
72347         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
72348         AUTOMAKE_OPTIONS.
72349         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
72350
72351 2006-11-12  Bruno Haible  <bruno@clisp.org>
72352
72353         * gnulib-tool (func_get_automake_snippet): Synthesize also an
72354         EXTRA_lib_SOURCES augmentation.
72355         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
72356
72357 2006-11-12  Jim Meyering  <jim@meyering.net>
72358
72359         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
72360         file descriptors.  This also averts a failure on systems with
72361         native openat support when a traversed directory lacks "x" access.
72362         * lib/fts_.h: Include "i-ring.h"
72363         (struct FTS) [fts_fd_ring]: New member.
72364         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
72365         (FCHDIR): Add parentheses.
72366         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
72367         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
72368         When descending, rather than simply closing the previous
72369         fts_cwd_fd value, push that file descriptor onto the ring.
72370         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
72371         (fts_open): Initialize the new fd_ring member.
72372         (fts_close): Clear the ring.
72373         (fts_safe_changedir): When possible, use our new fd_ring to skip
72374         the diropen and fstat and dev/ino comparison that would normally
72375         accompany a virtual `chdir ("..")'.
72376
72377         * modules/fts (Depends-on): Add i-ring.
72378         * modules/i-ring: New module.
72379         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
72380         * m4/i-ring.m4: New file.
72381
72382 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72383
72384         * gnulib-tool (func_create_testdir): Fix replacement of
72385         `build-aux' in configure.ac.  Run autotools in gltests
72386         subdirectory.
72387         (func_create_testdir, func_create_megatestdir, test): There is
72388         no need for '--force' in most autotool invocations in a new
72389         tree.  Actually fail the whole test if any of the tools, or the
72390         configure or make stages fail.
72391
72392         Sync from Automake.
72393         * build-aux/gnupload: Revert last change.  Add pointer to upload
72394         instructions of the GNU Maintenance Instructions.
72395         Suggestion by Karl Berry.
72396
72397 2006-11-10  Jim Meyering  <jim@meyering.net>
72398
72399         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
72400
72401 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72402
72403         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
72404         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
72405         (bind_textdomain_codeset) [! ENABLE_NLS]:
72406         Evaluate all the arguments.  That way, callers get compatible behavior
72407         if the arguments have side effects.  Also, it avoids some GCC
72408         diagnostics in some cases; Joel E. Denny reported problems when Bison
72409         was configured with --enable-gcc-warnigs.
72410
72411 2006-11-10  Jim Meyering  <jim@meyering.net>
72412
72413         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
72414         relevant options in CFLAGS (like -O, -fno-inline) are taken into
72415         account.
72416
72417 2006-11-10  Jim Meyering  <jim@meyering.net>
72418
72419         * modules/inline: New file/module.
72420         * modules/xalloc (Files): Remove m4/inline.m4.
72421         (Depends-on): Add inline, instead.
72422         * modules/oset: Likewise.
72423         * modules/list: Likewise.
72424
72425 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72426
72427         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
72428         Problem reported by Matthew Woehlke.
72429
72430 2006-11-09  Bruno Haible  <bruno@clisp.org>
72431
72432         * lib/tempname.c (gen_tempname): Remove variant that invokes
72433         __gen_tempname.
72434         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
72435         __gen_tempname.
72436
72437 2006-11-08  Bruno Haible  <bruno@clisp.org>
72438
72439         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
72440         to 'yes' instead of 'cross-compiling'.
72441
72442 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
72443
72444         * lib/quotearg.h (quotearg_free): New decl.
72445         * lib/quotearg.c (quotearg_free): New function.
72446         (slot0, nslots, slotvec0, slotvec):
72447         Now file-scope so that quotearg_free can get at them.
72448
72449 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72450
72451         Sync from Automake.
72452         * build-aux/gnupload: Add missing 'gnu' to example URL.
72453         Report by Karl Berry.
72454
72455 2006-11-08  Bruno Haible  <bruno@clisp.org>
72456
72457         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
72458         Suggested by Paul Eggert.
72459
72460 2006-11-08  Jim Meyering  <jim@meyering.net>
72461
72462         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
72463         It's already included if !_LIBC.
72464         (fts_safe_changedir): Add a comment.
72465
72466 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72467
72468         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
72469         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
72470         Matthew Woehlke.
72471
72472         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
72473         definitions up, to avoid colliding with change below.
72474         (static_inline) [HAVE_INLINE]: New macro.
72475         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
72476         Provide extern decls when !HAVE_INLINE.  Do not define unless
72477         static_inline is defined, either by us or by xmalloc.c.  Use
72478         static_inline rather than static inline.
72479         (XCALLOC): Optimize sizeof(T) = 1 case.
72480         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
72481
72482 2006-11-07  Bruno Haible  <bruno@clisp.org>
72483
72484         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
72485         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
72486         AC_C_INLINE.
72487         * modules/xalloc (Files): Add m4/inline.m4.
72488
72489 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72490
72491         * README: Fix typo.
72492         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
72493         (Miscellanous Notes): ...from this.
72494
72495 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72496
72497         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
72498         Mention that offsetof should be used instead of sizeof.
72499         From Bruno Haible.
72500
72501 2006-11-07  Bruno Haible  <bruno@clisp.org>
72502
72503         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
72504
72505 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72506
72507         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72508         * lib/gl_anyavltree_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):
72511         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
72512         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
72513         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72514         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
72515         (gl_linked_add_after, gl_linked_add_at): Likewise.
72516         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
72517         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72518         (gl_tree_add_before, gl_tree_add_after): Likewise.
72519         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
72520         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
72521         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72522
72523 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72524
72525         * lib/gl_oset.h: Use C comment style, not C++ comment style.
72526
72527 2006-11-06  Bruno Haible  <bruno@clisp.org>
72528
72529         * m4/inline.m4: New file.
72530         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
72531         * modules/list (Files): Add m4/inline.m4.
72532         * modules/oset (Files): Likewise.
72533
72534 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72535
72536         * lib/idcache.c: Include <stddef.h>, for offsetof.
72537         (struct userid.name): Change from char * to a flexible array member.
72538         All uses changed.
72539         * modules/idcache (Depends-on): Add flexmember.
72540
72541         * MODULES.html.sh (Core language properties): New module flexmember.
72542         * modules/flexmember, m4/flexmember.m4: New files.
72543
72544         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
72545         inline functions that are identical with the old xnmalloc_inline,
72546         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
72547         that we can avoid some unnecessary integer multiplications and
72548         divisions in the common case where the element size is known at
72549         compile time.
72550         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
72551         needed.
72552         (xnboundedmalloc): Remove.
72553         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
72554         arguments, for consistency with rest of this header.
72555         (xcharalloc): Rewrite using XNMALLOC.
72556         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72557         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72558         versions have been moved to lib/xalloc.h and renamed to be the
72559         non-*_inline versions.
72560         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72561         and xnrealloc functions, since those functions are now inline and
72562         now call us.
72563         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72564         renaming described above.
72565         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72566         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72567         captures the dependency in AC_C_INLINE.
72568
72569         New module canonicalize-lgpl, proposed by Charles Wilson in
72570         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72571         with a few small changes afterwards.
72572         * MODULES.html.sh (File system functions): New module
72573         canonicalize-lgpl.
72574         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72575         and canonicalize_file_name.
72576         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72577         * modules/canonicalize-lgpl: New files.
72578
72579 2006-11-05  Bruno Haible  <bruno@clisp.org>
72580
72581         * gnulib-tool (func_import, func_create_testdir): Create directories
72582         also for files in subdirectories of lib/.
72583
72584 2006-11-05  Bruno Haible  <bruno@clisp.org>
72585
72586         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72587         ANSI C compliant.
72588
72589 2006-11-03  Bruno Haible  <bruno@clisp.org>
72590
72591         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72592         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72593         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72594         (xnboundedmalloc): New inline function.
72595         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72596         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72597         xmalloc.
72598         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72599         xmalloc.
72600         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72601         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72602         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72603         xmalloc.
72604         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72605         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72606         xmalloc.
72607         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72608         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72609         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72610         xmalloc.
72611         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72612         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72613         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72614         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72615         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72616         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72617         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72618
72619 2006-11-03  Bruno Haible  <bruno@clisp.org>
72620
72621         * lib/c-ctype.h [C++]: Define functions without name mangling.
72622         * lib/fwriteerror.h [C++]: Likewise.
72623         * lib/gcd.h [C++]: Likewise.
72624         * lib/linebreak.h [C++]: Likewise.
72625
72626 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72627
72628         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72629         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72630         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72631         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72632         Check for functions and headers just once.
72633         Check for declaration of canonicalize_file_name.
72634         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72635
72636 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72637
72638         * gnulib-tool (func_import): Fix typo in actioncmd.
72639
72640 2006-11-02  Bruno Haible  <bruno@clisp.org>
72641
72642         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72643         newline sequence in the Makefile.am snippet as a space, like "make"
72644         does.
72645         Reported by Roger Persson <perrog@gmail.com>.
72646
72647 2006-11-01  Bruno Haible  <bruno@clisp.org>
72648
72649         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72650         already declared in <string.h>.
72651         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72652
72653 2006-11-01  Bruno Haible  <bruno@clisp.org>
72654
72655         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72656         * lib/strcase.h: Include <string.h>.
72657         (strcasecmp): Define to rpl_strcasecmp here.
72658
72659 2006-11-01  Bruno Haible  <bruno@clisp.org>
72660
72661         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72662
72663 2006-11-01  Eric Blake  <ebb9@byu.net>
72664
72665         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72666
72667         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72668
72669 2006-10-29  Bruno Haible  <bruno@clisp.org>
72670
72671         Make it compile in C++ mode.
72672         * lib/full-write.c (full_rw): Add a cast.
72673
72674 2006-11-01  Bruno Haible  <bruno@clisp.org>
72675
72676         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72677         be POSIX compliant.
72678         Reported by Roger Persson <perrog@gmail.com>.
72679
72680 2006-11-01  Eric Blake  <ebb9@byu.net>
72681
72682         * lib/getopt_.h: Fix comments.
72683
72684 2006-10-31  Eric Blake  <ebb9@byu.net>
72685
72686         * modules/tmpdir (Depends-on): Add sys_stat.
72687         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72688         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72689         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72690         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72691         tempname.
72692
72693 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72694
72695         Avoid some C++ diagnostics reported by Bruno Haible.
72696         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72697         xmalloc.
72698         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72699         (struct slotvec): Move to top level.
72700         (quotearg_n_options): Rewrite to avoid xmalloc.
72701         * lib/xalloc.h (xcharalloc): New function.
72702         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72703         [defined __cplusplus]: Add function template that provides result
72704         type propagation.  This part of the change is from Bruno Haible.
72705
72706 2006-10-29  Bruno Haible  <bruno@clisp.org>
72707
72708         Make it compile in C++ mode.
72709         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72710         * lib/strnlen1.c (strnlen1): Cast memchr result.
72711         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72712         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72713         (create_temp_dir): Rename local variable 'template'.
72714         (compile_csharp_using_sscli): Add cast.
72715         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72716         * lib/findprog.c (find_in_path): Likewise.
72717         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72718         * lib/wait-process.c (register_slave_subprocess): Likewise.
72719
72720 2006-10-22  Bruno Haible  <bruno@clisp.org>
72721
72722         * modules/tsearch: New file.
72723         * lib/tsearch.h: New file.
72724         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72725         * m4/tsearch.m4: New file.
72726         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72727
72728 2006-10-29  Eric Blake  <ebb9@byu.net>
72729
72730         * lib/arcfour.c: Assume config.h.
72731         * lib/arctwo.c: Likewise.
72732         * lib/base64.c: Likewise.
72733         * lib/check-version.c: Likewise.
72734         * lib/crc.c: Likewise.
72735         * lib/des.c: Likewise.
72736         * lib/gc-gnulib.c: Likewise.
72737         * lib/gc-libgcrypt.c: Likewise.
72738         * lib/gc-pbkdf2-sha1.c: Likewise.
72739         * lib/getaddrinfo.c: Likewise.
72740         * lib/getdelim.c: Likewise.
72741         * lib/getline.c: Likewise.
72742         * lib/hmac-md5.c: Likewise.
72743         * lib/hmac-sha1.c: Likewise.
72744         * lib/iconvme.c: Likewise.
72745         * lib/md2.c: Likewise.
72746         * lib/md4.c: Likewise.
72747         * lib/memxor.c: Likewise.
72748         * lib/read-file.c: Likewise.
72749         * lib/readline.c: Likewise.
72750         * lib/rijndael-alg-fst.c: Likewise.
72751         * lib/rijndael-api-fst.c: Likewise.
72752         * lib/xgetdomainname.c: Likewise.
72753
72754 2006-10-28  Eric Blake  <ebb9@byu.net>
72755
72756         * lib/xstrndup.c: Assume config.h.
72757
72758 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72759
72760         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72761         stat-macros.h is now for our own macros, whereas stat_h is for
72762         macros in the <sys/stat.h> name space.
72763         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72764         (STAT_MACROS_H): Remove.
72765         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72766         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72767         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72768         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72769         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72770         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72771         Move these macros to ...
72772         * lib/stat_.h: here.  Don't include stat-macros.h.
72773         * lib/canonicalize.c: Don't include stat-macros.h.
72774         * lib/chown.c: Likewise.
72775         * lib/euidaccess.c: Likewise.
72776         * lib/file-type.c: Likewise.
72777         * lib/filemode.c: Likewise.
72778         * lib/glob.c: Likewise.
72779         * lib/isapipe.c: Likewise.
72780         * lib/lchown.c: Likewise.
72781         * lib/lstat.c: Likewise.
72782         * lib/mkdir-p.c: Likewise.
72783         * lib/rmdir.c: Likewise.
72784         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72785         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72786         unless mkdir isn't declared, to speed up 'configure'.
72787         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72788         would define all the S_* symbols.
72789         * modules/canonicalize (Depends-on):
72790         Depend on sys_stat, not stat-macros.
72791         * modules/chown: Likewise.
72792         * modules/euidaccess: Likewise.
72793         * modules/filemode: Likewise.
72794         * modules/file-type: Likewise.
72795         * modules/glob: Likewise.
72796         * modules/isapipe: Likewise.
72797         * modules/lchown: Likewise.
72798         * modules/lstat: Likewise.
72799         * modules/mkancesdirs: Likewise.
72800         * modules/rmdir: Likewise.
72801         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72802         * modules/modechange: Likewise.
72803         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72804         (configure.ac): Remove gl_STAT_MACROS.
72805         * modules/sys_stat (Depends-on): Remove stat-macros.
72806
72807 2006-10-27  Bruno Haible  <bruno@clisp.org>
72808
72809         * m4/signed.m4: Remove file.
72810         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72811         invocation.
72812         * modules/vasnprintf (Files): Remove m4/signed.m4.
72813
72814 2006-10-27  Bruno Haible  <bruno@clisp.org>
72815
72816         Update to GNU gettext 0.16.
72817         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72818         m4/inttypes-h.m4, m4/signed.m4.
72819         * m4/gettext.m4: Update to GNU gettext 0.16.
72820         * m4/intl.m4: New file, from GNU gettext.
72821         * m4/intldir.m4: New file, from GNU gettext.
72822         * config/srclist.txt: Update
72823
72824 2006-10-27  Eric Blake  <ebb9@byu.net>
72825
72826         * MODULES.html.sh: Document tempname.
72827         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72828         dependencies.
72829         (Files): Move lib/tempname.c...
72830         * modules/tempname: ...to this new module.
72831         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72832         (gl_PREREQ_TEMPNAME): Move...
72833         * m4/tempname.m4: ...to this new file.
72834         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72835         * modules/sys_stat (Depends-on): Add stat-macros.
72836         * lib/stat_.h (includes): Pick up stat macros.
72837         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72838         if stat macros are broken.
72839         * lib/tempname.c (includes): No need to include "stat-macros.h".
72840         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72841         (direxists, __path_search) [!_LIBC]: Don't compile these in
72842         gnulib; the tmpdir module covers that.
72843         * lib/tempname.h: New file.
72844
72845 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72846
72847         * COPYING: Explain how gnulib-tool converts licence headers.
72848         Almost all wording by Eric Blake.
72849
72850 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72851
72852         * lib/mbchar.h (is_basic_table): Make read-only.
72853         * lib/mbchar.c (is_basic_table): Likewise.
72854         Reported by John Darrington.
72855
72856 2006-10-25  Bruno Haible  <bruno@clisp.org>
72857
72858         * lib/progname.h (set_program_name): Undefine before defining.
72859
72860 2006-10-25  Bruno Haible  <bruno@clisp.org>
72861
72862         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72863         false for non-gcc C++ compilers.
72864         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72865
72866 2006-10-24  Bruno Haible  <bruno@clisp.org>
72867
72868         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72869         iconv implementations like Irix iconv.
72870
72871 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72872
72873         * modules/vararrays: New file.
72874         * m4/vararrays.m4: New file, taken from diffutils.
72875         * MODULES.html.sh: New module vararrays.
72876
72877 2006-10-24  Karl Berry  <karl@gnu.org>
72878
72879         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72880         Don't call GNU Unix.
72881
72882 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72883
72884         * users.txt: Add Libtool.
72885
72886         Sync from Libtool:
72887
72888         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72889
72890         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72891         to gnulib's policy of including config.h unconditionally.
72892
72893 2006-10-24  Bruno Haible  <bruno@clisp.org>
72894
72895         * modules/wcwidth (Files): Add m4/wint_t.m4.
72896         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72897         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72898
72899 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72900
72901         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72902         to pacify GCC with some -W flags enabled.  Problem reported by
72903         Bruno Haible.
72904
72905 2006-10-24  Jim Meyering  <jim@meyering.net>
72906
72907         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72908         Reported by Karl Berry.
72909
72910 2006-10-23  Bruno Haible  <bruno@clisp.org>
72911
72912         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72913
72914 2006-10-24  Bruno Haible  <bruno@clisp.org>
72915
72916         * lib/gl_list.h: Use C comment style, not C++ comment style.
72917
72918 2006-10-23  Eric Blake  <ebb9@byu.net>
72919
72920         * lib/getaddrinfo.c (includes): Add missing include.
72921
72922 2006-10-23  Bruno Haible  <bruno@clisp.org>
72923             Paul Eggert  <eggert@cs.ucla.edu>
72924
72925         Ability to rename obstack_free.
72926         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72927         obstack_free.
72928         (obstack_free): Invoke the __obstack_free macro.
72929         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72930
72931 2006-10-23  Bruno Haible  <bruno@clisp.org>
72932             Paul Eggert  <eggert@cs.ucla.edu>
72933
72934         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72935         __argc, __argv from the declaration. (They are defined as macros on
72936         mingw.)
72937
72938 2006-10-22  Bruno Haible  <bruno@clisp.org>
72939
72940         * doc/gnulib-intro.texi: New file.
72941         * doc/gnulib.texi: Include it.
72942
72943 2006-10-21  Bruno Haible  <bruno@clisp.org>
72944
72945         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72946         "Introduction", "Miscellanous Notes", "Particular Modules".
72947
72948 2006-10-21  Bruno Haible  <bruno@clisp.org>
72949
72950         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72951         Change mostlyclean-local rule to avoid sh syntax error from bash
72952         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72953
72954 2006-10-23  Jim Meyering  <jim@meyering.net>
72955
72956         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72957         in place of snprintf.
72958
72959         * modules/inttostr (Files): Add lib/uinttostr.c.
72960         * lib/uinttostr.c (inttostr): New file/function.
72961         * lib/inttostr.h (uinttostr): Declare.
72962         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72963         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72964         Add uinttostr.
72965         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72966
72967 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72968
72969         * lib/canonicalize.c (ELOOP): Define if not already defined.
72970         Problem reported by Bruno Haible in
72971         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72972
72973 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72974
72975         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72976         Problem reported by Perry Smith and Ville Laurikari.
72977
72978         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72979         uses.
72980
72981 2006-10-19  Bruno Haible  <bruno@clisp.org>
72982
72983         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72984         for mingw.
72985
72986 2006-10-19  Bruno Haible  <bruno@clisp.org>
72987
72988         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72989         Needed for mingw.
72990
72991 2006-10-19  Bruno Haible  <bruno@clisp.org>
72992
72993         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72994
72995 2006-10-19  Bruno Haible  <bruno@clisp.org>
72996
72997         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72998         it.
72999
73000 2006-10-19  Bruno Haible  <bruno@clisp.org>
73001
73002         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
73003         invocation.
73004
73005 2006-10-19  Bruno Haible  <bruno@clisp.org>
73006
73007         * gnulib-tool (func_create_testdir): Don't include ftruncate and
73008         mountlist by default.
73009
73010 2006-10-16  Bruno Haible  <bruno@clisp.org>
73011
73012         * lib/c-strstr.c: Include c-strstr.h.
73013
73014 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73015
73016         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
73017         in a slash.
73018
73019 2006-10-18  Bruno Haible  <bruno@clisp.org>
73020
73021         * lib/lock.h [C++]: Wrap definitions in extern "C".
73022
73023 2006-10-18  Bruno Haible  <bruno@clisp.org>
73024
73025         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
73026         gl_LIBOBJS list.
73027
73028 2006-10-18  Bruno Haible  <bruno@clisp.org>
73029
73030         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
73031
73032 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
73033
73034         * lib/xstrtol.h: Include gettext.h.
73035         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
73036         Problem reported by Eric Blake.
73037         * modules/xstrtol (Depends-on): Add gettext-h.
73038
73039 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
73040
73041         * lib/strftime.c (advance): New macro.
73042         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
73043         incomplete type, so you can't add 0 to it.  Problem and patch
73044         reported by Eelco Dolstra for dietlibc.
73045
73046 2006-10-18  Jim Meyering  <jim@meyering.net>
73047
73048         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
73049         type for a local, and rename it: s/up/user_proc/.
73050
73051 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
73052
73053         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
73054         READ_UTMP_USER_PROCESS.
73055         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
73056
73057 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73058
73059         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
73060         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
73061
73062 2006-10-17  Eric Blake  <ebb9@byu.net>
73063
73064         * lib/sigprocmask.c (sigprocmask): Fix typo.
73065
73066         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
73067
73068         * modules/clean-temp (Makefile.am): Don't add to make output...
73069         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
73070         config.h.
73071
73072 2006-10-17  Bruno Haible  <bruno@clisp.org>
73073
73074         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
73075         differently if DEFAULT_TEXT_DOMAIN is set.
73076
73077 2006-10-16  Bruno Haible  <bruno@clisp.org>
73078
73079         * lib/clean-temp.c: Include fwriteerror.h.
73080
73081 2006-10-16  Bruno Haible  <bruno@clisp.org>
73082
73083         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
73084
73085 2006-10-16  Bruno Haible  <bruno@clisp.org>
73086
73087         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
73088         * lib/sigprocmask.h: Include <sys/types.h>.
73089         (sigset_t): Use the system's definition if present.
73090
73091 2006-10-17  Eric Blake  <ebb9@byu.net>
73092
73093         * lib/xvasprintf.c (includes): Assume config.h.
73094         * lib/xasprintf.c (includes): Likewise.
73095
73096 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
73097
73098         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
73099         at least as wide as intmax_t.
73100
73101 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
73102
73103         (Imported from Automake.)
73104         * build-aux/gnupload: Update to version 1.1 of directive file.
73105
73106 2006-10-16  Eric Blake  <ebb9@byu.net>
73107
73108         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
73109         match Automake 1.10a.
73110
73111 2006-10-14  Bruno Haible  <bruno@clisp.org>
73112
73113         * modules/sigprocmask: New file.
73114         * lib/sigprocmask.h: New file.
73115         * lib/sigprocmask.c: New file.
73116         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
73117         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
73118         request sigprocmask.o.
73119         (gl_PREREQ_SIGPROCMASK): New macro.
73120         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
73121         (Depends-on): Add sigprocmask.
73122         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
73123         gt_SIGNALBLOCKING. Test for 'raise' only once.
73124         * lib/fatal-signal.c: Include sigprocmask.h.
73125         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
73126         unblock_fatal_signals): Define always.
73127         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73128         sigprocmask.
73129
73130 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73131
73132         Sync from Automake.
73133         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
73134         which incorrectly sets the mode of an existing destination
73135         directory.  In some cases the unpatched install-sh could do the
73136         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
73137         system.  We hope this is rare in practice, but it's clearly worth
73138         fixing.  Problem reported by Alex Unleashed in
73139         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
73140         Also, don't bother to check for -m bugs unless we're using -m;
73141         suggested by Stepan Kasal.
73142
73143 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73144
73145         Sync from Automake.
73146         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
73147         `-c' flag, so they appear at the same position as in %FASTDEP%
73148         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
73149         which ignores unknown options only after the first non-option.
73150         Bug report against M4 by Nelson H. F. Beebe.
73151
73152 2006-10-13  Jim Meyering  <jim@meyering.net>
73153
73154         Fix a bug in yesterday's change.
73155         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
73156         p->fts_statp->st_dev would be used uninitialized.
73157         Ensures that we always call fts_stat on the very first entry.
73158         Miklos Szeredi reported that find -xdev stopped working.
73159
73160 2006-10-12  Bruno Haible  <bruno@clisp.org>
73161
73162         * gnulib-tool (func_get_automake_snippet): Append an automatically
73163         computed EXTRA_DIST augmentation.
73164         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
73165         * modules/alloca-opt (Makefile.am): Likewise.
73166         * modules/allocsa (Makefile.am): Likewise.
73167         * modules/arcfour (Makefile.am): Likewise.
73168         * modules/arctwo (Makefile.am): Likewise.
73169         * modules/argmatch (Makefile.am): Likewise.
73170         * modules/argz (Makefile.am): Likewise.
73171         * modules/atexit (Makefile.am): Likewise.
73172         * modules/backupfile (Makefile.am): Likewise.
73173         * modules/byteswap (Makefile.am): Likewise.
73174         * modules/c-strtod (Makefile.am): Likewise.
73175         * modules/c-strtold (Makefile.am): Likewise.
73176         * modules/calloc (Makefile.am): Likewise.
73177         * modules/canon-host (Makefile.am): Likewise.
73178         * modules/canonicalize (Makefile.am): Likewise.
73179         * modules/chdir-long (Makefile.am): Likewise.
73180         * modules/chdir-safer (Makefile.am): Likewise.
73181         * modules/check-version (Makefile.am): Likewise.
73182         * modules/chown (Makefile.am): Likewise.
73183         * modules/cloexec (Makefile.am): Likewise.
73184         * modules/close-stream (Makefile.am): Likewise.
73185         * modules/closeout (Makefile.am): Likewise.
73186         * modules/crc (Makefile.am): Likewise.
73187         * modules/csharpexec (Makefile.am): Likewise.
73188         * modules/cycle-check (Makefile.am): Likewise.
73189         * modules/des (Makefile.am): Likewise.
73190         * modules/dev-ino (Makefile.am): Likewise.
73191         * modules/dirfd (Makefile.am): Likewise.
73192         * modules/dirname (Makefile.am): Likewise.
73193         * modules/dup2 (Makefile.am): Likewise.
73194         * modules/eealloc (Makefile.am): Likewise.
73195         * modules/error (Makefile.am): Likewise.
73196         * modules/euidaccess (Makefile.am): Likewise.
73197         * modules/exclude (Makefile.am): Likewise.
73198         * modules/exitfail (Makefile.am): Likewise.
73199         * modules/fcntl-safer (Makefile.am): Likewise.
73200         * modules/fcntl (Makefile.am): Likewise.
73201         * modules/file-type (Makefile.am): Likewise.
73202         * modules/fileblocks (Makefile.am): Likewise.
73203         * modules/filemode (Makefile.am): Likewise.
73204         * modules/filenamecat (Makefile.am): Likewise.
73205         * modules/fnmatch (Makefile.am): Likewise.
73206         * modules/fopen-safer (Makefile.am): Likewise.
73207         * modules/fpending (Makefile.am): Likewise.
73208         * modules/fprintftime (Makefile.am): Likewise.
73209         * modules/free (Makefile.am): Likewise.
73210         * modules/fsusage (Makefile.am): Likewise.
73211         * modules/ftruncate (Makefile.am): Likewise.
73212         * modules/fts (Makefile.am): Likewise.
73213         * modules/gc-arcfour (Makefile.am): Likewise.
73214         * modules/gc-des (Makefile.am): Likewise.
73215         * modules/gc-hmac-md5 (Makefile.am): Likewise.
73216         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
73217         * modules/gc-md4 (Makefile.am): Likewise.
73218         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73219         * modules/gc-sha1 (Makefile.am): Likewise.
73220         * modules/gc (Makefile.am): Likewise.
73221         * modules/getaddrinfo (Makefile.am): Likewise.
73222         * modules/getcwd (Makefile.am): Likewise.
73223         * modules/getdelim (Makefile.am): Likewise.
73224         * modules/getdomainname (Makefile.am): Likewise.
73225         * modules/getgroups (Makefile.am): Likewise.
73226         * modules/gethostname (Makefile.am): Likewise.
73227         * modules/gethrxtime (Makefile.am): Likewise.
73228         * modules/getline (Makefile.am): Likewise.
73229         * modules/getloadavg (Makefile.am): Likewise.
73230         * modules/getlogin_r (Makefile.am): Likewise.
73231         * modules/getndelim2 (Makefile.am): Likewise.
73232         * modules/getopt (Makefile.am): Likewise.
73233         * modules/getpagesize (Makefile.am): Likewise.
73234         * modules/getpass-gnu (Makefile.am): Likewise.
73235         * modules/getpass (Makefile.am): Likewise.
73236         * modules/getsubopt (Makefile.am): Likewise.
73237         * modules/gettime (Makefile.am): Likewise.
73238         * modules/gettimeofday (Makefile.am): Likewise.
73239         * modules/getugroups (Makefile.am): Likewise.
73240         * modules/getusershell (Makefile.am): Likewise.
73241         * modules/glob (Makefile.am): Likewise.
73242         * modules/group-member (Makefile.am): Likewise.
73243         * modules/hard-locale (Makefile.am): Likewise.
73244         * modules/hash (Makefile.am): Likewise.
73245         * modules/hmac-md5 (Makefile.am): Likewise.
73246         * modules/hmac-sha1 (Makefile.am): Likewise.
73247         * modules/human (Makefile.am): Likewise.
73248         * modules/idcache (Makefile.am): Likewise.
73249         * modules/imaxabs (Makefile.am): Likewise.
73250         * modules/imaxdiv (Makefile.am): Likewise.
73251         * modules/inet_ntop (Makefile.am): Likewise.
73252         * modules/inet_pton (Makefile.am): Likewise.
73253         * modules/intprops (Makefile.am): Likewise.
73254         * modules/inttostr (Makefile.am): Likewise.
73255         * modules/inttypes (Makefile.am): Likewise.
73256         * modules/isapipe (Makefile.am): Likewise.
73257         * modules/javaversion (Makefile.am): Likewise.
73258         * modules/lchmod (Makefile.am): Likewise.
73259         * modules/lchown (Makefile.am): Likewise.
73260         * modules/localcharset (Makefile.am): Likewise.
73261         * modules/long-options (Makefile.am): Likewise.
73262         * modules/lstat (Makefile.am): Likewise.
73263         * modules/malloc (Makefile.am): Likewise.
73264         * modules/mathl (Makefile.am): Likewise.
73265         * modules/mbchar (Makefile.am): Likewise.
73266         * modules/md2 (Makefile.am): Likewise.
73267         * modules/md4 (Makefile.am): Likewise.
73268         * modules/md5 (Makefile.am): Likewise.
73269         * modules/memcasecmp (Makefile.am): Likewise.
73270         * modules/memchr (Makefile.am): Likewise.
73271         * modules/memcmp (Makefile.am): Likewise.
73272         * modules/memcoll (Makefile.am): Likewise.
73273         * modules/memcpy (Makefile.am): Likewise.
73274         * modules/memmem (Makefile.am): Likewise.
73275         * modules/memmove (Makefile.am): Likewise.
73276         * modules/mempcpy (Makefile.am): Likewise.
73277         * modules/memrchr (Makefile.am): Likewise.
73278         * modules/memset (Makefile.am): Likewise.
73279         * modules/memxor (Makefile.am): Likewise.
73280         * modules/mkancesdirs (Makefile.am): Likewise.
73281         * modules/mkdir-p (Makefile.am): Likewise.
73282         * modules/mkdir (Makefile.am): Likewise.
73283         * modules/mkdtemp (Makefile.am): Likewise.
73284         * modules/mkstemp (Makefile.am): Likewise.
73285         * modules/mktime (Makefile.am): Likewise.
73286         * modules/modechange (Makefile.am): Likewise.
73287         * modules/mountlist (Makefile.am): Likewise.
73288         * modules/nanosleep (Makefile.am): Likewise.
73289         * modules/obstack (Makefile.am): Likewise.
73290         * modules/openat (Makefile.am): Likewise.
73291         * modules/pagealign_alloc (Makefile.am): Likewise.
73292         * modules/pathmax (Makefile.am): Likewise.
73293         * modules/physmem (Makefile.am): Likewise.
73294         * modules/poll (Makefile.am): Likewise.
73295         * modules/posixtm (Makefile.am): Likewise.
73296         * modules/posixver (Makefile.am): Likewise.
73297         * modules/putenv (Makefile.am): Likewise.
73298         * modules/quote (Makefile.am): Likewise.
73299         * modules/quotearg (Makefile.am): Likewise.
73300         * modules/raise (Makefile.am): Likewise.
73301         * modules/read-file (Makefile.am): Likewise.
73302         * modules/readline (Makefile.am): Likewise.
73303         * modules/readlink (Makefile.am): Likewise.
73304         * modules/readtokens (Makefile.am): Likewise.
73305         * modules/readutmp (Makefile.am): Likewise.
73306         * modules/realloc (Makefile.am): Likewise.
73307         * modules/regex (Makefile.am): Likewise.
73308         * modules/rename-dest-slash (Makefile.am): Likewise.
73309         * modules/rename (Makefile.am): Likewise.
73310         * modules/rijndael (Makefile.am): Likewise.
73311         * modules/rmdir (Makefile.am): Likewise.
73312         * modules/rpmatch (Makefile.am): Likewise.
73313         * modules/safe-read (Makefile.am): Likewise.
73314         * modules/safe-write (Makefile.am): Likewise.
73315         * modules/same-inode (Makefile.am): Likewise.
73316         * modules/same (Makefile.am): Likewise.
73317         * modules/save-cwd (Makefile.am): Likewise.
73318         * modules/savedir (Makefile.am): Likewise.
73319         * modules/setenv (Makefile.am): Likewise.
73320         * modules/settime (Makefile.am): Likewise.
73321         * modules/sha1 (Makefile.am): Likewise.
73322         * modules/sig2str (Makefile.am): Likewise.
73323         * modules/snprintf (Makefile.am): Likewise.
73324         * modules/stat-macros (Makefile.am): Likewise.
73325         * modules/stat-time (Makefile.am): Likewise.
73326         * modules/stdbool (Makefile.am): Likewise.
73327         * modules/stdint (Makefile.am): Likewise.
73328         * modules/stdlib-safer (Makefile.am): Likewise.
73329         * modules/stpcpy (Makefile.am): Likewise.
73330         * modules/stpncpy (Makefile.am): Likewise.
73331         * modules/strcase (Makefile.am): Likewise.
73332         * modules/strcasestr (Makefile.am): Likewise.
73333         * modules/strchrnul (Makefile.am): Likewise.
73334         * modules/strcspn (Makefile.am): Likewise.
73335         * modules/strdup (Makefile.am): Likewise.
73336         * modules/strerror (Makefile.am): Likewise.
73337         * modules/strftime (Makefile.am): Likewise.
73338         * modules/strndup (Makefile.am): Likewise.
73339         * modules/strnlen (Makefile.am): Likewise.
73340         * modules/strpbrk (Makefile.am): Likewise.
73341         * modules/strsep (Makefile.am): Likewise.
73342         * modules/strstr (Makefile.am): Likewise.
73343         * modules/strtod (Makefile.am): Likewise.
73344         * modules/strtoimax (Makefile.am): Likewise.
73345         * modules/strtok_r (Makefile.am): Likewise.
73346         * modules/strtol (Makefile.am): Likewise.
73347         * modules/strtoll (Makefile.am): Likewise.
73348         * modules/strtoul (Makefile.am): Likewise.
73349         * modules/strtoull (Makefile.am): Likewise.
73350         * modules/strtoumax (Makefile.am): Likewise.
73351         * modules/strverscmp (Makefile.am): Likewise.
73352         * modules/sys_socket (Makefile.am): Likewise.
73353         * modules/sys_stat (Makefile.am): Likewise.
73354         * modules/sysexits (Makefile.am): Likewise.
73355         * modules/time_r (Makefile.am): Likewise.
73356         * modules/timegm (Makefile.am): Likewise.
73357         * modules/timespec (Makefile.am): Likewise.
73358         * modules/tmpfile-safer (Makefile.am): Likewise.
73359         * modules/trim (Makefile.am): Likewise.
73360         * modules/unistd-safer (Makefile.am): Likewise.
73361         * modules/unlinkdir (Makefile.am): Likewise.
73362         * modules/unlocked-io (Makefile.am): Likewise.
73363         * modules/userspec (Makefile.am): Likewise.
73364         * modules/utime (Makefile.am): Likewise.
73365         * modules/utimecmp (Makefile.am): Likewise.
73366         * modules/utimens (Makefile.am): Likewise.
73367         * modules/vasnprintf (Makefile.am): Likewise.
73368         * modules/vasprintf (Makefile.am): Likewise.
73369         * modules/vsnprintf (Makefile.am): Likewise.
73370         * modules/xalloc (Makefile.am): Likewise.
73371         * modules/xgetcwd (Makefile.am): Likewise.
73372         * modules/xnanosleep (Makefile.am): Likewise.
73373         * modules/xreadlink (Makefile.am): Likewise.
73374         * modules/xstrtod (Makefile.am): Likewise.
73375         * modules/xstrtol (Makefile.am): Likewise.
73376         * modules/xstrtold (Makefile.am): Likewise.
73377         * modules/yesno (Makefile.am): Likewise.
73378         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
73379
73380 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73381
73382         * modules/error (Makefile.am): Distribute files through
73383         EXTRA_DIST, not lib_SOURCES.
73384
73385 2006-10-12  Eric Blake  <ebb9@byu.net>
73386
73387         * modules/error (Makefile.am): Distribute files in /lib.
73388         * modules/obstack (Makefile.am): Likewise.
73389
73390 2006-10-12  Bruno Haible  <bruno@clisp.org>
73391
73392         * modules/acl (Makefile.am): Distribute all files in lib/ through
73393         EXTRA_DIST.
73394         * modules/arcfour (Makefile.am): Likewise.
73395         * modules/arctwo (Makefile.am): Likewise.
73396         * modules/argmatch (Makefile.am): Likewise.
73397         * modules/argz (Makefile.am): Likewise.
73398         * modules/atexit (Makefile.am): Likewise.
73399         * modules/backupfile (Makefile.am): Likewise.
73400         * modules/c-strtod (Makefile.am): Likewise.
73401         * modules/c-strtold (Makefile.am): Likewise.
73402         * modules/calloc (Makefile.am): Likewise.
73403         * modules/canon-host (Makefile.am): Likewise.
73404         * modules/canonicalize (Makefile.am): Likewise.
73405         * modules/chdir-long (Makefile.am): Likewise.
73406         * modules/chdir-safer (Makefile.am): Likewise.
73407         * modules/check-version (Makefile.am): Likewise.
73408         * modules/chown (Makefile.am): Likewise.
73409         * modules/cloexec (Makefile.am): Likewise.
73410         * modules/close-stream (Makefile.am): Likewise.
73411         * modules/closeout (Makefile.am): Likewise.
73412         * modules/crc (Makefile.am): Likewise.
73413         * modules/cycle-check (Makefile.am): Likewise.
73414         * modules/des (Makefile.am): Likewise.
73415         * modules/dirfd (Makefile.am): Likewise.
73416         * modules/dirname (Makefile.am): Likewise.
73417         * modules/dup2 (Makefile.am): Likewise.
73418         * modules/euidaccess (Makefile.am): Likewise.
73419         * modules/exclude (Makefile.am): Likewise.
73420         * modules/exitfail (Makefile.am): Likewise.
73421         * modules/fcntl-safer (Makefile.am): Likewise.
73422         * modules/file-type (Makefile.am): Likewise.
73423         * modules/fileblocks (Makefile.am): Likewise.
73424         * modules/filemode (Makefile.am): Likewise.
73425         * modules/filenamecat (Makefile.am): Likewise.
73426         * modules/fnmatch (Makefile.am): Likewise.
73427         * modules/fopen-safer (Makefile.am): Likewise.
73428         * modules/fpending (Makefile.am): Likewise.
73429         * modules/fprintftime (Makefile.am): Likewise.
73430         * modules/free (Makefile.am): Likewise.
73431         * modules/fsusage (Makefile.am): Likewise.
73432         * modules/ftruncate (Makefile.am): Likewise.
73433         * modules/fts (Makefile.am): Likewise.
73434         * modules/gc (Makefile.am): Likewise.
73435         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73436         * modules/getaddrinfo (Makefile.am): Likewise.
73437         * modules/getcwd (Makefile.am): Likewise.
73438         * modules/getdelim (Makefile.am): Likewise.
73439         * modules/getdomainname (Makefile.am): Likewise.
73440         * modules/getgroups (Makefile.am): Likewise.
73441         * modules/gethostname (Makefile.am): Likewise.
73442         * modules/gethrxtime (Makefile.am): Likewise.
73443         * modules/getline (Makefile.am): Likewise.
73444         * modules/getloadavg (Makefile.am): Likewise.
73445         * modules/getlogin_r (Makefile.am): Likewise.
73446         * modules/getopt (Makefile.am): Likewise.
73447         * modules/getpass (Makefile.am): Likewise.
73448         * modules/getpass-gnu (Makefile.am): Likewise.
73449         * modules/getsubopt (Makefile.am): Likewise.
73450         * modules/gettime (Makefile.am): Likewise.
73451         * modules/gettimeofday (Makefile.am): Likewise.
73452         * modules/getugroups (Makefile.am): Likewise.
73453         * modules/getusershell (Makefile.am): Likewise.
73454         * modules/glob (Makefile.am): Likewise.
73455         * modules/group-member (Makefile.am): Likewise.
73456         * modules/hard-locale (Makefile.am): Likewise.
73457         * modules/hash (Makefile.am): Likewise.
73458         * modules/hmac-md5 (Makefile.am): Likewise.
73459         * modules/hmac-sha1 (Makefile.am): Likewise.
73460         * modules/human (Makefile.am): Likewise.
73461         * modules/idcache (Makefile.am): Likewise.
73462         * modules/imaxabs (Makefile.am): Likewise.
73463         * modules/imaxdiv (Makefile.am): Likewise.
73464         * modules/inet_ntop (Makefile.am): Likewise.
73465         * modules/inet_pton (Makefile.am): Likewise.
73466         * modules/inttostr (Makefile.am): Likewise.
73467         * modules/isapipe (Makefile.am): Likewise.
73468         * modules/lchown (Makefile.am): Likewise.
73469         * modules/long-options (Makefile.am): Likewise.
73470         * modules/lstat (Makefile.am): Likewise.
73471         * modules/malloc (Makefile.am): Likewise.
73472         * modules/mathl (Makefile.am): Likewise.
73473         * modules/mbchar (Makefile.am): Likewise.
73474         * modules/md2 (Makefile.am): Likewise.
73475         * modules/md4 (Makefile.am): Likewise.
73476         * modules/md5 (Makefile.am): Likewise.
73477         * modules/memcasecmp (Makefile.am): Likewise.
73478         * modules/memchr (Makefile.am): Likewise.
73479         * modules/memcmp (Makefile.am): Likewise.
73480         * modules/memcoll (Makefile.am): Likewise.
73481         * modules/memcpy (Makefile.am): Likewise.
73482         * modules/memmem (Makefile.am): Likewise.
73483         * modules/memmove (Makefile.am): Likewise.
73484         * modules/mempcpy (Makefile.am): Likewise.
73485         * modules/memrchr (Makefile.am): Likewise.
73486         * modules/memset (Makefile.am): Likewise.
73487         * modules/memxor (Makefile.am): Likewise.
73488         * modules/mkancesdirs (Makefile.am): Likewise.
73489         * modules/mkdir (Makefile.am): Likewise.
73490         * modules/mkdir-p (Makefile.am): Likewise.
73491         * modules/mkdtemp (Makefile.am): Likewise.
73492         * modules/mkstemp (Makefile.am): Likewise.
73493         * modules/mktime (Makefile.am): Likewise.
73494         * modules/modechange (Makefile.am): Likewise.
73495         * modules/mountlist (Makefile.am): Likewise.
73496         * modules/nanosleep (Makefile.am): Likewise.
73497         * modules/openat (Makefile.am): Likewise.
73498         * modules/pagealign_alloc (Makefile.am): Likewise.
73499         * modules/physmem (Makefile.am): Likewise.
73500         * modules/poll (Makefile.am): Likewise.
73501         * modules/posixtm (Makefile.am): Likewise.
73502         * modules/posixver (Makefile.am): Likewise.
73503         * modules/putenv (Makefile.am): Likewise.
73504         * modules/quote (Makefile.am): Likewise.
73505         * modules/quotearg (Makefile.am): Likewise.
73506         * modules/raise (Makefile.am): Likewise.
73507         * modules/read-file (Makefile.am): Likewise.
73508         * modules/readline (Makefile.am): Likewise.
73509         * modules/readlink (Makefile.am): Likewise.
73510         * modules/readtokens (Makefile.am): Likewise.
73511         * modules/readutmp (Makefile.am): Likewise.
73512         * modules/realloc (Makefile.am): Likewise.
73513         * modules/regex (Makefile.am): Likewise.
73514         * modules/rename (Makefile.am): Likewise.
73515         * modules/rename-dest-slash (Makefile.am): Likewise.
73516         * modules/rijndael (Makefile.am): Likewise.
73517         * modules/rmdir (Makefile.am): Likewise.
73518         * modules/rpmatch (Makefile.am): Likewise.
73519         * modules/safe-read (Makefile.am): Likewise.
73520         * modules/safe-write (Makefile.am): Likewise.
73521         * modules/same (Makefile.am): Likewise.
73522         * modules/save-cwd (Makefile.am): Likewise.
73523         * modules/savedir (Makefile.am): Likewise.
73524         * modules/setenv (Makefile.am): Likewise.
73525         * modules/settime (Makefile.am): Likewise.
73526         * modules/sha1 (Makefile.am): Likewise.
73527         * modules/sig2str (Makefile.am): Likewise.
73528         * modules/snprintf (Makefile.am): Likewise.
73529         * modules/stdlib-safer (Makefile.am): Likewise.
73530         * modules/stpcpy (Makefile.am): Likewise.
73531         * modules/stpncpy (Makefile.am): Likewise.
73532         * modules/strcase (Makefile.am): Likewise.
73533         * modules/strcasestr (Makefile.am): Likewise.
73534         * modules/strchrnul (Makefile.am): Likewise.
73535         * modules/strcspn (Makefile.am): Likewise.
73536         * modules/strdup (Makefile.am): Likewise.
73537         * modules/strerror (Makefile.am): Likewise.
73538         * modules/strftime (Makefile.am): Likewise.
73539         * modules/strndup (Makefile.am): Likewise.
73540         * modules/strnlen (Makefile.am): Likewise.
73541         * modules/strpbrk (Makefile.am): Likewise.
73542         * modules/strsep (Makefile.am): Likewise.
73543         * modules/strstr (Makefile.am): Likewise.
73544         * modules/strtod (Makefile.am): Likewise.
73545         * modules/strtoimax (Makefile.am): Likewise.
73546         * modules/strtok_r (Makefile.am): Likewise.
73547         * modules/strtol (Makefile.am): Likewise.
73548         * modules/strtoll (Makefile.am): Likewise.
73549         * modules/strtoul (Makefile.am): Likewise.
73550         * modules/strtoull (Makefile.am): Likewise.
73551         * modules/strtoumax (Makefile.am): Likewise.
73552         * modules/strverscmp (Makefile.am): Likewise.
73553         * modules/time_r (Makefile.am): Likewise.
73554         * modules/timegm (Makefile.am): Likewise.
73555         * modules/tmpfile-safer (Makefile.am): Likewise.
73556         * modules/unistd-safer (Makefile.am): Likewise.
73557         * modules/unlinkdir (Makefile.am): Likewise.
73558         * modules/userspec (Makefile.am): Likewise.
73559         * modules/utime (Makefile.am): Likewise.
73560         * modules/utimecmp (Makefile.am): Likewise.
73561         * modules/utimens (Makefile.am): Likewise.
73562         * modules/vasnprintf (Makefile.am): Likewise.
73563         * modules/vasprintf (Makefile.am): Likewise.
73564         * modules/vsnprintf (Makefile.am): Likewise.
73565         * modules/xalloc (Makefile.am): Likewise.
73566         * modules/xgetcwd (Makefile.am): Likewise.
73567         * modules/xnanosleep (Makefile.am): Likewise.
73568         * modules/xreadlink (Makefile.am): Likewise.
73569         * modules/xstrtod (Makefile.am): Likewise.
73570         * modules/xstrtol (Makefile.am): Likewise.
73571         * modules/xstrtold (Makefile.am): Likewise.
73572         * modules/yesno (Makefile.am): Likewise.
73573
73574 2006-10-12  Jim Meyering  <jim@meyering.net>
73575
73576         * m4/getloadavg.m4: Revert the change below.
73577
73578         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73579         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73580         fail with a symlink, which is what coreutils' ./bootstrap now
73581         creates by default.
73582
73583 2006-10-12  Bruno Haible  <bruno@clisp.org>
73584
73585         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73586         mingw.
73587         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73588         MSVC and mingw explicitly.
73589
73590 2006-10-11  Simon Josefsson  <jas@extundo.com>
73591             Bruno Haible  <bruno@clisp.org>
73592
73593         Add support for multiple gnulib-tool invocations in the scope of a
73594         single configure.ac file.
73595         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73596         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73597         with the same contents as the _LIBADD variable.
73598         (func_emit_initmacro_start, func_emit_initmacro_end,
73599         func_emit_initmacro_done): New functions.
73600         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73601         gl_LIBOBJS and gl_LTLIBOBJS.
73602
73603 2006-10-11  Bruno Haible  <bruno@clisp.org>
73604
73605         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73606         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73607         autoreconf. Instead, invoke autopoint explicitly but move back the
73608         *.m4 files from gnulib.
73609
73610 2006-10-11  Bruno Haible  <bruno@clisp.org>
73611
73612         * gnulib-tool (func_usage): Make module names after --create-testdir
73613         optional.
73614         (func_create_testdir): If no module was specified, use nearly all
73615         modules.
73616
73617 2006-10-12  Jim Meyering  <jim@meyering.net>
73618
73619         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73620         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73621         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73622         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73623         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73624         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73625         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73626         (fts_set_stat_required): New function.
73627         (fts_open): Defer the calls to fts_stat, if possible or requested.
73628         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73629         into fts_stat itself.
73630         (fts_read): Perform any required (deferred) fts_stat call.
73631         (fts_build): Likewise, for the directory we're about to open and read.
73632         In the readdir loop, carefully decide whether each entry will require
73633         an eventual call to fts_stat, using dirent.d_type info if available.
73634         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73635         a command line argument into this function.  Update all callers.
73636         Map a return value of FTS_DOT to FTS_D for a command line argument.
73637         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73638         Thanks to Miklos Szeredi for his tenacity and for the initial
73639         bug report about "find" failing on a FUSE-based file system.
73640
73641         * lib/fts.c (fts_open): Use consistent indentation.
73642
73643 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73644
73645         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73646         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73647         reported by Jim Meyering.  All uses of cache variables renamed
73648         to match Autoconf's.
73649         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73650         the other one.
73651
73652         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73653         Fix misspelling in diagnostic.
73654
73655 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73656
73657         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73658         defined.  Problem reported by Matthew Woehlke.
73659
73660         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73661         Add support for Tandem NonStop R series.
73662         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73663         Use new macro.
73664
73665         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73666         (has_trailing_slash): Omit size arg; all callers changed.
73667         Omit 'inline', since it doesn't help performance and we'd
73668         need to configure it.
73669         Don't count //, ///, etc. as having a trailing slash.
73670         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73671         (rpl_rename_dest_slash): On failure, use rename's errno rather
73672         than (in some cases) an incorrect or junk errno.
73673         Simplify code by removing need to compute length; this does
73674         cause it to make two passes instead of one over the file name,
73675         but it's worth it.
73676
73677         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73678         change, since Autoconf's version may no longer be appropriate now
73679         that we are using CVS Autoconf's version.  Add support for Tandem.
73680
73681 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73682             Bruno Haible  <bruno@clisp.org>
73683
73684         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73685         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73686         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73687         gl_AC_TYPE_LONG_LONG.
73688
73689         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73690         instead of HAVE_LONG_LONG.
73691         * lib/printf-args.c (printf_fetchargs): Likewise.
73692         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73693         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73694         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73695         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73696         gl_AC_TYPE_LONG_LONG.
73697
73698 2006-10-11  Bruno Haible  <bruno@clisp.org>
73699
73700         * m4/longlong.m4: Add comments.
73701         * m4/ulonglong.m4: Likewise.
73702
73703 2006-10-10  Bruno Haible  <bruno@clisp.org>
73704
73705         Make it possible to #define stpcpy, strdup to aliases.
73706         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73707         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73708
73709 2006-10-10  Bruno Haible  <bruno@clisp.org>
73710
73711         Make it possible to #define gcd to an alias.
73712         * lib/gcd.c: Include config.h.
73713
73714 2006-10-10  Bruno Haible  <bruno@clisp.org>
73715
73716         Make it possible to #define c_isascii to an alias.
73717         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73718         defined. Undefine the macros before defining them, to avoid gcc
73719         warnings.
73720         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73721         define NO_C_CTYPE_MACROS early.
73722
73723 2006-10-10  Bruno Haible  <bruno@clisp.org>
73724
73725         Make it possible to #define set_program_name to an alias.
73726         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73727         ENABLE_RELOCATABLE early.
73728
73729 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73730
73731         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73732         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73733         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73734         More generally, don't assume that 64-bit signed int is available
73735         if unsigned int is, and vice versa.
73736         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73737         unsigned symbols, not on their signed counterparts.
73738         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73739         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73740         (UINT64_C, UINTMAX_C):
73741         Likewise.
73742         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73743         unsigned counterparts.
73744         (Have_long_long, Unsigned): New macros.
73745         (Int): Renamed from INT.
73746         (strtoimax): Use the new macros.
73747         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73748         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73749         * modules/inttypes (inttypes.h): Substitute
73750         HAVE_UNSIGNED_LONG_LONG_INT.
73751         * modules/stdint (stdint.h): Likewise.
73752         (Files): Add m4/ulonglong.m4.
73753
73754 2006-10-10  Bruno Haible  <bruno@clisp.org>
73755
73756         Fix a gcc -Wshadow warning.
73757         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73758         to 'bucket'.
73759         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73760         gl_linked_indexof_from_to): Likewise.
73761         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73762         Likewise.
73763         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73764         Likewise.
73765         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73766         Reported by Eric Blake.
73767
73768 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73769
73770         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73771         for NetBSD.  Problem reported by Bruno Haible.
73772
73773 2006-10-09  Jim Meyering  <jim@meyering.net>
73774
73775         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73776         Patch from Bruno Haible.
73777
73778 2006-10-09  Jim Meyering  <jim@meyering.net>
73779
73780         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73781         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73782         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73783
73784 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73785
73786         Don't include <config.h> twice; this doesn't work in some cases,
73787         e.g., when config.h has "#define intmax_t long long int" and
73788         we include <config.h>, <inttypes.h>, <config.h> in that order.
73789         Problem reported by Matthew Woehlke in:
73790         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73791         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73792         * lib/fts-cycle.c: Don't include config.h.
73793         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73794         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73795         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73796         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73797         inttypes.h.
73798         * lib/xstrtoumax.c: Likewise.
73799         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73800         __strtol and the like, so that this module is more like its siblings.
73801         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73802         Remove; no longer needed now that we assume gnulib inttypes.h.
73803
73804 2006-10-08  Bruno Haible  <bruno@clisp.org>
73805
73806         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73807         option.
73808
73809 2006-10-07  Jim Meyering  <jim@meyering.net>
73810
73811         * modules/inttypes (inttypes.h): Revert what seems to have been
73812         an inadvertent part of today's change: use "|", not "/" in the
73813         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73814
73815 2006-10-07  Bruno Haible  <bruno@clisp.org>
73816
73817         * modules/sublist: New file.
73818
73819 2006-10-07  Bruno Haible  <bruno@clisp.org>
73820
73821         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73822         * modules/argz (argz.h): Likewise.
73823         * modules/arpa_inet (arpa/inet.h): Likewise.
73824         * modules/byteswap (byteswap.h): Likewise.
73825         * modules/configmake (configmake.h): Likewise.
73826         * modules/fcntl (fcntl.h): Likewise.
73827         * modules/fnmatch (fnmatch.h): Likewise.
73828         * modules/getopt (getopt.h): Likewise.
73829         * modules/glob (glob.h): Likewise.
73830         * modules/inttypes (inttypes.h): Likewise.
73831         * modules/netinet_in (netinet/in.h): Likewise.
73832         * modules/poll (poll.h): Likewise.
73833         * modules/stdbool (stdbool.h): Likewise.
73834         * modules/stdint (stdint.h): Likewise.
73835         * modules/sys_select (sys/select.h): Likewise.
73836         * modules/sys_socket (sys/socket.h): Likewise.
73837         * modules/sys_stat (sys/stat.h): Likewise.
73838         * modules/sysexits (sysexits.h): Likewise.
73839         * modules/unistd (unistd.h): Likewise.
73840         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73841         Add a "DO NOT EDIT" comment to the generated file.
73842         (func_import): Likewise for gnulib-comp.m4.
73843
73844 2006-10-07  Bruno Haible  <bruno@clisp.org>
73845
73846         * lib/gl_sublist.h: New file.
73847         * lib/gl_sublist.c: New file.
73848
73849 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73850
73851         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73852         name (relative to the original working directory) and the file
73853         name component (relative to the temporary working directory).  All
73854         callers changed.
73855         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73856         * lib/mkdir-p.c (make_dir_parents): Likewise.
73857         * lib/mkdir-p.h (make_dir_parents): Likewise.
73858
73859 2006-10-06  Eric Blake  <ebb9@byu.net>
73860
73861         Define several macros for use by the clean-temp module.
73862         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73863         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73864         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73865
73866         * lib/clean-temp.h (close_stream_temp): New declaration.
73867         * lib/clean-temp.c (includes): Pull in headers according to what
73868         other modules are in use.
73869         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73870
73871 2006-10-06  Bruno Haible  <bruno@clisp.org>
73872
73873         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73874         instead of fopen, fwriteerror.
73875
73876 2006-10-06  Bruno Haible  <bruno@clisp.org>
73877
73878         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73879         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73880         int.
73881         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73882         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73883         Return an error indicator.
73884         Suggested by Eric Blake.
73885
73886 2006-10-06  Bruno Haible  <bruno@clisp.org>
73887
73888         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73889         Reported by Eric Blake.
73890
73891 2006-10-06  Bruno Haible  <bruno@clisp.org>
73892
73893         * modules/closeout (Description): Mention stderr too.
73894
73895 2006-10-06  Bruno Haible  <bruno@clisp.org>
73896         and Paul Eggert  <eggert@cs.ucla.edu>
73897
73898         * lib/closeout.c (close_stdout): Also close stderr.
73899         * lib/closeout.h: Update comment.
73900
73901 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73902
73903         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73904         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73905         * lib/dirchownmod.c: Include lchown.h.
73906         * lib/lchown.c: Don't include files that lchown.h now includes.
73907         Don't declare chown, since lchown.h now does that.
73908         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73909         (lchown): Define to rpl_chown if lchown is declared but
73910         does not exist.  Declare using a prototype if lchown is not
73911         declared.  Add a copyright notice.
73912         * lib/mkstemp.h: Include <unistd.h>.
73913         * lib/openat.c: Include lchown.h.
73914
73915         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73916         we now test for that separately.
73917         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73918         rather than O_NOFOLLOW, when testing whether it's possible to
73919         avoid a race condition reliably.
73920         * lib/savewd.c (savewd_chdir): Likewise.
73921
73922         Remove macros that are no longer needed now that stdint.h is
73923         reliable.
73924         * lib/fsusage.c (UINTMAX_MAX): Remove.
73925         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73926         * lib/utimecmp.c (SIZE_MAX): Remove.
73927
73928         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73929
73930         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73931         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73932         O_NOATIME works.
73933
73934 2006-10-05  Bruno Haible  <bruno@clisp.org>
73935
73936         * lib/gl_list.h (gl_sortedlist_search_from_to,
73937         gl_sortedlist_indexof_from_to): New declarations.
73938         (gl_list_implementation): New fields sortedlist_search_from_to,
73939         sortedlist_indexof_from_to.
73940         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73941         inline functions.
73942         * lib/gl_list.c (gl_sortedlist_search_from_to,
73943         gl_sortedlist_indexof_from_to): New functions.
73944         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73945         function.
73946         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73947         (gl_array_sortedlist_search_from_to): New function.
73948         (gl_array_list_implementation): Update.
73949         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73950         function.
73951         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73952         (gl_carray_sortedlist_search_from_to): New function.
73953         (gl_carray_list_implementation): Update.
73954         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73955         gl_linked_sortedlist_indexof_from_to): New functions.
73956         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73957         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73958         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73959         gl_tree_sortedlist_indexof_from_to): New functions.
73960         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73961         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73962         Update.
73963         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73964         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73965         Update.
73966
73967 2006-10-05  Bruno Haible  <bruno@clisp.org>
73968
73969         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73970         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73971         (struct gl_list_implementation): Add fields search_from_to,
73972         indexof_from_to. Remove fields search, indexof.
73973         (gl_list_search): Use the search_from_to method.
73974         (gl_list_search_from, gl_list_search_from_to): New functions.
73975         (gl_list_indexof): Use the indexof_from_to method.
73976         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73977         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73978         (gl_list_search_from, gl_list_search_from_to): New functions.
73979         (gl_list_indexof): Use the indexof_from_to method.
73980         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73981         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73982         gl_array_indexof. Add start_index, end_index arguments.
73983         (gl_array_search_from_to): Renamed from gl_array_search. Add
73984         start_index, end_index arguments.
73985         (gl_array_remove, gl_array_list_implementation): Update.
73986         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73987         gl_carray_indexof. Add start_index, end_index arguments.
73988         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73989         start_index, end_index arguments.
73990         (gl_carray_remove, gl_carray_list_implementation): Update.
73991         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73992         gl_linked_search. Add start_index, end_index arguments.
73993         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73994         start_index, end_index arguments.
73995         (gl_linked_remove): Update.
73996         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73997         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73998         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73999         field to 'size_t'.
74000         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
74001         gl_tree_search. Add start_index, end_index arguments.
74002         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74003         start_index, end_index arguments.
74004         (gl_tree_remove): Update.
74005         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74006         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74007         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
74008         function.
74009         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
74010         gl_tree_search. Add start_index, end_index arguments.
74011         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74012         start_index, end_index arguments.
74013         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74014         Update.
74015         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
74016
74017 2006-10-05  Bruno Haible  <bruno@clisp.org>
74018
74019         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
74020
74021         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
74022         fwriteerror_temp): New declarations.
74023         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
74024         (descriptors): New variable.
74025         (cleanup): First, close the descriptors.
74026         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
74027         fclose_temp, fwriteerror_temp): New functions.
74028
74029 2006-10-04  Jim Meyering  <jim@meyering.net>
74030
74031         * lib/fts.c (fts_open): Tiny comment change.
74032
74033 2006-10-04  Bruno Haible  <bruno@clisp.org>
74034
74035         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
74036         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
74037         gl_LOCK_BODY.
74038         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
74039         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
74040         gl_LOCK_EARLY_BODY.
74041         (gl_LOCK): Require gl_LOCK_BODY.
74042
74043 2006-10-04  Bruno Haible  <bruno@clisp.org>
74044
74045         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
74046         (gl_oset_search_atleast): New declaration.
74047         (struct gl_oset_implementation): Add field 'search_atleast'.
74048         (gl_oset_search_atleast): New inline function.
74049         * lib/gl_oset.c (gl_oset_search_atleast): New function.
74050         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
74051         (gl_array_oset_implementation): Update.
74052         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
74053         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
74054         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
74055
74056 2006-10-04  Bruno Haible  <bruno@clisp.org>
74057
74058         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
74059
74060 2006-10-03  Bruno Haible  <bruno@clisp.org>
74061
74062         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
74063         from gl_avltreehash_list_implementation.
74064
74065 2006-10-03  Bruno Haible  <bruno@clisp.org>
74066
74067         * lib/gl_oset.c (gl_oset_add): Fix return type.
74068
74069 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
74070
74071         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
74072
74073 2006-10-02  Eric Blake  <ebb9@byu.net>
74074
74075         * modules/strnlen (Depends-on): Add extensions.
74076
74077 2006-10-02  Eric Blake  <ebb9@byu.net>
74078
74079         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
74080         definition in 2.60+.
74081
74082 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
74083
74084         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
74085         checks.
74086
74087 2006-10-02  Bruno Haible  <bruno@clisp.org>
74088
74089         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
74090         to the AUTOMAKE_OPTIONS.
74091         Reported by Jim Meyering.
74092
74093 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74094
74095         Work around bug in Solaris 10 /proc file system:
74096         /proc/self/fd/NNN/.. isn't the parent directory of
74097         the directory whose file descriptor is NNN.  This needs to
74098         be worked around at run time, not compile time, since a
74099         program might be built on Solaris 8, where things work, and
74100         run on Solaris 10.
74101         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
74102         to use the following interface instead:
74103         (OPENAT_BUFFER_SIZE): New macro.
74104         (openat_proc_name): New function.
74105         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
74106         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
74107         Likewise.
74108         * lib/openat-proc.c: New file.
74109         * modules/openat (Files): Add lib/openat-proc.c.
74110         (Depends-on): Add same-inode, stdbool.
74111         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
74112
74113 2006-09-29  Bruno Haible  <bruno@clisp.org>
74114
74115         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
74116         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
74117         argument. Set stdout_closed before testing for ferror, not after.
74118         (fwriteerror, fwriteerror_no_ebadf): New functions.
74119
74120 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74121
74122         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
74123
74124 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
74125
74126         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
74127         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
74128
74129 2006-09-28  Jim Meyering  <jim@meyering.net>
74130
74131         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
74132         Include <unistd.h>.
74133
74134 2006-09-28  Bruno Haible  <bruno@clisp.org>
74135
74136         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
74137         * modules/linkedhash-list (Depends-on): Likewise.
74138         * modules/rbtreehash-list (Depends-on): Likewise.
74139
74140 2006-09-28  Bruno Haible  <bruno@clisp.org>
74141
74142         * lib/strndup.h: Simplify the redefinition of strndup.
74143         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
74144         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
74145
74146 2006-09-28  Bruno Haible  <bruno@clisp.org>
74147
74148         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
74149         * lib/gl_linkedhash_list.c: Likewise.
74150         * lib/gl_rbtreehash_list.c: Likewise.
74151
74152 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74153
74154         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
74155         getaddrinfo.
74156
74157         * lib/__fpending.h: Don't include <stdio_ext.h> unless
74158         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
74159         it causes <stdio_ext.h> to cause a compile-time error.
74160         Problem reported by Nelson H. F. Beebe.
74161         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
74162         of HAVE_DECL___PENDING.
74163
74164         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
74165         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
74166         declaration.
74167
74168 2006-09-27  Jim Meyering  <jim@meyering.net>
74169
74170         This file could end up with a definition for a function
74171         named __strndup, rather than rpl_strndup on a system with
74172         incomplete weak_alias support.
74173         * lib/strndup.c (strndup): Rename from __strndup.
74174         Remove #defines that used to map __strndup to strndup.
74175         Don't use K&R prototypes.
74176         Remove LIBC-related code, since this file is not sync'd with glibc.
74177         * lib/strndup.h: Revamp, accordingly.
74178         * m4/strndup.m4: Modernize.
74179
74180 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74181
74182         * modules/savewd (Depends-on): Add 'raise'.
74183         * lib/savewd.c: Include <signal.h>, for 'raise'.
74184
74185 2006-09-26  Jim Meyering  <jim@meyering.net>
74186
74187         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
74188         when we detect Darwin 8.7.0's acl_get_file bug.
74189         Rearrange to perform the new (below) run-test while $LIBS
74190         contains any acl-related library.  Set USE_ACL at the end.
74191         (gl_ACL_GET_FILE): New function.
74192
74193 2006-09-26  Eric Blake  <ebb9@byu.net>
74194
74195         * lib/verror.c: Include <config.h> unconditionally.
74196
74197 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
74198
74199         * modules/clock-time (Maintainer): Add self.
74200         * modules/getlogin_r (Depends-on): Add extensions.
74201
74202 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74203
74204         * modules/clock-time: New module.
74205         * modules/nanosleep (Depends-on): Add clock-time.
74206         * modules/gethrxtime (Depends-on): Likewise.
74207         * modules/gettime (Depends-on): Likewise.
74208         * modules/settime (Depends-on): Likewise.
74209
74210         * modules/fts-lgpl: Depend on openat.
74211         * modules/mkancesdirs: Depend on savewd.
74212         * modules/mkdir-p: Likewise.
74213
74214 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74215
74216         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
74217
74218         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
74219         `gl_have_arbitrary_file_name_length_limit' to
74220         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
74221         actually works between configure runs.
74222
74223 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74224             Bruno Haible  <bruno@clisp.org>
74225
74226         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
74227
74228 2006-09-25  Jim Meyering  <jim@meyering.net>
74229
74230         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
74231         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
74232
74233 2006-09-25  Eric Blake  <ebb9@byu.net>
74234
74235         * gnulib-tool (func_import, func_create_testdir): Fix typos in
74236         exec's in 2006-09-18 patch when shuffling fds.
74237
74238 2006-09-25  Bruno Haible  <bruno@clisp.org>
74239
74240         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
74241         Reported by Jim Meyering.
74242
74243 2006-09-24  Jim Meyering  <jim@meyering.net>
74244
74245         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
74246         compare a pointer against a literal "0".  That caused failures with
74247         at least HP-UX's hpcc.
74248
74249 2006-09-22  Simon Josefsson  <jas@extundo.com>
74250
74251         * modules/gc-sha1:
74252         * modules/gc-md4:
74253         * modules/gc-hmac-sha1:
74254         * modules/gc-hmac-md5:
74255         * modules/gc-des:
74256         * modules/gc-arcfour: Distribute more files.
74257
74258 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74259
74260         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
74261         (gl_linked_iterator_from_to): Initialize struct completely.
74262         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
74263         (gl_tree_iterator_from_to): Likewise
74264         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
74265         * lib/gl_array_list.c [lint] (gl_array_iterator)
74266         (gl_array_iterator_from_to): Likewise.
74267         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
74268         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
74269         (gl_carray_iterator_from_to): Likewise.
74270
74271         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
74272         * lib/md4.c (md4_process_block): Remove unused variable.
74273         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
74274         parentheses for clarity.
74275
74276 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74277
74278         * modules/bison-i18n (Depends-on): Add gettext.
74279
74280 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74281
74282         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
74283         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74284         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
74285         also add missing comma that caused broken test.
74286         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
74287         stdlib.h, for `abort'.
74288         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
74289         variables.
74290         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
74291         include unistd.h if present, for `rmdir'.
74292         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
74293         variables.
74294         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
74295         in the process include standard headers for prototypes.
74296         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
74297         gets declared on GNU/Linux.
74298         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
74299         unistd.h, for `rmdir'.
74300         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
74301
74302         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
74303         always true.
74304         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
74305
74306         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
74307
74308 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74309
74310         * gnulib-tool (func_version): Create output all at once.  This
74311         may help avoid triggering unnecessary SIGPIPEs, and at any
74312         rate it doesn't hurt.
74313
74314 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74315             Bruno Haible  <bruno@clisp.org>
74316
74317         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
74318         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74319         * m4/signed.m4 (bh_C_SIGNED): Likewise.
74320
74321         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
74322         (gl_FUNC_VASPRINTF): Invoke it.
74323
74324 2006-09-22  Bruno Haible  <bruno@clisp.org>
74325
74326         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
74327         getloadavg.c as first argument.
74328
74329 2006-09-22  Bruno Haible  <bruno@clisp.org>
74330
74331         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
74332         at the beginning of the gl_INIT macro.
74333         * modules/getloadavg (configure.ac): Pass $gl_source_base to
74334         gl_GETLOADAVG.
74335
74336 2006-09-22  Bruno Haible  <bruno@clisp.org>
74337
74338         * gnulib-tool (func_create_megatestdir): Don't include the config-h
74339         module.
74340         Suggested by Ralf Wildenhues.
74341
74342 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74343
74344         Import this patch from libc:
74345
74346         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
74347
74348         * lib/regex_internal.c (re_string_reconstruct): Handle
74349         offset < pstr->valid_raw_len && pstr->offsets_needed case.
74350         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
74351         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
74352         re_string_context_at.
74353
74354         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
74355         now requires it.
74356         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
74357         gl_REGEX now does it for us.
74358         (gl_REGEX): Add test taken from
74359         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
74360
74361         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
74362         Check that large offsets work.  Modernize Autoconf usages.
74363         Prefer "yes" to mean a good thing rather than a bad.
74364         Don't put "#define mkstemp" in config.h, as this might interfere
74365         with standard system headers that "#define mkstemp mkstemp64".
74366
74367         * modules/mkstemp (Depends-on): Add extensions, so that
74368         mkstemp is visible on some platforms.
74369         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
74370         (Include): Change to "mkstemp.h" from <stdlib.h>.
74371         (Files): Add mkstemp.h.
74372
74373         * lib/mkstemp.h: New file, since some standard headers
74374         #define mkstemp.
74375         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
74376         Include "mkstemp.h".
74377         Make the _LIBC code resemble glibc original more,
74378         e.g., use K&R style.
74379         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
74380         (mkstemp): Remove, since mkstemp.h does this for us.
74381         * lib/stdlib--.h: Include mkstemp.h.
74382
74383         Import this patch from libc:
74384
74385         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74386
74387         * lib/tempname.c (__gen_tempname): Change attempts_min
74388         into a macro.  Use preprocessor to decide how to initialize
74389         attempts [Coverity CID 67].
74390
74391 2006-09-20  Bruno Haible  <bruno@clisp.org>
74392
74393         * lib/mkdtemp.c: Import from libc.
74394         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74395                 * sysdeps/posix/tempname.c (__gen_tempname): Change
74396                 attempts_min into a macro.  Use preprocessor to decide how to
74397                 initialize attempts [Coverity CID 67].
74398         2001-11-27  Paul Eggert  <eggert@twinsun.com>
74399                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
74400                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
74401
74402 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74403
74404         * gnulib-tool (func_exit): New function, to allow to pass the
74405         exit status portably through the trap.  Use everywhere.
74406         (--help, --version): Signal a write error.
74407         (trap): catch SIGPIPE, for write errors.
74408         Exit at the end of the trap, with the correct exit status.
74409
74410 2006-09-19  Karl Berry  <karl@gnu.org>
74411
74412         * doc/gnulib.texi: note about the license texinfo files.
74413
74414 2006-09-19  Eric Blake  <ebb9@byu.net>
74415
74416         * gnulib-tool: Avoid space-tab.
74417
74418 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74419
74420         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
74421         that prevented coreutils 6.1 from building.  Problem reported
74422         by Petter Reinholdtsen.
74423
74424 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74425
74426         * gnulib-tool (avoidlist): Fix typo that broke options like
74427         --avoid=lock that are used by coreutils bootstrap.
74428
74429 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
74430
74431         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
74432         more systematically.
74433
74434 2006-09-18  Jim Meyering  <jim@meyering.net>
74435
74436         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
74437
74438 2006-09-18  Bruno Haible  <bruno@clisp.org>
74439
74440         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
74441
74442 2006-09-18  Bruno Haible  <bruno@clisp.org>
74443
74444         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
74445         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
74446         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
74447         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
74448         * m4/gettext.m4: Require autoconf >= 2.52.
74449         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
74450         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
74451         of gl_cv_header_inttypes_h.
74452
74453 2006-09-18  Bruno Haible  <bruno@clisp.org>
74454
74455         * lib/javaversion.c: Include configmake.h.
74456
74457 2006-09-18  Bruno Haible  <bruno@clisp.org>
74458
74459         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
74460         avoid that the while loops be executed in a subshell.
74461
74462 2006-09-18  Bruno Haible  <bruno@clisp.org>
74463
74464         * MODULES.html.sh (func_module): Break long lines.
74465         Suggested by Bruce Korb <bkorb@gnu.org>.
74466
74467 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74468
74469         Speed up by a factor of 1.12.
74470         * gnulib-tool (nl): New variable.
74471         (func_import): Rewrite include directive extraction to only read each
74472         directive once.
74473
74474 2006-09-17  Bruno Haible  <bruno@clisp.org>
74475
74476         * modules/javaversion (Makefile.am): Remove DEFS setting.
74477         (Depends-on): Add configmake, for PKGDATADIR definition.
74478
74479 2006-09-17  Bruno Haible  <bruno@clisp.org>
74480
74481         * gnulib-tool (func_create_testdir): Rewrite all files at once.
74482
74483 2006-09-17  Bruno Haible  <bruno@clisp.org>
74484
74485         * gnulib-tool (func_append): New function, stolen from libtool.m4.
74486         (func_modules_transitive_closure, func_modules_add_dummy,
74487         func_modules_to_filelist, func_import, func_create_testdir,
74488         func_create_megatestdir, ...): Use it wherever possible.
74489         Suggested by Ralf Wildenhues.
74490
74491 2006-09-16  Karl Berry  <karl@gnu.org>
74492
74493         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
74494         to avoid sectioning errors.
74495         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
74496         [ifinfo]: blank line after @center-ed titles.
74497         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
74498         Spell FSF address consistently with others.
74499         (These changes approved by rms.)
74500
74501 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74502
74503         Speed up by a factor of 1.61.
74504         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
74505         already checked module names again.
74506
74507 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74508
74509         Speed up by a factor of 1.13.
74510         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
74511         for new_files, and the input to func_add_or_update.
74512
74513 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74514
74515         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
74516         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
74517
74518 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74519
74520         * modules/mkancesdirs (Depends-on): Add fcntl.
74521         * modules/savewd: New file.
74522         * MODULES.html.sh (File system functions): Add savewd.
74523
74524         * modules/configmake (Makefile.am): Add support for the
74525         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
74526
74527 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74528
74529         * m4/savewd.m4: New file.
74530
74531 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74532
74533         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
74534         (dirchownmod): New arg FD.  All callers changed.
74535         Use FD rather than opening the directory ourself, as opening is
74536         now the caller's responsibility.
74537         * lib/dirchownmod.h: Likewise.
74538         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
74539         hosts that require <sys/types.h> before <sys/stat.h>.  Include
74540         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
74541         (test_dir): Remove.
74542         (mkancesdirs): Return length of prefix of FILE that has already
74543         been made, or -2 if there is a child doing the work.  Redo
74544         algorithm so that it is O(N) rather than O(N**2).  Optimize away
74545         ".", and treat ".." specially since it might stray back into
74546         already-created areas.  Use a subprocess if necessary.  New arg
74547         WD; all users changed.  MAKE_DIR function should now return 1
74548         if it creates a directory that is not readable.  Return -2 if
74549         a child process is spun off.
74550         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
74551         Adjust signature to match code.
74552         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
74553         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
74554         all users changed.
74555         * lib/savewd.c, lib/savewd.h: New files.
74556
74557 2006-09-15  Jim Meyering  <jim@meyering.net>
74558
74559         * modules/rename-dest-slash: New module.
74560         * MODULES.html.sh (posix_compat): Add it here.
74561
74562         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74563
74564 2006-09-15  Jim Meyering  <jim@meyering.net>
74565
74566         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74567         file.
74568
74569         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74570
74571 2006-09-15  Jim Meyering  <jim@meyering.net>
74572
74573         * lib/rename-dest-slash.c (has_trailing_slash): Use
74574         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74575         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74576         test before testing whether SRC is a directory.
74577         Suggestions from Bruno Haible.
74578
74579         Avoid a warning about an unused variable.
74580         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74581         into the #ifdef block where it's used.
74582
74583         * lib/rename-dest-slash.c: New file.
74584
74585 2006-09-14  Bruno Haible  <bruno@clisp.org>
74586
74587         * lib/allocsa.c: Include <config.h> unconditionally.
74588         * lib/asnprintf.c: Likewise.
74589         * lib/asprintf.c: Likewise.
74590         * lib/c-strcasecmp.c: Likewise.
74591         * lib/c-strcasestr.c: Likewise.
74592         * lib/c-strncasecmp.c: Likewise.
74593         * lib/c-strstr.c: Likewise.
74594         * lib/classpath.c: Likewise.
74595         * lib/clean-temp.c: Likewise.
74596         * lib/concatpath.c: Likewise.
74597         * lib/copy-file.c: Likewise.
74598         * lib/csharpcomp.c: Likewise.
74599         * lib/csharpexec.c: Likewise.
74600         * lib/execute.c: Likewise.
74601         * lib/fatal-signal.c: Likewise.
74602         * lib/findprog.c: Likewise.
74603         * lib/fwriteerror.c: Likewise.
74604         * lib/gl_array_list.c: Likewise.
74605         * lib/gl_array_oset.c: Likewise.
74606         * lib/gl_avltree_list.c: Likewise.
74607         * lib/gl_avltree_oset.c: Likewise.
74608         * lib/gl_avltreehash_list.c: Likewise.
74609         * lib/gl_carray_list.c: Likewise.
74610         * lib/gl_linked_list.c: Likewise.
74611         * lib/gl_linkedhash_list.c: Likewise.
74612         * lib/gl_list.c: Likewise.
74613         * lib/gl_oset.c: Likewise.
74614         * lib/gl_rbtree_list.c: Likewise.
74615         * lib/gl_rbtree_oset.c: Likewise.
74616         * lib/gl_rbtreehash_list.c: Likewise.
74617         * lib/imaxabs.c: Likewise.
74618         * lib/imaxdiv.c: Likewise.
74619         * lib/javacomp.c: Likewise.
74620         * lib/javaexec.c: Likewise.
74621         * lib/javaversion.c: Likewise.
74622         * lib/linebreak.c: Likewise.
74623         * lib/localcharset.c: Likewise.
74624         * lib/lock.c: Likewise.
74625         * lib/mbchar.c: Likewise.
74626         * lib/mbswidth.c: Likewise.
74627         * lib/mkdtemp.c: Likewise.
74628         * lib/pipe.c: Likewise.
74629         * lib/printf-args.c: Likewise.
74630         * lib/printf-parse.c: Likewise.
74631         * lib/progname.c: Likewise.
74632         * lib/progreloc.c: Likewise.
74633         * lib/readlink.c: Likewise.
74634         * lib/sh-quote.c: Likewise.
74635         * lib/stpcpy.c: Likewise.
74636         * lib/stpncpy.c: Likewise.
74637         * lib/strcasecmp.c: Likewise.
74638         * lib/strcasestr.c: Likewise.
74639         * lib/strcspn.c: Likewise.
74640         * lib/striconv.c: Likewise.
74641         * lib/strncasecmp.c: Likewise.
74642         * lib/strnlen1.c: Likewise.
74643         * lib/strstr.c: Likewise.
74644         * lib/strtok_r.c: Likewise.
74645         * lib/tls.c: Likewise.
74646         * lib/tmpdir.c: Likewise.
74647         * lib/unicodeio.c: Likewise.
74648         * lib/unsetenv.c: Likewise.
74649         * lib/vasnprintf.c: Likewise.
74650         * lib/vasprintf.c: Likewise.
74651         * lib/wait-process.c: Likewise.
74652         * lib/xallocsa.c: Likewise.
74653         * lib/xsetenv.c: Likewise.
74654         * lib/xstriconv.c: Likewise.
74655
74656 2006-09-13  Simon Josefsson  <jas@extundo.com>
74657
74658         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74659         that internally, suggested by Ralf Wildenhues
74660         <Ralf.Wildenhues@gmx.de>.
74661
74662 2006-09-13  Simon Josefsson  <jas@extundo.com>
74663
74664         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74665         @LIBOBJS@.
74666         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74667
74668 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74669
74670         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74671         longer worry about uses that don't define HAVE_CONFIG_H.
74672         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74673         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74674         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74675         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74676         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74677         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74678         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74679         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74680         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74681         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74682         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74683         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74684         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74685         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74686         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74687         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74688         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74689         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74690         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74691         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74692         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74693         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74694         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74695         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74696         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74697         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74698         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74699         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74700         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74701         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74702         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74703         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74704         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74705         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74706         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74707         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74708         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74709         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74710         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74711         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74712         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74713         Likewise.
74714
74715 2006-09-13  Eric Blake  <ebb9@byu.net>
74716
74717         * lib/getopt.c: Fix typo in last commit.
74718
74719 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74720
74721         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74722         dgettext.
74723
74724 2006-09-12  Jim Meyering  <jim@meyering.net>
74725
74726         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74727         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74728         Reported by Nelson H. F. Beebe.
74729
74730 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74731
74732         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74733         program_invocation_name and program_invocation_short_name are
74734         initialized.
74735         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74736         and program_invocation_short_name to argp.h, so they are visible
74737         to user programs.
74738         * lib/argp.h: Likewise
74739
74740 2006-09-10  Bruno Haible  <bruno@clisp.org>
74741
74742         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74743         m4/inttypes_h.m4, m4/uintmax_t.m4.
74744
74745 2006-09-10  Bruno Haible  <bruno@clisp.org>
74746
74747         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74748         gl_AC_TYPE_UINTMAX_T.
74749
74750 2006-09-10  Bruno Haible  <bruno@clisp.org>
74751
74752         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74753
74754 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74755
74756         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74757         convention.  Text proposed by Bruno Haible.
74758         (struct argp_option): Document the use of N_() wrappers.
74759
74760         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74761         '\v', and translate the two parts separately, instead of feeding
74762         the whole string to gettext.  This allows to exclude
74763         '\v' from the strings visible to the translator by writing doc
74764         strings as N_("..") "\v" N_("..").
74765
74766 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74767
74768         * config/srclist.txt: Undo latest change; the bug was fixed.
74769
74770 2006-09-09  Bruno Haible  <bruno@clisp.org>
74771
74772         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74773         assignments if building a library without libtool.
74774         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74775         in func_emit_lib_Makefile_am.
74776         (func_import): When building a static library libfoo.a, arrange to
74777         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74778         (func_create_testdir): Likewise.
74779         * modules/gc (configure.ac, Makefile.am): If building statically,
74780         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74781         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74782         * modules/striconv (configure.ac, Makefile.am): Likewise.
74783         Based on a suggestion by Ralf Wildenhues.
74784
74785 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74786
74787         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74788         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74789         Also:
74790
74791         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74792         Add year_2050_test to catch glibc bug 2821
74793         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74794
74795         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74796         Prefer #ifdef to #if.
74797
74798         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74799         Return from 'main' instead of calling 'exit'.
74800
74801 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74802
74803         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74804         returned the maximum time_t value rather than (time_t) -1.
74805         Problem originally reported by William Bardwell
74806         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74807
74808         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74809         Moved to here ...
74810         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74811         ... from here.
74812
74813 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74814
74815         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74816         2821 is fixed.
74817
74818 2006-09-08  Jim Meyering  <jim@meyering.net>
74819
74820         Don't make generated files read-only.  That would bother too many
74821         people.  However, do retain the ability to work when targets are
74822         read-only: remove the destination and temporary files before writing
74823         them (when generated via sed or echo), or by using the -f option for
74824         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74825         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74826         * modules/byteswap, modules/configmake, modules/fcntl:
74827         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74828         * modules/localcharset, modules/netinet_in, modules/poll:
74829         * modules/stdbool, modules/stdint, modules/sys_select:
74830         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74831
74832 2006-09-08  Jim Meyering  <jim@meyering.net>
74833
74834         Avoid new build failure on FreeBSD 6.0.
74835         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74836         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74837         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74838
74839 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74840
74841         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74842
74843 2006-09-07  Jim Meyering  <jim@meyering.net>
74844
74845         Fix global typo in last change: use chmod u-w, not chmod u-x.
74846         Spotted by Paul Eggert and Bruce Korb.
74847         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74848         * modules/byteswap, modules/configmake, modules/fcntl:
74849         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74850         * modules/localcharset, modules/netinet_in, modules/poll:
74851         * modules/stdbool, modules/stdint, modules/sys_select:
74852         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74853
74854 2006-09-06  Jim Meyering  <jim@meyering.net>
74855
74856         Make generated files be read-only.
74857         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74858         Ensure that each generated file is now read-only.
74859         * modules/argz: Likewise.
74860         * modules/arpa_inet: Likewise.
74861         * modules/byteswap: Likewise.
74862         * modules/configmake: Likewise.
74863         * modules/fcntl: Likewise.
74864         * modules/fnmatch: Likewise.
74865         * modules/getopt: Likewise.
74866         * modules/glob: Likewise.
74867         * modules/inttypes: Likewise.
74868         * modules/netinet_in: Likewise.
74869         * modules/poll: Likewise.
74870         * modules/stdbool: Likewise.
74871         * modules/stdint: Likewise.
74872         * modules/sys_select: Likewise.
74873         * modules/sys_socket: Likewise.
74874         * modules/sys_stat: Likewise.
74875         * modules/sysexits: Likewise.
74876         * modules/localcharset: Same as above, but continue using temporary
74877         file named "t-$@" (why different?) rather than the "$@-t" used
74878         everywhere else.
74879
74880         * modules/sysexits (Makefile.am): Replace literal occurrences
74881         of "sysexit.h" more readable, and more consistent, "$@".
74882
74883 2006-09-06  Bruno Haible  <bruno@clisp.org>
74884
74885         * modules/striconv: New file.
74886         * modules/xstriconv: New file.
74887         * MODULES.html.sh (Internationalization functions): Add striconv,
74888         xstriconv.
74889
74890 2006-09-06  Bruno Haible  <bruno@clisp.org>
74891
74892         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74893         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74894         not using libtool correctly.
74895
74896 2006-09-06  Bruno Haible  <bruno@clisp.org>
74897
74898         * lib/striconv.h: New file.
74899         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74900         iconvstring.c.
74901         * lib/xstriconv.h: New file.
74902         * lib/xstriconv.c: New file.
74903
74904 2006-09-06  Bruno Haible  <bruno@clisp.org>
74905
74906         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74907         lib_..._LDFLAGS.
74908
74909 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74910
74911         * lib/argz_.h: Sync from Libtool.
74912
74913         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74914                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74915
74916         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74917
74918 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74919
74920         * modules/trim: New file.
74921
74922 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74923
74924         * lib/trim.h: New file.
74925         * lib/trim.c: New file.
74926
74927 2006-09-05  Bruno Haible  <bruno@clisp.org>
74928
74929         * MODULES.html.sh (String handling): Add trim.
74930
74931 2006-09-04  Karl Berry  <karl@gnu.org>
74932
74933         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74934         until next release.
74935
74936 2006-09-03  Bruno Haible  <bruno@clisp.org>
74937
74938         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74939         correctly.
74940
74941 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74942
74943         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74944         not gl_GETLOADAVG.  Omit unneeded semicolons.
74945         Problems reported by Ralf Wildenhues in
74946         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74947         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74948         at the end, which is the usual gnulib style.
74949
74950         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74951         of doing all the work ourselves.
74952         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74953         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74954
74955 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74956
74957         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74958         Problem reported by Ralf Wildenhues in
74959         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74960
74961         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74962         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74963
74964 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74965
74966         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74967         yesterday's patch by changing test -n to test -z.
74968
74969 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74970
74971         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74972         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74973         the former is now obsolescent.
74974
74975         * modules/chdir-long (Depends-on): Add fcntl.
74976
74977 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74978
74979         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74980         obsolescent, and programs should use gnulib instead.
74981         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74982         but with prefixes changed.
74983
74984 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74985
74986         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74987         or stdbool.h, because they might not exist while configuring.
74988
74989         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74990         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74991         does that for us.
74992         (O_DIRECTORY): Remove.
74993
74994 2006-08-31  Eric Blake  <ebb9@byu.net>
74995
74996         * gnulib-tool: Don't let emacs change spaces to TAB.
74997
74998 2006-08-31  Bruno Haible  <bruno@clisp.org>
74999
75000         * gnulib-tool: When calling func_import more than once, do it in a
75001         subshell.
75002         Reported by Eric Blake <ebb9@byu.net>.
75003
75004 2006-08-31  Bruno Haible  <bruno@clisp.org>
75005
75006         * gnulib-tool (nl): Remove variable.
75007         (sed_transform_lib_file): Use more robust test for config-h module.
75008         (func_import): Fix typo in 2006-08-25 patch.
75009
75010 2006-08-31  Bruno Haible  <bruno@clisp.org>
75011
75012         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
75013         specified, augment Makefile.am variables instead of assigning them.
75014
75015 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75016
75017         Work around a bug in both the Linux and SunOS 64-bit kernels:
75018         nanosleep mishandles sleeps for longer than 2**31 seconds.
75019         Problem reported by Frank v Waveren in
75020         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75021         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
75022         Check for nanosleep bug.
75023         (LIB_NANOSLEEP): Append clock_gettime library if needed.
75024
75025 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75026
75027         Work around a bug in both the Linux and SunOS 64-bit kernels:
75028         nanosleep mishandles sleeps for longer than 2**31 seconds.
75029         Problem reported by Frank v Waveren in
75030         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75031         * lib/nanosleep.c (BILLION): New constant.
75032         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
75033         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
75034         implementation.
75035
75036 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75037
75038         * modules/nanosleep (Depends-on): Add gettime.
75039
75040 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75041         and Simon Josefsson  <jas@extundo.com>
75042         and Oskar Liljeblad  <oskar@osk.mine.nu>
75043
75044         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
75045         * gnulib-tool (func_import): New license type 'unmodifiable license
75046         text'.
75047         * modules/fdl: Use it.  Longer description.
75048         * module/gpl, module/lgpl: New files.
75049
75050 2006-08-30  Jim Meyering  <jim@meyering.net>
75051
75052         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
75053         shadowing the parameter.
75054
75055 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75056
75057         Sync from Libtool:
75058
75059         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75060
75061         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
75062         sharing with gnulib.  Report by Eric Blake.
75063
75064 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75065
75066         * modules/isapipe: New file.
75067         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
75068
75069 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75070
75071         * modules/configmake (Makefile.am): Add a comment, and omit
75072         the CONFIGMAKE_ prefix from generated macro names.  Suggested
75073         by Bruno Haible.
75074
75075 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75076
75077         * m4/isapipe.m4: New file.
75078
75079 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75080
75081         * lib/isapipe.c, lib/isapipe.h: New files.
75082
75083 2006-08-29  Jim Meyering  <jim@meyering.net>
75084
75085         * modules/configmake (Makefile.am): Make configmake.h depend on
75086         Makefile.  Otherwise, a stale configmake.h could hang around.
75087
75088 2006-08-29  Eric Blake  <ebb9@byu.net>
75089
75090         * lib/error.c (error_at_line, print_errno_message): Match libc, after
75091         resolution of upstream bug 3044.
75092
75093 2006-08-29  Bruno Haible  <bruno@clisp.org>
75094
75095         * modules/localcharset (Depends-on): Add configmake.
75096         (Makefile.am): Remove setting of LIBDIR through DEFS.
75097
75098 2006-08-29  Bruno Haible  <bruno@clisp.org>
75099
75100         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
75101         defined.
75102
75103 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75104
75105         * modules/fcntl: New file.
75106         * modules/chdir-safer (Depends-on): Add fcntl.
75107         * modules/fts: Likewise.
75108         * modules/mkdir-p: Likewise.
75109
75110         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
75111         This undoes the most recent change, since we're now addressing the
75112         problem in a different way.
75113
75114         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
75115         into output, since the output might be called Makefile.am even
75116         if $makefile_name is something different.
75117         (func_import): Use $makefile_am rather than
75118         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
75119         empty.
75120
75121         * modules/inttypes (Files): Add m4/inttypes-h.m4.
75122
75123 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75124
75125         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
75126         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
75127         recent change to stdint.m4, since we're now addressing the problem in a
75128         different way.
75129
75130 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75131
75132         * m4/fcntl_h.m4: New file.
75133
75134 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75135
75136         * lib/fcntl_.h: New file.
75137         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
75138         the fcntl module.
75139         * lib/dirchownmod.c: Likewise.
75140         * lib/fts.c: Likewise.
75141
75142         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
75143         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
75144         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
75145         just before including <inttypes.h>, to avoid circular inclusion.
75146
75147 2006-08-28  Jim Meyering  <jim@meyering.net>
75148
75149         * doc/visibility.texi: Actually read and correct the grammar of the
75150         sentence affected by yesterday's change.
75151
75152 2006-08-28  Eric Blake  <ebb9@byu.net>
75153
75154         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
75155         needs wrapper.
75156
75157 2006-08-28  Eric Blake  <ebb9@byu.net>
75158
75159         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
75160
75161 2006-08-28  Eric Blake  <ebb9@byu.net>
75162
75163         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
75164
75165 2006-08-28  Bruno Haible  <bruno@clisp.org>
75166
75167         * modules/c-strstr: New file, from GNU gettext.
75168         * MODULES.html.sh (String handling): Add c-strstr.
75169
75170 2006-08-28  Bruno Haible  <bruno@clisp.org>
75171
75172         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
75173         macros.
75174         Reported by Eric Blake.
75175
75176 2006-08-28  Bruno Haible  <bruno@clisp.org>
75177
75178         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
75179         (VASNPRINTF): Return a string of length > INT_MAX without failing.
75180         * lib/vasprintf.c: Include errno.h, limits.h.
75181         (EOVERFLOW): New fallback definition.
75182         (vasprintf): Test here whether the string length is > INT_MAX.
75183         * lib/vsnprintf.c: Include errno.h, limits.h.
75184         (EOVERFLOW): New fallback definition.
75185         (vsnprintf): Fix bug when generated string was too long for the buffer.
75186         Test here whether the string length is > INT_MAX.
75187
75188 2006-08-28  Bruno Haible  <bruno@clisp.org>
75189
75190         * lib/inttypes_.h (SCNX*): Remove definitions.
75191         Reported by Eric Blake.
75192
75193 2006-08-28  Bruno Haible  <bruno@clisp.org>
75194
75195         * lib/c-strstr.h: New file, from GNU gettext.
75196         * lib/c-strstr.c: New file, from GNU gettext.
75197
75198 2006-08-28  Bruno Haible  <bruno@clisp.org>
75199
75200         * gnulib-tool: Reorder some statements.
75201
75202 2006-08-28  Bruno Haible  <bruno@clisp.org>
75203
75204         * gnulib-tool: New option --makefile-name.
75205         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
75206         $makefile_name.
75207         (func_import): Write $makefile_name to the cache file, and read it from
75208         there unless explicitly specified. Use $makefile_name as file name
75209         instead of Makefile.am. Adjust the recommendations accordingly.
75210
75211 2006-08-28  Bruno Haible  <bruno@clisp.org>
75212
75213         * gnulib-tool (func_verify_module): Check against misapplying patch.
75214
75215 2006-08-28  Bruno Haible  <bruno@clisp.org>
75216
75217         * gnulib-tool (func_relativize, func_relconcat): New functions.
75218         Give an error if --local-dir is given with --update.
75219         Remove trailing slashes from $local_gnulib_dir.
75220         (func_import): Store the relativized $local_gnulib_dir in
75221         gnulib-cache.m4, and read it from there if not specified explicitly.
75222
75223 2006-08-28  Bruno Haible  <bruno@clisp.org>
75224
75225         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
75226         is the current directory. Respect also $local_gnulib_dir.
75227
75228 2006-08-28  Bruno Haible  <bruno@clisp.org>
75229             Simon Josefsson  <jas@extundo.com>
75230
75231         BeOS portability.
75232         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
75233
75234 2006-08-27  Jim Meyering  <jim@meyering.net>
75235
75236         * doc/visibility.texi: Remove duplicate word: "pointer".
75237
75238 2006-08-26  Bruno Haible  <bruno@clisp.org>
75239
75240         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
75241         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
75242         (Makefile.am): Create inttypes.h from inttypes_.h.
75243         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
75244
75245         * modules/imaxabs: New file.
75246
75247         * modules/imaxdiv: New file.
75248
75249 2006-08-26  Bruno Haible  <bruno@clisp.org>
75250
75251         * m4/inttypes.m4: New file.
75252         * m4/_inttypes_h.m4: Remove file.
75253         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
75254         PRI_MACROS_BROKEN.
75255         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
75256
75257         * m4/imaxabs.m4: New file.
75258
75259         * m4/imaxdiv.m4: New file.
75260
75261 2006-08-26  Bruno Haible  <bruno@clisp.org>
75262
75263         * lib/inttypes_.h: New file.
75264         * lib/inttypes.h: Remove file.
75265         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
75266
75267         * lib/imaxabs.c: New file.
75268
75269         * lib/imaxdiv.c: New file.
75270
75271 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75272
75273         New config-h module, so that "make" output needn't be cluttered
75274         by -DHAVE_CONFIG_H.
75275         * MODULES.html.sh (Support for building libraries and executables):
75276         Add config-h.
75277         * modules/config-h: New file.
75278         * gnulib-tool (nl, sed_transform_lib_file): New vars.
75279         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
75280         the config-h module is used.
75281
75282         New configmake module, so that "make" output needn't be cluttered
75283         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
75284         * MODULES.html.sh (Support for building libraries and executables):
75285         Add configmake.
75286         * modules/configmake: New file.
75287
75288 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75289
75290         * m4/config-h.m4: New file.
75291
75292 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75293
75294         * config/srclist.txt: Add elisp-comp.
75295
75296 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75297
75298         * MODULES.html.sh (Support for building libraries and executables):
75299         Add elisp-comp.
75300         * build-aux/elisp-comp: New file.
75301         * modules/elisp-comp: New file.
75302
75303 2006-08-24  Bruno Haible  <bruno@clisp.org>
75304
75305         * gnulib-tool (func_create_testdir): Use non-default values of
75306         sourcebase and m4base.
75307
75308 2006-08-24  Bruno Haible  <bruno@clisp.org>
75309
75310         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
75311         HTML structure.
75312
75313 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75314
75315         * modules/openat (Depends-on): Add lchown.
75316
75317 2006-08-23  Bruno Haible  <bruno@clisp.org>
75318
75319         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
75320         of gl_LOCK_EARLY instead of gl_LOCK.
75321
75322 2006-08-23  Bruno Haible  <bruno@clisp.org>
75323
75324         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
75325         on OSF/1 to no.
75326         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
75327
75328 2006-08-23  Bruno Haible  <bruno@clisp.org>
75329
75330         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
75331         as unusable.
75332
75333         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
75334         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
75335         (gl_LOCK): New macro.
75336
75337 2006-08-22  Simon Josefsson  <jas@extundo.com>
75338
75339         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
75340         to md5 module.
75341
75342 2006-08-22  Simon Josefsson  <jas@extundo.com>
75343
75344         * MODULES.html.sh: Add "Support for maintaining and release
75345         projects".
75346
75347         * build-aux/gnupload: New file, from coreutils.
75348
75349 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75350
75351         Avoid the need for AC_LIBSOURCES in m4 macros.
75352         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
75353         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
75354         * modules/check-version (EXTRA_DIST): Add check-version.h.
75355         * modules/crc (EXTRA_DIST): Add crc.h.
75356         * modules/des (EXTRA_DIST): Add des.h.
75357         * modules/gc (EXTRA_DIST): Add gc.h.
75358         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
75359         * modules/getline (EXTRA_DIST): Add getline.h.
75360         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
75361         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
75362         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
75363         * modules/md2 (EXTRA_DIST): Add md2.h.
75364         * modules/md4 (EXTRA_DIST): Add md4.h.
75365         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
75366         * modules/read-file (EXTRA_DIST): Add read-file.h.
75367         * modules/readline (EXTRA_DIST): Add readline.h.
75368         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
75369         rijndael-api-fst.h.
75370
75371 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75372
75373         * m4/rijndael.m4 (gl_ARCFOUR):
75374         * m4/arctwo.m4 (gl_ARCTWO):
75375         * m4/check-version.m4 (gl_CHECK_VERSION):
75376         * m4/crc.m4 (gl_CRC):
75377         * m4/des.m4 (gl_DES):
75378         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
75379         * m4/gc.m4 (gl_GC):
75380         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
75381         * m4/getline.m4 (gl_FUNC_GETLINE):
75382         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
75383         * m4/hmac-md5.m4 (gl_HMAC_MD5):
75384         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
75385         * m4/md2.m4 (gl_MD2):
75386         * m4/md4.m4 (gl_MD4):
75387         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
75388         * m4/read-file.m4 (gl_FUNC_READ_FILE):
75389         * m4/readline.m4 (gl_FUNC_READLINE):
75390         * m4/rijndael.m4 (gl_RIJNDAEL):
75391         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75392         to get the necessary .h files and whatnot.
75393
75394 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75395
75396         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
75397         gnulib rather than the other way around.
75398         * config/srclistvars.sh (COREUTILS): Remove.
75399
75400 2006-08-22  Jim Meyering  <jim@meyering.net>
75401
75402         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
75403
75404         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
75405
75406 2006-08-22  Eric Blake  <ebb9@byu.net>
75407
75408         * modules/regexprops-generic: New file.
75409         * MODULES.html.sh (Support for building documentation): List it.
75410
75411 2006-08-22  Eric Blake  <ebb9@byu.net>
75412
75413         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
75414         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
75415         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
75416         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
75417
75418 2006-08-22  Bruno Haible  <bruno@clisp.org>
75419
75420         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
75421         and lib_LTLIBRARIES like the other lib_* variables.
75422
75423 2006-08-22  Bruno Haible  <bruno@clisp.org>
75424
75425         * build-aux/x-to-1.in: New file, from GNU gettext.
75426
75427 2006-08-22  Bruno Haible  <bruno@clisp.org>
75428
75429         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
75430         <utmpx.h> exists.
75431
75432 2006-08-22  Bruno Haible  <bruno@clisp.org>
75433
75434         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
75435         <utmpx.h> exists.
75436
75437 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75438
75439         BeOS portability.
75440         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
75441         exist.
75442         Problem reported by Bruno Haible.
75443
75444 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75445
75446         Avoid the need for AC_LIBSOURCES in m4 macros.
75447         * modules/acl (EXTRA_DIST): Add acl.h.
75448         * modules/argmatch (Files): Add m4/argmatch.m4.
75449         (configure.ac): Add gl_ARGMATCH.
75450         (EXTRA_DIST): Renamed from lib_SOURCES, for
75451         consistency with the other modules.  Remove argmatch.c.
75452         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
75453         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
75454         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
75455         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
75456         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
75457         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
75458         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
75459         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
75460         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
75461         * modules/closeout (EXTRA_DIST): Add closeout.h.
75462         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
75463         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
75464         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
75465         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
75466         dirname.h; remove basename.c and stripslash.c.
75467         * modules/exclude (EXTRA_DIST): Add exclude.h.
75468         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
75469         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
75470         * modules/file-type (EXTRA_DIST): Add file-type.h.
75471         * modules/filemode (EXTRA_DIST): Add filemode.h.
75472         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
75473         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75474         * modules/fpending (EXTRA_DIST): Add __fpending.h.
75475         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
75476         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
75477         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
75478         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
75479         * modules/getdate (EXTRA_DIST): Add getdate.c.
75480         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
75481         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
75482         * modules/getpass (EXTRA_DIST): Add getpass.h.
75483         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
75484         * modules/group-member (EXTRA_DIST): Add group-member.h.
75485         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
75486         * modules/hash (EXTRA_DIST): Add hash.h.
75487         * modules/human (EXTRA_DIST): Add human.h.
75488         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
75489         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
75490         * modules/lchown (EXTRA_DIST): Add lchown.h.
75491         * modules/long-options (EXTRA_DIST): Add long-options.h.
75492         * modules/lstat (EXTRA_DIST): Add lstat.h.
75493         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
75494         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
75495         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
75496         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
75497         * modules/memxor (EXTRA_DIST): Add memxor.h.
75498         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
75499         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
75500         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
75501         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
75502         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
75503         * modules/physmem (EXTRA_DIST): Add physmem.h.
75504         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
75505         * modules/posixver (EXTRA_DIST): Add posixver.h.
75506         * modules/quote (EXTRA_DIST): Add quote.h.
75507         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
75508         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
75509         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
75510         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
75511         regex_internal.h regexec.c.
75512         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
75513         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
75514         * modules/same (EXTRA_DIST): Add same.h.
75515         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
75516         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
75517         * modules/savedir (EXTRA_DIST): Add savedir.h.
75518         * modules/sha1 (EXTRA_DIST): Add sha1.h.
75519         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
75520         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
75521         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
75522         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
75523         * modules/strdup (EXTRA_DIST): Add strdup.h.
75524         * modules/strftime (EXTRA_DIST): Add strftime.h.
75525         * modules/strndup (EXTRA_DIST): Add strndup.h.
75526         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
75527         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
75528         * modules/time_r (EXTRA_DIST): Add time_r.h.
75529         * modules/timespec (EXTRA_DIST): Add timespec.h.
75530         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75531         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
75532         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
75533         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
75534         * modules/userspec (EXTRA_DIST): Add userspec.h.
75535         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
75536         * modules/utimens (EXTRA_DIST): Add utimens.h.
75537         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
75538         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
75539         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
75540         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
75541         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
75542         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
75543         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
75544         * modules/yesno (EXTRA_DIST): Add yesno.h.
75545
75546 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75547
75548         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
75549
75550         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
75551         * m4/dev-ino.m4, same-inode.m4: Remove.
75552
75553         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
75554         * m4/acl.m4 (AC_FUNC_ACL):
75555         * m4/backupfile.m4 (gl_BACKUPFILE):
75556         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75557         * m4/canon-host.m4 (gl_CANON_HOST):
75558         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75559         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75560         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75561         * m4/cloexec.m4 (gl_CLOEXEC):
75562         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75563         * m4/closeout.m4 (gl_CLOSEOUT):
75564         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75565         * m4/dirname.m4 (gl_DIRNAME):
75566         * m4/exclude.m4 (gl_EXCLUDE):
75567         * m4/exitfail.m4 (gl_EXITFAIL):
75568         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75569         * m4/file-type.m4 (gl_FILE_TYPE):
75570         * m4/filemode.m4 (gl_FILEMODE):
75571         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75572         * m4/fpending.m4 (gl_FUNC_FPENDING):
75573         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75574         * m4/fts.m4 (gl_FUNC_FTS):
75575         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75576         * m4/getdate.m4 (gl_GETDATE):
75577         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75578         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75579         * m4/getpass.m4 (gl_FUNC_GETPASS):
75580         * m4/gettime.m4 (gl_GETTIME):
75581         * m4/getugroups.m4 (gl_GETUGROUPS):
75582         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75583         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75584         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75585         * m4/hash.m4 (gl_HASH):
75586         * m4/idcache.m4 (gl_IDCACHE):
75587         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75588         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75589         * m4/long-options.m4 (gl_LONG_OPTIONS):
75590         * m4/lstat.m4 (gl_FUNC_LSTAT):
75591         * m4/md5.m4 (gl_MD5):
75592         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75593         * m4/memcoll.m4 (gl_MEMCOLL):
75594         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75595         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75596         * m4/memxor.m4 (gl_MEMXOR):
75597         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75598         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75599         * m4/modechange.m4 (gl_MODECHANGE):
75600         * m4/mountlist.m4 (gl_MOUNTLIST):
75601         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75602         * m4/openat.m4 (gl_FUNC_OPENAT):
75603         * m4/pathmax.m4 (gl_PATHMAX):
75604         * m4/physmem.m4 (gl_PHYSMEM):
75605         * m4/posixtm.m4 (gl_POSIXTM):
75606         * m4/posixver.m4 (gl_POSIXVER):
75607         * m4/quote.m4 (gl_QUOTE):
75608         * m4/quotearg.m4 (gl_QUOTEARG):
75609         * m4/readtokens.m4 (gl_READTOKENS):
75610         * m4/readutmp.m4 (gl_READUTMP):
75611         * m4/regex.m4 (gl_REGEX):
75612         * m4/safe-read.m4 (gl_SAFE_READ):
75613         * m4/safe-write.m4 (gl_SAFE_WRITE):
75614         * m4/same.m4 (gl_SAME):
75615         * m4/save-cwd.m4 (gl_SAVE_CWD):
75616         * m4/savedir.m4 (gl_SAVEDIR):
75617         * m4/settime.m4 (gl_SETTIME):
75618         * m4/sha1.m4 (gl_SHA1):
75619         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75620         * m4/stat-macros.m4 (gl_STAT_MACROS):
75621         * m4/stat-time.m4 (gl_STAT_TIME):
75622         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75623         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75624         * m4/strdup.m4 (gl_FUNC_STRDUP):
75625         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75626         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75627         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75628         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75629         * m4/time_r.m4 (gl_TIME_R):
75630         * m4/timespec.m4 (gl_TIMESPEC):
75631         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75632         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75633         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75634         * m4/userspec.m4 (gl_USERSPEC):
75635         * m4/utimecmp.m4 (gl_UTIMECMP):
75636         * m4/utimens.m4 (gl_UTIMENS):
75637         * m4/xalloc.m4 (gl_XALLOC):
75638         * m4/xgetcwd.m4 (gl_XGETCWD):
75639         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75640         * m4/xreadlink.m4 (gl_XREADLINK):
75641         * m4/xstrtod.m4 (gl_XSTRTOD):
75642         * m4/yesno.m4 (gl_YESNO):
75643         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75644         to get the necessary .h files and whatnot.
75645
75646 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75647             Bruno Haible  <bruno@clisp.org>
75648
75649         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75650         /bin/sh understanding of '!' conditional negation.
75651
75652 2006-08-21  Jim Meyering  <jim@meyering.net>
75653
75654         * modules/openat (Depends-on): Really alphabetize.
75655
75656         * modules/acl (Depends-on): Add error and quote.
75657
75658         * check-module (find_included_lib_files): Add at-func.c to the
75659         ok-to-include-more-than-once white list.
75660
75661         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75662
75663 2006-08-21  Bruno Haible  <bruno@clisp.org>
75664
75665         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75666         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75667         Reported by Martin Lambers <marlam@marlam.de>.
75668
75669 2006-08-21  Bruno Haible  <bruno@clisp.org>
75670
75671         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75672         specify an installation location, don't emit a noinst_LIBRARIES or
75673         noinst_LTLIBRARIES assignment.
75674
75675 2006-08-21  Bruno Haible  <bruno@clisp.org>
75676
75677         BeOS portability.
75678         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75679         BeOS has mbrtowc() but no <wctype.h>.
75680
75681 2006-08-21  Bruno Haible  <bruno@clisp.org>
75682
75683         BeOS portability.
75684         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75685         exist.
75686
75687 2006-08-21  Bruno Haible  <bruno@clisp.org>
75688
75689         BeOS portability.
75690         * lib/mbchar.h: Include <wctype.h> only if it exists.
75691
75692 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75693
75694         Remove files that are no longer needed by their respective modules.
75695         * m4/obstack.m4: Remove.
75696         * m4/strerror_r.m4: Remove.
75697         * m4/uint32_t.m4: Remove.
75698         * m4/uintptr_t.m4: Remove.
75699         * m4/ullong_max.m4: Remove.
75700         * m4/xstrtoimax.m4: Remove.
75701         * m4/xstrtoumax.m4: Remove.
75702
75703         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75704         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75705         dependencies now capture this.
75706
75707         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75708         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75709         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75710         * m4/human.m4 (gl_HUMAN): Likewise.
75711         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75712         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75713
75714         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75715
75716         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75717         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75718         stdint.
75719         * m4/human.m4 (gl_HUMAN): Likewise.
75720         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75721         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75722         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75723         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75724         * m4/xstrtol (gl_XSTRTOL): Likewise.
75725
75726         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75727         AC_TYPE_LONG_LONG_INT.
75728         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75729         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75730         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75731         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75732
75733         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75734         on stdbool.
75735
75736         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75737         (gl_PREREQ_XSTRTOUL): Remove.
75738
75739         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75740
75741         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75742         mode.
75743
75744 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75745
75746         Add and change modules to make it easier for coreutils to use
75747         gnulib-tool.
75748         * modules/backupfile (Files): Remove m4/d-ino.m4.
75749         (Depends-on): Add d-ino.
75750         * modules/cycle-check (Depends-on): Add stdint.
75751         (lib_SOURCES): Add cycle-check.h.
75752         * modules/d-ino: New module.
75753         * modules/d-type: New module.
75754         * modules/error (Files): Remove m4/strerror_r.m4.
75755         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75756         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75757         m4/inttypes_h.m4, m4/uintmax_t.m4.
75758         (Depends-on): Add stdint.
75759         (lib_SOURCES): Add fsusage.h.
75760         * modules/getcwd (Files): Remove d-ino.m4.
75761         (Depends-on): Add d-ino.
75762         * modules/getndelim2 (Depends-on): Add stdint.
75763         * modules/glob (Files): Remove m4/d-type.m4.
75764         (Depends-on): Add d-type.
75765         * modules/host-os: New module.
75766         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75767         m4/inttypes_h.m4, m4/uintmax_t.m4.
75768         * Depends-on: Add stdint.
75769         (lib_SOURCES): Add human.h.
75770         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75771         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75772         m4/uintmax_t.m4, m4/ulonglong.m4.
75773         (Depends-on): Add stdint.
75774         (EXTRA_DIST): Add inttostr.h.
75775         * modules/lchmod: New module.
75776         * modules/link-follow: New module.
75777         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75778         (Depends-on): Add lchmod.
75779         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75780         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75781         (Depends-on): Add stdint.
75782         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75783         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75784         (Depends-on): Add stdint.
75785         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75786         * modules/perl: New module.
75787         * modules/regex (Depends-on): Add stdint.
75788         * modules/rmdir-errno: New module.
75789         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75790         m4/intmax_t.m4.
75791         (Depends-on): Add stdint.
75792         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75793         m4/uintmax_t.m4.
75794         (Depends-on): Add stdint.
75795         * modules/unlink-busy: New module.
75796         * modules/utimecmp (Depends-on): Add stdint.
75797         * modules/uptime: New module.
75798         * modules/winsz-ioctl: New module.
75799         * modules/winsz-termios: New module.
75800         * modules/xnanosleep (Depends-on): Add nanosleep.
75801         * modules/ullong_max: Remove.
75802         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75803         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75804         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75805         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75806         (Depends-on): Add inttypes.
75807         (lib_SOURCES): Add xstrtol.h.
75808         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75809         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75810         * MODULES.html.sh: Move 'assert' into the assert section.
75811         Move 'dummy' into the linking section.
75812         Remove ullong_max.
75813         Add section for compatibility checks for POSIX:2001 functions,
75814         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75815         winsz-ioctl, and winsz-termios into it.
75816         Add lchmod.
75817         Add top-level Misc section and put host-os, perl, and uptime
75818         into it.
75819
75820 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75821
75822         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75823         now assume the stdint module.  Do not include inttypes.h.
75824         * lib/fsusage.h: Likewise.
75825         * lib/getndelim2.c: Likewise.
75826         * lib/human.h: Likewise.
75827         * lib/inttostr.h: Likewise.
75828         * lib/obstack.c: Likewise.
75829         * lib/regex_internal.h: Likewise.
75830         * lib/tempname.c: Likewise.
75831         * lib/utimecmp.c: Likewise.
75832         * lib/xstrtol.h: Likewise.
75833
75834         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75835
75836         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75837         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75838         * lib/xtime.h: Likewise.
75839
75840 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75841
75842         * modules/openat (Files): Add lib/fchmodat.c.
75843         Fixes problem reported by Jay Youngman.
75844
75845 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75846
75847         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75848         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75849
75850 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75851             Bruno Haible  <bruno@clisp.org>
75852
75853         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75854         and is a script that invokes bison. Tighten the code. Add comments.
75855
75856 2006-08-18  Jim Meyering  <jim@meyering.net>
75857
75858         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75859         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75860         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75861         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75862
75863 2006-08-18  Bruno Haible  <bruno@clisp.org>
75864
75865         * modules/bison-i18n: New file.
75866         * MODULES.html.sh (Internationalization functions): Add it.
75867
75868 2006-08-18  Bruno Haible  <bruno@clisp.org>
75869
75870         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75871         sys/statvfs.h. When getmntinfo was found, check its declaration and
75872         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75873
75874 2006-08-18  Bruno Haible  <bruno@clisp.org>
75875
75876         * m4/bison-i18n.m4: New file, from bison.
75877
75878 2006-08-18  Bruno Haible  <bruno@clisp.org>
75879
75880         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75881         (ME_DUMMY): Treat "kernfs" as a dummy.
75882         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75883
75884 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75885
75886         Update from coreutils.
75887
75888         2006-08-15  Jim Meyering  <jim@meyering.net>
75889
75890         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75891
75892         2006-01-17  Jim Meyering  <jim@meyering.net>
75893
75894         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75895
75896         2006-01-11  Jim Meyering  <jim@meyering.net>
75897
75898         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75899         Check for the lchmod function.
75900
75901 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75902
75903         Update from coreutils.
75904
75905         * lib/__fpending.h: Add copyright notice.
75906         * lib/fprintftime.h: Likewise.
75907         * lib/savedir.c: Use (C) in copyright notice.
75908         * lib/savedir.h: Likewise.
75909
75910         2006-08-15  Jim Meyering  <jim@meyering.net>
75911
75912         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75913         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75914         in support of the EXPECTED_ERRNO macro.
75915         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75916         definitions.  Instead, define the appropriate symbols and include
75917         "at-func.c".
75918         * lib/mkdirat.c (mkdirat): Likewise.
75919         * lib/fchmodat.c (fchmodat): Likewise.
75920         (ENOSYS): Remove definition.
75921         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75922         it.  Don't include "unistd--.h" -- it wasn't ever used.
75923
75924         2006-01-17  Jim Meyering  <jim@meyering.net>
75925
75926         Rewrite fts.c not to change the current working directory,
75927         by using openat, fstatat, fdopendir, etc..
75928
75929         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75930         (HAVE_OPENAT_SUPPORT): Define.
75931         [_LIBC] (fchdir): Don't undef or define; no longer used.
75932         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75933         Now, this `function' always succeeds, and consumes its file descriptor
75934         parameter -- so callers must not close such FDs.  Update callers.
75935         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75936         (diropen): Add parameter, SP.  Adjust all callers.
75937         Implement using diropen_fd, rather than open.
75938         (fts_open): Initialize new member, fts_cwd_fd.
75939         Remove fts_rft-setting code.
75940         (fts_close): Close fts_cwd_fd, if necessary.
75941         (__opendir2): Define in terms of opendir or opendirat,
75942         depending on whether the FST_NOCHDIR flag is set.
75943         (fts_build): Since fts_safe_changedir consumes its FD, and since
75944         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75945         and close the dup'd file descriptor upon failure.
75946         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75947         (fts_safe_changedir): Tweak semantics to reflect that this function
75948         now calls cwd_advance_fd and hence consumes its FD argument.
75949         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75950         [struct FTS] (fts_rft): Remove now-unused member.
75951         [struct FTS] (fts_cycle.state): Improve comment.
75952
75953         * lib/openat.c (openat_needs_fchdir): New function.
75954         * lib/openat.h (openat_needs_fchdir): Declare it.
75955
75956 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75957
75958         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75959         Problem and fix reported by Pádraig Brady in
75960         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75961
75962 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75963
75964         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75965
75966 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75967
75968         * lib/memcoll.c (memcoll): Optimize for the common case where the
75969         arguments are bytewise equal.
75970
75971 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75972
75973         * doc/regexprops-generic.texi: Add a copyright notice.
75974
75975 2006-08-15  Bruno Haible  <bruno@clisp.org>
75976
75977         * modules/tmpdir (License): Change to LGPL.
75978
75979 2006-08-15  Bruno Haible  <bruno@clisp.org>
75980
75981         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75982         module.
75983
75984 2006-08-14  Simon Josefsson  <jas@extundo.com>
75985
75986         * config/srclist.txt: Add gnupload.
75987
75988 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75989
75990         Change copyright notice from LGPL 2 to GPL 2, since that's the
75991         standard form used in the gnulib repository.
75992         * tests/test-lock.c: Likewise.
75993         * tests/test-stdint.c: Likewise.
75994         * tests/test-tls.c: Likewise.
75995
75996         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75997         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75998         Add copyright notice.
75999
76000         * check-module: Add copyright notice.  Output a copyright
76001         notice if "--version" is specified.
76002         * modules/COPYING: New file.
76003         * tests/test-getaddrinfo.c: Add copyright notice.
76004         * tests/test-verify.c: Likewise.
76005
76006 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76007
76008         Change copyright notice from LGPL 2 to GPL 2, since that's the
76009         standard form used in the gnulib repository.
76010         * lib/lock.c: LGPL -> GPL.
76011         * lib/lock.h: Likewise.
76012         * lib/strnlen1.c: Likewise.
76013         * lib/strnlen1.h: Likewise.
76014         * lib/tls.c: Likewise.
76015         * lib/tls.h: Likewise.
76016         * lib/tmpdir.c: Likewise.
76017
76018         * lib/TODO: Remove; this belongs only in coreutils.
76019
76020 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76021
76022         Add copyright notices to long-enough files that lack them, since
76023         otherwise the files aren't clearly free.  Use the same notice that
76024         getdate.texi already uses.
76025         * doc/alloca-opt.texi: Add copyright notice.
76026         * doc/alloca.texi: Likewise.
76027         * doc/ctime.texi: Likewise.
76028         * doc/functions.texi: Likewise.
76029         * doc/gcd.texi: Likewise.
76030         * doc/gnulib-tool.texi: Likewise.
76031         * doc/inet_ntoa.texi: Likewise.
76032         * doc/visibility.texi: Likewise.
76033
76034         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
76035         * doc/quote.texi: Add copyright notice.
76036
76037         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
76038         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
76039         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
76040         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
76041         is now obsolete, and give a pointer to the Sun list.
76042         Add copyright notice.
76043
76044 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76045
76046         * config/srclistvars.sh: Add copyright notice.
76047
76048 2006-08-14  Eric Blake  <ebb9@byu.net>
76049
76050         Import the following change from libc:
76051
76052         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
76053
76054         Upstream bug 2997.
76055         * lib/misc/error.c: Add space between program name and message if file
76056         name is missing.
76057
76058 2006-08-12  Karl Berry  <karl@gnu.org>
76059
76060         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
76061         remove, these originate in gnulib now.
76062
76063 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76064
76065         * doc/Makefile (standards.info standards.html standards.dvi):
76066         Also depend on make-stds.texi.
76067
76068 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76069
76070         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
76071         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
76072
76073         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
76074         in wchar_t.  Problem reported by Eric Blake.
76075
76076         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
76077         LEN is smaller than SIZE.  Suggested by Bruno Haible.
76078         Also, help the compiler to keep LEN in a register.
76079
76080 2006-08-11  Eric Blake  <ebb9@byu.net>
76081
76082         * users.txt: Sort.  Add tar.
76083
76084 2006-08-11  Bruno Haible  <bruno@clisp.org>
76085
76086         * users.txt: New file.
76087
76088 2006-08-11  Bruno Haible  <bruno@clisp.org>
76089
76090         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
76091         before <wchar.h>. Needed for OSF/1 and BSD/OS.
76092
76093 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76094
76095         * modules/snprintf (Depends-on): Remove minmax.
76096         (Maintainer): Add self and Bruno.
76097
76098 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76099
76100         * lib/.cppi-disable: Add snprintf.h, socket_.h.
76101         * lib/snprintf.c: Include <errno.h> and <limits.h>.
76102         (EOVERFLOW): Define if the system does not.
76103         Do not include "minmax.h"; it wasn't used.
76104         (snprintf): Don't assume size_t promotes to an unsigned type.
76105         Fix bug when generated string was too long for the buffer: the
76106         buffer's contents are supposed to be the initial prefix of the
76107         output.  Don't assume vasnprintf returns EOVERFLOW if the size
76108         exceeds INT_MAX; do the check ourselves.
76109
76110         Import the following changes from libc:
76111
76112         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
76113
76114         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
76115         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
76116         set wc to the byte which couldn't be converted.
76117         (re_string_reconstruct): Don't clear valid_raw_len before calling
76118         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
76119         tip_context using re_string_context_at.
76120
76121         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
76122
76123         * lib/posix/regex.h: g++ still cannot handled [restrict].
76124
76125         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
76126
76127         * lib/posix/regex.h: Remove special handling for VMS.
76128
76129 2006-08-10  Jim Meyering  <jim@meyering.net>
76130
76131         * modules/same-inode: New module.
76132         * modules/dev-ino: New module.
76133         * modules/cycle-check: Depend on these modules, rather than simply
76134         including their .h files.
76135         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
76136         required via m4/cycle-check.m4.
76137         * modules/same: Depend on new same-inode module, rather than
76138         including same-inode.h.
76139         * modules/chdir-safer: New file.
76140
76141         * modules/chown (Depends-on): Add stat-macros.
76142
76143 2006-08-10  Jim Meyering  <jim@meyering.net>
76144
76145         * m4/cycle-check.m4: New file.
76146         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
76147         * m4/dev-ino.m4, m4/same-inode.m4: New files.
76148
76149 2006-08-10  Eric Blake  <ebb9@byu.net>
76150
76151         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
76152         in from original proposal.
76153
76154 2006-08-10  Eric Blake  <ebb9@byu.net>
76155         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76156
76157         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
76158         namespace.
76159
76160 2006-08-10  Bruno Haible  <bruno@clisp.org>
76161
76162         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
76163         as well.
76164
76165 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76166
76167         Sync from coreutils.
76168
76169         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
76170
76171         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
76172         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
76173
76174 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76175
76176         * modules/restrict: Remove; no longer needed now that we assume
76177         Autoconf 2.59 or later.
76178         * MODULES.html.sh: Remove 'restrict'.
76179         * modules/argp (Depends-on): Remove 'restrict'.
76180         * modules/base64 (Depends-on): Likewise.
76181         * modules/gc (Depends-on): Likewise.
76182         * modules/getaddrinfo (Depends-on): Likewise.
76183         * modules/glob (Depends-on): Likewise.
76184         * modules/inet_ntop (Depends-on): Likewise.
76185         * modules/inet_pton (Depends-on): Likewise.
76186         * modules/memxor (Depends-on): Likewise.
76187         * modules/regex (Depends-on): Likewise.
76188         * modules/strtok_r (Depends-on): Likewise.
76189         * modules/time_r (Depends-on): Likewise.
76190
76191 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76192
76193         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
76194         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
76195         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76196         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
76197         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
76198         * m4/memxor.m4 (gl_MEMXOR): Likewise.
76199         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
76200         gl_C_RESTRICT replaced by AC_C_RESTRICT.
76201
76202         Merge from coreutils.
76203         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
76204         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
76205         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
76206         * m4/time_r.m4 (gl_TIME_R): Likewise.
76207
76208 2006-08-09  Karl Berry  <karl@gnu.org>
76209
76210         * config/srclist.txt: no more gettext-tools, per Bruno.
76211
76212 2006-08-08  Eric Blake  <ebb9@byu.net>
76213
76214         * modules/verror: New module.
76215         * MODULES.html.sh: Document it.
76216
76217 2006-08-08  Eric Blake  <ebb9@byu.net>
76218
76219         * lib/verror.h, lib/verror.c: New files.
76220
76221 2006-08-08  Eric Blake  <ebb9@byu.net>
76222
76223         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
76224         verror_at_line output complies with GNU Coding Standards even when
76225         file is NULL.
76226
76227 2006-08-07  Bruno Haible  <bruno@clisp.org>
76228
76229         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
76230         versions of AIX.
76231         Reported by Ralf Wildenhues.
76232
76233 2006-08-07  Bruno Haible  <bruno@clisp.org>
76234
76235         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
76236         in an AC_DEFUN. Needed so that the autoconf snippets can use
76237         AC_REQUIRE.
76238
76239 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76240
76241         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76242         Initialize pkgdata_DATA.
76243         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
76244         overriding it.
76245
76246 2006-08-06  Eric Blake  <ebb9@byu.net>
76247
76248         * lib/error.h: Fold in some upstream changes from glibc.
76249         * lib/error.c: Likewise.
76250
76251 2006-08-04  Bruno Haible  <bruno@clisp.org>
76252
76253         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76254         Make the mostlyclean-local rule depend on mostlyclean-generic.
76255         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
76256
76257 2006-07-31  Bruno Haible  <bruno@clisp.org>
76258
76259         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
76260         <stdlib.h>, <string.h>.
76261
76262 2006-07-30  Bruno Haible  <bruno@clisp.org>
76263
76264         * modules/readlink (License): Change to LGPL.
76265
76266 2006-07-30  Bruno Haible  <bruno@clisp.org>
76267
76268         * modules/javaversion (Makefile.am): Distribute javaversion.java and
76269         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
76270         set PKGDATADIR to point to it.
76271
76272 2006-07-30  Bruno Haible  <bruno@clisp.org>
76273
76274         * modules/csharpexec (configure.ac): Comment out macro invocation.
76275         * modules/javaexec (configure.ac): Likewise.
76276         * modules/javacomp-script (configure.ac): Likewise.
76277
76278         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
76279
76280 2006-07-30  Bruno Haible  <bruno@clisp.org>
76281
76282         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
76283         linked-list.
76284
76285 2006-07-30  Bruno Haible  <bruno@clisp.org>
76286
76287         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
76288
76289 2006-07-30  Bruno Haible  <bruno@clisp.org>
76290
76291         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76292         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
76293         get removed.
76294
76295 2006-07-29  Bruno Haible  <bruno@clisp.org>
76296
76297         Make it possible for gnulib-tool to work with locally modified or
76298         augmented gnulib repositories.
76299         * gnulib-tool (func_usage): Document --local-dir option.
76300         (local_gnulib_dir): New variable.
76301         Handle --local-dir option.
76302         (func_lookup_file): New function.
76303         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
76304         (func_get_description, func_get_filelist, func_get_description,
76305         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
76306         func_get_automake_snippet, func_get_include_directive,
76307         func_get_license, func_get_maintainer): Use func_lookup_file.
76308         (func_import, func_create_testdir): Use func_lookup_file.
76309
76310 2006-07-29  Bruno Haible  <bruno@clisp.org>
76311
76312         * modules/setenv (Depends-on): Add unistd.
76313
76314 2006-07-29  Bruno Haible  <bruno@clisp.org>
76315
76316         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
76317
76318 2006-07-29  Bruno Haible  <bruno@clisp.org>
76319
76320         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
76321
76322 2006-07-29  Bruno Haible  <bruno@clisp.org>
76323
76324         * gnulib-tool (import, update): If there is no Makefile.am, look at
76325         aclocal.m4, instead of bailing out.
76326
76327 2006-07-29  Bruno Haible  <bruno@clisp.org>
76328
76329         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
76330         Categorize the options by when they are useful.
76331
76332 2006-07-29  Bruno Haible  <bruno@clisp.org>
76333
76334         * gnulib-tool (func_usage): Document option --no-libtool.
76335         Handle option --no-libtool.
76336         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
76337         for changed semantics of $libtool variable.
76338         (func_import): Likewise. If libtool is not used, show this through
76339         an option --no-libtool.
76340         (func_create_testdir): Update.
76341
76342 2006-07-29  Bruno Haible  <bruno@clisp.org>
76343
76344         * gnulib-tool (func_import): Extend error message about missing
76345         --doc-base.
76346
76347 2006-07-29  Bruno Haible  <bruno@clisp.org>
76348
76349         * gnulib-tool (func_import): Don't create the $docbase directory if
76350         there is no file to store there.
76351
76352 2006-07-29  Bruno Haible  <bruno@clisp.org>
76353
76354         * gnulib-tool (autoconf_minversion): If a --dir option is given and
76355         relevant, look for configure.ac there, not in the current directory.
76356         Also use a simple search for AC_PREREQ, not "autoconf --trace".
76357
76358 2006-07-29  Bruno Haible  <bruno@clisp.org>
76359
76360         * gnulib-tool (SORT): New variable.
76361         (func_usage): Undocument --assume-autoconf option.
76362         Remove --assume-autoconf option handling.
76363         (autoconf_minversion): Determine from the contents of configure.ac.
76364         (func_import): Remove autoconf_minversion handling.
76365         Suggested by Eric Blake.
76366
76367 2006-07-29  Bruno Haible  <bruno@clisp.org>
76368
76369         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
76370
76371 2006-07-29  Bruno Haible  <bruno@clisp.org>
76372
76373         * config/srclist.txt (*setenv.[ch]): Remove rules.
76374
76375 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76376
76377         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
76378
76379 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76380
76381         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
76382         arpa/inet.h.
76383
76384 2006-07-28  Simon Josefsson  <jas@extundo.com>
76385
76386         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
76387         * modules/inet_pton (Depends-on): Likewise.
76388
76389 2006-07-28  Simon Josefsson  <jas@extundo.com>
76390
76391         * m4/netinet_in_h.m4: New file.
76392
76393 2006-07-28  Simon Josefsson  <jas@extundo.com>
76394
76395         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
76396         #include's.
76397
76398 2006-07-28  Simon Josefsson  <jas@extundo.com>
76399
76400         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
76401         #include's.
76402
76403 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
76404
76405         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
76406         setgid on directories only if they set these bits.
76407         * lib/modechange.h: Remove obsolete comment about masks.
76408
76409 2006-07-28  Eric Blake  <ebb9@byu.net>
76410
76411         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
76412         macro expansion.
76413
76414 2006-07-28  Bruno Haible  <bruno@clisp.org>
76415
76416         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
76417
76418 2006-07-28  Bruno Haible  <bruno@clisp.org>
76419
76420         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
76421
76422 2006-07-28  Bruno Haible  <bruno@clisp.org>
76423
76424         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76425         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76426         Define fallbacks.
76427         Avoids link error on FreeBSD 4.x.
76428         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76429
76430         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
76431         encoding.
76432         * lib/mbswidth.c (iswcntrl): Likewise.
76433
76434 2006-07-27  Bruno Haible  <bruno@clisp.org>
76435
76436         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
76437         test.
76438
76439 2006-07-27  Bruno Haible  <bruno@clisp.org>
76440
76441         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
76442         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
76443         defined.
76444
76445 2006-07-26  Eric Blake  <ebb9@byu.net>
76446
76447         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
76448
76449 2006-07-26  Eric Blake  <ebb9@byu.net>
76450
76451         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
76452         like mingw that lack mkstemp.
76453         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
76454         avoid compilation warning on mingw.
76455
76456 2006-07-26  Bruno Haible  <bruno@clisp.org>
76457
76458         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
76459         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
76460         INT_FAST*_MIN, INTPTR_MIN.
76461
76462 2006-07-25  Bruno Haible  <bruno@clisp.org>
76463
76464         * modules/version-etc (Depends-on): Add stdarg.
76465
76466 2006-07-25  Bruno Haible  <bruno@clisp.org>
76467
76468         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
76469         complex commands.
76470
76471 2006-07-25  Bruno Haible  <bruno@clisp.org>
76472
76473         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
76474         defined in <stdarg.h> or config.h.
76475
76476 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76477
76478         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
76479         (gl_STDIO_SAFER): Remove.
76480
76481 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76482
76483         * MODULES.html.sh (File stream based Input/Output):
76484         Add fopen-safer, tmpfile-safer; remove stdio-safer.
76485         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
76486         * modules/fopen-safer, modules/tmpfile-safer: New files.
76487         * modules/stdio-safer: Remove.
76488
76489 2006-07-24  Bruno Haible  <bruno@clisp.org>
76490
76491         * modules/tmpdir: New file.
76492         * MODULES.html.sh (File system functions): Add it.
76493
76494 2006-07-24  Bruno Haible  <bruno@clisp.org>
76495
76496         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
76497         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
76498
76499 2006-07-24  Bruno Haible  <bruno@clisp.org>
76500
76501         * modules/clean-temp: New file.
76502
76503 2006-07-24  Bruno Haible  <bruno@clisp.org>
76504
76505         * m4/tmpdir.m4: New file, from GNU gettext.
76506
76507 2006-07-24  Bruno Haible  <bruno@clisp.org>
76508
76509         * lib/tmpdir.h: New file, from GNU gettext.
76510         * lib/tmpdir.c: New file, from GNU gettext.
76511
76512 2006-07-24  Bruno Haible  <bruno@clisp.org>
76513
76514         * lib/clean-temp.h: New file, from GNU gettext.
76515         * lib/clean-temp.c: New file, from GNU gettext.
76516
76517 2006-07-23  Eric Blake  <ebb9@byu.net>
76518
76519         * modules/stdio-safer (Files): Add tmpfile-safer.c.
76520         (Depends-on): Add binary-io.
76521
76522 2006-07-23  Eric Blake  <ebb9@byu.net>
76523
76524         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
76525
76526 2006-07-23  Eric Blake  <ebb9@byu.net>
76527
76528         * lib/tmpfile-safer.c: New file.
76529         * lib/stdio-safer.h (fopen_safer): Add prototype.
76530         * lib/stdio--.h (tmpfile): Make safer.
76531
76532 2006-07-23  Bruno Haible  <bruno@clisp.org>
76533
76534         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
76535         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
76536         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
76537         gl_linked_remove_at): Use it.
76538
76539 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76540         and Simon Josefsson <jas@extundo.com>
76541
76542         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
76543
76544         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
76545
76546 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76547
76548         * modules/close-stream: New file.
76549         * modules/closeout (Description): Make it clear that it exits
76550         with a diagnostic on error.
76551         (Depends-on): Add close-stream.  Remove fpending, stdbool.
76552         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
76553
76554 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76555
76556         * m4/close-stream.m4: New file.
76557
76558 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76559
76560         * lib/close-stream.c, lib/close-stream.h: New files.
76561
76562 2006-07-22  Bruno Haible  <bruno@clisp.org>
76563
76564         Merge from GNU gettext 0.15.
76565
76566         2006-05-01  Bruno Haible  <bruno@clisp.org>
76567
76568                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76569
76570         2006-07-22  Bruno Haible  <bruno@clisp.org>
76571
76572                 * modules/javaversion: New file.
76573                 * MODULES.html.sh (Java): Add javaversion.
76574
76575         2006-03-12  Bruno Haible  <bruno@clisp.org>
76576
76577                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76578
76579         2005-12-04  Bruno Haible  <bruno@clisp.org>
76580
76581                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76582                 (untested).
76583
76584         2006-06-21  Bruno Haible  <bruno@clisp.org>
76585
76586                 Avoid warnings from recent versions of mcs.
76587                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76588                 -o, -L, -r any more. Use options documented since mcs-1.0
76589                 instead. Similarly for -g.
76590
76591         2005-12-04  Bruno Haible  <bruno@clisp.org>
76592
76593                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76594                 .resources, not .resource.
76595
76596         2005-07-09  Bruno Haible  <bruno@clisp.org>
76597
76598                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76599                 add a .dll suffix.
76600                 Reported by Mark Junker <mjscod@gmx.de>.
76601
76602         2006-07-22  Bruno Haible  <bruno@clisp.org>
76603
76604                 * modules/gettext: Upgrade to gettext-0.15.
76605                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76606                 m4/visibility.m4.
76607                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76608
76609 2006-07-22  Bruno Haible  <bruno@clisp.org>
76610
76611         Merge from GNU gettext 0.15.
76612
76613         2006-03-25  Bruno Haible  <bruno@clisp.org>
76614
76615                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76616
76617         2006-07-21  Bruno Haible  <bruno@clisp.org>
76618
76619                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76620                 "1.1".
76621
76622         2006-05-09  Bruno Haible  <bruno@clisp.org>
76623
76624                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76625                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76626                 for the conftestver execution.
76627
76628         2006-05-01  Bruno Haible  <bruno@clisp.org>
76629
76630                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76631                 optional target-version argument. Verify that the compiler
76632                 groks source of the specified source-version, or add -source
76633                 option as necessary. Verify that the compiler produces
76634                 bytecode in the specified target-version, or add -target and
76635                 -source options as necessary. Make the result of the test
76636                 available as variable CONF_JAVAC. Also log error output in
76637                 config.log.
76638
76639         2006-03-11  Bruno Haible  <bruno@clisp.org>
76640
76641                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76642
76643         2006-05-09  Bruno Haible  <bruno@clisp.org>
76644
76645                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76646                 CLASSPATH_SEPARATOR to a semicolon.
76647
76648         2006-03-12  Bruno Haible  <bruno@clisp.org>
76649
76650                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76651                 available as variable CONF_JAVA, for subsequent autoconf
76652                 tests. Also log error output in config.log.
76653
76654         2006-07-19  Bruno Haible  <bruno@clisp.org>
76655
76656                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76657                 that getline works on glibc2 systems. Needed to avoid trouble
76658                 in relocatable.c.
76659                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76660
76661         2005-12-04  Bruno Haible  <bruno@clisp.org>
76662
76663                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76664                 launcher (untested).
76665
76666         2005-12-04  Bruno Haible  <bruno@clisp.org>
76667
76668                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76669
76670         2006-07-22  Bruno Haible  <bruno@clisp.org>
76671
76672                 * gettext.m4: Update from GNU gettext-0.15.
76673                 * nls.m4: Likewise.
76674                 * po.m4: Likewise.
76675                 * inttypes-pri.m4: Likewise.
76676                 * inttypes-h.m4: Renamed from inttypes.m4.
76677                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76678
76679 2006-07-22  Bruno Haible  <bruno@clisp.org>
76680
76681         Merge from GNU gettext 0.15.
76682
76683         2005-07-05  Bruno Haible  <bruno@clisp.org>
76684
76685                 * printf-args.c (printf_fetchargs): Work around broken
76686                 definition of wint_t on mingw.
76687
76688         2005-02-12  Bruno Haible  <bruno@clisp.org>
76689
76690                 * xallocsa.h: Add extern "C" for C++.
76691
76692         2006-05-17  Bruno Haible  <bruno@clisp.org>
76693
76694                 Cygwin portability.
76695                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76696
76697         2006-04-30  Bruno Haible  <bruno@clisp.org>
76698
76699                 * progreloc.c: Include <mach-o/dyld.h> if available.
76700                 (find_executable): Use _NSGetExecutablePath when possible.
76701
76702         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76703
76704                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76705                 function.
76706
76707         2005-12-29  Bruno Haible  <bruno@clisp.org>
76708
76709                 * progreloc.c (set_program_name_and_installdir): Fix
76710                 compilation error.
76711
76712         2005-12-04  Bruno Haible  <bruno@clisp.org>
76713
76714                 Cygwin portability.
76715                 * progreloc.c: Include <windows.h> also on Cygwin.
76716                 (find_executable): Add support for Cygwin.
76717                 (set_program_name_and_installdir): Handle also platforms with
76718                 nonempty EXEEXT.
76719
76720         2006-07-11  Bruno Haible  <bruno@clisp.org>
76721
76722                 * javacomp.c: Fix a comment.
76723                 Reported by Jim Meyering.
76724
76725         2006-04-30  Bruno Haible  <bruno@clisp.org>
76726
76727                 * javacomp.h (compile_java_class): Add source_version,
76728                 target_version arguments.
76729                 * javacomp.c: Rewritten to choose only a compiler that
76730                 respects the specified source_version and target_version.
76731
76732         2006-06-27  Bruno Haible  <bruno@clisp.org>
76733
76734                 Assume correct S_ISDIR macro.
76735                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76736
76737         2006-07-22  Bruno Haible  <bruno@clisp.org>
76738
76739                 * javaversion.h: New file, from GNU gettext.
76740                 * javaversion.c: New file, from GNU gettext.
76741                 * javaversion.java: New file, from GNU gettext.
76742                 * javaversion.class: New file, from GNU gettext.
76743
76744         2006-05-17  Bruno Haible  <bruno@clisp.org>
76745
76746                 Cygwin portability.
76747                 * javaexec.c (execute_java_class): Test for jview program
76748                 also on Cygwin.
76749
76750         2006-04-09  Bruno Haible  <bruno@clisp.org>
76751
76752                 * fatal-signal.c: Don't include string.h.
76753                 (at_fatal_signal): Use a copying loop instead of memcpy.
76754
76755         2005-12-04  Bruno Haible  <bruno@clisp.org>
76756
76757                 * csharpexec.c: Add support for 'clix' launcher (untested).
76758                 (execute_csharp_using_sscli): New function.
76759                 (execute_csharp_program): Call it.
76760
76761         2006-06-21  Bruno Haible  <bruno@clisp.org>
76762
76763                 Avoid warnings from recent versions of mcs.
76764                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76765                 -o, -L, -r any more. Use options documented since mcs-1.0
76766                 instead. Similarly for -g.
76767
76768         2005-07-09  Bruno Haible  <bruno@clisp.org>
76769
76770                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76771                 add a .dll suffix.
76772                 Reported by Mark Junker <mjscod@gmx.de>.
76773
76774         2006-06-17  Bruno Haible  <bruno@clisp.org>
76775
76776                 * config.charset: Update for NetBSD 3.0.
76777
76778         2006-05-17  Bruno Haible  <bruno@clisp.org>
76779
76780                 Cygwin portability.
76781                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76782
76783         2006-05-16  Bruno Haible  <bruno@clisp.org>
76784
76785                 * localcharset.c [CYGWIN]: Include <windows.h>.
76786                 (get_charset_aliases): For Cygwin, return the same CPxxx
76787                 aliases list as under WIN32.
76788                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76789                 the environment variables. Fall back to GetACP().
76790
76791         2006-04-05  Bruno Haible  <bruno@clisp.org>
76792
76793                 * config.charset: Update Juan Manuel Guerrero's address.
76794
76795         2005-02-12  Bruno Haible  <bruno@clisp.org>
76796
76797                 * allocsa.h: Add extern "C" for C++.
76798
76799         2005-02-10  Bruno Haible  <bruno@clisp.org>
76800
76801                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76802                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76803
76804         2006-07-22  Bruno Haible  <bruno@clisp.org>
76805
76806                 * gettext.h: Update to GNU gettext-0.15.
76807
76808 2006-07-22  Bruno Haible  <bruno@clisp.org>
76809
76810         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76811         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76812         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76813
76814 2006-07-21  Eric Blake  <ebb9@byu.net>
76815
76816         * modules/stdlib-safer: New file.
76817         * MODULES.html.sh (File stream based Input/Output): Add
76818         stdlib-safer.
76819
76820 2006-07-21  Eric Blake  <ebb9@byu.net>
76821
76822         * lib/stdlib-safer.h: New file from coreutils, required by
76823         stdlib--.h.
76824
76825 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76826
76827         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76828
76829 2006-07-20  Bruno Haible  <bruno@clisp.org>
76830
76831         * gnulib-tool: Recognize new option --assume-autoconf.
76832         (autoconf_minversion): New variable.
76833         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76834
76835 2006-07-20  Bruno Haible  <bruno@clisp.org>
76836
76837         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76838
76839 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76840
76841         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76842         Reindent and repaginate.
76843
76844 2006-07-19  Derek Price  <derek@ximbiot.com>
76845
76846         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76847         Correct grammar.
76848
76849 2006-07-17  Bruno Haible  <bruno@clisp.org>
76850
76851         * modules/list: New file.
76852         * modules/array-list: New file.
76853         * modules/carray-list, modules/carray-list-tests: New files.
76854         * modules/linked-list, modules/linked-list-tests: New files.
76855         * modules/avltree-list, modules/avltree-list-tests: New files.
76856         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76857         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76858         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76859         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76860         * modules/oset: New file.
76861         * modules/array-oset: New file.
76862         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76863         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76864         * tests/test-carray_list.c: New file.
76865         * tests/test-linked_list.c: New file.
76866         * tests/test-avltree_list.c: New file.
76867         * tests/test-rbtree_list.c: New file.
76868         * tests/test-linkedhash_list.c: New file.
76869         * tests/test-avltreehash_list.c: New file.
76870         * tests/test-rbtreehash_list.c: New file.
76871         * tests/test-avltree_oset.c: New file.
76872         * tests/test-rbtree_oset.c: New file.
76873         * MODULES.html.sh (Container data structures): New section.
76874
76875 2006-07-17  Bruno Haible  <bruno@clisp.org>
76876
76877         * m4/gl_list.m4: New file.
76878
76879 2006-07-17  Bruno Haible  <bruno@clisp.org>
76880
76881         * lib/gl_list.h: New file.
76882         * lib/gl_list.c: New file.
76883         * lib/gl_array_list.h: New file.
76884         * lib/gl_array_list.c: New file.
76885         * lib/gl_carray_list.h: New file.
76886         * lib/gl_carray_list.c: New file.
76887         * lib/gl_linked_list.h: New file.
76888         * lib/gl_linked_list.c: New file.
76889         * lib/gl_anylinked_list1.h: New file.
76890         * lib/gl_anylinked_list2.h: New file.
76891         * lib/gl_avltree_list.h: New file.
76892         * lib/gl_avltree_list.c: New file.
76893         * lib/gl_anyavltree_list1.h: New file.
76894         * lib/gl_anyavltree_list2.h: New file.
76895         * lib/gl_rbtree_list.h: New file.
76896         * lib/gl_rbtree_list.c: New file.
76897         * lib/gl_anyrbtree_list1.h: New file.
76898         * lib/gl_anyrbtree_list2.h: New file.
76899         * lib/gl_anytree_list1.h: New file.
76900         * lib/gl_anytree_list2.h: New file.
76901         * lib/gl_linkedhash_list.h: New file.
76902         * lib/gl_linkedhash_list.c: New file.
76903         * lib/gl_anyhash_list1.h: New file.
76904         * lib/gl_anyhash_list2.h: New file.
76905         * lib/gl_avltreehash_list.h: New file.
76906         * lib/gl_avltreehash_list.c: New file.
76907         * lib/gl_rbtreehash_list.h: New file.
76908         * lib/gl_rbtreehash_list.c: New file.
76909         * lib/gl_anytreehash_list1.h: New file.
76910         * lib/gl_anytreehash_list2.h: New file.
76911
76912         * lib/gl_oset.h: New file.
76913         * lib/gl_oset.c: New file.
76914         * lib/gl_array_oset.h: New file.
76915         * lib/gl_array_oset.c: New file.
76916         * lib/gl_avltree_oset.h: New file.
76917         * lib/gl_avltree_oset.c: New file.
76918         * lib/gl_rbtree_oset.h: New file.
76919         * lib/gl_rbtree_oset.c: New file.
76920         * lib/gl_anytree_oset.h: New file.
76921
76922 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76923
76924         * m4/mkancesdirs.m4: New file.
76925         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76926         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76927         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76928         it.
76929
76930 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76931
76932         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76933         * lib/mkancesdirs.h: New files.
76934         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76935         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76936         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76937         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76938         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76939         callers changed.  Revamp internals significantly, by not
76940         attempting to create directories that are temporarily more
76941         permissive than the final results.  Do not attempt to use
76942         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76943         This removes some race conditions, fixes some bugs, and simplifies
76944         things.  Use new dirchownmod function to do owner and mode changes.
76945         * lib/mkdir-p.h: Likewise.
76946         * lib/modechange.c (octal_to_mode): New function.
76947         (struct mode_change): New member mentioned.
76948         (make_node_op_equals): New arg mentioned.  All callers changed.
76949         (mode_compile): Keep track of which mode bits the user has explicitly
76950         mentioned.
76951         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76952         New arg PMODE_BITS, to keep track of which mode bits the user
76953         mentioned; it treats S_ISUID and S_ISGID speciall.
76954         All callers changed.
76955         * lib/modechange.h: Likewise.
76956
76957 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76958
76959         * MODULES.html.sh: Add mkancestors.
76960         * modules/mkancesdirs: New module.
76961         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76962         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76963         The chdir-safer and afs files are now orphans; I'll remove them
76964         unless someone speaks up.
76965         Add lib/dirchownmod.c, lib/dirchownmod.h.
76966         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76967         Add lchown, mkancesdirs.
76968         (Maintainer): Add self.
76969
76970 2006-07-15  Karl Berry  <karl@gnu.org>
76971
76972         * gnulib-tool: help message wording/arrangement.
76973
76974 2006-07-14  Simon Josefsson  <jas@extundo.com>
76975
76976         * doc/gnulib.texi (Libtool and Windows): New section.
76977
76978 2006-07-12  Simon Josefsson  <jas@extundo.com>
76979
76980         * modules/gendocs (License): Fix license, approved by Karl.
76981
76982 2006-07-12  Eric Blake  <ebb9@byu.net>
76983
76984         * MODULES.html.sh: Add gendocs.
76985
76986 2006-07-11  Eric Blake  <ebb9@byu.net>
76987
76988         * modules/fdl: New module, to install doc/fdl.texi.
76989         * MODULES.html.sh: Add new section for documentation modules.
76990         * gnulib-tool: Avoid space-tab.
76991         (--doc-base): New option, to manage files from doc.
76992
76993 2006-07-11  Eric Blake  <ebb9@byu.net>
76994
76995         * m4/absolute-header.m4: Fix comments to match recent change.
76996
76997 2006-07-11  Eric Blake  <ebb9@byu.net>
76998
76999         * gnulib-tool: List --doc-base before --tests-base.
77000
77001 2006-07-11  Derek R. Price  <derek@ximbiot.com>
77002
77003         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
77004
77005 2006-07-11  Bruno Haible  <bruno@clisp.org>
77006
77007         * README: Mention where to put documentation.
77008
77009 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77010
77011         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
77012
77013 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77014
77015         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
77016         to stdint.m4.
77017
77018 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77019
77020         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
77021         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
77022         "no/such/file/stdint.h" when there is no such file, so that
77023         the resulting C code can be parsed by dodgy compilers.
77024         Problems reported by Bob Proulx.
77025
77026 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77027
77028         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
77029         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77030         macros into the GNU _D_EXACT_NAMLEN.
77031         * lib/savedir.c:  Likewise.
77032         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
77033
77034 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77035         and Paul Eggert  <eggert@cs.ucla.edu>
77036
77037         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
77038         * m4/savedir.m4:
77039         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77040         macros into the GNU _D_EXACT_NAMLEN.
77041
77042 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77043
77044         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
77045         around the absolute name, to work around a problem with the HP-UX
77046         11.23 native C compiler, reported by Bob Proulx.
77047
77048 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77049
77050         * doc/maintain.texi, make-stds.texi: Sync from
77051         <http://savannah.gnu.org/projects/gnustandards>.
77052
77053 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77054
77055         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
77056
77057 2006-07-09  Jim Meyering  <jim@meyering.net>
77058
77059         * m4/glob.m4: Remove a doubled word in a comment.
77060
77061 2006-07-09  Jim Meyering  <jim@meyering.net>
77062
77063         * lib/argp-pv.c: Remove a doubled word in a comment.
77064         * lib/check-version.c (check_version): Likewise.
77065         * lib/javacomp.c (compile_java_class): Likewise.
77066
77067 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77068
77069         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
77070         for the benefit of people using Autoconf 2.60.  If you want to
77071         support older Autoconf versions you can copy m4/onceonly_2_57.m4
77072         (or m4/onceonly.m4, if pre-2.57) manually.
77073
77074 2006-07-08  Jim Meyering  <jim@meyering.net>
77075
77076         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
77077         comment.
77078         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
77079         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
77080         comment.
77081
77082 2006-07-08  Jim Meyering  <jim@meyering.net>
77083
77084         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
77085
77086 2006-07-07  Simon Josefsson  <jas@extundo.com>
77087
77088         * tests/test-crc.c: Change expected crc value, the test vector
77089         were probably computed using the old broken crc.c?
77090
77091 2006-07-06  Simon Josefsson  <jas@extundo.com>
77092
77093         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
77094         now the canonical place for the M4 file).
77095
77096         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
77097         from the sys_socket dependency now.
77098
77099         * modules/inet_pton (Files): Ditto.
77100
77101         * modules/inet_ntop (Files): Ditto.
77102
77103 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77104
77105         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
77106         not gl_PREREQ_GETUSERSHELL.
77107
77108 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77109
77110         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
77111         with only one argument, for Autoconf 2.60.
77112         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
77113         expand to nothing, so add a shell command to avoid syntax error.
77114         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77115
77116 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77117
77118         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
77119
77120 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77121
77122         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
77123         no longer needed.  Check for isblank decl.
77124         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
77125         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
77126         of existence.
77127
77128 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77129
77130         * lib/getloadavg.c: Use __VMS, not VMS.
77131         * lib/getopt.c: Likewise.
77132         * lib/getpagesize.h: Likewise.
77133         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
77134         and probably does not work.
77135
77136 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77137
77138         * lib/.cppi-disable: Add wcwidth.
77139         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
77140         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
77141         (ISGRAPH): Remove.  All uses changed to isgraph.
77142         (FOLD) [!defined _LIBC]: Remove special case.
77143         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
77144         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
77145         HAVE_ISBLANK.
77146         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
77147         case.
77148
77149 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77150
77151         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
77152         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
77153         brackets.  Other minor changes to suppress some compiler
77154         warnings.
77155
77156 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77157         and Paul Eggert  <eggert@cs.ucla.edu>
77158
77159         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
77160         of invoking obsolescent AC_HEADER_DIRENT macro.
77161         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
77162         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
77163         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77164         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
77165         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
77166         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77167         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
77168         * m4/readdir.m4: Remove; no longer needed.
77169
77170 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77171         and Paul Eggert  <eggert@cs.ucla.edu>
77172
77173         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
77174         Don't worry about this obsolete case any more.
77175         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
77176         directories.
77177         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
77178         worry about this obsolete case any more.
77179         * lib/fts.c: Likewise.
77180         * lib/getcwd.c: Likewise.
77181         * lib/glob.h: Likewise.
77182         * lib/savedir.c: Likewise.
77183
77184 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77185
77186         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
77187         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
77188         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
77189         needed.
77190         All uses removed.
77191         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77192         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77193         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
77194         needed.
77195         * m4/getdate.m4 (gl_GETDATE): Likewise.
77196         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77197         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77198         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77199         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77200         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77201         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77202         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
77203         needed.
77204
77205 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77206
77207         * lib/memcasecmp.c: Include <limits.h>.
77208         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
77209         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
77210         Don't assume isdigit succeeds only on '0' through '9'.
77211
77212 2006-07-05  Eric Blake  <ebb9@byu.net>
77213
77214         * modules/getaddrinfo (Depends-on): Add snprintf.
77215
77216 2006-07-05  Eric Blake  <ebb9@byu.net>
77217
77218         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
77219         to avoid 'header present but could not be compiled' on cygwin.
77220
77221 2006-07-05  Eric Blake  <ebb9@byu.net>
77222
77223         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
77224         missing from netdb.h.
77225         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
77226
77227 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77228
77229         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
77230         no longer needed.
77231         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
77232         * m4/getdate.m4 (gl_GETDATE): Likewise.
77233         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77234         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77235         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77236         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77237         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77238
77239 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77240
77241         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
77242         All uses of is_space replaced by isspace.
77243         * lib/exit.h: Don't talk about STDC_HEADERS.
77244         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
77245         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
77246         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
77247         replaced by isprint etc.
77248         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
77249         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77250         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
77251         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
77252         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
77253         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77254
77255 2006-07-05  Bruno Haible  <bruno@clisp.org>
77256
77257         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
77258         the function exists, before testing against AIX.
77259         Reported by Martin Lambers <marlam@marlam.de>.
77260
77261 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77262
77263         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
77264         From Mark D. Baushke.
77265
77266 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77267
77268         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
77269         to the absolute name, not just one, to bypass Sun C 5.8's
77270         "warning: #include of /usr/include/... may be non-portable".
77271
77272 2006-07-04  Eric Blake  <ebb9@byu.net>
77273
77274         * modules/dirname-tests: New test module.
77275         * tests/test-dirname.c: New file, replacing dirname.c
77276         TEST_DIRNAME section that was recently deleted.
77277
77278 2006-07-04  Bruno Haible  <bruno@clisp.org>
77279
77280         Assume ANSI C header files and <ctype.h> functions.
77281         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
77282         (mbsnwidth): Use isprint, iscntrl instead.
77283
77284 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77285
77286         Merge from coreutils.
77287         * MODULES.html.sh: Add xstrtold.
77288         * modules/xstrtold: New file.
77289         * modules/cycle-check (Files): Add lib/same-inode.h.
77290         * modules/dirname (Files): Add m4/double-slash-root.m4.
77291         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
77292         * modules/mkdir-p (Files): Add lib/same-inode.h.
77293         * modules/same (Files): Add lib/same-inode.h.
77294
77295 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77296
77297         * m4/absolute-header.m4: Renamed from full-header-path.m4.
77298         This is to keep the terminology clean; POSIX talks about
77299         "absolute pathnames", not "full pathnames", but the GNU
77300         Coding Standards say to use "path" for something else;
77301         so use "absolute" to keep both sides happy.
77302         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
77303         Set gl_absolute_header, not gl_full_header_path.
77304         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
77305         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
77306         All uses changed.
77307
77308         Merge from coreutils.
77309
77310         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77311
77312         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
77313         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
77314         want to require the building of c-strtod.o.
77315         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
77316         needs -lm directly.
77317         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
77318
77319         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77320
77321         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
77322         --as-needed option if available.  Problem reported by Albert Chin in
77323         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
77324         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
77325         cc merely issues a bunch of annoying warnings for --as-needed
77326         (this problem was reported by Bob Proulx).  Also, try linking with
77327         -lm to detect a bug in binutils 2.16 (this problem was reported
77328         by Ralf Wildenhues).
77329
77330         2006-06-18  Jim Meyering  <jim@meyering.net>
77331
77332         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
77333         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
77334         macro.
77335         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
77336         also check for glibc-2.4's abort-inducing bug.
77337
77338         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
77339         Low-probability clean-up should be to use rmdir to get rid of
77340         the just-created directory, not unlink.
77341
77342         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
77343         configure fail, and request a bug report to inform us about it.
77344         Add a comment that, barring reports to the contrary, in 2007 we'll
77345         assume ftruncate is universally available.
77346
77347         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77348
77349         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
77350
77351         2006-03-12  Jim Meyering  <jim@meyering.net>
77352
77353         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
77354         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
77355         * m4/same.m4 (gl_SAME): Likewise.
77356         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
77357
77358         2006-03-11  Eric Blake  <ebb9@byu.net>
77359
77360         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
77361         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
77362         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
77363         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
77364
77365 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77366
77367         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
77368         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
77369         reported by Mark D. Baushke, one in
77370         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
77371
77372         Merge from coreutils.
77373
77374         * lib/.cppi-disable: Add stdint_.h.
77375         * lib/.cvsignore: Add stdint.h.
77376
77377         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77378
77379         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
77380         both double and long double versions.
77381         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
77382         * lib/xstrtold.c: New file.
77383         * lib/xstrtod.h (xstrtold): New decl.
77384
77385         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77386
77387         * lib/filemode.c (setst): Remove.
77388         (strmode): Rewrite to avoid setst.  This makes the code shorter,
77389         (arguably) clearer, and the generated code is a bit smaller on my
77390         Debian GNU/Linux stable x86 host.
77391
77392         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77393
77394         * lib/filemode.c: Include "filemode.h" first, to test the interface.
77395         Assume that filemode.h includes sys/types.h and sys/stat.h.
77396         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
77397         (ftypelet): Reorder to put common cases first, for efficiency.
77398         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
77399         to do 'M'.
77400         (strmode): Renamed from mode_string, and now stores 12 bytes instead
77401         of 10, for compatibility with FreeBSD.  All callers changed.
77402         (filemodestring): Now stores 12 bytes instead of 10, and sets file
77403         types that can't be deduced solely from st_mode.  First arg is now a
77404         const pointer.
77405         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
77406         (strmode): Renamed from mode_string.
77407         (filemodestring): New decl.
77408         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
77409         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
77410         needed.
77411         (S_ISPORT, S_ISWHT): New macros, if not already defined.
77412
77413         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77414
77415         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
77416         fsusage.h now does that.  Include fsusage.h first, to test interface.
77417         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
77418         at most one method (the old code could have generated decls that
77419         didn't conform to C89, not that this was ever exercised).
77420         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
77421
77422         2006-03-19  Jim Meyering  <jim@meyering.net>
77423
77424         Work even in a chroot where d_ino values for entries in "/"
77425         don't match the stat.st_ino values for the same names.
77426         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
77427         number, iterate through all entries again, using lstat instead.
77428         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
77429         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
77430
77431         * lib/getcwd.c (__getcwd): Clarify a comment.
77432         Use memcpy in place of a call to strcpy.
77433
77434         2006-03-12  Jim Meyering  <jim@meyering.net>
77435
77436         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
77437         matches that of the current directory (which we're about to chdir ".."
77438         out of), then save the dev-ino of the parent, instead.
77439
77440         * lib/same-inode.h (SAME_INODE): New file/macro.
77441         * lib/chdir-safer.c (SAME_INODE): Remove definition.
77442         Include "same-inode.h", instead.
77443         * lib/same.c: Likewise.
77444         * lib/cycle-check.h: Include "same-inode.h".
77445         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
77446         * lib/cycle-check.c (SAME_INODE): Remove definition.
77447         * lib/root-dev-ino.h: Include "same-inode.h".
77448
77449         2006-03-11  Eric Blake  <ebb9@byu.net>
77450
77451         * lib/same.c (same_name): s/base_name/last_component/
77452         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
77453         * lib/filenamecat.c (file_name_concat): Likewise.
77454
77455         2006-03-11  Eric Blake  <ebb9@byu.net>,
77456                     Paul Eggert  <eggert@cs.ucla.edu>
77457
77458         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
77459         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
77460         drive prefix.
77461         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
77462         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
77463         (last_component): New method.
77464         * lib/dirname.c (dir_len): Determine when drive letters need a
77465         subsequent slash.  Preserve // when it is special.
77466         (dir_name): Don't append dot when drive letter is absolute.
77467         [TEST_DIRNAME]: Move into a full-blown gnulib test.
77468         * lib/basename.c (base_name): New semantics - malloc the result.
77469         Preserve // when it is special.  Preserve relative files that look
77470         like drive letters.
77471         (base_len): Preserve // when it is special.
77472         (last_component): New method, similar to old base_name semantics.
77473         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
77474         base_name.  Strip redundant slashes from ///.
77475
77476 2006-07-03  Jim Meyering  <jim@meyering.net>
77477
77478         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
77479         macro is used before the first cycle_check call.
77480
77481 2006-07-03  Eric Blake  <ebb9@byu.net>
77482
77483         * modules/dirname (Depends-on): Add xstrndup.
77484
77485 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77486
77487         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
77488         test cases, so that config.log is a bit easier to follow.
77489
77490 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77491
77492         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
77493         both are 64 bits, since this seems to be the tradition, and this
77494         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
77495         we ever run into a host that prefers long long to long in this
77496         case, we'll need another configure-time test.  Problem reported by
77497         Jim Meyering.
77498
77499 2006-07-02  Eric Blake  <ebb9@byu.net>
77500
77501         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
77502
77503 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77504
77505         * modules/inttypes (Depends-on): No longer depends on stdint.
77506         * modules/stdint (Description): Say more about assumptions.
77507         Say that the fast types might differ.  Say macros are used.
77508         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
77509         (Makefile.am): Revise list of substituted symbols to match
77510         new stdint.m4.
77511         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
77512         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
77513         * tests/test-stdint.c (verify_same_types)
77514         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
77515         the code conforms to C99/C89.
77516         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
77517         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
77518
77519 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77520
77521         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
77522         but fix a bug, by requiring at least 64 bits.
77523         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77524         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
77525         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
77526         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77527
77528         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
77529         changes.  Make 2.59 a prerequisite.  Check and substitute for
77530         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
77531         inttypes.h.  Do not use special include files; just use the
77532         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
77533         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
77534         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
77535         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
77536         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
77537         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
77538         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
77539         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
77540         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
77541         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
77542         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
77543         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
77544         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
77545         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
77546         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
77547         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
77548         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
77549         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
77550         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
77551         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
77552         WINT_MAX.  Check for C99 conformance more strictly, by detecting
77553         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
77554         not check for things that C99 does not require, e.g., int8_t.  If
77555         a test isn't needed unless <stdint.h> isn't working, and is
77556         unlikely to be needed for any other reason, then don't do it
77557         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77558         size_t, since we assume C89 freestanding at least.  Do not check
77559         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77560         the right thing even if the types are not defined.  Instead use:
77561         (gl_STDINT_TYPE_PROPERTIES): New macro.
77562         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77563         testing whether <sys/types.h> clashes, as Autoconf does this for
77564         us now.  All uses removed.
77565         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77566         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77567         (gl_CHECK_TYPE_SAME):
77568         Remove; no longer needed.
77569         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77570         exists, since we'll return 0 anyway in that case.
77571         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77572
77573 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77574
77575         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77576         possible collision with system files.
77577         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77578         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77579         WCHAR_MIN and WCHAR_MAX in this case.
77580         (<stddef.h>): Do not include; no longer needed.
77581         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77582         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77583         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77584         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77585         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77586         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77587         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77588         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77589         !defined(__c99))]: Include in this case too, since it's harmless
77590         now.
77591         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77592         dangerous to do so.
77593         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77594         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77595         (_STDINT_MIN, _STDINT_MAX): New macros.
77596         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77597         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77598         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77599         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77600         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77601         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77602         macros, not typedefs; this simplifies things quite a bit.
77603         Use long int for all types narrower than int64_t.
77604         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77605         Define in terms of long long int or int64_t or long int,
77606         not int64_t or int32_t.  This saves some compile-time testing.
77607         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77608         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77609         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77610         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77611         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77612         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77613         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77614         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77615         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77616         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77617         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77618         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77619         undef any previous version and define our own version, for
77620         simplicity and consistency with the new macros for types.
77621         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77622         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77623         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77624         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77625         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77626         @WINT_T_SUFFIX@ to keep things simple here.
77627         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77628         Simplify by assuming typical 8/16/32/64 host, since we're
77629         already doing that elsewhere anyway.
77630         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77631         and assume long long int is 64 bits if available.  This
77632         speeds up 'configure'.
77633
77634 2006-07-01  Eric Blake  <ebb9@byu.net>
77635
77636         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77637         Reported by Andreas Buening.
77638
77639 2006-07-01  Eric Blake  <ebb9@byu.net>
77640
77641         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77642
77643 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77644
77645         * lib/getaddrinfo.c: fixed typo
77646
77647 2006-06-29  Jim Meyering  <jim@meyering.net>
77648
77649         * modules/strftime (Maintainer): Add my name, since with the
77650         FPRINTFTIME changes strftime.c has forked from glibc.
77651
77652 2006-06-29  Eric Blake  <ebb9@byu.net>
77653
77654         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77655
77656 2006-06-29  Eric Blake  <ebb9@byu.net>
77657
77658         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77659
77660 2006-06-29  Eric Blake  <ebb9@byu.net>
77661
77662         * lib/stat_.h: New file.
77663
77664 2006-06-29  Eric Blake  <ebb9@byu.net>
77665
77666         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77667         unused static function.
77668
77669 2006-06-29  Eric Blake  <ebb9@byu.net>
77670
77671         * doc/functions.texi (Function Portability): Document missing lstat
77672         on mingw.
77673
77674 2006-06-29  Eric Blake  <ebb9@byu.net>
77675
77676         * MODULES.html.sh: Add sys_stat.
77677         * modules/sys_stat: New module.
77678         * modules/mkstemp (Depends-on): Add sys_stat.
77679
77680 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77681
77682         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77683
77684 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77685
77686         * m4/c-bs-a.m4: Removed.
77687
77688 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77689
77690         * lib/strftime.c: Assume strftime() exists.
77691
77692 2006-06-29  Derek Price  <derek@ximbiot.com>
77693
77694         * modules/c-bs-a: Removed - \a is C89.
77695         * MODULES.html.sh: Remove c-bs-a.
77696
77697 2006-06-29  Bruno Haible  <bruno@clisp.org>
77698
77699         * modules/wcwidth (License): Change to LGPL.
77700
77701 2006-06-28  Simon Josefsson  <jas@extundo.com>
77702
77703         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77704         on _WIN32.
77705
77706         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77707         getnameinfo.
77708
77709 2006-06-28  Simon Josefsson  <jas@extundo.com>
77710
77711         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77712
77713 2006-06-28  Simon Josefsson  <jas@extundo.com>
77714
77715         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77716         functions there.  It will succeed on Windows XP, but on Windows
77717         2000 and (presumably) earlier, it will fail, and use the internal
77718         re-implementation.
77719         (use_win32_p): New function.
77720         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77721         Support AI_NUMERICSERV to disable getservbyname.
77722         (getnameinfo): New function, only supports
77723         NI_NUMERICHOST|NI_NUMERICSERV for now.
77724
77725         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77726         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77727         getnameinfo.
77728
77729 2006-06-28  Eric Blake  <ebb9@byu.net>
77730
77731         * modules/wcwidth: New file.
77732         * modules/mbchar (Depends-on): Add wcwidth.
77733         * modules/mbswidth (Depends-on): Add wcwidth.
77734         * MODULES.html.sh: Add wcwidth.
77735
77736 2006-06-28  Eric Blake  <ebb9@byu.net>
77737
77738         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77739         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77740
77741 2006-06-28  Eric Blake  <ebb9@byu.net>
77742
77743         * lib/xvasprintf.h: Fix comments.
77744
77745 2006-06-28  Eric Blake  <ebb9@byu.net>
77746
77747         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77748         * lib/mbswidth.c (wcwidth): Move from here...
77749         * lib/wcwidth.h: ...to this new file.
77750
77751 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77752
77753         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77754
77755         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77756         it's obsolete.
77757         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77758
77759 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77760
77761         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77762         Autoconf 2.60 says this stuff was obsolete.
77763
77764 2006-06-28  Bruno Haible  <bruno@clisp.org>
77765
77766         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77767
77768 2006-06-28  Bruno Haible  <bruno@clisp.org>
77769
77770         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77771         gt_TYPE_WCHAR_T.
77772
77773 2006-06-28  Bruno Haible  <bruno@clisp.org>
77774
77775         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77776         declaration for wcwidth.
77777         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77778
77779 2006-06-28  Bruno Haible  <bruno@clisp.org>
77780
77781         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77782         (mkdir): Define using _mkdir.
77783
77784 2006-06-28  Bruno Haible  <bruno@clisp.org>
77785
77786         * lib/getaddrinfo.h: Fix POSIX URL.
77787         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77788         _WIN32.
77789         (use_win32_p): Make static.
77790         (getaddrinfo): Reject service name if it is empty or does not consist
77791         solely of decimal digits, or if its value is > 65535.
77792         (getnameinfo): Remove useless casts.
77793
77794 2006-06-27  Simon Josefsson  <jas@extundo.com>
77795
77796         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77797         Eggert and Martin Lambers.
77798
77799 2006-06-27  Simon Josefsson  <jas@extundo.com>
77800
77801         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77802         Eggert and Martin Lambers.
77803
77804 2006-06-27  Bruno Haible  <bruno@clisp.org>
77805
77806         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77807         result to 0, not to empty.
77808         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77809
77810 2006-06-27  Bruno Haible  <bruno@clisp.org>
77811
77812         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77813
77814 2006-06-26  Simon Josefsson  <jas@extundo.com>
77815
77816         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77817         present.
77818
77819 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77820
77821         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77822         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77823         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77824
77825 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77826
77827         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77828
77829 2006-06-26  Bruno Haible  <bruno@clisp.org>
77830
77831         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77832
77833 2006-06-26  Bruno Haible  <bruno@clisp.org>
77834
77835         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77836
77837 2006-06-26  Bruno Haible  <bruno@clisp.org>
77838
77839         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77840         SGI C compiler in pre-C99 mode.
77841         Suggested by Mark D. Baushke and Larry Jones.
77842
77843 2006-06-26  Bruno Haible  <bruno@clisp.org>
77844
77845         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77846         WCHAR_MAX.
77847         Reported by Mark D. Baushke and Larry Jones.
77848
77849 2006-06-26  Bruno Haible  <bruno@clisp.org>
77850
77851         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77852         in pre-C99 mode.
77853         Suggested by Mark D. Baushke and Larry Jones.
77854
77855 2006-06-23  Simon Josefsson  <jas@extundo.com>
77856             Bruno Haible  <bruno@clisp.org>
77857
77858         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77859         Emit mostlyclean-local rule.
77860         (func_emit_tests_Makefile_am): Likewise.
77861         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77862
77863 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77864
77865         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77866
77867 2006-06-23  Bruno Haible  <bruno@clisp.org>
77868
77869         * tests/test-stdint.c: Update to match ISO C 99 Technical
77870         Corrigendum 1.
77871
77872 2006-06-23  Bruno Haible  <bruno@clisp.org>
77873
77874         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77875
77876 2006-06-23  Bruno Haible  <bruno@clisp.org>
77877
77878         * lib/stdint_.h: Treat IRIX like OpenBSD.
77879
77880 2006-06-23  Bruno Haible  <bruno@clisp.org>
77881
77882         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77883         ISO C 99 Technical Corrigendum 1.
77884
77885 2006-06-22  Simon Josefsson  <jas@extundo.com>
77886
77887         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77888         MinGW.
77889
77890 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77891
77892         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77893         needed.  Some compiler complained about some of them.  Problem reported
77894         by Larry Jones in
77895         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77896
77897 2006-06-21  Simon Josefsson  <jas@extundo.com>
77898
77899         * tests/test-getaddrinfo.c: New file.
77900
77901         * modules/getaddrinfo-tests: New file.
77902
77903         * MODULES.html.sh: Add inet_pton.
77904
77905         * modules/inet_pton: New file.
77906
77907 2006-06-21  Simon Josefsson  <jas@extundo.com>
77908
77909         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77910         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77911         of using the (limited) gnulib implementation on Windows XP.
77912
77913         * m4/inet_pton.m4: New file.
77914
77915 2006-06-21  Simon Josefsson  <jas@extundo.com>
77916
77917         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77918         variable.
77919
77920         * lib/socket_.h: Don't define WINVER.
77921
77922         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77923         slightly modified to work in gnulib.
77924
77925 2006-06-21  Simon Josefsson  <jas@extundo.com>
77926
77927         * doc/gnulib.texi (Windows sockets): Add.
77928
77929 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77930
77931         * lib/read-file.c (fread_file): Start with buffer allocation of
77932         0 bytes rather than 1 byte; this simplifies the code.
77933         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77934         code to free buffer and save/restore errno.
77935         (internal_read_file): Remove unused local.
77936
77937 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77938
77939         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77940         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77941         Problem reported by Denis Excoffier in
77942         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77943
77944 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77945
77946         * modules/sys_socket, modules/socklen: Include sys/types since
77947         FreeBSD 4.x's sys/socket.h needs it.
77948
77949 2006-06-19  Simon Josefsson  <jas@extundo.com>
77950
77951         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77952
77953 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77954
77955         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77956
77957 2006-06-19  Bruno Haible  <bruno@clisp.org>
77958
77959         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77960         and FULL_PATH_INTTYPES_H in angle brackets.
77961         Reported by Mark D. Baushke <mdb@gnu.org>.
77962
77963 2006-06-17  Eric Blake  <ebb9@byu.net>
77964
77965         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77966         errno.
77967
77968 2006-06-17  Bruno Haible  <bruno@clisp.org>
77969
77970         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77971         <sys/inttypes.h>.
77972
77973 2006-06-17  Bruno Haible  <bruno@clisp.org>
77974
77975         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77976         whether errno is declared. Assume <errno.h> declares errno.
77977
77978 2006-06-17  Bruno Haible  <bruno@clisp.org>
77979
77980         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77981
77982 2006-06-17  Bruno Haible  <bruno@clisp.org>
77983
77984         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77985         problem on Solaris 2.5.1.
77986
77987 2006-06-16  Eric Blake  <ebb9@byu.net>
77988
77989         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77990         * lib/unicodeio.c [!defined errno]: Likewise.
77991         * lib/strtol.c [!defined errno]: Likewise.
77992         * lib/strtod.c [!defined errno]: Likewise.
77993
77994 2006-06-15  Eric Blake  <ebb9@byu.net>
77995
77996         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77997
77998 2006-06-15  Eric Blake  <ebb9@byu.net>
77999
78000         * config/srclist.txt (ssize_t.m4): Lose sync.
78001
78002 2006-06-15  Bruno Haible  <bruno@clisp.org>
78003
78004         * modules/stdint (Files): Include m4/full-header-path.m4,
78005         m4/size_max.m4, m4/wchar_t.m4.
78006         (Makefile.am): Many more substitutions.
78007         * modules/stdint-tests: New file.
78008         * tests/test-stdint.c: New file.
78009
78010 2006-06-15  Bruno Haible  <bruno@clisp.org>
78011
78012         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
78013         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
78014         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
78015         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
78016         gl_CHECK_TYPE_SAME): New macros.
78017
78018 2006-06-15  Bruno Haible  <bruno@clisp.org>
78019
78020         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
78021
78022 2006-06-15  Bruno Haible  <bruno@clisp.org>
78023
78024         * lib/stdint_.h: Rewritten to be fully auto-configured.
78025         Fixes bug on HP-UX/IA64.
78026
78027 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
78028
78029         * lib/getdate.y (__attribute__): Don't define if already defined.
78030         Problem reported by Larry Jones.
78031         * lib/utimens.c (__attribute__): Likewise.
78032
78033 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
78034
78035         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
78036         reported by Andreas Schwab.
78037
78038 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78039             Bruno Haible  <bruno@clisp.org>
78040
78041         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
78042         check for the declaration of strnlen and a run test that exposes the
78043         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
78044         rpl_strndup.
78045
78046 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78047             Bruno Haible  <bruno@clisp.org>
78048
78049         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
78050
78051 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78052
78053         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
78054         compile test, for Tru64 4.0D.
78055
78056 2006-05-28  Karl Berry  <karl@gnu.org>
78057
78058         * config/srclist.txt (printf-args.c): lose sync.
78059
78060 2006-05-26  Martin Lambers  <marlam@marlam.de>
78061
78062         * lib/getpass.c: Updates the test for the native W32 API, and adds
78063         missing includes, thus fixing compilation warnings.
78064
78065 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78066
78067         * lib/exclude.c (exclude_fnmatch): New function.
78068         (excluded_file_name): Call exclude_fnmatch.
78069         * lib/exclude.h (excluded_file_name): New prototype
78070
78071 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
78072
78073         * lib/tempname.c (small_open, large_open): New macros.
78074         (__open, __open64) [!_LIBC]: Remove.
78075         (__gen_tempname): Use small_open and large_open instead of __open
78076         and __open64.  This fixes a portability bug on HP-UX 11.11i
78077         reported by Simon Wing-Tang in
78078         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
78079
78080 2006-05-24  Bruno Haible  <bruno@clisp.org>
78081
78082         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
78083         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
78084         Reported by Thorsten Maerz <torte@netztorte.de> via
78085         Aaron Stone <aaron@serendipity.cx>.
78086
78087 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78088
78089         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
78090         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
78091         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
78092         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
78093         not really conditional on the cache.
78094         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
78095
78096 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78097
78098         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
78099         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
78100         (my_usleep): Don't mishandle maximum value.
78101
78102 2006-05-19  Jim Meyering  <jim@meyering.net>
78103
78104         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
78105
78106 2006-05-17  Bruno Haible  <bruno@clisp.org>
78107
78108         Cygwin portability.
78109         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
78110
78111 2006-05-17  Bruno Haible  <bruno@clisp.org>
78112
78113         * lib/stdint_.h: Fix recognition of Cygwin.
78114
78115 2006-05-15  Bruno Haible  <bruno@clisp.org>
78116
78117         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
78118         on libtool patch by Ralf Wildenhues.
78119
78120 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78121
78122         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
78123         test for C99 conformance; (bool) 0.5 is an integer constant
78124         expression, but (bool) -0.5 is not.  Problem reported by Fedor
78125         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
78126
78127 2006-05-11  Simon Josefsson  <jas@extundo.com>
78128
78129         * m4/xvasprintf.m4: Fix obvious typo.
78130
78131 2006-05-11  Jim Meyering  <jim@meyering.net>
78132
78133         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
78134         James Lemley.
78135
78136 2006-05-10  Simon Josefsson  <jas@extundo.com>
78137
78138         * lib/md4.c: Typo fix, update copyright years.
78139         (K1, K2): Don't use L because it turn computations into 64-bit on
78140         64-bit platforms.
78141
78142 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
78143
78144         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
78145         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
78146         unwanted sign propagation, e.g., on hosts with 64-bit int.
78147         There still are some problems with reeelly weird theoretical hosts
78148         (e.g., 33-bit int) but it's not worth worrying about now.
78149         * lib/sha1.c (rol): Likewise.
78150         (K1, K2, K3, K4): Remove unnecessary L suffix.
78151
78152 2006-05-10  Bruno Haible  <bruno@clisp.org>
78153
78154         * lib/des.c: Cast to avoid warnings.
78155
78156 2006-05-09  Bruno Haible  <bruno@clisp.org>
78157
78158         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
78159         (Depends-on): Depend also on xsize, stdarg.
78160         (configure.ac): Add gl_XVASPRINTF.
78161
78162 2006-05-09  Bruno Haible  <bruno@clisp.org>
78163
78164         * m4/xvasprintf.m4: New file.
78165
78166 2006-05-09  Bruno Haible  <bruno@clisp.org>
78167
78168         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
78169         (EOVERFLOW): Define fallback value.
78170         (xstrcat): New function.
78171         (xvasprintf): Recognize the special case of a string concatenation.
78172
78173 2006-05-08  Eric Blake  <ebb9@byu.net>
78174
78175         * gnulib-tool (func_version): Base copyright year on CVS date.
78176         (func_emit_copyright_notice): New function.
78177         (func_emit_lib_Makefile_am): Use it.
78178         (func_emit_tests_Makefile_am): Likewise.
78179         (func_import): Likewise.
78180
78181 2006-05-08  Bruno Haible  <bruno@clisp.org>
78182
78183         * modules/stdarg: New file.
78184         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
78185
78186 2006-05-08  Bruno Haible  <bruno@clisp.org>
78187
78188         * m4/stdarg.m4: New file, from GNU gettext.
78189
78190 2006-05-08  Bruno Haible  <bruno@clisp.org>
78191
78192         * config/srclist.txt (build-aux/config.rpath): different from latest
78193         release.
78194
78195 2006-05-08  Bruno Haible  <bruno@clisp.org>
78196
78197         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
78198
78199 2006-05-05  Jim Meyering  <jim@meyering.net>
78200
78201         * m4/warning.m4: New file, derived from bison's file by the same name.
78202
78203 2006-05-03  Bruno Haible  <bruno@clisp.org>
78204
78205         * lib/stdint_.h: Shorter URL.
78206         * lib/inttypes.h: Likewise.
78207
78208 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78209
78210         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
78211
78212 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78213
78214         * lib/verify.h: Document the internals better.  Most of this change
78215         was written by Bruno Haible.
78216
78217 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78218
78219         * doc/verify.texi: New file, partly based on a proposal by
78220         Bruno Haible.
78221
78222 2006-05-02  Bruno Haible  <bruno@clisp.org>
78223
78224         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
78225         test from here...
78226         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
78227
78228 2006-04-29  Bruno Haible  <bruno@clisp.org>
78229
78230         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
78231         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
78232
78233 2006-04-29  Bruno Haible  <bruno@clisp.org>
78234
78235         * gnulib-tool: Make --update option actually work.
78236
78237 2006-04-29  Bruno Haible  <bruno@clisp.org>
78238
78239         * doc/gcd.texi: New file.
78240         * doc/gnulib.texi: Include it.
78241
78242 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
78243
78244         * lib/getdate.y (get_date): When adding relative date, start with the
78245         initial time, not with the result of the first mktime call.
78246
78247 2006-04-25  Bruno Haible  <bruno@clisp.org>
78248
78249         * gnulib-tool (func_import): Output the include directives in three
78250         blocks, sorted separately.
78251         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78252
78253 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78254
78255         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
78256         to define main with arguments, for C++.  Reported by Eric Blake.
78257         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
78258         Prefer 'int main ()' to 'int main (void)', for C++.
78259         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
78260         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
78261         for 'main', for C99 and C++.
78262
78263 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78264
78265         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
78266         Don't assume that exit status -1 is valid.
78267         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78268         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
78269         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78270         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
78271         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
78272         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
78273         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
78274         functions can be used without declaring them, or that you can
78275         exit with status -1.
78276         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78277
78278 2006-04-24  Karl Berry  <karl@gnu.org>
78279
78280         * config/srclist.txt (longdouble.m4): sync lost.
78281
78282 2006-04-24  Eric Blake  <ebb9@byu.net>
78283
78284         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
78285
78286 2006-04-24  Bruno Haible  <bruno@clisp.org>
78287
78288         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
78289         poll() implementation in AIX.
78290         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78291
78292 2006-04-24  Bruno Haible  <bruno@clisp.org>
78293
78294         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
78295         assigned exactly once.
78296
78297 2006-04-23  Claudio Fontana  <claudio@gnu.org>
78298             Bruno Haible  <bruno@clisp.org>
78299
78300         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
78301         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
78302         for AM_CPPFLAGS.
78303
78304 2006-04-23  Bruno Haible  <bruno@clisp.org>
78305
78306         * modules/copy-file: Depend on unistd.
78307         * modules/execute: Likewise.
78308         * modules/fatal-signal: Likewise.
78309         * modules/findprog: Likewise.
78310         * modules/mkdtemp : Likewise.
78311         * modules/pipe: Likewise.
78312         * modules/wait-process: Likewise.
78313
78314 2006-04-23  Bruno Haible  <bruno@clisp.org>
78315
78316         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
78317         condition was already detected.
78318         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78319
78320 2006-04-23  Bruno Haible  <bruno@clisp.org>
78321
78322         * lib/copy-file.c: Include <unistd.h> unconditionally.
78323         * lib/execute.c: Likewise.
78324         * lib/fatal-signal.c: Likewise.
78325         * lib/findprog.c: Likewise.
78326         * lib/mkdtemp.c: Likewise.
78327         * lib/pipe.h: Likewise.
78328         * lib/pipe.c: Likewise.
78329         * lib/wait-process.h: Likewise.
78330
78331 2006-04-23  Bruno Haible  <bruno@clisp.org>
78332
78333         * gnulib-tool (func_usage): Fix --import description. Document
78334         --update.
78335         (func_import): Create temporary file in a temporary directory, if
78336         --dry-run is specified. Silence errors from 'grep' when there are no
78337         m4 files in $m4dir.
78338         (func_create_testdir): Silence errors from 'grep' when there are no
78339         m4 files in $m4dir.
78340         Reported by Karl Berry <karl@freefriends.org>.
78341
78342 2006-04-20  Bruno Haible  <bruno@clisp.org>
78343
78344         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
78345         one argument, so that the code will be portable to Autoconf 2.60.
78346         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
78347         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78348         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
78349
78350 2006-04-19  Derek Price  <derek@ximbiot.com>
78351             Eric Blake  <ebb9@byu.net>
78352
78353         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
78354         rather than "/full/path.h".  Update comment to match.  Shorten &
78355         generalize m4_translit call via AS_TR_CPP.
78356
78357 2006-04-19  Derek Price  <derek@ximbiot.com>
78358             Eric Blake  <ebb9@byu.net>
78359
78360         * lib/inttypes.h: Correct grammar in comment.
78361
78362 2006-04-18  Derek Price  <derek@ximbiot.com>
78363             Paul Eggert  <eggert@cs.ucla.edu>
78364
78365         * modules/inttypes: New file.
78366         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
78367
78368 2006-04-18  Derek Price  <derek@ximbiot.com>
78369             Paul Eggert  <eggert@cs.ucla.edu>
78370
78371         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
78372         New files.
78373
78374 2006-04-18  Derek Price  <derek@ximbiot.com>
78375             Paul Eggert  <eggert@cs.ucla.edu>
78376
78377         * lib/inttypes.h: New file.
78378         * lib/strtoimax.c: Assume <inttypes.h>.
78379
78380 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
78381
78382         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
78383         isn't mounted.  Problem reported by Kir Kolyshkin.
78384
78385 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78386
78387         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
78388         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
78389         Derek R. Price.
78390         * lib/regex.h (RE_DUP_MAX): Update comment to match current
78391         implementation.
78392
78393 2006-04-12  Eric Blake  <ebb9@byu.net>
78394
78395         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
78396         is now done automatically by the corresponding Autoconf macro.
78397
78398 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
78399
78400         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
78401         time_r.h.
78402
78403 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78404
78405         Merge regex changes from libc, removing some of our
78406         POSIX-conformance changes that were rejected and redoing them in a
78407         less-intrusive way.
78408
78409         * lib/regcomp.c (re_compile_internal, init_dfa):
78410         Length arg is now size_t, not Idx.  All uses changed.
78411         (peek_token): Forward decl now says internal_function.
78412         (__re_error_msgid, __re_error_msgid_idx):
78413         Now static rather than extern with attribute_hidden.
78414         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
78415         For some reason libc prefers K&R style defns for external functions.
78416         (regerror) [!defined _LIBC]: Likewise.
78417         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
78418         (seek_collating_symbol_entry, lookup_collation_sequence_value):
78419         (build_range_exp, build_collating_symbol):
78420         Use K&R-style defn.
78421         (re_compile_fastmap): Use '\0' to memset, not 0.
78422         (utf8_sb_map): Make the calculations more obvious.
78423         (init_dfa, parse_bracket_exp, build_charclass_op):
78424         Call calloc and cast result, as glibc does.
78425         (init_word_char, fetch_token, peek_token, peek_token_bracket):
78426         (build_range_exp, build_collating_symbol):
78427         Now internal functions.
78428
78429         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
78430
78431         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
78432         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
78433         Don't depend on VMS; depend on __VMS instead, for POSIX
78434         namespace cleanness.
78435         (regoff_t): Define to ssize_t, not long int.
78436
78437         Remove the REG_ macros named below.  Instead, make the old names
78438         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
78439         __USE_GNU_REGEX.
78440         (REG_BACKSLASH_ESCAPE_IN_LISTS):
78441         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
78442         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
78443         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
78444         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
78445         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
78446         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
78447         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
78448         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
78449         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
78450         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
78451         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
78452         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
78453         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
78454         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
78455         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
78456         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
78457         (REG_NREGS):
78458         Remove.  All uses replaced by the old RE_* names.
78459         (RE_BACKSLASH_ESCAPE_IN_LISTS):
78460         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
78461         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
78462         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
78463         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
78464         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
78465         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
78466         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
78467         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
78468         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
78469         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
78470         Don't bother having these macros be independent of each others'
78471         values, since they no longer exist in the POSIX name space.
78472
78473         Rename the following member names back to their old names,
78474         unless !__USE_GNU_REGEX.  All uses changed back.
78475         (buffer): Renamed from re_buffer.
78476         (allocated): Renamed from re_allocated.
78477         (used): Renamed from re_used.
78478         (syntax): Renamed from re_syntax.
78479         (fastmap): Renamed from re_fastmap.
78480         (translate): Renamed from re_translate.
78481         (can_be_null): Renamed from re_can_be_null.
78482         (regs_allocated): Renamed from re_regs_allocated.
78483         (fastmap_accurate): Renamed from re_fastmap_accurate.
78484         (no_sub): Renamed from re_no_sub.
78485         (not_bol): Renamed from re_not_bol.
78486         (not_eol): Renamed from re_not_eol.
78487         (newline_anchor): Renamed from re_newline_anchor.
78488         (num_regs): Renamed from rm_num_regs.
78489         (start): Renamed from rm_start.
78490         (end): Renamed from rm_end.
78491
78492         (free_state): Move up a bit.
78493
78494         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
78495         #define to be empty.
78496         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
78497         when that is what is intended.
78498         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
78499         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
78500         (MAX): New macro.
78501         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
78502         All uses changed back to re_malloc, etc.  It's now the caller's
78503         responsibility to check for overflow; all callers changed.
78504         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
78505         (re_x2nrealloc): Remove.
78506         (free_state): Remove decl.
78507
78508         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
78509         (re_set_registers, re_exec):
78510         Use K&R-style defn.
78511
78512         2006-01-31  Roland McGrath  <roland@redhat.com>
78513
78514         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
78515         Reported by Mike Frysinger <vapier@gentoo.org>.
78516
78517         2006-01-15  Andreas Jaeger  <aj@suse.de>
78518
78519         [BZ #1950]
78520         * lib/regex_internal.c (re_string_reconstruct): Adjust for
78521         build_wcs_upper_buffer change.
78522         (build_wcs_upper_buffer): Change return type.
78523
78524         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
78525
78526         * lib/regex_internal.h: Include <stdint.h> if available.
78527
78528         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
78529
78530         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
78531
78532         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
78533
78534         * lib/regcomp.c: Adjust for changed secondary hash function.
78535
78536         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
78537
78538         * lib/regex.h: Pretty printing.
78539         Clean up namespace a bit.
78540
78541         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
78542
78543         * lib/regexec.c (update_cur_sifted_state, check_arrival,
78544         check_arrival_add_next_nodes): Avoid using uninitialized variable.
78545
78546         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78547                     Ulrich Drepper  <drepper@redhat.com>
78548
78549         [BZ #1302]
78550         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
78551         changed.
78552         (bitset_word_t): Renamed from bitset_word.  All uses changed.
78553
78554         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
78555
78556         [BZ #281]
78557         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78558         * lib/regcomp.c: Remove unnecessary uses of
78559         unsigned RE_TRANSLATE_TYPE.
78560         * lib/regex_internal.h: Likewise.
78561         * lib/regex_internal.c: Likewise.
78562         * lib/regexec.c: Likewise.
78563         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78564
78565         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78566
78567         * lib/regexec.c (find_recover_state): Remove unnecessary
78568         initialization.
78569         (transit_state_bkref): Make DFA a const pointer.
78570         (get_subexp): Likewise.
78571         (check_arrival): Likewise.
78572         (update_cur_sifted_state): Likewise.
78573         (re_search_internal): Likewise.
78574         (prune_impossible_nodes): Likewise.
78575         (acquire_init_state_context): Likewise.
78576         (proceed_next_node): Likewise.
78577         (set_regs): Likewise.
78578         (free_fail_stack_return): Likewise.
78579         (check_arrival_expand_ecl): Mark DFA parameter as const.
78580         (check_arrival_expand_ecl_sub): Likewise.
78581         (check_subexp_limits): Likewise.
78582         (sub_epsilon_src_nodes):  Likewise.
78583         (add_epsilon_src_nodes):  Likewise.
78584         (merge_state_array): Likewise.
78585         (update_regs): Likewise.
78586         (build_trtable): Likewise.
78587         (sift_states_backward): Mark MCTX parameter as const.
78588         (build_sifted_states): Likewise.
78589         (update_cur_sifted_state): Likewise.
78590         (sift_states_mkref): Likewise.
78591         (check_arrival_expand_ecl): Mark eclosure as const.
78592         (check_dst_limits_calc_pos_1): Likewise.
78593         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78594         pointer.
78595
78596         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78597
78598         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78599         (transit_state_sb): Likewise.
78600         (transit_state_mb): Likewise.
78601         (sift_states_iter_mb): Likewise.
78602         (check_arrival_add_next_nodes): Likewise.
78603         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78604         [_LIBC] (re_search_2_stub): Use mempcpy.
78605
78606         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78607         mbrtowc for very simple UTF-8 case.
78608
78609         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78610         a pointer-to-const.
78611         (re_acquire_state_context): Likewise.
78612         * lib/regex_internal.h: Adjust prototypes.
78613
78614         * lib/regex.c: Prevent using C++ compilers.
78615
78616         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78617         (re_acquire_state_context): Likewise.
78618
78619 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78620
78621         * modules/regex (Depends-on): Add ssize_t.
78622
78623 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78624
78625         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78626         translation table.
78627
78628 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78629
78630         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78631
78632 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78633             Bruno Haible  <bruno@clisp.org>
78634
78635         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78636         <sys/types.h> and <inttypes.h>.
78637
78638 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78639
78640         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78641         `__error_t_defined', so argp.h will not typedef the former.
78642
78643 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78644
78645         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78646         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78647         glibc names.  Even if glibc is changed to conform to POSIX, the
78648         traditional names will be available anyway, since regex depends on
78649         the extensions module.  Also, fix a longstanding typo in the
78650         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78651         reported by Emanuele Giaquinta.  Also, change sense of cached
78652         variable, so that the message makes sense.
78653
78654 2006-03-24  Simon Josefsson  <jas@extundo.com>
78655
78656         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78657         including some doc fixes.
78658         (base64_encode_alloc): Fix +1 bug on allocation failures.
78659
78660 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78661
78662         * lib/base64.c (base64_encode): Do not read past end of array with
78663         unsanitized input on systems with CHAR_BIT > 8.
78664
78665 2006-03-24  Eric Blake  <ebb9@byu.net>
78666
78667         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78668
78669 2006-03-22  Karl Berry  <karl@gnu.org>
78670
78671         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78672         * config/srclistvars.sh (COREUTILS): new var.
78673
78674 2006-03-17  Jim Meyering  <jim@meyering.net>
78675
78676         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78677         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78678
78679 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78680
78681         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78682         no longer needs it.  Instead, check that regoff_t is as least
78683         as wide as ptrdiff_t.
78684
78685         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78686         so that our regex.h stays compatible with the installed regex.
78687         This is helpful for installers who configure --without-included-regex.
78688         Problem reported by Emanuele Giaquinta.
78689
78690 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78691
78692         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78693         Typedef to long int, not to off_, as POSIX will likely change
78694         in that direction.
78695
78696 2006-03-15  Eric Blake  <ebb9@byu.net>
78697
78698         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78699
78700 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78701
78702         * lib/argp-help.c (validate_uparams): Fix typo
78703         * lib/argp-parse.c (argp_default_options): Consistently begin help
78704         messages with a lowercase letter.
78705
78706 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78707
78708         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78709         overrun buffers and shouldn't be used (much as gets shouldn't be
78710         used).
78711         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78712
78713 2006-03-08  Simon Josefsson  <jas@extundo.com>
78714
78715         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78716         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78717
78718 2006-03-08  Simon Josefsson  <jas@extundo.com>
78719
78720         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78721         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78722
78723 2006-03-08  Simon Josefsson  <jas@extundo.com>
78724
78725         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78726         signal that configure disabled the device.
78727
78728 2006-03-08  Simon Josefsson  <jas@extundo.com>
78729
78730         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78731         languages.
78732
78733 2006-03-07  Simon Josefsson  <jas@extundo.com>
78734
78735         * modules/getopt (Depends-on): Add unistd.
78736
78737         * modules/unistd: New file.
78738
78739 2006-03-07  Simon Josefsson  <jas@extundo.com>
78740
78741         * modules/gc-random: New file.
78742
78743 2006-03-07  Simon Josefsson  <jas@extundo.com>
78744
78745         * m4/unistd_h.m4: New file.
78746
78747 2006-03-07  Simon Josefsson  <jas@extundo.com>
78748
78749         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78750         test to be side-effect free by storing the result in the cache
78751         variable gl_cv_lib_readline, and moving the assignment of
78752         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78753         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78754
78755 2006-03-07  Simon Josefsson  <jas@extundo.com>
78756
78757         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78758         error on missing devices (the functions will return an error).
78759
78760         * m4/gc.m4: Move random stuff to gc-random.m4
78761
78762 2006-03-07  Simon Josefsson  <jas@extundo.com>
78763
78764         * lib/unistd_.h: New file.
78765
78766 2006-03-07  Simon Josefsson  <jas@extundo.com>
78767
78768         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78769
78770 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78771
78772         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78773         Problem reported by Juan Manuel Guerrero.
78774
78775 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78776
78777         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78778         the unistd module.
78779         * lib/getlogin_r.c: Likewise.
78780         * lib/getlogin_r.h: Likewise.
78781         * lib/glob.c: Likewise.
78782         * lib/pagealign_alloc.c: Likewise.
78783         * lib/unistd_.h: Remove; no longer needed.
78784
78785 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78786
78787         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78788         Add unistd.
78789         * modules/c-stack (Depends-on): Add unistd.
78790         * modules/getlogin_r: Likewise.
78791         * modules/glob: Likewise.
78792         * modules/pagealign_alloc: Likewise.
78793         * modules/unistd (Files): Remove lib/unistd_.h.
78794         (EXTRA_DIST): Remove.
78795         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78796         need unistd_.h.
78797         (MOSTLYCLEANFILES): Remove unistd.h-t.
78798
78799 2006-03-03  Simon Josefsson  <jas@extundo.com>
78800
78801         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78802
78803 2006-03-03  Simon Josefsson  <jas@extundo.com>
78804
78805         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78806         libidn and bison.
78807
78808 2006-03-03  Simon Josefsson  <jas@extundo.com>
78809
78810         * build-aux/maint.mk: Add indent target.
78811
78812 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78813
78814         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78815         our replacement poll.h in any case, to avoid a differing
78816         declaration from a system header.  Seen on AIX.
78817
78818 2006-03-01  Simon Josefsson  <jas@extundo.com>
78819
78820         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78821         <kasal@ucw.cz>.
78822
78823 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78824
78825         * modules/gettime (Depends-on): Add extensions module.
78826         * modules/nanosleep (Depends-on): Likewise.
78827         * modules/settime (Depends-on): Likewise.
78828
78829 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78830
78831         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78832         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78833         pedantically.
78834         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78835         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78836
78837         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78838         not "==".  Reported by Ralf Wildenhues.
78839
78840 2006-03-01  Karl Berry  <karl@gnu.org>
78841
78842         * doc/Copyright/request-*: new files, synced from gnuorg.
78843
78844 2006-03-01  Karl Berry  <karl@gnu.org>
78845
78846         * config/srclist.txt (Copyright/*): new entries.
78847
78848 2006-02-28  Simon Josefsson  <jas@extundo.com>
78849
78850         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78851
78852 2006-02-27  Simon Josefsson  <jas@extundo.com>
78853
78854         * lib/base64.h: Indent #define's.  From Jim Meyering
78855         <jim@meyering.net>.
78856
78857 2006-02-27  Jim Meyering  <jim@meyering.net>
78858
78859         Revert the change of 2006-02-24, so these files can continue
78860         to be sync'd from gettext.
78861         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78862         of `config.h'.
78863
78864 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78865
78866         * modules/intprops: New file.
78867         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78868         Add intprops.
78869         * modules/getloadavg (Files): Remove lib/intprops.h.
78870         (Depends-on): Add intprops.
78871         * modules/human: Likewise.
78872         * modules/inttostr: Likewise.
78873         * modules/openat: Likewise.
78874         * modules/sig2str: Likewise.
78875         * modules/userspec: Likewise.
78876         * modules/utimecmp: Likewise.
78877         * modules/xnanosleep: Likewise.
78878         * modules/xstrtol: Likewise.
78879
78880 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78881
78882         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78883         * modules/lock-tests (TESTS): Use $(EXEEXT).
78884         * modules/tls-tests: Likewise.
78885         * modules/argp-tests: Likewise.
78886         (check_PROGRAMS): New var, replacing...
78887         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78888
78889 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78890
78891         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78892         `config.h'.
78893
78894 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78895
78896         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78897
78898 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78899
78900         Sync from coreutils.
78901         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78902         gl_CHDIR_SAFER.
78903
78904 2006-02-22  Jim Meyering  <jim@meyering.net>
78905
78906         Sync from coreutils.
78907         * m4/chdir-safer.m4: New file.
78908
78909 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78910
78911         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78912         AT_FDCWD exceeds INT_MAX.
78913         * lib/openat.h (AT_FDCWD): Likewise.
78914
78915 2006-02-17  Eric Blake  <address@hidden>
78916
78917         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78918
78919 2006-02-16  Simon Josefsson  <jas@extundo.com>
78920
78921         * modules/getaddrinfo (Depends-on): Add sys_socket.
78922
78923 2006-02-15  Simon Josefsson  <jas@extundo.com>
78924
78925         * build-aux/maint.mk: Add dsyntax-check rule.
78926
78927 2006-02-15  Eric Blake  <ebb9@byu.net>
78928
78929         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78930         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78931         'present but cannot compile' warnings on cygwin.
78932         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78933         use ws2tcpip.h if sys/socket.h works.
78934         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78935         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78936
78937 2006-02-14  Simon Josefsson  <jas@extundo.com>
78938
78939         * modules/maintainer-makefile (Files): Rename.
78940
78941         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78942         and (the local) Makefile.cfg to maint-cfg.mk.
78943
78944         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78945         to the latter.
78946
78947         * modules/maintainer-makefile: New module.
78948
78949         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78950         severaly stripped to make it possible to build it up from scratch
78951         with reliable tests.
78952
78953         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78954         fixes to permit overriding the default actions when configure and
78955         makefile are not available.
78956
78957 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78958
78959         Sync from coreutils.
78960         * modules/lstat (Depends-on): Don't depend on xalloc.
78961         (License): Change from GPL to LGPL, since this is now simply a
78962         replacement for a libc function.
78963
78964 2006-02-14  Jim Meyering  <jim@meyering.net>
78965
78966         Sync from coreutils.
78967
78968         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78969         failure on deficient systems, and simplify gnulib lgpl dependencies.
78970         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78971         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78972
78973         * lib/xalloc-die.c: Remove unused definition of N_.
78974
78975 2006-02-14  Jim Meyering  <jim@meyering.net>
78976
78977         Sync from coreutils.
78978         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78979         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78980         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78981         double-quote uses of that variable, to accommodate the rare case in
78982         which getmntent is available in none of the libraries checked.  This
78983         happens at least on FreeBSD 5.0.
78984
78985 2006-02-13  Simon Josefsson  <jas@extundo.com>
78986
78987         * gnulib-tool (Usage): Fix --import, from
78988         karl@freefriends.org (Karl Berry).
78989
78990 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78991
78992         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78993
78994 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78995
78996         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78997         "autoupdate" on 2005-12-12.
78998
78999 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79000
79001         * modules/closeout (Depends-on): Remove atexit.
79002
79003 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79004
79005         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
79006         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
79007
79008 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
79009
79010         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
79011         __EXTENSIONS__ if this causes compilation to fail.  Problem
79012         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
79013         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
79014
79015 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
79016
79017         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
79018         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
79019         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
79020         All uses changed.
79021
79022 2006-01-26  Simon Josefsson  <jas@extundo.com>
79023
79024         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
79025         prototype is visible on mingw32.
79026
79027         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
79028         for mingw32.
79029
79030         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
79031         mingw32).
79032
79033 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
79034
79035         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
79036         attempt to open for write; this always fails, at least on POSIX
79037         hosts.  This reinstates the 2006-01-09 change, which was
79038         inadvertently removed.
79039
79040 2006-01-26  Bruno Haible  <bruno@clisp.org>
79041
79042         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
79043         Reported by Paul Eggert.
79044
79045 2006-01-26  Bruno Haible  <bruno@clisp.org>
79046             Paul Eggert  <eggert@cs.ucla.edu>
79047
79048         * lib/stdbool_.h (_Bool)
79049         [(! (defined __cplusplus || defined __BEOS__)
79050           && !defined __GNUC__
79051           && !(defined __HP_cc || defined __xlc__
79052                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
79053                || defined __sgi))]:
79054         #define to signed char in these cases too; this simplifies
79055         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
79056         etc., separately) and makes it more conservative.
79057
79058 2006-01-25  Simon Josefsson  <jas@extundo.com>
79059
79060         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
79061         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
79062         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
79063
79064 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79065
79066         * lib/argp-namefrob.h: Bugfix. Remove stray #
79067
79068 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
79069
79070         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
79071         so that we test the test.
79072         Check for yet another HP-UX cc bug involving *bool |= bool.
79073
79074 2006-01-25  Karl Berry  <karl@gnu.org>
79075
79076         * config/srclist.txt (vasnprintf.c): sync lost.
79077
79078 2006-01-25  Jim Meyering  <jim@meyering.net>
79079
79080         Sync from the stable (b5) branch of coreutils:
79081
79082         * lib/fts.c (fts_children): Don't let close() clobber errno from
79083         failed fchdir().
79084
79085         * lib/fts.c (fts_stat): When following a symlink-to-directory,
79086         don't necessarily interpret stat-fails+lstat-succeeds as indicating
79087         a dangling symlink.  That can also happen at least for ELOOP.
79088         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
79089         FYI, this bug predates the inclusion of fts.c in coreutils.
79090
79091         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
79092         in their own block, so pre-c99 compilers don't object.
79093
79094         Avoid the double-free (first in fts_read, second in fts_close) that
79095         would occur when an `active' directory is made inaccessible (e.g.,
79096         via chmod a-x) during a traversal.
79097         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79098         before returning.  Reproduce this failure by
79099         mkdir -p a/b; cd a; chmod a-x . b
79100         Reported by Stavros Passas.
79101
79102 2006-01-25  Jim Meyering  <jim@meyering.net>
79103
79104         * lib/fileblocks.c: Remove more useless parentheses.
79105         * lib/readutmp.h: Likewise.
79106
79107 2006-01-25  Bruno Haible  <bruno@clisp.org>
79108
79109         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
79110         warnings.
79111         Reported by Paul Eggert.
79112
79113 2006-01-25  Bruno Haible  <bruno@clisp.org>
79114
79115         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
79116         rid of a trap command. For Solaris sh.
79117         Reported by Mark D. Baushke <mdb@gnu.org>.
79118
79119 2006-01-24  Simon Josefsson  <jas@extundo.com>
79120
79121         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
79122         Bruno.
79123
79124 2006-01-24  Karl Berry  <karl@gnu.org>
79125
79126         * config/srclist.txt (argp-namefrob.h): sync lost.
79127
79128 2006-01-24  Jim Meyering  <jim@meyering.net>
79129
79130         * modules/openat (Files): Add lib/intprops.h.
79131         From Mark D. Baushke.
79132
79133 2006-01-24  Jim Meyering  <jim@meyering.net>
79134
79135         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
79136         Reported by Mark D. Baushke.
79137
79138 2006-01-24  Jim Meyering  <jim@meyering.net>
79139
79140         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
79141
79142 2006-01-24  Bruno Haible  <bruno@clisp.org>
79143
79144         * modules/strnlen (Maintainer): Change from glibc to all.
79145
79146 2006-01-24  Bruno Haible  <bruno@clisp.org>
79147
79148         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
79149         Patch by Paul Eggert.
79150
79151 2006-01-24  Bruno Haible  <bruno@clisp.org>
79152
79153         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
79154         already has it.
79155         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
79156         2005-11-26.
79157
79158         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
79159         'signed char' to avoid problems with the built-in _Bool type.
79160         Reported by Paul Eggert on 2005-11-26.
79161
79162 2006-01-24  Bruno Haible  <bruno@clisp.org>
79163
79164         * gnulib-tool (func_import): Avoid constructing complicated sed
79165         expressions inside backquote.
79166         Report and solution by Mark D. Baushke <mdb@gnu.org>.
79167
79168 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
79169
79170         These changes imported from libc.
79171         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
79172         test and two separate function calls.
79173         * lib/strndup.c (__strndup): Add libc_hidden_def.
79174
79175 2006-01-23  Simon Josefsson  <jas@extundo.com>
79176
79177         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
79178         Remove the test_*_SOURCES variable: automake infers it by default.
79179         * modules/tls-tests: Likewise.
79180
79181 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79182
79183         Work around porting bugs reported by Dieter in
79184         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
79185         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
79186         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
79187         Include "getopt.h" first, to check interface.
79188         (getenv): Declare only if defined HAVE_DECL_GETENV &&
79189         !HAVE_DECL_GETENV.
79190         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
79191         (__strndup): Revert to K&R-style function dfns, the glibc style.
79192         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
79193         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
79194         Include strnlen.h first, to get prototype properly.
79195         (strnlen): Renamed from __strnlen.
79196         Remove weak alias.
79197
79198 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79199
79200         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
79201
79202 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79203
79204         * config/srclist.txt: Adjust to reflect glibc reorganization.
79205         This affects only comments.
79206
79207 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79208
79209          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
79210          Reported by Bruce Korb <bkorb@gnu.org>.
79211
79212 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
79213
79214         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
79215         to pacify gcc -Wswitch-default.
79216
79217 2006-01-22  Bruno Haible  <bruno@clisp.org>
79218
79219         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
79220         temporary buffer for sprintf, take into account the precision also
79221         for 'd', 'i', 'u', 'o', 'x', 'X'.
79222
79223 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79224
79225         * modules/argp-tests: New module
79226         * tests/test-argp.c: New file
79227         * tests/test-argp-2.sh: New file
79228
79229 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79230
79231         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
79232         (__argp_base_name): Removed
79233         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
79234         typo.
79235         (__argp_base_name): Provide macro definition or extern declaration
79236         depending on the configuration
79237
79238 2006-01-20  Simon Josefsson  <jas@extundo.com>
79239
79240         * modules/inet_ntop (Depends-on): Depend on sys_socket.
79241
79242 2006-01-20  Simon Josefsson  <jas@extundo.com>
79243
79244         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
79245
79246 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79247
79248         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
79249         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
79250         Suggested by Bruno Haible.
79251
79252 2006-01-20  Karl Berry  <karl@gnu.org>
79253
79254         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
79255         until changes propagate, I guess.
79256
79257 2006-01-19  Simon Josefsson  <jas@extundo.com>
79258
79259         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
79260
79261 2006-01-19  Simon Josefsson  <jas@extundo.com>
79262
79263         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
79264
79265 2006-01-19  Simon Josefsson  <jas@extundo.com>
79266
79267         * gnulib-tool: Set check_PROGRAMS.
79268
79269         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79270         modules/des-tests, modules/gc-arcfour-tests,
79271         modules/gc-arctwo-tests, modules/gc-des-tests,
79272         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79273         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79274         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79275         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79276         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79277         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
79278         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
79279         test_*_SOURCES.
79280
79281 2006-01-18  Simon Josefsson  <jas@extundo.com>
79282
79283         * modules/socklen (Depends-on): Depend on sys_socket.
79284
79285 2006-01-18  Simon Josefsson  <jas@extundo.com>
79286
79287         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79288         modules/des-tests, modules/gc-arcfour-tests,
79289         modules/gc-arctwo-tests, modules/gc-des-tests,
79290         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79291         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79292         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79293         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79294         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79295         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
79296         $(EXEEXT) to automake TESTS variable, for mingw32.
79297
79298 2006-01-17  Simon Josefsson  <jas@extundo.com>
79299
79300         * modules/socklen (Include): Need sys/socket.h.
79301
79302 2006-01-17  Bruno Haible  <bruno@clisp.org>
79303
79304         * modules/ssize_t (Include): Add <sys/types.h>.
79305
79306 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
79307
79308         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
79309         it's not portable and it doesn't work with cross-compiles.
79310         Problem reported by Bruno Haible.  Fix missing-$ typo in
79311         'test "gl_cv_ignore_unused_libraries" ...' that prevented
79312         -zignore from being used with Sun's C compiler.
79313
79314 2006-01-12  Simon Josefsson  <jas@extundo.com>
79315
79316         * lib/base64.c: Fix warning, reported by Bruno Haible
79317         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
79318
79319 2006-01-12  Bruno Haible  <bruno@clisp.org>
79320
79321         * modules/ldd: New file.
79322         * build-aux/ldd.sh.in: New file.
79323         * MODULES.html.sh (Support for building libraries and executables): Add
79324         ldd.
79325
79326 2006-01-12  Bruno Haible  <bruno@clisp.org>
79327
79328         * m4/ldd.m4: New file.
79329
79330 2006-01-12  Bruno Haible  <bruno@clisp.org>
79331
79332         * gnulib-tool (func_import, func_create_testdir): Don't go into an
79333         endless loop while replacing $auxdir with build-aux.
79334
79335 2006-01-11  Simon Josefsson  <jas@extundo.com>
79336
79337         * lib/stdint_.h (SIZE_MAX): Add missing (.
79338
79339 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
79340
79341         Sync from coreutils.
79342         * lib/md5.c: Fix commentary typos.
79343         (alignof, UNALIGNED_P): No need for a GCC-specific version.
79344         * lib/md5.h (__attribute__): Remove; unused.
79345         * lib/sha1.c: Fix commentary to match md5 better.
79346         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
79347         so that we don't need to worry about alignment.  All uses changed.
79348         This merges the 2005-10-28 md5 change into sha1.
79349
79350 2006-01-11  Jim Meyering  <jim@meyering.net>
79351
79352         Sync from coreutils.
79353         * lib/md5.c (OP): Fix spacing.
79354
79355 2006-01-11  Bruno Haible  <bruno@clisp.org>
79356
79357         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79358         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
79359         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
79360
79361 2006-01-11  Bruno Haible  <bruno@clisp.org>
79362
79363         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79364         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
79365         the "early" section as well.
79366
79367 2006-01-11  Bruno Haible  <bruno@clisp.org>
79368
79369         Avoid "ar: no archive members specified" error on MacOS X.
79370         * gnulib-tool (func_modules_add_dummy): New function.
79371         (func_import, func_create_testdir): Invoke it.
79372
79373 2006-01-11  Bruno Haible  <bruno@clisp.org>
79374
79375         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
79376         with $auxdir in AC_CONFIG_FILES statements.
79377
79378 2006-01-11  Bruno Haible  <bruno@clisp.org>
79379
79380         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79381         Initialize also noinst_HEADERS to empty.
79382
79383 2006-01-11  Bruno Haible  <bruno@clisp.org>
79384
79385         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
79386         variables.
79387         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
79388         autoreconf.
79389
79390 2006-01-11  Bruno Haible  <bruno@clisp.org>
79391
79392         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
79393         overridable by the user.
79394         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79395
79396 2006-01-10  Simon Josefsson  <jas@extundo.com>
79397
79398         * modules/sys_socket: New file.
79399
79400 2006-01-10  Simon Josefsson  <jas@extundo.com>
79401
79402         * m4/sys_socket_h.m4: New file.
79403
79404 2006-01-10  Simon Josefsson  <jas@extundo.com>
79405
79406         * lib/socket_.h: New file.
79407
79408 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79409
79410         * modules/readutmp (Maintainer): Add myself.
79411
79412 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79413
79414         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
79415         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
79416         People who are still concerned with buggy memcmp implementations
79417         can invoke gl_FUNC_MEMCMP themselves.
79418
79419 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79420
79421         * lib/regex_internal.h (BITSET_WORD_BITS):
79422         Work around a bug in 64-bit PGC (before version 6.1-2), where the
79423         preprocessor mishandles large unsigned values as if they were signed.
79424         Problem reported by Claudio Fontana in
79425         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
79426
79427 2006-01-10  Jim Meyering  <jim@meyering.net>
79428
79429         Avoid the double-free (first in fts_read, second in fts_close) that
79430         would occur when an `active' directory is made inaccessible (e.g.,
79431         via chmod a-x) during a traversal.
79432         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79433         before returning.  Reproduce this failure by
79434         mkdir -p a/b; cd a; chmod a-x . b
79435         Reported by Stavros Passas.
79436
79437         Sync from coreutils.
79438         * lib/sha1.c: Tweak grammar in a comment.
79439
79440 2006-01-10  Jim Meyering  <jim@meyering.net>
79441
79442         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
79443         Patch by Joerg Sonnenberger.
79444
79445 2006-01-10  Bruno Haible  <bruno@clisp.org>
79446
79447         * modules/readutmp: Depend on module free.
79448         * modules/strtok_r: Depend on module restrict.
79449
79450 2006-01-10  Bruno Haible  <bruno@clisp.org>
79451
79452         * modules/gettext (configure.ac): Add an invocation of
79453         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
79454
79455 2006-01-10  Bruno Haible  <bruno@clisp.org>
79456
79457         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
79458         Reported by Werner Lemberg <wl@gnu.org>.
79459
79460 2006-01-10  Bruno Haible  <bruno@clisp.org>
79461
79462         * lib/localcharset.c: Update from GNU gettext.
79463
79464 2006-01-10  Bruno Haible  <bruno@clisp.org>
79465
79466         * lib/argp.h (__const): Remove macro. Use const instead.
79467         * lib/argp-fmtstream.h (__const): Likewise.
79468         * lib/glob_.h (__const): Remove macro.
79469         * lib/glob-libc.h: Use const instead of __const.
79470
79471 2006-01-10  Bruno Haible  <bruno@clisp.org>
79472
79473         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
79474         variable.
79475         Needed to avoid an automake error regarding the 'gettext' module.
79476
79477 2006-01-09  Simon Josefsson  <jas@extundo.com>
79478
79479         * modules/inet_ntop (Depends-on): Add restrict.
79480
79481 2006-01-09  Simon Josefsson  <jas@extundo.com>
79482
79483         * modules/gc-rijndael-tests (License): Put under LGPL.
79484
79485         * modules/gc-des-tests (License): Likewise.
79486
79487         * modules/gc-arcfour-tests (License): Likewise.
79488
79489         * modules/gc-arctwo-tests (License): Likewise.
79490
79491         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
79492
79493         * modules/gc-hmac-sha1-tests (Files): Likewise.
79494
79495         * modules/gc-hmac-md5-tests (License): Likewise.
79496
79497         * modules/gc-sha1-tests (License): Likewise.
79498
79499         * modules/gc-md5-tests (License): Likewise.
79500
79501         * modules/gc-md4-tests (License): Likewise.
79502
79503         * modules/gc-md2-tests (License): Likewise.
79504
79505         * modules/gc-tests (License): Likewise.
79506
79507         * modules/des-tests (License): Likewise.
79508
79509         * modules/md4-tests (License): Likewise.
79510
79511         * modules/md2-tests (License): Likewise.
79512
79513 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79514
79515         Sync from coreutils:
79516
79517         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
79518         * modules/lib-ignore: New file.
79519         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
79520         chdir-safer.m4, lchmod.m4.
79521         * modules/openat: Add mkdirat.c, openat-priv.h.
79522
79523 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79524
79525         Sync from coreutils.
79526         * m4/lib-ignore.m4: New file.
79527         * m4/lchmod.m4: New file.
79528
79529 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79530
79531         Sync from coreutils.
79532         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
79533         for write access: POSIX says that must fail.
79534         * lib/fts.c (diropen): Likewise.
79535         * lib/save-cwd.c (save_cwd): Likewise.
79536         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
79537         well, for minor improvements on hosts that lack O_DIRECTORY.
79538         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
79539         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
79540         Fall back on chown if open failed with EACCES.
79541
79542         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
79543         Report an error at compile-time if only a 1-second nominal clock
79544         resolution is found.
79545
79546         * lib/lchmod.h: New file.
79547         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
79548         (make_dir_parents): Use lchown rather than chown, and
79549         lchmod rather than chmod.
79550
79551         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
79552         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
79553         "proc" reported by n0dalus.
79554
79555         * lib/mountlist.c: Include <limits.h>.
79556         (dev_from_mount_options)
79557         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79558         New function.  It no longer assumes "dev=" has the System V meaning
79559         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79560         (read_file_system_list)
79561         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79562         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79563         dev= in that case.
79564
79565         * lib/posixtm.h (PDS_PRE_2000): New macro.
79566         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79567         allow_century.  All usages changed.  Reject dates outside the range
79568         1969-1999 if PDS_PRE_2000 is used.
79569
79570 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79571
79572         Sync from coreutils.
79573         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79574         (Time of day items): Mention the possibility of leap seconds.
79575         Problem reported by Dr. David Alan Gilbert.
79576
79577 2006-01-09  Jim Meyering  <jim@meyering.net>
79578
79579         Sync from coreutils.
79580
79581         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79582
79583         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79584
79585         * lib/modechange.c (mode_compile): Reject an invalid mode string
79586         that starts with an octal digit.  From Andreas Gruenbacher.
79587
79588         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79589         and dup to open_safer and dup_safer, respectively.
79590         (openat_permissive): Fix typo in comment.
79591
79592         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79593         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79594         (_): Remove; no longer needed.
79595         (openat): Renamed from rpl_openat; no need for rpl_openat
79596         since openat.h renames openat for us.
79597         Replace most of the body with a call to openat_permissive,
79598         to avoid duplicate code.
79599         Port to (probably hypothetical) environments were mode_t is
79600         wider than int.
79601         (openat_permissive): Require mode arg, so that we can check
79602         types better.  Put it just after flags.  Change cwd failure
79603         indicator from pointer-to-bool to pointer-to-errno-value.
79604         All callers changed.
79605         Invoke openat_save_fail and/or openat_restore_fail if
79606         cwd_errno is null, so that openat can call us.
79607         (openat_permissive, fdopendir, fstatat, unlinkat):
79608         Simplify errno handling to avoid some duplicate code,
79609         as it's OK to set errno on success.
79610         * lib/openat.h: Revamp code so that function macros depend on
79611         __OPENAT_PREFIX only, not also on AT_FDCWD.
79612         (openat_ro): Remove.  Caller changed to use openat_permissive.
79613         (openat_permissive): Now a macro, if not a function.
79614         (openat_restore_fail, openat_save_fail): Now always functions,
79615         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79616
79617         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79618         and openat.c.
79619         * lib/mkdirat.c: Include openat-priv.h.
79620         Remove definitions of macros defined therein.
79621         * lib/openat.c: Likewise.
79622
79623         * lib/mkdirat.c (mkdirat): New file and function.
79624         * lib/openat.h (mkdirat): Declare.
79625
79626         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79627
79628         * lib/openat.h (openat_permissive): Declare.
79629         (openat_ro): Define.
79630
79631         * lib/openat.c (EXPECTED_ERRNO): New macro.
79632         (openat_permissive): New function -- used in remove.c rewrite.
79633         (all functions): Set errno just before returning, only if there
79634         was an actual failure.
79635         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79636
79637         Emulate openat-family functions using Linux's procfs, if possible.
79638         Idea and some code based on Ulrich Drepper's glibc changes.
79639
79640         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79641         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79642         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79643         before falling back on save_cwd and restore_cwd.
79644         (fdopendir, fstatat, unlinkat): Likewise.
79645
79646         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79647         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79648
79649         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79650         as second argument to va_arg.  Otherwise, some versions of gcc
79651         warn that `if this code is reached, the program will abort'.
79652
79653 2006-01-09  Jim Meyering  <jim@meyering.net>
79654
79655         Sync from coreutils.
79656         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79657         Require openat-priv.h.
79658
79659 2006-01-09  Bruno Haible  <bruno@clisp.org>
79660
79661         * modules/strnlen (Include): Use strnlen.h.
79662
79663 2006-01-09  Bruno Haible  <bruno@clisp.org>
79664
79665         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79666
79667 2006-01-09  Bruno Haible  <bruno@clisp.org>
79668
79669         * lib/sysexit_.h (EX_OK): New macro.
79670         Suggested by Martin Lambers <marlam@marlam.de>.
79671
79672 2006-01-09  Bruno Haible  <bruno@clisp.org>
79673
79674         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79675         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79676
79677 2006-01-09  Bruno Haible  <bruno@clisp.org>
79678
79679         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79680         numbers.
79681
79682 2006-01-09  Bruno Haible  <bruno@clisp.org>
79683
79684         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79685         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79686         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79687         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79688
79689 2006-01-09  Bruno Haible  <bruno@clisp.org>
79690
79691         * build-aux/javacomp.sh.in: New file, moved from lib/.
79692         * modules/javacomp-script (Files): Update.
79693         (configure.ac): Add AC_CONFIG_FILES invocation.
79694         (EXTRA_DIST): Remove variable.
79695
79696         * build-aux/javaexec.sh.in: New file, moved from lib/.
79697         * modules/javaexec (Files): Update.
79698         (configure.ac): Add AC_CONFIG_FILES invocation.
79699         (EXTRA_DIST): Remove javaexec.sh.in.
79700
79701         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79702         * modules/csharpcomp-script (Files): Update.
79703         (configure.ac): Add AC_CONFIG_FILES invocation.
79704         (EXTRA_DIST): Remove variable.
79705
79706         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79707         * modules/csharpexec (Files): Update.
79708         (configure.ac): Add AC_CONFIG_FILES invocation.
79709         (EXTRA_DIST): Remove csharpexec.sh.in.
79710
79711 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79712
79713         Sync from coreutils.
79714
79715         Add POSIX ACL support
79716         * lib/acl.h (copy_acl, set_acl): Add declarations.
79717         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79718         systems other than Linux.
79719         (chmod_or_fchmod): New function: use fchmod when possible,
79720         and chmod otherwise.
79721         (file_has_acl): Add a POSIX ACL implementation, with a
79722         Linux-specific subcase.
79723         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79724         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79725         acls are unsupported.
79726         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79727         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79728         are unsupported.
79729
79730 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79731
79732         Sync from coreutils.
79733         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79734
79735 2006-01-07  Bruno Haible  <bruno@clisp.org>
79736
79737         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79738         gl_EARLY.
79739
79740 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79741
79742         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79743         Problem reported for Mingw by Mark Junker.
79744
79745 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79746
79747         * README: Gnulib normally doesn't generate a tarball.
79748
79749 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79750
79751         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79752         long int, not int, for nanosecond counts, so that people who are
79753         used to POSIX struct timespec won't be surprised.  Reported by Jim
79754         Meyering.
79755
79756 2005-12-28  Bruno Haible  <bruno@clisp.org>
79757
79758         * build-aux/config.rpath: Update from GNU gettext.
79759
79760 2005-12-16  Jim Meyering  <jim@meyering.net>
79761
79762         * modules/fprintftime: New module.
79763         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79764
79765 2005-12-16  Jim Meyering  <jim@meyering.net>
79766
79767         * m4/fprintftime.m4: New file.
79768
79769 2005-12-16  Jim Meyering  <jim@meyering.net>
79770
79771         * lib/fprintftime.c, lib/fprintftime.h: New files.
79772
79773 2005-12-15  Simon Josefsson  <jas@extundo.com>
79774
79775         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79776         new m4/socklen.m4.
79777
79778 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79779
79780         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79781         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79782
79783 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79784
79785         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79786         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79787         struct uparams is valid. Fall back to the default values if it is
79788         not.
79789
79790 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79791
79792         * modules/argp (Files): Add argp-pin.c
79793         (Depends-on): dirname
79794         (lib_SOURCES): Add argp-pin.c
79795
79796 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79797
79798         * m4/argp.m4:  Check if program_invocation_name and
79799         program_invocation_short_name are declared and define appropriate
79800         macros if they are not.
79801
79802 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79803
79804         * lib/argp-help.c (__argp_base_name): New function
79805         (__argp_short_program_name): Rewrite using __argp_base_name
79806         * lib/argp-namefrob.h: Define program_invocation_name and
79807         program_invocation_short_name if requested
79808         (__argp_base_name): Add prototype
79809         * lib/argp-parse.c (argp_def): Use gettext wrappers
79810         (argp_default_parser): Use __argp_base_name
79811         * lib/argp-pin.c: New file. Defines program_invocation_name and
79812         program_invocation_short_name on systems that lack them.
79813
79814 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79815
79816         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79817         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79818         porting problem reported by Georg Schwarz in
79819         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79820
79821 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79822
79823         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79824         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79825         porting problem reported by Georg Schwarz in
79826         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79827
79828 2005-12-05  Bruno Haible  <bruno@clisp.org>
79829
79830         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79831         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79832         Reported by Mark Junker <mjscod@gmx.de>.
79833
79834 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79835
79836         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79837         Use implementation from Albert Chin, with some
79838         comments/corrections by Stepan Kasal and myself.
79839
79840 2005-12-02  Bruno Haible  <bruno@clisp.org>
79841
79842         * gnulib-tool (func_import): Accept GPLed build tool modules when
79843         --lgpl is given.
79844         * modules/csharpcomp-script: New file.
79845         * modules/csharpcomp: Depend on it.
79846         * modules/javacomp-script: New file.
79847         * modules/javacomp: Depend on it.
79848         Suggested by Simon Josefsson.
79849
79850 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79851
79852         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79853         statement, to work around an HP-UX 10.20 compiler bug reported by
79854         Peter O'Gorman.
79855
79856 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79857
79858         * modules/savedir (Depends-on): Add openat.
79859
79860 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79861
79862         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79863         (uintmax_t) [defined uintmax_t]: Do not declare.
79864         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79865         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79866         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79867         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79868         sake of portability to weird hosts that C allows (though we don't
79869         know of any practical examples).
79870
79871         * lib/savedir.h (fdsavedir): New decl.
79872         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79873         contains most of the former guts of savedir.
79874         (savedir): Use savedirstream.
79875         Include "openat.h".
79876
79877 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79878
79879         * modules/obstack (Files): Add m4/ulonglong.m4.
79880         Problem reported by Davide Angelocola.
79881
79882 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79883
79884         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79885         coreutils no longer futzes with rounding modes.
79886
79887 2005-11-14  Jim Meyering  <jim@meyering.net>
79888
79889         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79890         replacement of mkstemp.
79891
79892 2005-11-10  Simon Josefsson  <jas@extundo.com>
79893
79894         * lib/readline.c: Remove EOL.
79895
79896 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79897
79898         * modules/gethrxtime (Depends-on): Add gettime.
79899
79900 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79901
79902         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79903         or gettimeofday; no longer needed.
79904
79905 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79906
79907         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79908         time business.
79909         (gethrxtime) [! (HAVE_NANOUPTIME
79910         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79911         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79912         our own approximation.
79913
79914 2005-11-08  Eric Blake  <ebb9@byu.net>
79915
79916         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79917
79918 2005-11-08  Eric Blake  <ebb9@byu.net>
79919
79920         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79921
79922 2005-11-04  Bruno Haible  <bruno@clisp.org>
79923
79924         * gnulib-tool: Implement --update mode.
79925
79926 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79927
79928         Fix porting problem reported by Theodoros V. Kalamatianos.
79929         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79930         Don't assume that futimes failing means we must fail.
79931
79932 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79933
79934         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79935         variables to suggest the intended function of the PATH_MAX check.
79936
79937 2005-10-30  Kean Johnston  <jkj@sco.com>
79938
79939         Trivial changes to support SCO systems.
79940         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79941         as PATH_MAX.
79942         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79943         where __ptr is null when no I/O is pending.
79944
79945 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79946
79947         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79948         leave errno alone.  Problem reported by Dmitry V. Levin.
79949
79950 2005-10-28  Simon Josefsson  <jas@extundo.com>
79951
79952         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79953         Test more.
79954
79955         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79956
79957         * modules/md2, modules/md2-tests: New files.
79958
79959 2005-10-28  Simon Josefsson  <jas@extundo.com>
79960
79961         * m4/inet_ntop.m4: More tests.
79962
79963         * m4/gc-md2.m4, md2.m4: New file.
79964
79965 2005-10-28  Simon Josefsson  <jas@extundo.com>
79966
79967         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79968         "restrict" keywords, as per POSIX.  Protect the function
79969         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79970         Don't use K&R prototypes.  Check the sprintf return values.
79971         Re-define EAFNOSUPPORT if not present.  Indent.
79972
79973         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79974         suggested by Bruno Haible <bruno@clisp.org>.
79975
79976         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79977
79978         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79979
79980         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79981         libgcrypt).
79982
79983         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79984
79985         * lib/md2.h, lib/md2.c: New files.
79986
79987 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79988
79989         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79990         errno alone.  Problem reported by Frederic Jolliton.
79991
79992 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79993
79994         * modules/verify (License): Change from GPL to LGPL.  This is a
79995         tiny module and there are apparently near-equivalents that are
79996         under the BSD license.
79997
79998 2005-10-24  Simon Josefsson  <jas@extundo.com>
79999
80000         * modules/sha1: Relicense to LGPL.
80001
80002 2005-10-24  Simon Josefsson  <jas@extundo.com>
80003
80004         * lib/md4.h: Shrink buffer size, now that we changed the type.
80005
80006 2005-10-23  Simon Josefsson  <jas@extundo.com>
80007
80008         * gnulib-tool (func_import): Fix --tests-base.
80009
80010 2005-10-22  Simon Josefsson  <jas@extundo.com>
80011
80012         * modules/arcfour (Depends-on): Need stdint.
80013
80014 2005-10-22  Simon Josefsson  <jas@extundo.com>
80015
80016         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
80017         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
80018
80019 2005-10-22  Simon Josefsson  <jas@extundo.com>
80020
80021         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
80022         suggested by Bruno Haible <bruno@clisp.org>.
80023
80024 2005-10-22  Simon Josefsson  <jas@extundo.com>
80025
80026         * lib/crc.h: Include stddef.h, for size_t.
80027
80028 2005-10-22  Simon Josefsson  <jas@extundo.com>
80029
80030         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
80031         arcfour_context struct (simplify test vector testing in GNU
80032         Shishi).
80033
80034 2005-10-21  Simon Josefsson  <jas@extundo.com>
80035
80036         * modules/des, modules/des-tests: New files.
80037
80038         * modules/gc-des, modules/gc-des-tests: New files.
80039
80040         * tests/test-des.c, tests/test-gc-des.c: New file.
80041
80042 2005-10-21  Simon Josefsson  <jas@extundo.com>
80043
80044         * modules/arctwo, modules/arctwo-tests: New files.
80045
80046         * tests/test-arctwo.c: New file.
80047
80048         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
80049
80050         * tests/test-gc-arctwo.c: New file.
80051
80052 2005-10-21  Simon Josefsson  <jas@extundo.com>
80053
80054         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
80055         Bruno Haible <bruno@clisp.org>.
80056
80057         * m4/gc-des.m4: New file.
80058
80059 2005-10-21  Simon Josefsson  <jas@extundo.com>
80060
80061         * m4/arctwo.m4: New file.
80062
80063         * m4/gc-arctwo.m4: New file.
80064
80065 2005-10-21  Simon Josefsson  <jas@extundo.com>
80066
80067         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
80068         block.
80069
80070 2005-10-21  Simon Josefsson  <jas@extundo.com>
80071
80072         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
80073         <bruno@clisp.org>.
80074
80075         * lib/hmac-sha1.c (hmac_sha1): Likewise.
80076
80077         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
80078         Bruno Haible <bruno@clisp.org>.
80079
80080         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
80081         <bruno@clisp.org>.
80082
80083 2005-10-21  Simon Josefsson  <jas@extundo.com>
80084
80085         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
80086
80087 2005-10-21  Simon Josefsson  <jas@extundo.com>
80088
80089         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
80090
80091 2005-10-21  Simon Josefsson  <jas@extundo.com>
80092
80093         * lib/des.h, lib/des.c: New files.
80094
80095         * lib/gc-gnulib.c: Support DES.c
80096
80097 2005-10-21  Simon Josefsson  <jas@extundo.com>
80098
80099         * lib/arctwo.h, lib/arctwo.c: New files.
80100
80101         * lib/gc-gnulib.c: Support ARCTWO.
80102
80103 2005-10-21  Simon Josefsson  <jas@extundo.com>
80104
80105         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
80106         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80107
80108 2005-10-21  Simon Josefsson  <jas@extundo.com>
80109
80110         * gnulib-tool (func_import, func_create_testdir): Define automake
80111         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
80112         Makefile.am snippet),
80113         suggested by Bruno Haible <bruno@clisp.org>.
80114
80115         * modules/gc (Makefile.am): Use it.
80116
80117 2005-10-21  Bruno Haible  <bruno@clisp.org>
80118
80119         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
80120         patch.
80121
80122 2005-10-19  Simon Josefsson  <jas@extundo.com>
80123
80124         * tests/test-gc-rijndael.c: New file.
80125
80126         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
80127
80128 2005-10-19  Simon Josefsson  <jas@extundo.com>
80129
80130         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
80131         interface too.
80132
80133 2005-10-19  Simon Josefsson  <jas@extundo.com>
80134
80135         * tests/test-gc-arcfour.c: New file.
80136
80137         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
80138
80139 2005-10-19  Simon Josefsson  <jas@extundo.com>
80140
80141         * modules/gc-md4, modules/gc-md4-tests: New file.
80142
80143         * tests/test-gc-md4.c: New file.
80144
80145 2005-10-19  Simon Josefsson  <jas@extundo.com>
80146
80147         * m4/gc-md4.m4: New file.
80148
80149 2005-10-19  Simon Josefsson  <jas@extundo.com>
80150
80151         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
80152         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
80153         <kasal@ucw.cz>.
80154
80155 2005-10-19  Simon Josefsson  <jas@extundo.com>
80156
80157         * m4/gc-arcfour.m4: New file.
80158
80159         * m4/gc-rijndael.m4: New file.
80160
80161 2005-10-19  Simon Josefsson  <jas@extundo.com>
80162
80163         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
80164
80165 2005-10-19  Simon Josefsson  <jas@extundo.com>
80166
80167         * lib/gc-gnulib.c: Support ARCFOUR.
80168
80169 2005-10-19  Simon Josefsson  <jas@extundo.com>
80170
80171         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
80172         support.
80173
80174         * lib/gc.h: Add ECB enum type.
80175
80176         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
80177
80178 2005-10-18  Simon Josefsson  <jas@extundo.com>
80179
80180         * tests/test-md5.c: New file.
80181
80182         * modules/md5-tests: New file.
80183
80184 2005-10-18  Simon Josefsson  <jas@extundo.com>
80185
80186         * tests/test-md4.c: New file.
80187
80188         * modules/md4, modules/md4-tests: New files.
80189
80190 2005-10-18  Simon Josefsson  <jas@extundo.com>
80191
80192         * m4/md4.m4: New file.
80193
80194 2005-10-18  Simon Josefsson  <jas@extundo.com>
80195
80196         * lib/md4.h, lib/md4.c: New files, based on md5.?.
80197
80198 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
80199
80200         * gnulib-tool (func_create_testdir): Omit the second check whether
80201         BUILT_SOURCES in nonempty.
80202
80203 2005-10-17  Simon Josefsson  <jas@extundo.com>
80204
80205         * tests/test-rijndael.c: New file.
80206
80207 2005-10-17  Simon Josefsson  <jas@extundo.com>
80208
80209         * modules/sha1: Depend on stdint instead of md5.
80210
80211         * modules/md5: Depend on stdint, remove uint32_t.
80212
80213 2005-10-17  Simon Josefsson  <jas@extundo.com>
80214
80215         * modules/gc-sha1-tests: New file.
80216
80217         * tests/test-gc-sha1.c: New file.
80218
80219 2005-10-17  Simon Josefsson  <jas@extundo.com>
80220
80221         * m4/md5.m4: Remove call to uint32_t.m4.
80222
80223 2005-10-17  Simon Josefsson  <jas@extundo.com>
80224
80225         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
80226
80227         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
80228         md5.h.
80229
80230         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
80231
80232         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
80233
80234 2005-10-17  Simon Josefsson  <jas@extundo.com>
80235
80236         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
80237
80238 2005-10-17  Simon Josefsson  <jas@extundo.com>
80239
80240         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
80241
80242 2005-10-17  Simon Josefsson  <jas@extundo.com>
80243
80244         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
80245
80246         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
80247
80248 2005-10-17  Bruno Haible  <bruno@clisp.org>
80249
80250         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
80251         that it can also be used in a test.
80252
80253 2005-10-16  Bruno Haible  <bruno@clisp.org>
80254
80255         * gnulib-tool (func_emit_tests_Makefile_am): Also define
80256         TESTS_ENVIRONMENT, so that individual tests can augment it.
80257
80258         * gnulib-tool (func_create_testdir): Use an intermediate target for
80259         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
80260         macros, like $(ALLOCA_H), which cannot be passed through the command
80261         line.
80262
80263 2005-10-15  Simon Josefsson  <jas@extundo.com>
80264
80265         * modules/rijndael-tests: New file.
80266
80267         * modules/rijndael: New file.
80268
80269 2005-10-15  Simon Josefsson  <jas@extundo.com>
80270
80271         * m4/rijndael.m4: New file.
80272
80273 2005-10-15  Simon Josefsson  <jas@extundo.com>
80274
80275         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
80276
80277         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
80278
80279 2005-10-14  Simon Josefsson  <jas@extundo.com>
80280
80281         * tests/test-arcfour.c: New file.
80282
80283         * modules/arcfour, modules/arcfour-tests: New files.
80284
80285 2005-10-14  Simon Josefsson  <jas@extundo.com>
80286
80287         * m4/arcfour.m4: New file.
80288
80289 2005-10-14  Simon Josefsson  <jas@extundo.com>
80290
80291         * lib/arcfour.h, lib/arcfour.c: New files.
80292
80293 2005-10-14  Roland McGrath  <roland@redhat.com>
80294
80295         Import from libc.  [BZ #1331]
80296         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
80297         macro argument.
80298         Reported by Matej Vela <vela@debian.org>.
80299
80300 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80301
80302         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
80303         include <wchar.h>; no longer needed.
80304
80305 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80306
80307         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
80308
80309 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
80310         and  Ulrich Drepper  <drepper@redhat.com>
80311
80312         Import from libc.
80313         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
80314         instead of inline stream orientation test and two separate
80315         function calls.  Pay no attention to USE_IN_LIBIO.
80316
80317 2005-10-13  Simon Josefsson  <jas@extundo.com>
80318
80319         * modules/gc-hmac-md5-tests: New file.
80320
80321         * tests/test-gc-hmac-sha1.c: New file.
80322
80323         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
80324
80325         * modules/gc-hmac-md5-tests: New file.
80326
80327         * tests/test-gc-md5.c: New file.
80328
80329         * modules/gc-md5-tests: New file.
80330
80331 2005-10-13  Simon Josefsson  <jas@extundo.com>
80332
80333         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
80334         Move memory allocation outside of loop.
80335
80336 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
80337
80338         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
80339         intermediate directory is in a read-only file system.  Problem
80340         reported by Eric Blake.
80341
80342 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
80343
80344         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
80345
80346 2005-10-12  Simon Josefsson  <jas@extundo.com>
80347
80348         * tests/test-hmac-sha1.c: New file.
80349
80350         * modules/hmac-sha1-tests: New file.
80351
80352         * modules/hmac-sha1: New file.
80353
80354 2005-10-12  Simon Josefsson  <jas@extundo.com>
80355
80356         * modules/gc-sha1: New file.
80357
80358 2005-10-12  Simon Josefsson  <jas@extundo.com>
80359
80360         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
80361
80362         * tests/test-gc-pbkdf2-sha1.c: New file.
80363
80364 2005-10-12  Simon Josefsson  <jas@extundo.com>
80365
80366         * modules/gc-md5, modules/gc-hmac-md5: New files.
80367
80368         * modules/gc (Files): Remove md5, memxor and hmac files.
80369
80370 2005-10-12  Simon Josefsson  <jas@extundo.com>
80371
80372         * m4/gc-pbkdf2-sha1.m4: New file.
80373
80374         * m4/gc-hmac-sha1.m4: New file.
80375
80376         * m4/gc-sha1: New file.
80377
80378         * m4/hmac-sha1.m4: New file.
80379
80380 2005-10-12  Simon Josefsson  <jas@extundo.com>
80381
80382         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
80383
80384         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
80385
80386 2005-10-12  Simon Josefsson  <jas@extundo.com>
80387
80388         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
80389         suggested by Bruno Haible <bruno@clisp.org>.
80390
80391 2005-10-12  Simon Josefsson  <jas@extundo.com>
80392
80393         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
80394
80395 2005-10-12  Simon Josefsson  <jas@extundo.com>
80396
80397         * lib/gc-pbkdf2-sha1.c: New file.
80398
80399         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
80400
80401 2005-10-12  Simon Josefsson  <jas@extundo.com>
80402
80403         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
80404
80405         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
80406
80407 2005-10-12  Simon Josefsson  <jas@extundo.com>
80408
80409         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
80410         GC_USE_HMAC_MD5, respectively.
80411
80412         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
80413         (gc_md5): Fix typo.
80414
80415         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
80416
80417         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
80418
80419         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
80420
80421 2005-10-12  Bruno Haible  <bruno@clisp.org>
80422
80423         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
80424         Reported by Stepan Kasal <kasal@ucw.cz>.
80425
80426 2005-10-11  Simon Josefsson  <jas@extundo.com>
80427
80428         * tests/test-crc.c: New file.
80429
80430         * modules/crc, modules/crc-tests: New files.
80431
80432 2005-10-11  Simon Josefsson  <jas@extundo.com>
80433
80434         * m4/crc.m4: New file.
80435
80436 2005-10-11  Simon Josefsson  <jas@extundo.com>
80437
80438         * lib/gc.h: Add gc_hash and gc_hash_buffer.
80439
80440         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
80441
80442         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
80443
80444 2005-10-11  Simon Josefsson  <jas@extundo.com>
80445
80446         * lib/crc.h, lib/crc.c: New files.
80447
80448         * lib/gc.h (gc_hash_buffer): Add doc.
80449
80450 2005-10-11  Bruno Haible  <bruno@clisp.org>
80451
80452         * modules/c-strcasestr: New file.
80453         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
80454
80455 2005-10-11  Bruno Haible  <bruno@clisp.org>
80456
80457         * modules/c-strcase: New file.
80458         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
80459
80460 2005-10-11  Bruno Haible  <bruno@clisp.org>
80461
80462         * lib/strcasecmp.c: Include limits.h.
80463         (strcasecmp): Avoid integer overflow on exotic platforms.
80464         * lib/strncasecmp.c: Include limits.h.
80465         (strncasecmp): Avoid integer overflow on exotic platforms.
80466         Reported by Paul Eggert.
80467
80468 2005-10-11  Bruno Haible  <bruno@clisp.org>
80469
80470         * lib/c-strcasestr.h: New file, from GNU gettext.
80471         * lib/c-strcasestr.c: New file, from GNU gettext.
80472
80473 2005-10-11  Bruno Haible  <bruno@clisp.org>
80474
80475         * lib/c-strcase.h: New file, from GNU gettext.
80476         * lib/c-strcasecmp.c: New file, from GNU gettext.
80477         * lib/c-strncasecmp.c: New file, from GNU gettext.
80478
80479 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80480
80481         * modules/mempcpy (License): GPL -> LGPL.
80482         * modules/strchrnul (License): Likewise.
80483         * modules/sysexits (License): Likewise.
80484
80485 2005-10-08  Simon Josefsson  <jas@extundo.com>
80486
80487         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
80488
80489 2005-10-07  Simon Josefsson  <jas@extundo.com>
80490
80491         * m4/memxor.m4: Remove gl_C_RESTRICT call.
80492
80493 2005-10-06  Simon Josefsson  <jas@extundo.com>
80494
80495         * tests/test-hmac-md5.c: New file.
80496
80497         * modules/hmac-md5-tests: New file.
80498
80499         * modules/hmac-md5: New file.
80500
80501 2005-10-06  Simon Josefsson  <jas@extundo.com>
80502
80503         * m4/hmac-md5.m4: New file.
80504
80505         * m4/memxor.m4: Require gl_C_RESTRICT.
80506
80507 2005-10-06  Simon Josefsson  <jas@extundo.com>
80508
80509         * lib/memxor.c (memxor): Avoid casts and warnings.
80510
80511 2005-10-06  Simon Josefsson  <jas@extundo.com>
80512
80513         * lib/hmac-md5.c: New file.
80514
80515         * lib/hmac.h: New file.
80516
80517 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80518
80519         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
80520         promotes to int, not unsigned int, to catch the AIX 5.3
80521         compiler bug.
80522
80523 2005-10-05  Simon Josefsson  <jas@extundo.com>
80524
80525         * modules/memxor: New file.
80526
80527         * modules/iconv (Files): Move config.rpath to havelib, it is used
80528         there.
80529
80530         * modules/havelib (Files): Add config.rpath.
80531
80532 2005-10-05  Simon Josefsson  <jas@extundo.com>
80533
80534         * m4/memxor.m4: New file.
80535
80536 2005-10-05  Simon Josefsson  <jas@extundo.com>
80537
80538         * lib/memxor.c (memxor): Fix compiler error.
80539
80540         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
80541         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
80542
80543         * lib/memxor.h, lib/memxor.c: New files.
80544
80545         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
80546         we assume all systems have it, suggested by Jim Meyering
80547         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
80548         any systems lack sys/socket.h; mingw32 is known to lack it, but we
80549         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
80550         same reasons.
80551
80552 2005-10-05  Simon Josefsson  <jas@extundo.com>
80553
80554         * config/srclist.txt: Add glibc bug 1423 for md5.h.
80555
80556 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80557
80558         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80559         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80560         needed, since the source code now assumes these .h files.
80561
80562 2005-10-05  Derek Price  <derek@ximbiot.com>
80563
80564         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80565
80566 2005-10-05  Bruno Haible  <bruno@clisp.org>
80567
80568         * modules/stdint (License): Change to LGPL.
80569
80570 2005-10-04  Simon Josefsson  <jas@extundo.com>
80571
80572         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80573         D. Baushke" <mdb@gnu.org>.
80574
80575 2005-10-04  Bruno Haible  <bruno@clisp.org>
80576
80577         * lib/verify.h (verify_true): Provide alternative definition for C++.
80578
80579 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80580
80581         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80582         (SSIZE_MAX): New macro, if not already defined.
80583         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80584         than 2 GiB.
80585
80586 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80587
80588         Sync from coreutils.
80589         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80590         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80591         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80592         ULLONG_MAX doesn't work with 2.7.2.1.
80593
80594 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80595
80596         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80597         From Ben Pfaff.
80598
80599         * modules/exclude (Depends-on): Depend on verify.
80600         * modules/strtoimax (Depends-on): Likewise.
80601         * modules/utimecmp (Depends-on): Likewise.
80602
80603 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80604
80605         * lib/exclude.c: Include verify.h.
80606         (verify): Remove.  All callers changed to use verify.h's version.
80607         * lib/strtoimax.c: Likewise.
80608         * lib/utimecmp.c: Likewis.e
80609
80610         Sync from coreutils.
80611         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80612         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80613         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80614         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80615         bother returning ENOSYS if settimeofday or stime fails; just let
80616         them return whatever errno they want to return.
80617         * lib/utimens.c: Include unistd.h, for dup2.
80618         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80619         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80620
80621 2005-10-02  Jim Meyering  <jim@meyering.net>
80622
80623         Sync from coreutils.
80624         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80625         from glibc-2.2.5 that fails for read-only files.
80626
80627 2005-10-02  Jim Meyering  <jim@meyering.net>
80628
80629         Sync from coreutils.
80630         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80631         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80632         `#if HAVE_CONFIG_H'.
80633         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80634         Remove AT_FDCWD test.
80635         Do not consume the fd unless successful.
80636         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80637         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80638         block, so that we don't even try to compile it if settimeofday is
80639         available.  This works around a compilation failure on OSF1 V5.1,
80640         due to stime requiring a `long int*' while tv_sec is `int'.
80641
80642 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80643
80644         Sync from coreutils.
80645         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80646         against `yes', rather than just testing for nonempty.
80647
80648 2005-10-01  Simon Josefsson  <jas@extundo.com>
80649
80650         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80651         and Darwin.
80652
80653         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80654         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80655         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80656         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80657         Check if struct addrinfo is declared.
80658
80659 2005-10-01  Simon Josefsson  <jas@extundo.com>
80660
80661         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80662         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80663         AI_* and EAI_* definitions.  Protect function declarations.
80664
80665 2005-10-01  Jim Meyering  <jim@meyering.net>
80666
80667         Sync from coreutils.
80668
80669         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80670         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80671         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80672         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80673         in the inet and nsl libraries.  Required on Solaris 5.7.
80674
80675 2005-10-01  Jim Meyering  <jim@meyering.net>
80676
80677         Sync from coreutils.
80678         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80679         in the inet and nsl libraries.  Required on Solaris 5.7.
80680
80681 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80682
80683         * lib/getdelim.c (getdelim): Remove unused variables.
80684
80685 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80686
80687         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80688         so that the code works even with ancient cpp.  Portability problem
80689         with GCC 2.7.2.1 reported by Thomas M.Ott.
80690
80691 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80692
80693         * modules/regex (Depends-on): Add strcase.
80694
80695         * modules/gethostname (Licence): Change from GPL to LGPL, since
80696         gethostname.c is a trivial implementation of a standard library
80697         function.
80698         * modules/poll (License): Change from GPL to LGPL, since it's
80699         derived from LGPL code.
80700
80701 2005-09-27  Jim Meyering  <jim@meyering.net>
80702
80703         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80704         HAVE_CONFIG_H.
80705
80706         * lib/intprops.h (signed_type_or_expr__): Define.
80707         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80708         for unsigned types.
80709
80710 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80711
80712         * lib/verify.h (verify_expr): Remove, replacing with:
80713         (verify_true): New macro that returns true instead of void.
80714         (verify_type__): Remove.
80715         (verify): Use verify_true rather than verify_type__.
80716
80717 2005-09-26  Bruno Haible  <bruno@clisp.org>
80718
80719         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80720         is necessary.
80721         (lib_SOURCES): Remove mbchar.c.
80722         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80723         (Files): Add m4/mbrtowc.m4.
80724         * modules/mbiter: Likewise.
80725         * modules/mbuiter: Likewise.
80726
80727 2005-09-26  Bruno Haible  <bruno@clisp.org>
80728
80729         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80730         compile mbchar.c if they are not both present.
80731         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80732         * m4/mbiter.m4 (gl_MBITER): Likewise.
80733         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80734         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80735         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80736
80737 2005-09-25  Jim Meyering  <jim@meyering.net>
80738
80739         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80740         also uses socklen_t.
80741
80742 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80743
80744         * lib/utimens.c (ENOSYS): Define if not already defined.
80745         (futimens): Support having a null PATH if the file descriptor
80746         is nonnegative.
80747
80748         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80749         Remove.
80750         (__attribute): Define to empty unless GCC 3.1 or later.
80751         This works around a core dump on OpenBSD 3.4, which has GCC
80752         2.95.3, which dumps core when given __attribute__(()).  It also
80753         simplifies other tests, since we really don't want to bother with
80754         worrying about which ancient version of GCC supported what.
80755         Original problem reported by Yoann Vandoorselaere, with part of
80756         the fix suggested by Derek Price.
80757
80758 2005-09-24  Jim Meyering  <jim@meyering.net>
80759
80760         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80761         so we can once again use a positive bitfield width of 1 -- now we
80762         don't have to explain why we were using a bitfield width of 2.
80763
80764 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80765
80766         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80767         and similarly for the other external symbols.  Problem reported
80768         by James Gallager.
80769
80770         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80771         bug reported by Jim Meyering.
80772
80773         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80774         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80775         not needed, since socklen is a prerequisite module.
80776
80777 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80778
80779         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80780         Problem reported by Eric Blake.
80781         (getaddrinfo): Initialize se so that it's not garbage.
80782         Redo internal storage allocation so that it doesn't make unportable
80783         assumptions about alignment.
80784         Fix a memory leak.
80785
80786         * lib/utimens.c (futimens): Use futimesat if available.
80787         Prefer it to futimes since it doesn't have the futimes bug.
80788
80789         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80790         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80791         Instead, declare a function that returns a pointer to an array,
80792         and use verify_type__ to declare the size of the array.
80793         Problem and germ of a solution reported by Bruno Haible.
80794         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80795         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80796
80797 2005-09-23  Jim Meyering  <jim@meyering.net>
80798
80799         Sync from coreutils.
80800         Correct build failure (socklen_t not defined) on at least
80801         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80802         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80803
80804 2005-09-23  Jim Meyering  <jim@meyering.net>
80805
80806         * modules/getaddrinfo (Depends-on): Add socklen.
80807
80808 2005-09-23  Bruno Haible  <bruno@clisp.org>
80809
80810         * tests/test-verify.c: New file.
80811
80812 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80813
80814         Sync from coreutils.
80815
80816         * modules/argmatch (Depends-on): Add verify.
80817         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80818         unistd-safer.
80819         * modules/save-cwd (Depends-on): Likewise.
80820
80821         * modules/openat (Files): Add lib/openat-die.c.
80822         (Depends-on): Remove error, exitfail.
80823         Add dirname.
80824
80825         * modules/verify: New file.
80826         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80827         with "verify" module.
80828
80829 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80830
80831         Sync from coreutils.
80832
80833         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80834         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80835         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80836         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80837         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80838         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80839         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80840         Don't bother checking for string.h, stdlib.h, unistd.h.
80841         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80842         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80843         module's job.
80844         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80845         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80846
80847         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80848         (gl_GETDATE): Use it.
80849
80850         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80851
80852 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80853
80854         Sync from coreutils.
80855
80856         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80857         stat-time.h.
80858         * lib/argmatch.h: Include verify.h
80859         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80860         (ARGMATCH_ASSERT): Remove; unused.
80861         * lib/canonicalize.c: Assume STDC_HEADERS.
80862         * lib/exclude.c: Include "strcase.h".
80863         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80864         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80865         and stdio-safer.h.
80866         (getusershell): Call fopen, not fopen_safer.
80867         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80868         Do not include unistd-safer.h.
80869         (save_cwd): Don't call fd_safer; no longer needed
80870         now that we include fcntl--.h.
80871
80872         * lib/getdate.y (relative_time): New type.
80873         (RELATIVE_TIME_0): New constant.
80874         (parser_control): Use relative_time instead of doing it ourselves.
80875         (%union): Add new relative_time rel member.
80876         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80877         Now typeless.
80878         (relunit, relunit_snumber): Now of type rel.
80879         (zone, rel, relunit, get_date): Adjust to above changes.
80880
80881         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80882         Do not include unistd-safer.h.
80883         (getloadavg): Don't call fd_safer; no longer needed
80884         now that we include fcntl--.h.
80885
80886         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80887         (make_dir_parents): Treat ENOSYS like EEXIST.
80888
80889         Improve quality of diagnostics on restore_cwd failure.
80890         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80891         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80892         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80893         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80894         each time through the loop.  Do not diagnose restore_cwd failure;
80895         that is the caller's job (and perhaps the caller does not care).
80896
80897         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80898         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80899         If the file already exists but is not a directory, don't bother
80900         to try to make its parents.
80901         Close potential file descriptor leak if we can't chdir("/") (!).
80902         Don't always return true if chdir($PWD) fails; return true only
80903         if the requested action was done successfully (except for the
80904         chdir($PWD)).
80905         Don't log final directory unless we actually made it.
80906         Refactor to avoid duplicate code to fix up permissions.
80907         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80908
80909         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80910         to make it a bit faster and (I hope) clearer.
80911         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80912         Fix bug in formats like %2N.
80913
80914         * lib/verify.h: New file.
80915
80916 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80917
80918         Sync from coreutils.
80919         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80920
80921 2005-09-22  Jim Meyering  <jim@meyering.net>
80922
80923         Sync from coreutils.
80924
80925         * m4/lstat.m4 (gl_FUNC_LSTAT):
80926         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80927         Remove obsolete comment.
80928         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80929         * m4/xstrtod.m4: Likewise.
80930
80931         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80932
80933 2005-09-22  Jim Meyering  <jim@meyering.net>
80934
80935         Sync from coreutils.
80936
80937         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80938
80939         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80940         the .tm_year member, since otherwise gcc-4.0 would now warn about
80941         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80942
80943         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80944         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80945
80946         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80947         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80948         when run in a time zone for which daylight savings time is in effect
80949         for the starting date.
80950
80951         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80952         stop us from restricting permissions of just-created absolute-named
80953         directories.
80954         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80955         to restore initial working directory.
80956         * lib/mkdir-p.c (make_dir_parents): New parameter:
80957         different_working_dir, to tell caller if/when we change the working
80958         directory and are unable to return to the initial one.
80959         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80960         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80961         `return false'.  This fixes a bug introduced on 2004-07-30.
80962
80963         * lib/openat.c (fdopendir): Be sure to close the supplied
80964         file descriptor before returning.  This makes our replacement
80965         implementation a little closer to Solaris's, where fdopendir
80966         ties the file descriptor to the returned DIR* pointer.
80967         * lib/openat.c (unlinkat): New function.
80968         * lib/openat.h (unlinkat): Add prototype.
80969         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80970         (openat_restore_fail): Rename from openat_restore_die.
80971         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80972
80973         Provide an alternative to exiting immediately upon save_cwd or
80974         restore_cwd failure.  Now, an application can arrange e.g.,
80975         to perform a longjump in that case.
80976         * lib/openat.c: Include dirname.h.
80977         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80978         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80979         and openat_restore_die rather than calling error directly.
80980         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80981
80982         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80983         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80984         define.
80985
80986         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80987         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80988                             int utc, int nanoseconds);
80989         Background:
80990         date should not have to allocate a megabyte of virtual memory to
80991         handle a format argument like +%1048575T.  When implemented with
80992         strftime, it must allocate such a buffer, use strftime to fill it
80993         in, print it, then free it.
80994         With fprintftime, it simply prints everything and exits.
80995         With no need for memory allocation, that's one fewer way to fail.
80996         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80997         optional field width, not before, so we accept %9:z, not %:9z.
80998         (my_strftime): Be sure to use L_('x') for literals.
80999
81000         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
81001         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
81002         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
81003         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
81004         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
81005         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
81006         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
81007         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
81008         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
81009         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
81010         * lib/xgethostname.c, lib/xreadlink.c:
81011         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
81012
81013         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
81014         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
81015         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
81016         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81017         and don't include <sys/file.h>).
81018
81019 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
81020
81021         Sync from coreutils.
81022
81023         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
81024         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
81025         [!LDAV_DONE]: Avoid unused variable warning.
81026
81027 2005-09-21  Bruno Haible  <bruno@clisp.org>
81028
81029         * lib/unicodeio.h (unicode_to_mb): New declaration.
81030
81031 2005-09-20  Derek Price  <derek@ximbiot.com>
81032
81033         * lib/getaddrinfo.c: Don't include <netdb.h> included from
81034         getaddrinfo.h.
81035
81036 2005-09-20  Bruno Haible  <bruno@clisp.org>
81037
81038         * gnulib-tool: Remove trailing slashes from the values specified for
81039         --source-base, --m4-base, --tests-base, --aux-dir.
81040         Suggested by Simon Josefsson <jas@extundo.com>.
81041
81042 2005-09-20  Bruno Haible  <bruno@clisp.org>
81043
81044         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
81045         func_modules_to_filelist, func_import, func_create_testdir): Make all
81046         sorting results locale-independent, so that gnulib-cache.m4 doesn't
81047         change when gnulib-tool is invoked in a different locale.
81048
81049 2005-09-19  Simon Josefsson  <jas@extundo.com>
81050
81051         * m4/socklen.m4: Fix typo.
81052
81053 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81054
81055         Use a consistent style for including <config.h>.
81056         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
81057         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
81058         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
81059         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
81060         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
81061         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
81062         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
81063         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
81064         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
81065         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
81066         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
81067         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
81068         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
81069         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
81070         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
81071         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
81072         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
81073         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
81074         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
81075         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
81076         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
81077         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
81078         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
81079         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
81080         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
81081         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
81082         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
81083         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
81084         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
81085         lib/xstrtoumax.c, lib/yesno.c:
81086         Standardize inclusion of config.h.
81087         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
81088         lib/inttostr.h:  Removed inclusion of config.h from header files.
81089         * lib/inttostr.c:  Adjusted in-tree users.
81090         * lib/timespec.h: Remove superfluous warning to include config.h.
81091         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
81092         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
81093         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
81094         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
81095         config.h with HAVE_CONFIG_H.
81096
81097 2005-09-19  Jim Meyering  <jim@meyering.net>
81098
81099         * modules/pathmax (License): Change to LGPL.
81100
81101 2005-09-19  Derek Price  <derek@ximbiot.com>
81102
81103         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
81104
81105 2005-09-19  Bruno Haible  <bruno@clisp.org>
81106
81107         * gnulib-tool (import): Provide default for --tests-base.
81108
81109 2005-09-19  Bruno Haible  <bruno@clisp.org>
81110
81111         * doc/quote.texi: New file, extracted from gnulib.texi.
81112         * doc/ctime.texi: New file, extracted from gnulib.texi.
81113         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
81114         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
81115         * doc/gnulib.texi: Include them.
81116
81117 2005-09-18  Bruno Haible  <bruno@clisp.org>
81118
81119         Portability fix.
81120         * gnulib-tool (func_readlink): New function.
81121         (func_ln_if_changed): Use it.
81122
81123 2005-09-18  Bruno Haible  <bruno@clisp.org>
81124
81125         * gnulib-tool: Support --with-tests also with --import.
81126         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
81127         (func_import): Use variables $testsbase and $inctests. Emit a
81128         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
81129         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
81130         SUBDIRS += $testsdir.
81131         (func_create_testdir): Update.
81132
81133 2005-09-18  Bruno Haible  <bruno@clisp.org>
81134
81135         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
81136         instead of $dry_run.
81137         (func_cp_if_changed, func_mv_if_changed): Remove functions.
81138         (func_ln_if_changed): Don't handle dry-run here.
81139         (func_import): In dry-run mode, detect more precisely which actions
81140         would be performed, and don't use "...ing" verbs.
81141
81142 2005-09-18  Bruno Haible  <bruno@clisp.org>
81143
81144         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
81145         (func_import): Use join on two temporary files instead of three nested
81146         loops, in order to determine which files are new or old.
81147
81148 2005-09-18  Bruno Haible  <bruno@clisp.org>
81149
81150         * gnulib-tool (func_import): Comment out code that spits out the
81151         new files with --dry-run.
81152
81153 2005-09-18  Bruno Haible  <bruno@clisp.org>
81154
81155         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
81156
81157 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81158
81159         * lib/stat-time.h: New file.
81160         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
81161         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
81162         in a different way.
81163         (timespec_cmp): New function.
81164         * lib/utimecmp.c: Include stat-time.h.
81165         (SYSCALL_RESOLUTION): Depend on whether various struct stat
81166         members exist, not on the obsolescent ST_MTIM_NSEC.
81167         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
81168
81169 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81170
81171         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
81172
81173 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81174
81175         * MODULES.html.sh (File system functions): Add stat-time.
81176         * modules/stat-time: New file.
81177         * modules/timespec (Files): Remove m4/st_mtim.m4; this
81178         is now done in a different way, by the stat-time module.
81179         * modules/utimecmp (Depends-on): Add stat-time.
81180
81181 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
81182
81183         * m4/st_mtim.m4: Remove.  Superseded by...
81184         * m4/stat-time.m4: New file.
81185         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
81186         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
81187
81188 2005-09-15  Derek Price  <derek@ximbiot.com>
81189
81190         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
81191
81192 2005-09-15  Derek Price  <derek@ximbiot.com>
81193
81194         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
81195         * lib/regex_internal.c: Ditto, using this...
81196         (__GNUC_PREREQ): ...new macro.
81197         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
81198         using...
81199         (__GNUC_PREREQ): ...this new macro.
81200
81201         * lib/strstr.h: Include string.h. Define strstr as a macro here.
81202
81203 2005-09-15  Derek Price  <derek@ximbiot.com>
81204             Paul Eggert  <eggert@cs.ucla.edu>
81205
81206         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
81207         changes, consolidating in...
81208         * lib/regex_internal.h: ...this file.
81209
81210 2005-09-13  Jim Meyering  <jim@meyering.net>
81211
81212         * lib/canon-host.c: Filter through gnu indent and reword comments
81213         slightly.
81214         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
81215
81216 2005-09-13  Derek Price  <derek@ximbiot.com>
81217
81218         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
81219         failure.
81220         Reported by Jim Meyering  <jim@meyering.net>.
81221
81222 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81223
81224         * lib/base64.c: Typo.
81225         (base64_encode): Put b64str in initialized data section.
81226
81227 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
81228
81229         Merge glibc and coreutils changes into gnulib, plus a few
81230         extra fixes.
81231         * lib/md5.c: Use #error rather than a string.
81232         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
81233         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
81234         (__attribute__): Define to empty for non recent-GCC.
81235         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
81236         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
81237         Renamed from their non-__ counterparts, with new macros replacing
81238         them if not _LIBC.  Add __THROW attribute.
81239         (rol): Remove.
81240         (struct md5_ctx): Align buffer if using GCC.
81241         * lib/sha1.h (struct sha1_ctx): Likewise.
81242         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
81243         The old name was backwards.
81244         (NOTSWAP): Remove; not used.
81245         (rol): New macro, moved here from md5.h.
81246         (sha1_process_block): Remove a FIXME that doesn't make sense.
81247
81248 2005-09-12  Derek Price  <derek@ximbiot.com>
81249
81250         Return usable errors from canon-host.
81251         * lib/canon-host.h: New file.
81252         * lib/canon-host.c (canon_host): Wrap...
81253         (canon_host_r): ...this new function, which now relies exclusively on
81254         getaddrinfo.
81255         (ch_strerror): New function.
81256         (last_cherror): New global.
81257         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
81258         interface.
81259         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
81260         void *.
81261         (freeaddrinfo): Free ai->ai_canonname when set.
81262
81263 2005-09-12  Derek Price  <derek@ximbiot.com>
81264
81265         Make canon-host require getaddrinfo.
81266         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
81267         AC_LIBSOURCE canon-host.h.  Call...
81268         (gl_PREREQ_CANON_HOST): ...this new function, which requires
81269         gl_GETADDRINFO.
81270         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
81271
81272 2005-09-12  Derek Price  <derek@ximbiot.com>
81273
81274         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
81275         LGPL.
81276         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
81277
81278 2005-09-12  Derek Price  <derek@ximbiot.com>
81279
81280         * lib/gai_strerror.c: Include config.h when available.  Include
81281         getaddrinfo.h before other headers to test interface.
81282         Reported by Larry Jones <lawrence.jones@ugs.com>.
81283
81284 2005-09-12  Derek Price  <derek@ximbiot.com>
81285             Paul Eggert  <eggert@cs.ucla.edu>
81286
81287         * modules/glob (Files): Add glob-libc.h.
81288
81289 2005-09-12  Derek Price  <derek@ximbiot.com>
81290             Paul Eggert  <eggert@cs.ucla.edu>
81291
81292         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
81293         glob_.h, glob-libc.h.
81294         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
81295
81296 2005-09-12  Derek Price  <derek@ximbiot.com>
81297             Paul Eggert  <eggert@cs.ucla.edu>
81298
81299         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
81300         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
81301         protecting things that should be done only in gnulib contexts.
81302         * lib/glob_.h: New file, containing only the glob things needed for
81303         gnulib.
81304         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
81305         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
81306         (glob, globfree, glob_pattern_p): Now defined simply in terms of
81307         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
81308         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
81309         and to respect the namespace rules better.
81310
81311 2005-09-08  Simon Josefsson  <jas@extundo.com>
81312
81313         * modules/socklen: New file.
81314
81315 2005-09-08  Simon Josefsson  <jas@extundo.com>
81316
81317         * m4/socklen.m4: New file.
81318
81319 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81320
81321         * modules/utimens (Files): Add m4/utimbuf.m4, since
81322         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
81323         Reported by Sergey Poznyakoff.
81324
81325 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81326
81327         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
81328         definitions, since that's the preferred style in glibc.
81329         Fix a minor spacing issue, and update copyright notice to match
81330         glibc's.
81331
81332 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81333
81334         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
81335
81336 2005-09-06  Simon Josefsson  <jas@extundo.com>
81337
81338         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
81339         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
81340
81341 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81342
81343         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
81344         warning.
81345
81346 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81347
81348         * config/srclist.txt: Add glibc bug 1302.
81349
81350 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
81351
81352         Change bitset word type from unsigned int to unsigned long int,
81353         as this has better performance on typical 64-bit hosts.
81354         Port bitset code to hosts with unusual word sizes.
81355         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
81356         (build_collating_symbol):
81357         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
81358         argument is a bitset.  This is merely a style issue, but it makes
81359         it clearer that an entire array is expected.
81360         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
81361         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
81362         Port to the case where bitset_word is not the same as unsigned int.
81363         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81364         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
81365         Likewise.
81366         * lib/regexec.c (check_dst_limits_calc_pos_1,
81367         check_subexp_matching_top):
81368         (build_trtable, group_nodes_into_DFAstates):
81369         Likewise.
81370         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
81371         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
81372         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
81373         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
81374         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
81375         * lib/regcomp.c (optimize_subexps, lower_subexp):
81376         Work even if bitset_word has holes in its bitwise representation.
81377         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
81378         * lib/regexec.c (check_dst_limits_calc_pos_1,
81379         check_subexp_matching_top):
81380         Likewise.
81381         * lib/regex_internal.c (re_string_reconstruct):
81382         Don't assume UCHAR_MAX == 255.
81383         * lib/regex_internal.h (bitset_set_all): Likewise.
81384         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
81385         All uses changed.
81386         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
81387         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
81388         All uses changed.
81389         (BITSET_WORD_MAX): New macro.
81390         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
81391         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
81392         (bitset_empty, bitset_copy):
81393         Prefer sizeof (bitset) to multiplying it out ourselves.
81394         (bitset_not_merge): Remove; unused.
81395         (bitset_contain): Return bool, not unsigned int with one bit on.
81396         All callers changed.
81397         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
81398         alignment than re_node_set; do this by defining a new internal
81399         type struct dests_alloc and using it to allocate memory.
81400
81401 2005-09-05  Bruno Haible  <bruno@clisp.org>
81402
81403         * gnulib-tool (func_import): Fix comparison in handling of symbolic
81404         links.
81405
81406 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
81407
81408         * modules/size_max (Makefile.am): Add size_max.h
81409
81410 2005-09-04  Derek Price  <derek@ximbiot.com>
81411
81412         * gnulib-tool (func_import): Fix reversed $symbolic logic.
81413
81414 2005-09-03  Simon Josefsson  <jas@extundo.com>
81415
81416         * gnulib-tool: Fix typo.
81417
81418 2005-09-03  Simon Josefsson  <jas@extundo.com>
81419
81420         * config/srclist.txt: Add glibc bug 1293.
81421
81422 2005-09-03  Derek Price  <derek@ximbiot.com>
81423
81424         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
81425         From Larry Jones <lawrence.jones@ugs.com>.
81426
81427 2005-09-02  Simon Josefsson  <jas@extundo.com>
81428
81429         * modules/socklen: New file.
81430
81431 2005-09-02  Simon Josefsson  <jas@extundo.com>
81432
81433         * modules/havelib: New module.
81434
81435         * modules/gettext, modules/iconv, modules/lock, modules/readline:
81436         Use havelib.
81437
81438 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81439
81440         Check for arithmetic overflow when calculating sizes, to prevent
81441         some buffer-overflow issues.  These patches are conservative, in the
81442         sense that when I couldn't determine whether an overflow was possible,
81443         I inserted a run-time check.
81444         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
81445         macros.
81446         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
81447         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
81448         (re_xnrealloc, re_x2nrealloc): New inline functions.
81449         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
81450         parse_bracket_exp):
81451         (build_equiv_class, build_charclass): Check for arithmetic overflow
81452         in size expression calculations.
81453         * lib/regex_internal.c (re_string_realloc_buffers):
81454         (build_wcs_upper_buffer, re_node_set_add_intersect):
81455         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
81456         (re_dfa_add_node, register_state): Likewise.
81457         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
81458         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
81459         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
81460         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
81461
81462 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81463
81464         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81465         m4/ulonglong.m4.  Problem reported by Martin Lambers.
81466
81467 2005-09-02  Bruno Haible  <bruno@clisp.org>
81468
81469         Support for lib vs. lib64 distinction on biarch platforms.
81470         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
81471         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
81472         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
81473
81474 2005-09-02  Bruno Haible  <bruno@clisp.org>
81475
81476         * gnulib-tool (import): In the other first-use case, provide defaults
81477         as well.
81478
81479 2005-09-02  Bruno Haible  <bruno@clisp.org>
81480
81481         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
81482         patches not yet found in the latest gettext release.
81483
81484 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81485
81486         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
81487         to avoid a collision with bits/local_lim.h in glibc.
81488         All uses changed.  Problem reported by Dmitry V. Levin in
81489         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
81490
81491         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
81492         bugs in int versus size_t comparisons.
81493         (re_string_context_at): Fix bug where the code assumed that
81494         Idx is signed.
81495
81496         Use bool where appropriate.
81497         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
81498         All callers changed.
81499         (calc_eclosure_iter): Likewise, for ROOT arg.
81500         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
81501         (build_charclass_op): Likewise, for NON_MATCH arg.
81502         * lib/regex_internal.c (re_string_allocate, re_string_construct):
81503         (re_string_construct_common): Likewise, for ICASE arg.
81504         * lib/regexec.c (re_search_2_stub, re_search_stub):
81505         Likewise, for RET_LEN arg.
81506         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
81507         (set_regs): Likewise, for FL_BACKTRACK arg.
81508         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
81509         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
81510         (calc_eclosure_iter, parse_bracket_exp):
81511         Use bool for internal variables that are booleans.
81512         * lib/regexec.c (re_search_internal, check_matching,
81513         proceed_next_node):
81514         (set_regs, build_sifted_states, sift_states_bkref):
81515         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
81516         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81517         (find_collation_sequence_value):
81518         Likewise.
81519         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
81520         (re_node_set_compare):
81521         Return bool, not int. All callers changed.
81522         * lib/regexec.c (check_halt_node_context, check_dst_limits):
81523         (build_trtable, check_node_accept): Likewise.
81524         * lib/regex_internal.h: Include stdbool.h.
81525
81526         Fix bugs uncovered when converting to bool.
81527         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
81528         failure instead of charging ahead blindly.
81529         * lib/regex_internal.c (register_state): Likewise.
81530         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
81531         for freeing internal storage.
81532         (group_nodes_into_DFA_states): Use unsigned int, not int, for
81533         bitset pieces used as boolean, to avoid undefined behavior
81534         on hosts that do int overflow checking.
81535
81536 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81537
81538         * config/srclist.txt: Add glibc bugs 1285-1287.
81539
81540 2005-09-01  Jim Meyering  <jim@meyering.net>
81541
81542         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
81543         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
81544         Require gl_STAT_MACROS, too.
81545
81546 2005-09-01  Bruno Haible  <bruno@clisp.org>
81547
81548         * gnulib-tool (import): In the first-use case, provide defaults.
81549
81550 2005-09-01  Bruno Haible  <bruno@clisp.org>
81551
81552         * gnulib-tool (func_import): Remove the .tmp files.
81553
81554 2005-09-01  Bruno Haible  <bruno@clisp.org>
81555
81556         * gnulib-tool (func_import): Fix handling of symbolic links.
81557
81558 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81559
81560         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81561         old glibc regex code mishandles strings longer than 2**31 bytes.
81562         This patch fixes this when the regex code is used in gnulib
81563         (i.e., outside glibc).
81564
81565         This patch should not affect the use of the regex code inside
81566         glibc.  No doubt this problem also needs to be handled for glibc
81567         as well, but the result will be an incompatible change to the
81568         glibc ABI, and the old ABI will have to be supported too.  That
81569         can be the the subject for another patch.
81570
81571         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81572         governing whether the rest of this patch is active.  By default,
81573         the macro is disabled and the patch has no effect.
81574         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81575         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81576         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81577         (re_match_2, re_set_registers): Use the new types.
81578         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81579         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81580         New macros.
81581         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81582         (re_string_context_at, bin_tree_t, re_dfastate_t):
81583         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81584         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81585         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81586         (re_string_char_size_at, re_string_wchar_at):
81587         (re_string_elem_size_at):
81588         Use the new types and macros to port to 64-bit hosts.
81589         Use unsigned types for internal values, so that the code
81590         mostly works even for arrays larger than SSIZE_MAX.
81591         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81592         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81593         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81594         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81595         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81596         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81597         (calc_inveclosure, parse_dup_op, build_range_exp):
81598         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81599         (fetch_number, create_token_tree, mark_opt_subexp):
81600         Likewise.
81601         * lib/regex_internal.c (re_string_construct_common,
81602         create_ci_newstate):
81603         (create_cd_newstate, re_string_allocate, re_string_construct):
81604         (re_string_realloc_buffers, build_wcs_upper_buffer):
81605         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81606         (re_string_reconstruct, re_string_peek_byte_case):
81607         (re_string_fetch_byte_case, re_string_context_at):
81608         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81609         (re_node_set_init_copy, re_node_set_add_intersect):
81610         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81611         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81612         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81613         (re_acquire_state, re_acquire_state_context, register_state):
81614         Likewise.
81615         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81616         search_cur_bkref_entry):
81617         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81618         (re_search_internal, re_search_2_stub, re_search_stub)
81619         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81620         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81621         (update_cur_sifted_state, check_dst_limits):
81622         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81623         (check_subexp_limits, sift_states_bkref, merge_state_array):
81624         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81625         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81626         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81627         (expand_bkref_cache, check_node_accept_bytes):
81628         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81629         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81630         (acquire_init_state_context, check_halt_node_context):
81631         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81632         (sift_states_backward, clean_state_log_if_needed):
81633         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81634         (find_recover_state, transit_state_sb, transit_state_mb):
81635         (transit_state_bkref, build_trtable, match_ctx_clean):
81636         Likewise.
81637         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81638         to work around an assumption that REG_MISSING is negative.
81639
81640         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81641         (seek_collating_symbol_entry) [defined _LIBC]:
81642         (lookup_collation_sequence_value) [defined _LIBC]:
81643         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81644         Use prototypes rather than old-style function definitions.
81645         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81646         (transit_state_sb) [0]:
81647         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81648
81649         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81650         rm_eo.
81651
81652         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81653         (optimize_subexps, lower_subexp):
81654         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81655         since the signed shift might overflow.  Use 1u<<31 instead.
81656         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81657         Likewise.
81658         * lib/regexec.c (check_dst_limits_calc_pos_1,
81659         check_subexp_matching_top): Likewise.
81660
81661         * lib/regcomp.c (optimize_subexps, lower_subexp):
81662         Use CHAR_BIT rather than 8, for clarity.
81663         * lib/regexec.c (check_dst_limits_calc_pos_1):
81664         (check_subexp_matching_top): Likewise.
81665         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81666         have to worry about portability issues when shifting it left.
81667         Remove no-longer-needed test for table_size > 0.
81668         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81669         in a word, as the resulting behavior is undefined.
81670         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81671         in one case, a <= should have been an <, and in another case the
81672         whole test was missing.
81673         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81674         the standard name CHAR_BIT.
81675         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81676         this is not true on one's complement and signed-magnitude hosts.
81677
81678         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81679         next_last_offset.
81680         (struct re_dfa_t): Remove unused member states_alloc.
81681         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81682
81683 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81684
81685         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81686         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81687         and large-file glibc and in 32-bit large-file Solaris.
81688
81689 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81690
81691         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81692         lengths fit in regoff_t; this isn't true if regoff_t is the same
81693         width as size_t.
81694         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81695         (= START + RANGE) instead of RANGE.  This avoids overflow
81696         problems when regoff_t is the same width as size_t.
81697         All callers changed.
81698         (re_search_2_stub): Check for overflow when adding the
81699         sizes of the two strings.
81700         (re_search_stub): Check for overflow when adding START
81701         to RANGE; if it occurs, substitute the extreme value.
81702
81703 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81704
81705         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81706
81707 2005-08-31  Jim Meyering  <jim@meyering.net>
81708
81709         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81710         a pointer-to-const.
81711         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81712         (register_state): Likewise.
81713         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81714         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81715         (group_nodes_into_DFAstates): Likewise.
81716
81717 2005-08-31  Jim Meyering  <jim@meyering.net>
81718
81719         * check-module: Add a FIXME comment.
81720
81721 2005-08-31  Eric Blake  <ebb9@byu.net>
81722
81723         * modules/unistd-safer (Files): Add unistd--.h.
81724         * modules/stdio-safer (Files): Add stdio--.h.
81725
81726 2005-08-31  Derek Price  <derek@ximbiot.com>
81727
81728         * lib/getdelim.c (getdelim): Return EOF on EOF.
81729         Reported by Larry Jones <lawrence.jones@ugs.com>.
81730
81731 2005-08-31  Bruno Haible  <bruno@clisp.org>
81732
81733         Avoid unnecessary diffs in the generated lib/Makefile.am.
81734         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81735         the generated files.
81736         (func_import): Don't set cmd.
81737
81738 2005-08-31  Bruno Haible  <bruno@clisp.org>
81739
81740         * lib/strstr.c: Include <stddef.h>, for NULL.
81741         * lib/strcasestr.c: Likewise.
81742         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81743
81744 2005-08-31  Bruno Haible  <bruno@clisp.org>
81745
81746         * gnulib-tool: New option --macro-prefix.
81747         (func_import): Use macro_prefix.
81748         (import): Handle option --macro-prefix.
81749
81750 2005-08-31  Bruno Haible  <bruno@clisp.org>
81751
81752         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81753         Also use new variables cached_lgpl, cached_libtool.
81754
81755 2005-08-31  Bruno Haible  <bruno@clisp.org>
81756
81757         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81758         always instantiating them.
81759
81760 2005-08-31  Bruno Haible  <bruno@clisp.org>
81761
81762         * gnulib-tool (func_import): Read the previous cached settings
81763         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81764         earlier added by gnulib but are now dropped. Warn when a gnulib file
81765         overwrites a non-gnulib file.
81766
81767 2005-08-31  Bruno Haible  <bruno@clisp.org>
81768
81769         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81770         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81771         projects that don't keep autogenerated files in CVS. Put into
81772         actioncmd only the specified modules, not the transitive closure.
81773
81774 2005-08-31  Bruno Haible  <bruno@clisp.org>
81775
81776         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81777         Create directories that shall be filled.
81778         (import): Don't look for gl_* macros in configure.ac. Recurse across
81779         all directories containing a gnulib-cache.m4 files, if meaningful.
81780
81781 2005-08-31  Bruno Haible  <bruno@clisp.org>
81782
81783         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81784         (import): Set seen_libtool when we see gl_LIBTOOL.
81785
81786 2005-08-31  Bruno Haible  <bruno@clisp.org>
81787
81788         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81789         declaration macro definitions from generated gnulib.m4.
81790
81791 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81792
81793         * lib/iconvme.h: Add prototype for iconv_alloc.
81794
81795 2005-08-29  Simon Josefsson  <jas@extundo.com>
81796
81797         * lib/iconvme.c: Fix errno.
81798
81799 2005-08-29  Bruno Haible  <bruno@clisp.org>
81800
81801         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81802         that it works when the directory contains spaces.
81803
81804 2005-08-29  Bruno Haible  <bruno@clisp.org>
81805
81806         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81807
81808 2005-08-29  Bruno Haible  <bruno@clisp.org>
81809
81810         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81811         Emit more advice.
81812
81813 2005-08-29  Bruno Haible  <bruno@clisp.org>
81814         and Stepan Kasal  <kasal@ucw.cz>
81815
81816         * check-module: If more parameters are given, check each of them
81817         separately; add more exceptions, as noted by Jim Meyering.
81818         (check_module): New procedure.
81819         (%exempt_header): Now contains all exceptions.
81820
81821 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81822
81823         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81824
81825 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81826
81827         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81828
81829 2005-08-28  Bruno Haible  <bruno@clisp.org>
81830
81831         * m4/gnulib-tool.m4: New file.
81832
81833 2005-08-27  Jim Meyering  <jim@meyering.net>
81834
81835         * modules/unistd-safer (Files): Add pipe-safer.c.
81836         * modules/fcntl-safer (Files): Add creat-safer.c.
81837
81838 2005-08-27  Jim Meyering  <jim@meyering.net>
81839
81840         * m4/stdlib-safer.m4: New file.  From coreutils.
81841         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81842         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81843         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81844         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81845         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81846
81847 2005-08-27  Jim Meyering  <jim@meyering.net>
81848
81849         * lib/fopen-safer.c: Merge minor changes from coreutils.
81850         * lib/dup-safer.c: Likewise.
81851         * lib/fd-safer.c: Likewise.
81852
81853         Merge from coreutils.
81854         * lib/stdio--.h: New file.
81855         * lib/stdlib--.h: New file.
81856         * lib/mkstemp-safer.c: New file.
81857
81858         GNU tar needs these.
81859         * lib/pipe-safer.c: New file.
81860         * lib/creat-safer.c: New file.
81861         * lib/fcntl--.h (creat): Define to creat_safer.
81862         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81863         * lib/unistd--.h (pipe): Define to pipe_safer.
81864         * lib/unistd-safer.h: Declare pipe_safer.
81865
81866 2005-08-26  Simon Josefsson  <jas@extundo.com>
81867
81868         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81869         Haible <bruno@clisp.org>.
81870
81871 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81872
81873         * lib/regex_internal.h: Remove all references to
81874         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81875         or better.
81876         (bitset_not, bitset_merge, bitset_not_merge):
81877         (bitset_mask, re_string_allocate, re_string_construct):
81878         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81879         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81880         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81881         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81882         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81883         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81884         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81885         (re_acquire_state_context):
81886         Remove unnecessary forward decls.
81887         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81888         Put __attribute at function definition,
81889         now that the function decl has been removed.
81890         * lib/regex_internal.c (re_string_peek_byte_case):
81891         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81892         Likewise.
81893
81894 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81895
81896         * m4/regex.m4: Add AC_PREREQ(2.50).
81897         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81898
81899 2005-08-25  Simon Josefsson  <jas@extundo.com>
81900
81901         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81902         __fsetlocking.
81903
81904 2005-08-25  Simon Josefsson  <jas@extundo.com>
81905
81906         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81907         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81908         GLIBC specific code.
81909
81910 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81911
81912         Make regex safe for g++.  This fixes one real bug (an "err"
81913         that should have been "*err").  g++ problem reported by
81914         Sam Steingold.
81915         * lib/regex_internal.h (re_calloc): New macro, consistent with
81916         re_malloc etc.  All callers of calloc changed to use re_calloc.
81917         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81918         not int.  All callers changed.
81919         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81920         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81921         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81922         (find_recover_state): Change "err" to "*err"; this fixes what
81923         appears to be a real bug.
81924         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81925         versus int.
81926
81927 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81928
81929         * modules/regex (Depends-on): Add malloc, since the code
81930         assumes that !malloc(0) means failure.
81931
81932 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81933
81934         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81935
81936         alloca modernization/simplification for regex.
81937         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81938         needs to be at the start of the file, and can be moved into
81939         regex_internal.h and simplified.
81940         * lib/regex_internal.h: Include <alloca.h>.
81941         (__libc_use_alloca) [!defined _LIBC]: New macro.
81942         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81943         now works outside glibc.
81944
81945 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81946
81947         * config/srclist.txt: Add glibc bugs 1241, 1245.
81948
81949 2005-08-25  Jim Meyering  <jim@meyering.net>
81950
81951         * lib/open-safer.c: Include <config.h>.
81952         Otherwise, we'd lose LARGEFILE support in any file using
81953         e.g. "fcntl--.h"
81954
81955 2005-08-25  Bruno Haible  <bruno@clisp.org>
81956
81957         * m4/minmax.m4: Require autoconf 2.52.
81958         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81959         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81960         alternatives of translit over the alphabet.
81961         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81962
81963 2005-08-24  Simon Josefsson  <jas@extundo.com>
81964
81965         * tests/test-getpass.c: New file.
81966
81967 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81968
81969         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81970         for GNU regex features.
81971
81972 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81973
81974         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81975         * lib/regex.h (regerror): Likewise.
81976
81977         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81978         requires this.  (The code never needed it.)
81979
81980         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81981         All uses of recently-renamed identifiers changed to use the new,
81982         POSIX-compliant names.  The code will build and run just fine
81983         without these changes, but it's better to eat our own dog food
81984         and use the standard-conforming names.
81985
81986         * lib/regex.h: Fix a multitude of POSIX name space violations.
81987         These changes have an effect only for programs that define
81988         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81989         do not change anything for programs compiled in the normal way.
81990         Also, there is no effect on the ABI.
81991
81992         (_REGEX_SOURCE): New macro.
81993         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81994         defined and _GNU_SOURCE is not; this fixes a name space violation.
81995
81996         Rename the following macros to obey POSIX requirements.
81997         The old names are still visible as macros if _REGEX_SOURCE is defined.
81998         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81999         RE_BACKSLASH_ESCAPE_IN_LISTS.
82000         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
82001         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
82002         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
82003         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
82004         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
82005         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
82006         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
82007         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
82008         (REG_INTERVALS): renamed from RE_INTERVALS.
82009         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
82010         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
82011         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
82012         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
82013         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
82014         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
82015         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
82016         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
82017         RE_UNMATCHED_RIGHT_PAREN_ORD.
82018         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
82019         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
82020         (REG_DEBUG): renamed from RE_DEBUG.
82021         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
82022         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
82023         unusual, since we can't clash with the POSIX REG_ICASE.
82024         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
82025         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
82026         (REG_NO_SUB): renamed from RE_NO_SUB.
82027         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
82028         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
82029         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
82030         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
82031         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
82032         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
82033         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
82034         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
82035         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
82036         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
82037         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
82038         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
82039         RE_SYNTAX_POSIX_MINIMAL_BASIC.
82040         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
82041         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
82042         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
82043         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
82044         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
82045         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
82046         (REG_FIXED): Renamed from REGS_FIXED.
82047         (REG_NREGS): Renamed from RE_NREGS.
82048
82049         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
82050         of other REG_* macros, since POSIX says the user is allowed to
82051         #undef these macros selectively.
82052
82053         (reg_errcode_t): Update comment stating what other tables need
82054         to be consistent.
82055
82056         Rename the following enum values to obey POSIX requirements.
82057         The old names are still visible as macros.
82058         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
82059         is not defined, since GNU is supposed to be a superset of POSIX as
82060         much as possible, and since we want reg_errcode_t to be a signed
82061         type for implementation consistency.
82062         (_REG_NOERROR): Renamed from REG_NOERROR.
82063         (_REG_NOMATCH): Renamed from REG_NOMATCH.
82064         (_REG_BADPAT): Renamed from REG_BADPAT.
82065         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
82066         (_REG_ECTYPE): Renamed from REG_ECTYPE.
82067         (_REG_EESCAPE): Renamed from REG_EESCAPE.
82068         (_REG_ESUBREG): Renamed from REG_ESUBREG.
82069         (_REG_EBRACK): Renamed from REG_EBRACK.
82070         (_REG_EPAREN): Renamed from REG_EPAREN.
82071         (_REG_EBRACE): Renamed from REG_EBRACE.
82072         (_REG_BADBR): Renamed from REG_BADBR.
82073         (_REG_ERANGE): Renamed from REG_ERANGE.
82074         (_REG_ESPACE): Renamed from REG_ESPACE.
82075         (_REG_BADRPT): Renamed from REG_BADRPT.
82076         (_REG_EEND): Renamed from REG_EEND.
82077         (_REG_ESIZE): Renamed from REG_ESIZE.
82078         (_REG_ERPAREN): Renamed from REG_ERPAREN.
82079         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
82080         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
82081         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
82082         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
82083
82084         (_REG_RE_NAME, _REG_RM_NAME): New macros.
82085         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
82086         changed.  But support the old name if the new one is not defined
82087         and if _REGEX_SOURCE.
82088
82089         Change the following member names in struct re_pattern_buffer.
82090         The old names are still supported if !_REGEX_SOURCE.
82091         The new names are always supported, regardless of _REGEX_SOURCE.
82092         (re_buffer): Renamed from buffer.
82093         (re_allocated): Renamed from allocated.
82094         (re_used): Renamed from used.
82095         (re_syntax): Renamed from syntax.
82096         (re_fastmap): Renamed from fastmap.
82097         (re_translate): Renamed from translate.
82098         (re_can_be_null): Renamed from can_be_null.
82099         (re_regs_allocated): Renamed from regs_allocated.
82100         (re_fastmap_accurate): Renamed from fastmap_accurate.
82101         (re_no_sub): Renamed from no_sub.
82102         (re_not_bol): Renamed from not_bol.
82103         (re_not_eol): Renamed from not_eol.
82104         (re_newline_anchor): Renamed from newline_anchor.
82105
82106         Change the following member names in struct re_registers.
82107         The old names are still supported if !_REGEX_SOURCE.
82108         The new names are always supported, regardless of _REGEX_SOURCE.
82109         (rm_num_regs): Renamed from num_regs.
82110         (rm_start): Renamed from start.
82111         (rm_end): Renamed from end.
82112
82113         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
82114         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
82115         Prepend __ to parameter names.
82116
82117         Undo yesterday's changes.
82118
82119 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82120
82121         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
82122         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
82123         lib/regex.c.
82124
82125 2005-08-24  Jim Meyering  <jim@meyering.net>
82126
82127         Sync from coreutils.
82128         * m4/fcntl-safer.m4: New file.
82129
82130         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
82131         and object files for this module.
82132
82133 2005-08-24  Jim Meyering  <jim@meyering.net>
82134
82135         Sync from coreutils.
82136         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
82137
82138 2005-08-24  Jim Meyering  <jim@meyering.net>
82139
82140         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
82141         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
82142
82143 2005-08-24  Jim Meyering  <jim@meyering.net>
82144
82145         * modules/fcntl-safer: New module.
82146         * modules/fts (Depends-on): Add fcntl-safer.
82147         * MODULES.html.sh (File descriptor based Input/Output):
82148         Add fcntl-safer.
82149
82150 2005-08-24  Bruno Haible  <bruno@clisp.org>
82151
82152         Support for unit test modules.
82153         * modules/README: Mention tests modules.
82154         * modules/TEMPLATE-TESTS: New file.
82155         * gnulib-tool: New options --extract-tests-module, --with-tests and
82156         --tests-base (unused for the moment).
82157         (testsbase, inctests): New variables.
82158         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
82159         (func_verify_module): Exclude TEMPLATE-TESTS.
82160         (func_verify_nontests_module, func_verify_tests_module): New functions.
82161         (func_get_dependencies): Add implicit dependency for tests modules.
82162         (func_get_tests_module): New function.
82163         (func_modules_transitive_closure): When --with-tests was specified,
82164         include the unit tests as well, unless explicitly avoided.
82165         (func_emit_lib_Makefile_am): Ignore the tests modules here.
82166         (func_emit_tests_Makefile_am): New function.
82167         (func_create_testdir): When --with-tests was specified, emit a
82168         tests/ directory.
82169         * MODULES.html.sh (Future developments): Update.
82170
82171 2005-08-24  Bruno Haible  <bruno@clisp.org>
82172
82173         * modules/tls-tests: New file.
82174         * tests/test-tls.c: New file, from GNU gettext.
82175
82176 2005-08-24  Bruno Haible  <bruno@clisp.org>
82177
82178         * modules/lock-tests: New file.
82179         * tests/test-lock.c: New file, from GNU gettext.
82180
82181 2005-08-24  Bruno Haible  <bruno@clisp.org>
82182
82183         * lib/lock.h: Add multiple inclusion guard.
82184         * lib/tls.h: Add multiple inclusion guard.
82185
82186 2005-08-24  Bruno Haible  <bruno@clisp.org>
82187
82188         * gnulib-tool: Add support for the --aux-dir option to
82189         --create-testdir, --create-megatestdir, --test, --megatest.
82190         (func_create_testdir, func_create_megatestdir): Optionally emit a
82191         AC_CONFIG_AUX_DIR directive.
82192         (create-testdir, create-megatestdir, test, megatest): Provide a
82193         default value for $auxdir.
82194
82195 2005-08-24  Bruno Haible  <bruno@clisp.org>
82196
82197         * gnulib-tool (import): Use compound statement instead of subshell
82198         where possible.
82199
82200 2005-08-24  Bruno Haible  <bruno@clisp.org>
82201
82202         * gnulib-tool (import): Change --aux-dir default to "build-aux".
82203
82204 2005-08-24  Bruno Haible  <bruno@clisp.org>
82205
82206         * gnulib-tool (func_version): Update.
82207
82208 2005-08-24  Bruno Haible  <bruno@clisp.org>
82209
82210         * gnulib-tool (func_import, func_create_testdir,
82211         func_create_megatestdir): Quote all autoconf macro arguments.
82212
82213 2005-08-24  Bruno Haible  <bruno@clisp.org>
82214
82215         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
82216         option --force, because --force causes the aclocal.m4 of each
82217         subdirectory to be newer than the corresponding config.h.in.
82218
82219 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82220
82221         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
82222         All contents moved to gl_REGEX.
82223         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
82224         assume that it does.
82225
82226 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82227
82228         * lib/regex.h (REG_NOSYS)
82229         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
82230         Define, since POSIX requires it as of 2001.
82231         (_REG_ENOSYS)
82232         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
82233         New private symbol, used to keep the enum signed in all cases.
82234         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
82235         Youngman in
82236         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
82237
82238         * lib/regex_internal.c (re_string_skip_chars, register_state):
82239         (calc_state_hash):
82240         Remove forward decls; no longer needed now that we use prototypes.
82241         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
82242         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
82243         (clean_state_log_if_needed): Likewise.
82244
82245 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82246
82247         * config/srclist.txt: Add glibc bugs 1231-1233.
82248
82249 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82250
82251         Fix problems reported by Sam Steingold in
82252         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
82253         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
82254         assumed that reg_errcode_t is a signed type, which is not
82255         necessarily true if _XOPEN_SOURCE is not defined.
82256         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
82257         since some compilers warn about it otherwise.
82258
82259 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82260
82261         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
82262         (init_word_char, create_initial_state, duplicate_node_closure):
82263         (fetch_token, peek_token_bracket, build_range_exp):
82264         (build_collating_symbol): Remove forward decls; no longer needed
82265         now that we use prototypes.
82266
82267         * lib/regcomp.c:
82268         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
82269         (re_compile_fastmap_iter, regcomp, regerror, regfree):
82270         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
82271         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
82272         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
82273         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
82274         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
82275         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
82276         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
82277         (build_range_exp, build_collating_symbol, parse_bracket_exp):
82278         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
82279         (build_charclass, build_charclass_op, fetch_number, create_tree):
82280         (create_token_tree, mark_opt_subexp, duplicate_tree):
82281         Use prototypes rather than old-style definitions.
82282
82283         * lib/regex_internal.c:
82284         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
82285         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
82286         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82287         (re_string_reconstruct, re_string_peek_byte_case):
82288         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
82289         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82290         (re_node_set_init_copy, re_node_set_add_intersect):
82291         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82292         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82293         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82294         (re_acquire_state, re_acquire_state_context, register_state):
82295         (create_ci_newstate, create_cd_newstate, free_state):
82296         Likewise.
82297         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
82298         re_search_2):
82299         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
82300         (re_search_internal, prune_impossible_nodes):
82301         (acquire_init_state_context, check_matching, static):
82302         (check_halt_node_context, check_halt_state_context, proceed_next_node):
82303         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
82304         (update_regs, sift_states_backward, build_sifted_states):
82305         (clean_state_log_if_needed, merge_state_array):
82306         (update_cur_sifted_state, add_epsilon_src_nodes):
82307         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
82308         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
82309         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
82310         (find_recover_state, check_subexp_matching_top, transit_state_mb):
82311         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
82312         (check_arrival, check_arrival_add_next_nodes):
82313         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82314         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82315         (check_node_accept_bytes, check_node_accept, extend_buffers):
82316         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
82317         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
82318         (sift_ctx_init):
82319         Likewise.
82320
82321         * lib/regex_internal.h:
82322         (re_string_allocate, re_string_construct, re_string_reconstruct):
82323         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
82324         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
82325         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
82326         (re_string_context_at, re_string_peek_byte_case):
82327         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
82328         is defined, since we now use prototypes always.
82329
82330         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
82331         C89 or better.  All uses removed.
82332
82333 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82334
82335         * config/srclist.txt: Add glibc bugs 1220-1227.
82336
82337 2005-08-20  Jim Meyering  <jim@meyering.net>
82338
82339         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
82340         of unused local, dfa.
82341
82342 2005-08-20  Bruno Haible  <bruno@clisp.org>
82343
82344         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
82345
82346 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82347
82348         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
82349         (re_node_set_insert_last, re_dfa_add_node):
82350         Rename local variables to avoid GCC shadowing warnings.
82351
82352 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82353
82354         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
82355         [defined lint]: Suppress bogus uninitialized-variable warnings.
82356
82357         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
82358         and let the caller return REG_ESPACE if out of space.  This
82359         removes an uninitialied-variable warning with GCC 4.0.1, and also
82360         avoids taking the address of a local variable.  All callers
82361         changed.
82362
82363 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82364
82365         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
82366         $LIBCSRC/posix/regexec.c.
82367         Add glibc bug 1217 for regcomp.c.
82368
82369 2005-08-19  Jim Meyering  <jim@meyering.net>
82370
82371         * lib/regexec.c (proceed_next_node): Redo local variables to
82372         avoid GCC shadowing warnings.
82373
82374 2005-08-18  Bruno Haible  <bruno@clisp.org>
82375
82376         * lib/strstr.c (strstr): Fix return value in multibyte case.
82377         * lib/strcasestr.c (strcasestr): Likewise.
82378
82379 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82380
82381         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
82382
82383 2005-08-17  Jim Meyering  <jim@meyering.net>
82384
82385         Make the %s format (seconds since the epoch) work for a negative
82386         number and when used with a zero-padded field width, e.g. %015s.
82387
82388         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
82389         label so that it precedes the code to set `digits'.  Otherwise,
82390         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
82391         print `00-22'.  Now, it prints `-0022', as it should.
82392
82393 2005-08-17  Bruno Haible  <bruno@clisp.org>
82394
82395         * modules/strstr (Files): Add m4/mbrtowc.m4.
82396         (Depends-on): Add mbuiter.
82397
82398 2005-08-17  Bruno Haible  <bruno@clisp.org>
82399
82400         * modules/strcasestr: New file.
82401         * MODULES.html.sh (String handling, based on ANSI C 89): Add
82402         strcasestr.
82403
82404 2005-08-17  Bruno Haible  <bruno@clisp.org>
82405
82406         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
82407
82408 2005-08-17  Bruno Haible  <bruno@clisp.org>
82409
82410         * modules/mbuiter: New file.
82411         * MODULES.html.sh (Extended multibyte and wide character utilities):
82412         Add mbuiter.
82413
82414 2005-08-17  Bruno Haible  <bruno@clisp.org>
82415
82416         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
82417         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
82418
82419 2005-08-17  Bruno Haible  <bruno@clisp.org>
82420
82421         * m4/strcasestr.m4: New file.
82422
82423 2005-08-17  Bruno Haible  <bruno@clisp.org>
82424
82425         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
82426         * lib/strstr.c: Completely rewritten, with multibyte locale support.
82427
82428 2005-08-17  Bruno Haible  <bruno@clisp.org>
82429
82430         * lib/strcasestr.h: New file.
82431         * lib/strcasestr.c: New file.
82432
82433 2005-08-17  Bruno Haible  <bruno@clisp.org>
82434
82435         * lib/strcasecmp.c: Use mbuiter.h.
82436
82437 2005-08-17  Bruno Haible  <bruno@clisp.org>
82438
82439         * lib/mbuiter.h: New file.
82440
82441 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
82442
82443         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
82444         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
82445         and gl_GETOPT are both invoked via different paths (as happens
82446         with GNU tar CVS because it uses both argp and getopt), the former
82447         wins.
82448
82449 2005-08-16  Bruno Haible  <bruno@clisp.org>
82450
82451         * modules/tls: New file.
82452         * MODULES.html.sh (Multithreading): Add tls.
82453
82454 2005-08-16  Bruno Haible  <bruno@clisp.org>
82455
82456         * modules/strnlen1: New file.
82457         * MODULES.html.sh (String handling): Add strnlen1.
82458
82459 2005-08-16  Bruno Haible  <bruno@clisp.org>
82460
82461         * modules/strcase (Files): Add m4/mbrtowc.m4.
82462         (Depends-on): Add strnlen1, mbchar.
82463
82464 2005-08-16  Bruno Haible  <bruno@clisp.org>
82465
82466         * modules/mbiter: New file.
82467         * MODULES.html.sh (Extended multibyte and wide character utilities):
82468         Add mbiter.
82469
82470 2005-08-16  Bruno Haible  <bruno@clisp.org>
82471
82472         * modules/mbfile: New file.
82473         * MODULES.html.sh (Extended multibyte and wide character utilities):
82474         Add mbfile.
82475
82476 2005-08-16  Bruno Haible  <bruno@clisp.org>
82477
82478         * modules/mbchar: New file.
82479         * MODULES.html.sh (Extended multibyte and wide character utilities):
82480         New section.
82481
82482 2005-08-16  Bruno Haible  <bruno@clisp.org>
82483
82484         * m4/tls.m4: New file, from GNU gettext.
82485
82486 2005-08-16  Bruno Haible  <bruno@clisp.org>
82487
82488         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
82489         always.
82490         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
82491
82492 2005-08-16  Bruno Haible  <bruno@clisp.org>
82493
82494         * m4/mbiter.m4: New file.
82495
82496 2005-08-16  Bruno Haible  <bruno@clisp.org>
82497
82498         * m4/mbfile.m4: New file.
82499
82500 2005-08-16  Bruno Haible  <bruno@clisp.org>
82501
82502         * m4/mbchar.m4: New file.
82503
82504 2005-08-16  Bruno Haible  <bruno@clisp.org>
82505
82506         * lib/tls.h: New file, from GNU gettext.
82507         * lib/tls.c: New file, from GNU gettext.
82508
82509 2005-08-16  Bruno Haible  <bruno@clisp.org>
82510
82511         * lib/strnlen1.h: New file.
82512         * lib/strnlen1.c: New file.
82513
82514 2005-08-16  Bruno Haible  <bruno@clisp.org>
82515
82516         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
82517         (mbi_init): Update.
82518         (mbi_avail, mbi_advance): Let the iteration end before the terminating
82519         NUL byte, not after it.
82520
82521 2005-08-16  Bruno Haible  <bruno@clisp.org>
82522
82523         * lib/strcase.h (strcasecmp): Add note in comments.
82524         * lib/strncasecmp.c: Use code from strcasecmp.c.
82525         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
82526         (strcasecmp): Work correctly in multibyte locales.
82527
82528 2005-08-16  Bruno Haible  <bruno@clisp.org>
82529
82530         * lib/mbiter.h: New file.
82531
82532 2005-08-16  Bruno Haible  <bruno@clisp.org>
82533
82534         * lib/mbfile.h: New file.
82535
82536 2005-08-16  Bruno Haible  <bruno@clisp.org>
82537
82538         * lib/mbchar.h: New file.
82539         * lib/mbchar.c: New file.
82540
82541 2005-08-16  Bruno Haible  <bruno@clisp.org>
82542
82543         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
82544         the valid ones. Makes the comparison operations transitive:
82545         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
82546         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
82547
82548 2005-08-15  Simon Josefsson  <jas@extundo.com>
82549
82550         * modules/ssize_t (License): Change to 'unlimited'.
82551
82552         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
82553
82554 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82555
82556         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82557         Add comments for each pending glibc patch.
82558
82559 2005-08-15  Bruno Haible  <bruno@clisp.org>
82560
82561         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82562         __cplusplus is defined.
82563
82564 2005-08-14  Jim Meyering  <jim@meyering.net>
82565
82566         Sync from coreutils.
82567
82568         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82569         Use the hash-table-based cycle-detection code not just when
82570         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82571         Reported by James Youngman in
82572         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82573         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82574         FTS_TIGHT_CYCLE_CHECK.
82575         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82576         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82577         once again.
82578         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82579         * lib/fts.c (fd_safer): Remove decl.
82580         Include fcntl--.h rather than unistd-safer.h
82581         (fts_safe_changedir): Don't call fd_safer; no longer needed
82582         now that we include fcntl--.h.
82583
82584 2005-08-12  Simon Josefsson  <jas@extundo.com>
82585
82586         * modules/getndelim2: Use ssize_t module.
82587         * modules/getnline: Likewise.
82588         * modules/safe-read: Likewise.
82589         * modules/xreadlink: Likewise.
82590
82591         * modules/ssize_t: New file.
82592
82593 2005-08-12  Simon Josefsson  <jas@extundo.com>
82594
82595         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82596
82597 2005-08-12  Simon Josefsson  <jas@extundo.com>
82598
82599         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82600         ssize_t.
82601
82602 2005-08-12  Simon Josefsson  <jas@extundo.com>
82603
82604         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82605         readline, getdelim and check_version.
82606         (Support for systems lacking ISO C 99: Sizes of integer types):
82607         Add size_max.
82608
82609 2005-08-12  Bruno Haible  <bruno@clisp.org>
82610
82611         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82612
82613 2005-08-11  Simon Josefsson  <jas@extundo.com>
82614
82615         * modules/readline: New file.
82616
82617         * modules/strnlen (Files): Add strnlen.h.
82618
82619 2005-08-11  Simon Josefsson  <jas@extundo.com>
82620
82621         * m4/readline.m4: New file.
82622
82623 2005-08-11  Simon Josefsson  <jas@extundo.com>
82624
82625         * lib/readline.h, readline.c: New file.
82626
82627 2005-08-11  Simon Josefsson  <jas@extundo.com>
82628
82629         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82630         gl_AVOID.
82631
82632 2005-08-11  Bruno Haible  <bruno@clisp.org>
82633
82634         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82635
82636 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82637
82638         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82639
82640 2005-08-10  Simon Josefsson  <jas@extundo.com>
82641
82642         * tests/test-iconvme.c: New file.
82643
82644 2005-08-10  Simon Josefsson  <jas@extundo.com>
82645
82646         * m4/strnlen.m4: New file.
82647
82648         * m4/strndup.m4: Don't check for strnlen declaration, done in
82649         strnlen.m4.
82650
82651 2005-08-10  Simon Josefsson  <jas@extundo.com>
82652
82653         * lib/strndup.c: Use strnlen.h.
82654
82655         * lib/strnlen.h: New file.
82656
82657 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82658
82659         * README: Typos.
82660
82661 2005-08-02  Simon Josefsson  <jas@extundo.com>
82662
82663         * modules/readline: New file.
82664
82665 2005-08-02  Simon Josefsson  <jas@extundo.com>
82666
82667         * modules/getdelim: New file.
82668
82669         * modules/getline: Rewrite, don't use getndelim2.
82670
82671 2005-08-02  Simon Josefsson  <jas@extundo.com>
82672
82673         * m4/getline.m4: Separate out getdelim stuff into separate module.
82674
82675         * m4/getdelim.m4: New file.
82676
82677 2005-08-02  Simon Josefsson  <jas@extundo.com>
82678
82679         * lib/getline.h, getline.c: Rewrite.
82680
82681         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82682
82683 2005-07-31  Bruno Haible  <bruno@clisp.org>
82684
82685         * lib/lock.h (gl_lock_initializer): New macro.
82686         (gl_lock_define_initialized): Use it.
82687         (gl_rwlock_initializer): New macro.
82688         (gl_rwlock_define_initialized): Use it.
82689         (gl_recursive_lock_initializer): New macro.
82690         (gl_recursive_lock_define_initialized): Use it.
82691
82692 2005-07-30  Karl Berry  <karl@gnu.org>
82693
82694         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82695         Report from Ben Pfaff, regarding getopt.
82696
82697 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82698
82699         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82700         normal way.
82701         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82702         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82703         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82704         (gl_GETOPT): Use the new macros.  Most of the implementation
82705         is moved to the new macros.  This is for programs like Emacs
82706         that don't want all the functionality of gl_GETOPT.
82707
82708 2005-07-26  Bruno Haible  <bruno@clisp.org>
82709
82710         * m4/lock.m4: Update from GNU gettext.
82711
82712 2005-07-26  Bruno Haible  <bruno@clisp.org>
82713
82714         * lib/lock.h: Update from GNU gettext.
82715         * lib/lock.c: Update from GNU gettext.
82716
82717 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82718
82719         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82720         obsolescent AC_TRY_RUN.  Include the default includes files, for
82721         'exit'.
82722
82723 2005-07-24  Bruno Haible  <bruno@clisp.org>
82724
82725         * modules/visibility: New file.
82726         * MODULES.html.sh (Misc): Add visibility.
82727
82728 2005-07-24  Bruno Haible  <bruno@clisp.org>
82729
82730         * m4/visibility.m4: New file.
82731
82732 2005-07-24  Bruno Haible  <bruno@clisp.org>
82733
82734         * doc/visibility.texi: New file.
82735
82736 2005-07-22  Bruno Haible  <bruno@clisp.org>
82737
82738         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82739         $(ALLOCA_H), redundant through BUILT_SOURCES.
82740         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82741         redundant through BUILT_SOURCES.
82742         * modules/byteswap (Makefile.am): Remove explicit dependency on
82743         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82744         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82745         $(FNMATCH_H), redundant through BUILT_SOURCES.
82746         * modules/getopt (Makefile.am): Remove explicit dependency on
82747         $(GETOPT_H), redundant through BUILT_SOURCES.
82748         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82749         redundant through BUILT_SOURCES.
82750         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82751         redundant through BUILT_SOURCES.
82752         * modules/stdbool (Makefile.am): Remove explicit dependency on
82753         $(STDBOOL_H), redundant through BUILT_SOURCES.
82754         * modules/stdint (Makefile.am): Remove explicit dependency on
82755         $(STDINT_H), redundant through BUILT_SOURCES.
82756         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82757         Remove explicit dependency on $(SYSEXITS_H).
82758         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82759
82760 2005-07-18  Simon Josefsson  <jas@extundo.com>
82761
82762         * lib/check-version.c (check_version): Accept identical versions too.
82763
82764 2005-07-18  Bruno Haible  <bruno@clisp.org>
82765
82766         * modules/lock: New file.
82767         * MODULES.html.sh (Multithreading): New section.
82768
82769 2005-07-18  Bruno Haible  <bruno@clisp.org>
82770
82771         * m4/lock.m4: New file, from GNU gettext.
82772
82773 2005-07-18  Bruno Haible  <bruno@clisp.org>
82774
82775         * lib/lock.h: New file, from GNU gettext.
82776         * lib/lock.c: New file, from GNU gettext.
82777
82778 2005-07-18  Bruno Haible  <bruno@clisp.org>
82779
82780         * lib/lock.h (gl_once_t): New type.
82781         (gl_once_define, gl_once): New macros.
82782         * lib/lock.c (fresh_once): New variable.
82783         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82784         functions.
82785
82786 2005-07-16  Simon Josefsson  <jas@extundo.com>
82787
82788         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82789         workaround, suggested by Bruno.
82790
82791 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82792
82793         * modules/xalloc (Depends-on): Add xalloc-die.
82794         * modules/xvasprintf (Depends-on): Add xalloc-die.
82795
82796 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82797
82798         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82799         with a minor change.
82800
82801 2005-07-15  Bruno Haible  <bruno@clisp.org>
82802
82803         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82804         When using lib/poll.c, define poll as rpl_poll.
82805
82806 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82807
82808         * modules/argp (Depends-on): Remove unlocked-io.
82809
82810 2005-07-14  Derek Price  <derek@ximbiot.com>
82811
82812         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82813         for glob symlink bug.
82814
82815 2005-07-14  Bruno Haible  <bruno@clisp.org>
82816
82817         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82818         Instead, test for *_unlocked function declarations directly.
82819
82820 2005-07-11  Simon Josefsson  <jas@extundo.com>
82821
82822         * modules/size_max: New file.
82823
82824         * modules/xsize: Depend on size_max module for size_max.m4.
82825
82826 2005-07-11  Simon Josefsson  <jas@extundo.com>
82827
82828         * lib/size_max.h: New file.
82829
82830 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82831
82832         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82833         copyright symbol and the year.
82834         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82835         (version_etc_va): Use parameterized copyright notice.
82836         Reword to conform to the current GNU coding standards.
82837
82838 2005-07-11  Karl Berry  <karl@gnu.org>
82839
82840         * doc/gnulib.texi (Quoting): new node.
82841         (Initial import): more info, from Patrice.
82842
82843 2005-07-11  Bruno Haible  <bruno@clisp.org>
82844
82845         * gnulib-tool (func_usage): Document option --avoid.
82846         (Command line options): Handle --avoid.
82847         (func_acceptable): New function.
82848         (func_modules_transitive_closure): Use it.
82849
82850 2005-07-11  Bruno Haible  <bruno@clisp.org>
82851
82852         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82853         Reported by Jim Meyering.
82854
82855 2005-07-10  Bruno Haible  <bruno@clisp.org>
82856
82857         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82858         Needed when size_t is smaller than 'unsigned int'.
82859         Reported by Paul Eggert.
82860
82861 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82862
82863         * modules/argp (Depends-on): Add unlocked-io
82864
82865 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82866
82867         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82868         block of defines.
82869
82870 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82871
82872         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82873         fix now.
82874
82875 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82876         and Paul Eggert  <eggert@cs.ucla.edu>
82877
82878         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82879         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82880
82881 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82882
82883         * modules/regex (Files): Add lib/regex_internal.c,
82884         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82885         (Depends-on): Add extensions.
82886         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82887
82888 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82889
82890         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82891         pathconf.
82892         * m4/same.m4 (gl_SAME): Likewise.
82893         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82894
82895         * m4/regex.m4: Adjust to new libc regex implementation.
82896         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82897         all the .c and .h parts of (the new) regex.
82898         Quote the m4 stuff better.
82899         Check for RE_ICASE bug of old gnulib.
82900         Check for REG_STARTEND of recent libc.
82901         Rename local variables from jm_* to gl_*.
82902         Quote operand of "test -f".
82903         Say "recent enough" version of libc, not "version 2".
82904         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82905         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82906         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82907         Remove check for btowc, isascii.
82908         Require AM_LANGINFO_CODESET.
82909
82910 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82911
82912         * lib/regex.c, regex.h: Sync from libc.
82913         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82914         * lib/regexec.c:
82915         New files, synced from libc, except that regex_internal.h
82916         currently has a small porting fix.
82917
82918 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82919
82920         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82921         regex_internal.c, regexec.c.
82922         Add regex_internal.h too, but as a comment, since the libc version
82923         is currently broken in gnulib mode.
82924
82925 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82926
82927         Support programs like Emacs that use gnulib but not gettext.
82928         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82929         * modules/gettext-h: New file.
82930         * modules/gettext (Files): Remove lib/gettext.h.
82931         (Depends-on): Add gettext-h.
82932         (Makefile.am): Remove lib_SOURCES.
82933         * modules/argmatch, modules/c-stack, modules/closeout:
82934         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82935         * modules/execute, modules/file-type, modules/getaddrinfo:
82936         * modules/getopt, modules/human, modules/javacomp:
82937         * modules/javaexec, modules/mkdir-p, modules/obstack:
82938         * modules/openat, modules/pagealign_alloc, modules/pipe:
82939         * modules/quotearg, modules/regex, modules/rpmatch:
82940         * modules/unicodeio, modules/userspec, modules/version-etc:
82941         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82942         * modules/xsetenv:
82943         Depend on gettext-h, not gettext.
82944
82945 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82946
82947         * gnulib-tool (func_import): Add support for 'public domain' license.
82948         * modules/alloca, modules/atexit, modules/memmove:
82949         Now public domain, not GPL.
82950         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82951         * modules/realloc, modules/strerror, modules/strtod:
82952         Now LGPL, not GPL.
82953
82954 2005-07-05  Bruno Haible  <bruno@clisp.org>
82955
82956         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82957         autoconf CVS. Needed for mingw.
82958
82959 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82960
82961         Remove the dependency of the strftime module on the tzset module.
82962         * modules/strftime (Depends-on): Remove dependency on tzset.
82963
82964 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82965
82966         Remove the dependency of the strftime module on the tzset module.
82967         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82968         gl_FUNC_TZSET_CLOBBER.
82969
82970 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82971
82972         Remove the dependency of the strftime module on the tzset module.
82973         * lib/strftime.c (my_strftime)
82974         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82975         Copy the input structure, to work around some of the bug with
82976         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82977         Solaris releases, you should also use the tzset module, but we won't
82978         require it as a dependency any more since we don't want LGPLed code
82979         to depend on GPLed code.
82980
82981 2005-07-02  Jim Meyering  <jim@meyering.net>
82982
82983         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82984         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82985         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82986         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82987
82988 2005-07-02  Jim Meyering  <jim@meyering.net>
82989
82990         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82991
82992 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82993
82994         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82995         declares only 'struct timespec;' (!).
82996
82997 2005-07-01  Jim Meyering  <jim@meyering.net>
82998
82999         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
83000         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
83001         * lib/save-cwd.c, tempname.c:
83002         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83003         and don't include <sys/file.h>).
83004
83005 2005-06-29  Jim Meyering  <jim@meyering.net>
83006
83007         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
83008         type name.  Use the variable name instead.
83009         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
83010         Likewise.
83011
83012 2005-06-28  Simon Josefsson  <jas@extundo.com>
83013
83014         * modules/check-version (Files): Add check-version.m4.
83015
83016 2005-06-28  Simon Josefsson  <jas@extundo.com>
83017
83018         * m4/check-version.m4: New file, suggested by Jim Meyering
83019         <jim@meyering.net>.
83020
83021 2005-06-28  Simon Josefsson  <jas@extundo.com>
83022
83023         * lib/check-version.h, lib/check-version.c: New files.
83024
83025 2005-06-28  Simon Josefsson  <jas@extundo.com>
83026
83027         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
83028         collision with global variable.  Better indentation.  Don't
83029         increment buffer pointer beyond buffer end.  Based on comments
83030         from Paul Eggert <eggert@cs.ucla.edu>.
83031
83032         * lib/base64.h: Indent.
83033
83034 2005-06-28  Simon Josefsson  <jas@extundo.com>
83035
83036         * doc/gnulib.texi (Library version handling): New section.
83037
83038 2005-06-28  Jim Meyering  <jim@meyering.net>
83039
83040         * check-module (find_included_lib_files): Hard-code another
83041         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
83042         but modules/fts-lgpl (correctly) does not list those files.
83043
83044         * modules/canonicalize (Files): Add lib/pathmax.h.
83045
83046 2005-06-25  Simon Josefsson  <jas@extundo.com>
83047
83048         * modules/check-version: New file.
83049
83050 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
83051
83052         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
83053         initializer of struct addrinfo, as an indication that we don't
83054         care how many members the structure has.
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         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
83061         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83062         * m4/stat.m4: Remove this file.
83063
83064 2005-06-24  Derek Price  <derek@ximbiot.com>
83065         and Bruno Haible  <bruno@clisp.org>
83066
83067         Remove stat module & update lstat.
83068         * lib/stat.c: Remove this file...
83069         (slash_aware_lstat): ...moving this content and its support...
83070         * lib/lstat.c (rpl_lstat): ...into here.
83071         * lib/lstat.h: New file.
83072
83073 2005-06-24  Derek Price  <derek@ximbiot.com>
83074         and Bruno Haible  <bruno@clisp.org>
83075
83076         Remove stat module & update lstat.
83077         * config/srclist.txt (libc sources): Remove stat.
83078
83079 2005-06-24  Derek Price  <derek@ximbiot.com>
83080         and Bruno Haible  <bruno@clisp.org>
83081
83082         Remove stat module & update lstat.
83083         * MODULES.html.sh (stat): Remove.
83084         * MODULES.html: Regenerated.
83085         * modules/lstat (Description): Correct function name.
83086         (Files): Add "lstat.h".
83087         (Depends-on): Remove stat, add xalloc, stat-macros.
83088         * modules/stat: Remove this file.
83089         (Include): Add "lstat.h", remove <sys/stat.h>.
83090
83091 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83092
83093         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
83094         (ranged_convert): Don't save conversion in a temporary struct.
83095         This causes a warning with GCC 4.0.0, and anyway in the typical
83096         case it's not worth the extra 100 bytes or so of code.
83097         (ranged_convert, __mktime_internal): When calling a function via a
83098         pointer P, use P () rather than (*P) (), as we now assume C89 or
83099         better.
83100
83101 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83102
83103         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
83104         "who -r" failed to give output.  Problem reported by Tim Waugh.
83105
83106         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
83107         (xcalloc): Use it to avoid needless tests.
83108         Problem reported by Jim Meyering.
83109
83110 2005-06-20  Derek Price  <derek@ximbiot.com>
83111
83112         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
83113         unnecessary for Autoconfs > 2.59c.
83114
83115 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83116
83117         * lib/argp.h (__option_is_short): Check upper limit of
83118         __key. Isprint() requires its argument to have the value
83119         of an unsigned char or EOF.
83120
83121 2005-06-16  Jim Meyering  <jim@meyering.net>
83122
83123         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
83124         when either N or S is zero.
83125
83126 2005-06-16  Derek Price  <derek@ximbiot.com>
83127
83128         * m4/bison.m4: Declare YACC & YFLAGS precious.
83129
83130 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
83131
83132         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
83133         multibyte string or pattern, fall back on unibyte matching.
83134         Problem reported by James Youngman.
83135
83136 2005-06-08  Bruno Haible  <bruno@clisp.org>
83137
83138         * modules/csharpcomp: New file.
83139         * MODULES.html.sh (C#): Add csharpcomp.
83140
83141 2005-06-08  Bruno Haible  <bruno@clisp.org>
83142
83143         * m4/csharpcomp.m4: New file, from GNU gettext.
83144
83145 2005-06-08  Bruno Haible  <bruno@clisp.org>
83146
83147         * lib/csharpcomp.h: New file, from GNU gettext.
83148         * lib/csharpcomp.c: New file, from GNU gettext.
83149         * lib/csharpcomp.sh.in: New file, from GNU gettext.
83150
83151 2005-06-08  Bruno Haible  <bruno@clisp.org>
83152
83153         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
83154         warning on mingw.
83155
83156 2005-06-07  Derek Price  <derek@ximbiot.com>
83157
83158         Sync from CVS.
83159         * lib/glob_.h: Indent nested #ifdef.
83160
83161 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83162
83163         Sync from coreutils.
83164         Use "file name" when talking about file names, instead of "filename"
83165         or "path", as per the GNU coding standards.
83166         * lib/mkdir-p.c: Renamed from makepath.c.
83167         (make_dir_parents): Renamed from make_path.  All callers changed.
83168         * lib/mkdir-p.h: Likewise.  All includers changed.
83169         * lib/filenamecat.c: Renamed from path-concat.c.
83170         (file_name_concat): Renamed from path_concat.  All callers changed.
83171         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
83172         * lib/filenamecat.h: Likewise.  All includers changed.
83173         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
83174         in comments or local variable names.
83175         * lib/basename.c: Likewise.
83176         * lib/canonicalize.c, canonicalize.h: Likewise.
83177         * lib/dirname.c, dirname.h: Likewise.
83178         * lib/euidaccess.c: Likewise.
83179         * lib/exclude.c: Likewise
83180         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
83181         * lib/fsusage.c, fsuage.h: Likewise.
83182         * lib/fts.c, fts_.h: Likewise.
83183         * lib/getcwd.c: Likewise.
83184         * lib/getloadavg.c: Likewise.
83185         * lib/mkstemp.c: Likewise.
83186         * lib/mountlist.c, mountlist.h: Likewise.
83187         * lib/openat.c, openat.h: Likewise.
83188         * lib/readlink-stub.c: Likewise.
83189         * lib/readutmp.c, readutmp.h: Likewise.
83190         * lib/rename.c: Likewise.
83191         * lib/rmdir.c: Likewise.
83192         * lib/same.c: Likewise.
83193         * lib/savedir.c: Likewise.
83194         * lib/stripslash.c: Likewise.
83195         * lib/tempname.c: Likewise.
83196         * lib/xreadlink.c: Likewise.
83197         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
83198         All uses changed.
83199         * lib/exclude.h: Likewise.
83200
83201         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
83202         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83203         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
83204         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83205         * lib/pathmax.h: Include <limits.h> unconditionally, since other
83206         files have been getting away with it for years (MORE/BSD 4.3
83207         is extinct now).
83208         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
83209         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83210
83211         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
83212         Define to 256, not 255, as per modern POSIX.
83213
83214 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83215
83216         Sync from coreutils.
83217         Use "file name" when talking about file names, instead of "filename"
83218         or "path", as per the GNU coding standards.
83219         * MODULES.html.sh: mkdir-p renamed from makepath.
83220         filenamecat renamed from path-concat.
83221         * modules/filenamecat: Renamed from modules/path-concat.
83222         (Files): filenamecat.h and filenamecat.c renamed from
83223         path-concat.h and path-concat.c.
83224         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
83225         (Include): filenamecat.h, not path-concat.h.
83226         * modules/mkdir-p: Renamed from modules/makepath.
83227         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
83228         makepath.c.
83229         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
83230         (Include): mkdir-p.h, not makepath.h.
83231
83232 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83233
83234         Sync from coreutils.
83235         * m4/mkdir-p.m4: Renamed from makepath.m4.
83236         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
83237         Rename files from makepath.c to mkdir-p.c, and from
83238         makepath.h to mkdir-p.h.
83239         * m4/filenamecat.m4: Renamed from path-concat.m4.
83240         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
83241         Rename files from path-concat.c to filenamecat.c,
83242         and from path-concat.h to filenamecat.h.
83243         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
83244         "file name" in local variables or comments.
83245         * m4/rename.m4: Likewise.
83246
83247 2005-06-01  Bruno Haible  <bruno@clisp.org>
83248
83249         * modules/csharpexec: New file.
83250         * MODULES.html.sh (C#): New section.
83251
83252 2005-06-01  Bruno Haible  <bruno@clisp.org>
83253
83254         * m4/csharp.m4: New file, from GNU gettext.
83255         * m4/csharpexec.m4: New file, from GNU gettext.
83256
83257 2005-06-01  Bruno Haible  <bruno@clisp.org>
83258
83259         * lib/csharpexec.h: New file, from GNU gettext.
83260         * lib/csharpexec.c: New file, from GNU gettext.
83261         * lib/csharpexec.sh.in: New file, from GNU gettext.
83262
83263 2005-05-31  Derek Price  <derek@ximbiot.com>
83264             Paul Eggert  <eggert@cs.ucla.edu>
83265
83266         Sync from cvs.
83267         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83268
83269 2005-05-31  Derek Price  <derek@ximbiot.com>
83270             Paul Eggert  <eggert@cs.ucla.edu>
83271
83272         Sync from cvs.
83273         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83274
83275 2005-05-29  Derek Price  <derek@ximbiot.com>
83276
83277         * config/srclist.txt (glob_.h, glob.c): Add these files.
83278
83279 2005-05-29  Derek Price  <derek@ximbiot.com>
83280
83281         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
83282         * modules/glob: New file.
83283         * modules/getlogin_r: Add link to POSIX spec in description.
83284
83285 2005-05-29  Derek Price  <derek@ximbiot.com>
83286             Paul Eggert  <eggert@cs.ucla.edu>
83287
83288         * m4/glob.m4: New file.
83289
83290 2005-05-29  Derek Price  <derek@ximbiot.com>
83291             Paul Eggert  <eggert@cs.ucla.edu>
83292
83293         * lib/glob_.h, lib/glob.c: New files.
83294
83295 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83296
83297         * modules/fts (Files): Remove m4/inttypes-pri.m4.
83298         * modules/fts-lgpl (Depends-on): Remove gettext.
83299
83300 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83301
83302         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
83303         and don't require gt_INTTYPES_PRI.
83304
83305 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83306
83307         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
83308
83309         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
83310         the configuration hassle isn't worth it.
83311         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
83312         (LONGEST_MODIFIER, PRIuMAX): Remove.
83313
83314 2005-05-27  Bruno Haible  <bruno@clisp.org>
83315
83316         * lib/getlogin_r.h: Remove second include of <stddef.h>.
83317
83318 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
83319
83320         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
83321         _POSIX_PTHREAD_SEMANTICS for Solaris.
83322
83323 2005-05-25  Derek Price  <derek@ximbiot.com>
83324
83325         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
83326
83327 2005-05-25  Derek Price  <derek@ximbiot.com>
83328             Paul Eggert  <eggert@cs.ucla.edu>
83329
83330         * modules/getlogin_r, m4/getlogin_r.m4: New files.
83331         * lib/getlogin_r.c, getlogin_r.h: New files.
83332
83333 2005-05-25  Bruno Haible  <bruno@clisp.org>
83334             Derek Price  <derek@ximbiot.com>
83335
83336         * lib/getlogin_r.h: Simplify API documentation.
83337
83338 2005-05-23  Derek Price  <derek@ximbiot.com>
83339
83340         * modules/minmax (Files): Add m4/minmax.m4.
83341         (configure.ac): Add gl_MINMAX.
83342
83343 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
83344
83345         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
83346         so that unistd-safer.h (GPL'ed code) need not be included.
83347
83348 2005-05-22  Bruno Haible  <bruno@clisp.org>
83349
83350         * m4/minmax.m4: New file.
83351         Based on a patch by Derek Price <derek@ximbiot.com>.
83352
83353 2005-05-22  Bruno Haible  <bruno@clisp.org>
83354
83355         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
83356         (INT64_MIN): Fix definition.
83357         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
83358
83359         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
83360         NEED_SIGNED_INT_TYPES.
83361
83362         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
83363         HAVE_SYSTEM_INTTYPES.
83364
83365 2005-05-22  Bruno Haible  <bruno@clisp.org>
83366
83367         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
83368         Also include <sys/param.h> if it defines MIN, MAX.
83369         Based on a patch by Derek Price <derek@ximbiot.com>.
83370
83371 2005-05-21  Jim Meyering  <jim@meyering.net>
83372
83373         * modules/fts (Files): Add m4/inttypes-pri.m4.
83374         (Depends-on): Add lstat and remove gettext.  Alphabetize.
83375
83376 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83377
83378         New fts module.
83379         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
83380         (setup_dir, free_dir): New functions.
83381         (enter_dir, leave_dir): Define trivial
83382         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
83383         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
83384         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
83385         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
83386         Move to fts-cycle.c.
83387         (fts_open): Use setup_dir.
83388         (fts_close): Use free_dir.
83389         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
83390         This adds a label and some gotos, but the alternatives were messier.
83391         Check for memory allocation failure when entering a dir.
83392         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
83393         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
83394         (FTS): New member fts_cycle, that is a union that contains the
83395         old active_dir_ht and cycle_state.  All uses changed to mention
83396         fts_cycle.ht and fts_cycle.state.
83397         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
83398         fts.c, with the following changes:
83399         (setup_dir, free_dir): New functions.
83400         (enter_dir): Now returns bool.  Return true if successful, false
83401         if memory exhausted.  All callers changed.
83402         Do not bother partly cleaning up on
83403         memory allocation failure; that is free_dir's job.
83404         However, free ad if hash_insert fails, to avoid memory leak.
83405         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
83406         fts->fts_options to see which union member to use.
83407
83408 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83409
83410         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
83411         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
83412
83413 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83414
83415         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
83416
83417 2005-05-20  Jim Meyering  <jim@meyering.net>
83418
83419         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
83420         Now a macro, to pacify GCC.
83421
83422 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83423
83424         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
83425         of -1.
83426
83427 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83428
83429         * lib/chown.c (rpl_chown): Return -1 on failure.
83430
83431 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83432
83433         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
83434         Don't check for stddef.h.
83435         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
83436         don't use its results.
83437         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
83438         since we include them unconditionally.  Don't require
83439         AM_STDBOOL_H, since stdbool is a prerequisite.
83440         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
83441         since we assume C89 or better.
83442         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
83443         as we don't use their results.
83444         Don't check for fchdir, memmove, memset, strrchr, as we use
83445         them unconditionally.
83446         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
83447         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
83448
83449 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83450
83451         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
83452         Include <stddef.h> unconditionally, since we assume C89 now.
83453         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
83454         * lib/fts.c: Include fts_.h first, to check interface.
83455         Do not include intprops.h; no longer needed.
83456         Include cycle-check.h and hash.h, since fts_.h no longer does.
83457         Remove unnecessary casts of closedir to void.
83458         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
83459         decide whether to decrement nlinks.
83460         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
83461         (FTS): Use struct hash_table * instead of Hash_table, so that
83462         we no longer need to include hash.h here.
83463
83464 2005-05-18  Jim Meyering  <jim@meyering.net>
83465
83466         * modules/dirfd (License): Change to LGPL.  Most of the code
83467         is already in the public domain.
83468
83469 2005-05-18  Jim Meyering  <jim@meyering.net>
83470
83471         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
83472         Reported by Yoann Vandoorselaere.
83473
83474 2005-05-17  Jim Meyering  <jim@meyering.net>
83475
83476         * m4/fts.m4: New file, from coreutils.
83477
83478 2005-05-17  Jim Meyering  <jim@meyering.net>
83479
83480         * lib/fts.c, lib/fts_.h: New files, from coreutils.
83481
83482 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83483
83484         Sync from coreutils.
83485         * m4/unlinkdir.m4: New file.
83486
83487 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83488
83489         Sync from coreutils.
83490         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
83491         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
83492         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
83493         White space changes only.
83494         * lib/makepath.c (make_path): Port to hosts where leading "//" is
83495         special.
83496         * lib/yesno.c: Include getline.h, not ctype.h.
83497         (yesno): Don't remove leading white space; POSIX doesn't allow it.
83498         Use getline to remove arbitrary restriction on response length.
83499
83500 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83501
83502         * config/srclist-update: Spell out "Street" in FSF postal
83503         mail address; this is the style the FSF seems to prefer.
83504
83505         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
83506         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
83507         this updates FSF postal mail address.
83508
83509         Sync from coreutils.
83510         * modules/unlinkdir: New file.
83511         * modules/yesno (Depends-on): Add getline.
83512         * MODULES.html.sh (File system functions): Add unlinkdir.
83513
83514 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83515
83516         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
83517         lib/strsep.h:
83518         Change the initial comment to refer to GPL, not LGPL.
83519         gnulib-tool will change it to LGPL as needed.
83520
83521         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
83522         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
83523         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
83524         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
83525         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
83526         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
83527         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
83528         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
83529         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
83530         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
83531         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
83532         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
83533         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
83534         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
83535         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
83536         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
83537         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
83538         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
83539         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
83540         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
83541         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
83542         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
83543         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
83544         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
83545         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
83546         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
83547         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
83548         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
83549         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
83550         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
83551         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
83552         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
83553         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
83554         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
83555         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
83556         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83557         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83558         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83559         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83560         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83561         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83562         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83563         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83564         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83565         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83566         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83567         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83568         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83569         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83570         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83571         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83572         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83573         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83574         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83575         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83576         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83577         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83578         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83579         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83580         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83581         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83582         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83583         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83584         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83585         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83586         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83587         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83588         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83589         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83590         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83591         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83592         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83593         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83594         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83595         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83596         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83597         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83598         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83599         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83600         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83601         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83602         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83603         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83604         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83605         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83606         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83607         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83608         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83609         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83610         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83611         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83612         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83613         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83614         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83615         lib/yesno.c, lib/yesno.h:
83616         Update FSF postal mail address.
83617
83618 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83619
83620         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83621         tests/test-memmem.c, tests/test-stpncpy.c:
83622         Update FSF postal mail address.
83623
83624 2005-05-13  Bruno Haible  <bruno@clisp.org>
83625
83626         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83627         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83628         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83629         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83630         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83631         Add support for 64-bit integers in the MSVC compiler.
83632
83633 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83634
83635         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83636
83637 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83638
83639         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83640
83641 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83642
83643         * doc/getdate.texi (General date syntax): Don't say that date
83644         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83645         Problem reported by Nic Ferrier.
83646
83647 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83648
83649         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83650         specified in ai_socktype. Fix invalid ai_protocol
83651         check. ai_protocol is usually set to 0 or depending on
83652         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83653         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83654         ai_socktype / ai_protocol in the returned addrinfo structure.
83655
83656 2005-05-10  Simon Josefsson  <jas@extundo.com>
83657
83658         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83659         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83660
83661 2005-05-10  Karl Berry  <karl@gnu.org>
83662
83663         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83664         (from http://www.gnu.org/licenses).
83665         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83666         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83667         fdl.texi suffices.
83668
83669 2005-05-10  Karl Berry  <karl@gnu.org>
83670
83671         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83672         (COPYING.DOC): remove.
83673
83674         * config/srclist-update: new FSF address.
83675
83676 2005-05-10  Derek Price  <derek@ximbiot.com>
83677
83678         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83679         possible.
83680
83681 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83682             Bruno Haible  <bruno@clisp.org>
83683
83684         * modules/inet_ntop: New file.
83685         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83686         inet_ntop.
83687
83688 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83689             Bruno Haible  <bruno@clisp.org>
83690
83691         * m4/inet_ntop.m4: New file.
83692
83693 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83694             Bruno Haible  <bruno@clisp.org>
83695
83696         * lib/inet_ntop.h: New file.
83697         * lib/inet_ntop.c: New file, from glibc with modifications.
83698
83699 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83700
83701         * modules/time_r (License): Change to LGPL.
83702         * modules/extensions (License): Change to LGPL.  Actually,
83703         the license is more permissive than that, but currently gnulib-tool
83704         doesn't know how to handle more-permissive licenses.
83705
83706         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83707         Problem reported by Dave Love.
83708
83709 2005-05-08  Jim Meyering  <jim@meyering.net>
83710
83711         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83712         blank.
83713
83714 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83715
83716         * modules/argmatch (Depends-on): Add stdbool.
83717         * modules/backupfile (Depends-on): Likewise.
83718         * modules/chdir-long (Depends-on): Likewise.
83719         * modules/closeout (Depends-on): Likewise.
83720         * modules/cycle-check (Depends-on): Likewise.
83721         * modules/dirname (Depends-on): Likewise.
83722         * modules/fnmatch (Depends-on): Likewise.
83723         * modules/fsusage (Depends-on): Likewise.
83724         * modules/fwriteerror (Depends-on): Likewise.
83725         * modules/getcwd (Depends-on): Likewise.
83726         * modules/getloadavg (Depends-on): Likewise.
83727         * modules/hard-locale (Depends-on): Likewise.
83728         * modules/makepath (Depends-on): Likewise.
83729         * modules/mountlist (Depends-on): Likewise.
83730         * modules/nanosleep (Depends-on): Likewise.
83731         * modules/posixtm (Depends-on): Likewise.
83732         * modules/quotearg (Depends-on): Likewise.
83733         * modules/readtokens (Depends-on): Likewise.
83734         * modules/readtokens0 (Depends-on): Likewise.
83735         * modules/readutmp (Depends-on): Likewise.
83736         * modules/save-cwd (Depends-on): Likewise.
83737         * modules/strftime (Depends-on): Likewise.
83738         * modules/userspec (Depends-on): Likewise.
83739         * modules/utimecmp (Depends-on): Likewise.
83740         * modules/xgetcwd (Depends-on): Likewise.
83741         * modules/xnanosleep (Depends-on): Likewise.
83742         * modules/xstrtod (Depends-on): Likewise.
83743         * modules/yesno (Depends-on): Likewise.
83744
83745 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83746
83747         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83748         needless checks.
83749
83750 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83751
83752         Merge from coreutils.  Among other things,
83753         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83754         * lib/fd-safer.c: New file.
83755         * lib/fcntl-safer.h, open-safer.c: Remove.
83756         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83757         * lib/dup-safer.c: Include unistd-safer.h first.
83758         Don't include errno.h.
83759         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83760         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83761         * lib/file-type.c: Rely on file-type.h change.
83762         * lib/getloadavg.c: Include unistd-safer.h.
83763         (getloadavg): Use safer open.
83764         * lib/getusershell.c: Include "stdio-safer.h".
83765         (getusershell): Use safer fopen.
83766         * lib/long-options.c (long_options): Use NULL rather than 0.
83767         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83768         'free'.
83769         * lib/modechange.c: Likewise.
83770         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83771         (MODE_DONE): New constant.
83772         (struct mode_change): Remove 'next' member.
83773         (make_node_op_equals): New function; like the old one of the
83774         same name, except it allocates an array.
83775         (mode_compile, mode_create_from_ref): Use it.
83776         (mode_compile): Allocate result as an array, not a linked list.
83777         Parse octal string ourself, so that we catch mistakes like "+0".
83778         (mode_adjust): Arg is an array, not a linked list.
83779         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83780         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83781         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83782         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83783         Remove.  This is now stat-macros.h's job.
83784         (talloc): Remove.  All callers replaced by xalloc, so that
83785         our invokers don't have to worry about reporting memory failures.
83786         (make_node_op_equals): Remove.
83787         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83788         New constants.
83789         (struct mode_change): Moved here from modechange.h.
83790         (mode_append_entry): Remove.
83791         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83792         apps to have incorrect behavior.  Use simpler algorithm for head
83793         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83794         Detect more invalid usages rather than having somewhat-random behavior.
83795         Don't insert an "a=" action, as that leads to incorrect behavior.
83796         (mode_compile, mode_create_from_ref): Return NULL on error instead
83797         of an enum, since now there's only one way to have an error.  All
83798         callers changed.
83799         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83800         at the correct time.  Simplify calculation of "+u" and its ilk.
83801         Don't mishandle "+X".
83802         (mode_free): Remove "register" and localize decls.
83803         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83804         (struct mode_change): Move to modechange.c; callers don't
83805         need to see this stuff.
83806         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83807         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83808         (mode_change, mode_adjust): Reflect the new signatures noted above.
83809         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83810         that might redefine system include files.
83811         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83812         (my_usleep): Use NULL rather than (void *) 0.
83813         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83814         Use siginterrupt to specify that system calls should be interrupted.
83815         (rpl_nanosleep): Move initialization of suspended closer to call of
83816         my_usleep.
83817         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83818         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83819         (desirable_utmp_entry): New function.
83820         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83821         using x2nrealloc, to simplify logic.
83822         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83823         size calculation.  Do not assume utmp file is a regular file.
83824         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83825         (READ_UTMP_CHECK_PIDS): New constant.
83826         * lib/save-cwd.c: Include unistd-safer.h.
83827         (save_cwd): Use fd_safer.
83828         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83829         [!_LIBC] Include "stat-macros.h" instead.
83830         * lib/unistd-safer.h (fd_safer): New decl.
83831
83832 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83833
83834         * modules/getloadavg (Depends-on): Add unistd-safer.
83835         * modules/getusershell (Depends-on): Add stdio-safer.
83836         * modules/lstat (Depends-on): Remove xalloc.
83837         * modules/mkstemp (Depends-on): Add stat-macros.
83838         * modules/modechange (Depends-on): Remove xstrtol.
83839         Add stat-macros, xalloc.
83840         * modules/save-cwd (Depends-on): Add unistd-safer.
83841         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83842         * modules/unistd-safer (Files): Add lib/fd-safer.c
83843         (Makefile.am): Remove lib_SOURCES.
83844
83845         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83846         Remove fcntl-safer; unistd-safer supersedes it.
83847
83848 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83849
83850         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83851         AC_HEADER_STAT.
83852         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83853         (gl_PREREQ_CHOWN): Remove.
83854         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83855         it.  Don't require AC_HEADER_STAT.
83856         (gl_PREREQ_LSTAT): Remove.
83857         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83858         Don't require AC_HEADER_STAT.
83859         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83860         (gl_PREREQ_RMDIR): Remove.
83861         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83862         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83863         the stat-macros module a prerequisite.
83864         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83865         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83866         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83867         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83868         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83869         variable names.
83870         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83871         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83872         variable prefixes.
83873         * m4/fcntl-safer.m4: Remove.
83874         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83875         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83876         Invoke gl_PREREQ_FD_SAFER.
83877         (gl_PREREQ_FD_SAFER): New macro.
83878         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83879         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83880         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83881         Remove duplicate call to AC_LIBOBJ(readutmp).
83882         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83883
83884         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83885         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83886
83887 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83888
83889         * MODULES.html.sh (Misc): Add byteswap.
83890
83891 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83892
83893         * modules/getcwd (Depends-on): Add extensions.
83894         * modules/openat (Depends-on): Likewise.
83895
83896 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83897
83898         * modules/byteswap: New file.
83899
83900 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83901
83902         * m4/byteswap.m4: New file.
83903
83904 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83905
83906         * lib/byteswap_.h: New file.
83907
83908 2005-04-25  Karl Berry  <karl@gnu.org>
83909
83910         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83911
83912 2005-04-25  Albert Chin  <china@thewrittenword.com>
83913
83914         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83915         Toolkit C bug.
83916
83917 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83918
83919         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83920         (func_ln_if_changed): Remove forcibly for no error message
83921         in case file does not exist.
83922
83923 2005-04-19  Simon Josefsson  <jas@extundo.com>
83924
83925         * gnulib-tool (Options): Make --symlink mean --symbolic.
83926
83927 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83928
83929         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83930
83931 2005-04-16  Simon Josefsson  <jas@extundo.com>
83932
83933         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83934
83935 2005-04-15  Simon Josefsson  <jas@extundo.com>
83936
83937         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83938
83939 2005-04-15  Simon Josefsson  <jas@extundo.com>
83940
83941         * gnulib-tool: Rename --symlink to --symbolic.
83942
83943 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83944
83945         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83946         symbolic links to files instead of copying/moving.  Add --aux-dir,
83947         specifying directory relative --dir where auxiliary build tools
83948         are placed.
83949
83950 2005-04-14  Bruno Haible  <bruno@clisp.org>
83951
83952         * modules/allocsa (License): Change to LGPL.
83953         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83954
83955 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83956
83957         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83958         that "UTC +1 second" continues to work.  Problem reported
83959         by Dmitry V. Levin.
83960         (relunit_snumber): New rule.
83961         (relunit): Use it.
83962
83963 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83964
83965         * lib/getdate.y (universal_time_zone_table): New constant.
83966         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83967         universal_time_zone_table.
83968         (lookup_zone): Prefer universal_time_zone_table to
83969         local_time_zone_table, so that "GMT" time stamps are allowed in
83970         London during the summer.  Problem reported by Ian Abbott.
83971
83972 2005-04-12  Jim Meyering  <jim@meyering.net>
83973
83974         * lib/human.c (humblock): Set *options even when returning due to
83975         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83976         warning from gcc-4.
83977
83978 2005-04-09  Jim Meyering  <jim@meyering.net>
83979
83980         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83981         -Wuninitialized: initialize tm0.tm_year.
83982
83983 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83984
83985         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83986         count, since there's no maximum.  All uses changed.
83987         Add member dsts_seen.
83988         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83989         not being INT_MAX.
83990         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83991         Use pc_rels_seen to decide whether a date is absolute.
83992
83993         * lib/getdate.y (number): Don't overwrite year.
83994         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83995         check.
83996
83997 2005-04-02  Simon Josefsson  <jas@extundo.com>
83998
83999         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
84000         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
84001
84002 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
84003
84004         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
84005         where no absolute path name can be longer than PATH_MAX.
84006
84007 2005-03-27  Jim Meyering  <jim@meyering.net>
84008
84009         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
84010
84011 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
84012
84013         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
84014         "one's complement" -> "ones' complement" in comment, as per Knuth.
84015         "value of type" -> "type or expression" in comment.
84016         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
84017
84018 2005-03-26  Jim Meyering  <jim@meyering.net>
84019
84020         Comment nits.
84021         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
84022         Correct typos: s/or/of/.
84023
84024 2005-03-26  Jim Meyering  <jim@meyering.net>
84025
84026         * modules/check-include-files: Move to ../ and rename to...
84027         * check-module: ...this.
84028
84029 2005-03-25  Jim Meyering  <jim@meyering.net>
84030
84031         * modules/xvasprintf (Files): Add xalloc.h.
84032
84033 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
84034
84035         * modules/gettext (Files): config/config.rpath ->
84036         build-aux/config.rpath
84037         * modules/iconv (Files): Likewise.
84038         Problem reported by Oskar Liljeblad.
84039
84040 2005-03-23  Jim Meyering  <jim@meyering.net>
84041
84042         * modules/check-include-files: New script to check for
84043         missing dependencies, multiple includes, etc.
84044
84045         * modules/c-strtold (Depends-on): Add xalloc.
84046         * modules/c-strtod (Depends-on): Add xalloc.
84047         * modules/hash (Depends-on): Add xalloc.
84048         (Files): Remove lib/xalloc.h.
84049
84050         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
84051         * modules/userspec (Files): Add lib/inttostr.h.
84052
84053 2005-03-23  Jim Meyering  <jim@meyering.net>
84054
84055         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
84056
84057 2005-03-22  Jim Meyering  <jim@meyering.net>
84058
84059         * modules/stat-macros: New module.
84060         * modules/canonicalize, modules/euidaccess, modules/file-type,
84061         * modules/filemode, modules/lchown, modules/makepath,
84062         * modules/rmdir, modules/stat: Depend on new stat-macros module
84063         rather than listing lib/stat-macros.h manually.
84064         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
84065
84066 2005-03-22  Jim Meyering  <jim@meyering.net>
84067
84068         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
84069
84070 2005-03-22  Bruno Haible  <bruno@clisp.org>
84071
84072         * config/srclist.txt: Replace target directory 'config' with
84073         'build-aux'.
84074         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
84075         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
84076         ../build-aux/.
84077
84078 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
84079
84080         * modules/chdir-long (Depends-on): Add mempcpy.
84081
84082         * modules/acl, modules/backupfile, modules/c-strtod,
84083         modules/c-strtold, modules/canon-host, modules/canonicalize,
84084         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
84085         modules/exclude, modules/exitfail, modules/file-type,
84086         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
84087         modules/getdate, modules/getline, modules/getpagesize,
84088         modules/getpass, modules/getugroups, modules/group-member,
84089         modules/hard-locale, modules/hash, modules/human, modules/idcache,
84090         modules/inttostr, modules/long-options, modules/makepath,
84091         modules/md5, modules/memcasecmp, modules/memcoll,
84092         modules/modechange, modules/mountlist, modules/path-concat,
84093         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
84094         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
84095         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
84096         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
84097         modules/strftime, modules/strndup, modules/strverscmp,
84098         modules/timespec, modules/unlocked-io, modules/userspec,
84099         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
84100         modules/yesno:
84101         Remove lib_SOURCES line from Makefile.am section, as this is now
84102         done automatically by the corresponding Autoconf macro.
84103
84104 2005-03-21  Jim Meyering  <jim@meyering.net>
84105
84106         Changes imported from coreutils.
84107
84108         * lib/cycle-check.c: Don't include xalloc.h.
84109
84110         * lib/path-concat.c: Don't include assert.h.
84111         (path_concat): Remove assertion that would have triggered
84112         for ABASE starting with more than one slash.
84113         Reported by Andreas Schwab.
84114
84115         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
84116         properly when ABASE is an absolute file name.
84117         Correct the description of this function.
84118         Include <assert.h>.
84119         Add an assertion and a test driver.
84120         This fixes a bug introduced on 2004-07-02.
84121         Andreas Schwab reported the resulting failure of cp --parents:
84122         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
84123
84124 2005-03-21  Jim Meyering  <jim@meyering.net>
84125
84126         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
84127         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
84128
84129 2005-03-21  Jim Meyering  <jim@meyering.net>
84130         and  Paul Eggert  <eggert@cs.ucla.edu>
84131
84132         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
84133         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
84134         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
84135         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
84136         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
84137         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
84138         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
84139         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
84140         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
84141         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
84142         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
84143         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
84144         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
84145         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
84146         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
84147         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
84148         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
84149         for these modules.
84150
84151 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
84152
84153         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
84154         (which shouldn't happen), generate nothing instead of returning 0
84155         immediately, so that nstrftime (NULL, ...) doesn't return 0.
84156
84157 2005-03-16  Bruno Haible  <bruno@clisp.org>
84158
84159         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
84160         HAVE_LONGLONG_64BIT.
84161
84162 2005-03-16  Bruno Haible  <bruno@clisp.org>
84163
84164         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
84165         HAVE_LONGLONG_64BIT.
84166
84167 2005-03-16  Bruno Haible  <bruno@clisp.org>
84168
84169         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
84170         HAVE_LONGLONG_64BIT.
84171
84172 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84173
84174         * lib/strftime.c (my_strftime): Prepend space to format so that we can
84175         reliably distinguish strftime failure from empty output on POSIX
84176         hosts.
84177
84178 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84179
84180         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
84181         (iconv_string): Don't guess a size-zero buffer, as that might cause
84182         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
84183         result would be 'too large', where 'too large' is (heuristically)
84184         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
84185         overflow concerns.  This will prevent some unwanted malloc failures
84186         when the inputs are very large.
84187
84188 2005-03-15  Karl Berry  <karl@gnu.org>
84189
84190         * config/srclist.txt (config.rpath): from gettext.
84191         * config/config.rpath: update.
84192
84193 2005-03-15  Bruno Haible  <bruno@clisp.org>
84194
84195         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
84196         to 'negate'.
84197
84198         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
84199         variable.
84200
84201         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
84202         results.
84203
84204 2005-03-14  Simon Josefsson  <jas@extundo.com>
84205
84206         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
84207         <fx@gnu.org>.
84208
84209 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
84210
84211         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
84212         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
84213         intprops.h.
84214         * lib/strtol.c: Likewise.
84215
84216 2005-03-14  Jim Meyering  <jim@meyering.net>
84217
84218         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
84219         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
84220         to be nonzero so that we (and caller) can detect the difference
84221         between a valid zero-length expansion and an error return, even
84222         when the underlying strftime fails before writing anything into
84223         that location.
84224
84225 2005-03-14  Bruno Haible  <bruno@clisp.org>
84226
84227         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
84228         Update from GNU gettext 0.14.3.
84229
84230 2005-03-10  Jim Meyering  <jim@meyering.net>
84231
84232         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
84233
84234 2005-03-10  Jim Meyering  <jim@meyering.net>
84235
84236         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
84237         so that this module works on systems without fchdir.
84238
84239 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
84240
84241         Factor int-properties macros into a single file, except for
84242         glibc-related files.
84243         * lib/intprops.h: New file.
84244         * lib/getloadavg.c: Include it instead of limits.h.
84245         (INT_STRLEN_BOUND): Remove.
84246         * lib/human.c: Include intprops.h.
84247         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
84248         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
84249         302/1000.
84250         * lib/inttostr.h: Include intprops.h instead of limits.h.
84251         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
84252         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
84253         for consistency with intprops.h.
84254         (time_t_is_integer, twos_complement_arithmetic): Use them.
84255         * lib/sig2str.h: Include <signal.h>, intprops.h.
84256         (INT_STRLEN_BOUND): Remove.
84257         * lib/strftime.c (TYPE_SIGNED): Remove.
84258         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
84259         * lib/strtol.c: Adjust comments to match intprops.h.
84260         * lib/userspec.c: Include intprops.h.
84261         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
84262         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
84263         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
84264         instead of rolling our own expressions.
84265         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
84266
84267         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
84268         instead of int.
84269         (my_strftime): Do not mishandle years close to INT_MAX, by doing
84270         the right thing even if adding 1900 would overflow.  Similarly
84271         for tm_mon + 1 and tm_yday + 1.
84272         Make %Y always equivalent to %C%y, and similarly for %G and %g.
84273         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
84274         (DO_SIGNED_NUMBER): New macro.
84275         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
84276
84277 2005-03-07  Bruno Haible  <bruno@clisp.org>
84278
84279         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
84280
84281 2005-03-07  Bruno Haible  <bruno@clisp.org>
84282
84283         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
84284
84285 2005-03-04  Derek R. Price  <derek@ximbiot.com>
84286
84287         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
84288         (func_import): Only replace files via --import when they have actually
84289         changed.
84290
84291 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84292
84293         * m4/mmap-anon.m4: New file.
84294         * m4/pagealign_alloc.m4: New file.
84295
84296 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84297             Bruno Haible  <bruno@clisp.org>
84298
84299         * modules/pagealign_alloc: New file.
84300         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
84301
84302 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84303             Bruno Haible  <bruno@clisp.org>
84304
84305         * lib/pagealign_alloc.h: New file.
84306         * lib/pagealign_alloc.c: New file.
84307
84308 2005-03-03  Bruno Haible  <bruno@clisp.org>
84309
84310         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
84311         Use an all-permissive copyright notice, recommended by RMS.
84312
84313 2005-03-02  Bruno Haible  <bruno@clisp.org>
84314
84315         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
84316         of AIX, the replacement has to be done only after <string.h> is
84317         included, therefore not in config.h. stpncpy.h does the replacement,
84318         and stpncpy.c uses it.
84319
84320 2005-03-02  Bruno Haible  <bruno@clisp.org>
84321
84322         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
84323         stpncpy.c uses it.
84324
84325 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84326
84327         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
84328         The workaround isn't strictly needed for POSIX conformance, and
84329         it's too much of a pain to configure and maintain.  We'll ask
84330         people to fix their kernels instead.
84331         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
84332         (NANOSLEEP_BUG_WORKAROUND): Remove.
84333         (xnanosleep): Remove the workaround.
84334
84335 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84336
84337         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
84338         Reported by Derek Price.
84339         (Include): Add "timespec.h".
84340
84341         * modules/xnanosleep (Depends-on): Remove gethrxtime.
84342
84343 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84344
84345         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
84346         to detect nanosleep bug.
84347
84348 2005-03-01  Bruno Haible  <bruno@clisp.org>
84349
84350         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
84351
84352 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
84353
84354         * modules/gethrxtime: New file.
84355         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
84356         (Depends-on): Add gethrxtime.
84357         (configure.ac): Add gl_XNANOSLEEP.
84358         (Makefile.am): Remove lib_SOURCES line.
84359
84360 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84361
84362         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
84363         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
84364
84365 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84366
84367         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
84368         * lib/timespec.h (gettime): Return void, since it always
84369         succeeds now.  All uses changed.
84370         * lib/gettime.c (gettime): Likewise.
84371         [HAVE_NANOTIME]: Prefer nanotime.
84372         Assume gettimeofday succeeds, as POSIX requires.
84373         Assime time () succeeds, since other code already does.
84374         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
84375         (timespec_subtract): Remove.
84376         (NANOSLEEP_BUG_WORKAROUND): New constant.
84377         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
84378         things considerably.  Use it only on GNU/Linux hosts, since the
84379         workaround shouldn't be needed elsewhere.
84380
84381 2005-02-24  Bruno Haible  <bruno@clisp.org>
84382
84383         * modules/gettext (Files): Add m4/glibc2.m4.
84384
84385 2005-02-24  Bruno Haible  <bruno@clisp.org>
84386
84387         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
84388         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
84389         * m4/progtest.m4:
84390         Update from GNU gettext 0.14.2.
84391         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
84392
84393 2005-02-24  Bruno Haible  <bruno@clisp.org>
84394
84395         * lib/localcharset.c: Update from GNU gettext 0.14.2.
84396         * lib/config.charset: Update from GNU gettext 0.14.2.
84397
84398 2005-02-24  Bruno Haible  <bruno@clisp.org>
84399
84400         * lib/gettext.h: Update from GNU gettext 0.14.2.
84401
84402 2005-02-23  Simon Josefsson  <jas@extundo.com>
84403
84404         * m4/iconvme.m4: New file.
84405
84406 2005-02-23  Jim Meyering  <jim@meyering.net>
84407
84408         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
84409         change.
84410         Thanks to Bruno Haible for catching it.
84411
84412 2005-02-22  Simon Josefsson  <jas@extundo.com>
84413
84414         * modules/iconvme: New file.
84415
84416         * MODULES.html.sh: Add iconvme.
84417
84418 2005-02-22  Simon Josefsson  <jas@extundo.com>
84419
84420         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
84421
84422 2005-02-22  Simon Josefsson  <jas@extundo.com>
84423
84424         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
84425
84426 2005-02-22  Jim Meyering  <jim@meyering.net>
84427
84428         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
84429         s/ifndef/ifdef/.
84430
84431 2005-02-20  Neil Conway  <neilc@samurai.com>
84432
84433         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
84434         returned by OSX/Darwin if the specified buffer is not large
84435         enough for the hostname.
84436
84437 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84438
84439         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
84440         pass it to _help, otherwise the latter coredumps trying to
84441         dereference state.root_argp.
84442
84443 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84444
84445         * modules/chdir-long (Depends-on): Add memrchr.
84446         * modules/memrchr (Files): Add lib/memrchr.h.
84447         (Include): "memrchr.h".
84448
84449 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84450
84451         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
84452
84453 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84454
84455         * lib/memrchr.h: New file.
84456         * lib/chdir-long.c: Include it.
84457         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
84458         Don't bother including stddef.h.
84459
84460 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
84461
84462         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
84463         inclusion.
84464         Include <sys/types.h>, for dev_t.
84465         (ME_DUMMY, ME_REMOTE): Move from here....
84466         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
84467         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
84468         Dmitry V. Levin.
84469         Include mountlist.h first, to test the interface.
84470
84471 2005-01-29  Bruno Haible  <bruno@clisp.org>
84472
84473         * lib/progname.c (program_name): Initialize.
84474         Needed when linking statically on MacOS X.
84475
84476 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84477
84478         Sync from coreutils.
84479         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
84480         (Depends-on): Add c-strtod.
84481         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
84482
84483 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84484
84485         Sync from coreutils.
84486         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
84487
84488         Remove files that are specific to coreutils.
84489         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
84490
84491 2005-01-28  Bruno Haible  <bruno@clisp.org>
84492
84493         * modules/javacomp: New file.
84494         * MODULES.html.sh (Java): Add javacomp.
84495
84496 2005-01-28  Bruno Haible  <bruno@clisp.org>
84497
84498         * m4/javacomp.m4: New file, from GNU gettext.
84499
84500 2005-01-28  Bruno Haible  <bruno@clisp.org>
84501
84502         * lib/javacomp.sh.in: New file, from GNU gettext.
84503         * lib/javacomp.h: New file, from GNU gettext.
84504         * lib/javacomp.c: New file, from GNU gettext.
84505
84506 2005-01-26  Simon Josefsson  <jas@extundo.com>
84507
84508         * lib/gai_strerror.c: Use GPL in header.
84509
84510 2005-01-26  Bruno Haible  <bruno@clisp.org>
84511
84512         * modules/javaexec: New file.
84513         * MODULES.html.sh (Java): Add javaexec.
84514
84515 2005-01-26  Bruno Haible  <bruno@clisp.org>
84516
84517         * m4/javaexec.m4: New file, from GNU gettext.
84518
84519 2005-01-26  Bruno Haible  <bruno@clisp.org>
84520
84521         * lib/javaexec.sh.in: New file, from GNU gettext.
84522         * lib/javaexec.h: New file, from GNU gettext.
84523         * lib/javaexec.c: New file, from GNU gettext.
84524
84525 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84526
84527         * modules/lchown (Depends-on): Remove lchown.h
84528
84529 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84530
84531         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
84532         must be defined if the header file was not found, in order
84533         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
84534
84535 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84536
84537         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
84538         initializers for struct pentry_state.
84539         (__argp_error): Check return value of __asprintf
84540         (__argp_failure): Translate error message
84541
84542         * lib/argp-parse.c: Removed braces around the expansion of N_()
84543
84544 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84545
84546         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
84547         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
84548         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
84549         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
84550         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
84551         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
84552         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
84553         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
84554         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
84555         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
84556         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84557         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84558         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84559         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84560         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84561         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84562         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84563         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84564         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84565         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84566         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84567         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84568         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84569         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84570         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84571         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84572         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84573         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84574         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84575         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84576         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84577         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84578         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84579         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84580         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84581         Use an all-permissive copyright notice, recommended by RMS.
84582
84583 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84584
84585         * modules/chdir-long (Depends-on): Remove mempcpy.
84586
84587 2005-01-21  Jim Meyering  <jim@meyering.net>
84588
84589         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84590         same value as for Solaris 9.
84591
84592         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84593         component length.  This included changing the parameter to be
84594         of type `char *' rather than `char const *'.
84595         * lib/chdir-long.h (chdir_long): Update prototype.
84596
84597         * lib/openat.c (fdopendir, fstatat): New functions.
84598         * lib/openat.h: Include headers required for use of DIR and struct
84599         stat.
84600         [AT_SYMLINK_NOFOLLOW]: Define.
84601         (fdopendir, fstatat): Add prototypes.
84602
84603 2005-01-21  Bruno Haible  <bruno@clisp.org>
84604
84605         * modules/classpath: New file.
84606         * MODULES.html.sh (Java): Add classpath.
84607
84608 2005-01-21  Bruno Haible  <bruno@clisp.org>
84609
84610         * lib/classpath.h: New file, from GNU gettext.
84611         * lib/classpath.c: New file, from GNU gettext.
84612
84613 2005-01-20  Simon Josefsson  <jas@extundo.com>
84614
84615         * modules/version-etc-fsf: New file.
84616
84617 2005-01-20  Simon Josefsson  <jas@extundo.com>
84618
84619         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84620         * lib/version-etc.c: Remove version_etc_copyright.
84621         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84622         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84623
84624 2005-01-20  Simon Josefsson  <jas@extundo.com>
84625
84626         * lib/base64.h (isbase64): Add.
84627
84628         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84629         using a unsigned prototype, don't inline.
84630         (base64_decode): Use it.
84631
84632 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84633
84634         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84635         it.
84636
84637 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84638
84639         * lib/save-cwd.c (save_cwd): Remove code to support the case
84640         where fchdir is missing or flaky.
84641
84642 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84643
84644         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84645
84646 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84647
84648         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84649         AC_LIBSOURCES now does this.
84650         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84651         with new ullong_max module.
84652
84653 2005-01-19  Bruno Haible  <bruno@clisp.org>
84654
84655         * modules/sh-quote: New file.
84656         * MODULES.html.sh (Executing programs): Add sh-quote.
84657
84658 2005-01-19  Bruno Haible  <bruno@clisp.org>
84659
84660         * lib/sh-quote.h: New file, from GNU gettext.
84661         * lib/sh-quote.c: New file, from GNU gettext.
84662
84663 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84664
84665         Merge from coreutils.
84666         * m4/ullong_max.m4: New file.
84667         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84668         (gl_MACROS): Assume localeconv exists.
84669
84670 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84671
84672         Merge changes from coreutils, as described below in several
84673         changelogs dated today.
84674
84675         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84676         (O_DIRECTORY): Remove; not needed here, since "." must be
84677         a directory.  All uses removed.
84678         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84679         universal on Suns, and we also need to test for IRIX.
84680         Revamp code to use 'if' rather than '#if'.
84681         Avoid unnecessary comparison of cwd->desc to 0.
84682
84683         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84684         for known valid error numbers rather than observed invalid ones.
84685
84686 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84687
84688         * modules/ullong_max: New file.
84689
84690         * modules/chdir-long, modules/openat: New files.
84691         * modules/save-cwd (Depends-on): Depend on chdir-long.
84692         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84693
84694 2005-01-18  Jim Meyering  <jim@meyering.net>
84695
84696         Merge from coreutils.
84697         * m4/chdir-long.m4, m4/openat.m4: New files.
84698         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84699         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84700         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84701         is sane and DOES follow symlinks.  Besides, testing 20 different
84702         systems found no broken chown implementations.
84703         Prompted by a change in rsync's copy of this macro.
84704         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84705
84706         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84707
84708         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84709         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84710         NULL-means-set-to-current-time semantics.
84711         Remove temporary file immediately, rather than waiting
84712         for configure's at-exit trap code to do it.
84713
84714 2005-01-18  Jim Meyering  <jim@meyering.net>
84715
84716         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84717
84718         * lib/utimens.c (futimens): Account for the fact that futimes
84719         can also fail with errno == ENOSYS or errno == ENOENT.
84720         Patch from Dmitry V. Levin.
84721
84722         Change the name of the robust chdir function from chdir to chdir_long.
84723         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84724         (restore_cwd): Use chdir_long, not chdir.
84725         * lib/chdir-long.c: Renamed from chdir.c.
84726         * lib/chdir-long.h: Renamed from chdir.h.
84727         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84728         Hurd.
84729
84730 2005-01-18  Bruno Haible  <bruno@clisp.org>
84731
84732         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84733         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84734         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84735         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84736         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84737         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84738         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84739         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84740         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84741         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84742         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84743         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84744         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84745         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84746         Use an all-permissive copyright notice, recommended by RMS.
84747
84748 2005-01-18  Bob Proulx  <bob@proulx.com>
84749
84750         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84751         simplify offsetof() macro construct to avoid compile failure with
84752         native HP-UX 11.0 ANSI C compiler.
84753
84754 2005-01-17  Bruno Haible  <bruno@clisp.org>
84755
84756         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84757         redundant because stpncpy.m4 takes care of it.
84758
84759 2005-01-17  Bruno Haible  <bruno@clisp.org>
84760
84761         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84762
84763 2005-01-17  Bruno Haible  <bruno@clisp.org>
84764
84765         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84766         used.
84767
84768 2005-01-17  Bruno Haible  <bruno@clisp.org>
84769
84770         * lib/fwriteerror.h (fwriteerror): Change specification to include
84771         fclose.
84772         * lib/fwriteerror.c: Include <stdbool.h>.
84773         (fwriteerror): At the end, close the file stream. Record whether
84774         stdout was already closed.
84775
84776 2005-01-17  Bruno Haible  <bruno@clisp.org>
84777
84778         * lib/execute.c (environ): Declare if needed.
84779         * lib/pipe.c (environ): Likewise.
84780         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84781
84782 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84783
84784         * modules/argp: Depend on vsnprintf
84785
84786 2005-01-10  Jim Meyering  <jim@meyering.net>
84787
84788         * modules/closeout (Depends-on): Add atexit.
84789
84790 2005-01-06  Bruno Haible  <bruno@clisp.org>
84791
84792         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84793
84794 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84795
84796         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84797         definitions to be after all include files, to avoid collisions.
84798         Problem reported by Bob Proulx.
84799
84800 2005-01-04  Jim Meyering  <jim@meyering.net>
84801
84802         Changes imported from coreutils.
84803         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84804         as the mkstemp template, use a temporary directory and an
84805         8.3-friendly template to avoid trouble on systems like DJGPP.
84806         Reported by Juan M. Guerrero via Stepan Kasal.
84807         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84808         close. Remove the temporary directory right away, rather than waiting
84809         for configure's at-exit trap code to do it.
84810         Suggestion from Stepan Kasal.
84811
84812 2005-01-01  Simon Josefsson  <jas@extundo.com>
84813
84814         * gnulib-tool: Print #include directives when --import'ing.
84815
84816 2004-12-28  Simon Josefsson  <jas@extundo.com>
84817
84818         * tests/test-base64.c: Include required header files.  Remove
84819         unused variables.
84820
84821 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84822
84823         * modules/error (Depends-on): Remove gettext.
84824
84825 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84826
84827         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84828         not needed.  This removes a dependency on the gettext module.
84829         [defined _LIBC]: Do not include <libintl.h>; not needed.
84830
84831 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84832
84833         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84834         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84835
84836 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84837
84838         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84839         HAVE_DECL_STRTOLD.
84840
84841 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84842
84843         * modules/getdate (Depends-on): Remove alloca-opt.
84844
84845 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84846
84847         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84848
84849 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84850
84851         * lib/argp-parse.c: Include <stddef.h>.
84852         (alignof, alignto): New macros.
84853         (parser_init): Don't assume that void * is aligned sufficiently
84854         for struct option.
84855
84856         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84857         need to extend the stack.
84858         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84859         large.
84860
84861 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84862
84863         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84864
84865 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84866
84867         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84868         (2004-10-24) change.  Apparently this was a false alarm.
84869
84870         * modules/getdate: Depend on alloca-opt, not alloca.
84871
84872 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84873
84874         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84875         Remove now-obsolete comment about AIX.
84876         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84877         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84878         (YYMAXDEPTH): New macro.
84879
84880 2004-12-18  Simon Josefsson  <jas@extundo.com>
84881
84882         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84883
84884 2004-12-18  Bruno Haible  <bruno@clisp.org>
84885
84886         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84887
84888 2004-12-18  Bruno Haible  <bruno@clisp.org>
84889
84890         * lib/fatal-signal.c (fatal_signals): Make non-const.
84891         (init_fatal_signals): New function.
84892         (uninstall_handlers, install_handlers): Ignore signals that were set to
84893         SIG_IGN.
84894         (at_fatal_signal): Call init_fatal_signals.
84895         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84896         SIG_IGN.
84897         Reported by Paul Eggert.
84898
84899 2004-12-18  Bruno Haible  <bruno@clisp.org>
84900
84901         * doc/alloca.texi: New file.
84902         * doc/alloca-opt.texi: New file.
84903
84904 2004-12-17  Jim Meyering  <jim@meyering.net>
84905
84906         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84907         Otherwise, install-sh could exit with improper exit status when
84908         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84909
84910 2004-12-16  Simon Josefsson  <jas@extundo.com>
84911
84912         * tests/test-base64.c: Add license.
84913
84914 2004-12-15  Stepan Kasal  <address@hidden>
84915
84916         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84917
84918 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84919
84920         * modules/getcwd (Files): Add m4/d-ino.m4.
84921         Suggested by Mark D. Baushke.
84922
84923 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84924
84925         * lib/getdate.y (textint): New member "negative".
84926         (time_zone_hhmm): New function.
84927         Expect 14 shift-reduce conflicts, not 13.
84928         (o_colon_minutes): New rule.
84929         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84930         (yylex): Set the "negative" member of signed numbers.
84931
84932 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84933
84934         * doc/getdate.texi (Time of day items, Time zone items):
84935         Describe new formats +00:00, UTC+00:00.
84936
84937 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84938
84939         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84940         spurious "-l"s.  Problem reported by Stepan Kasal.
84941
84942 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84943
84944         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84945         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84946
84947 2004-12-04  Simon Josefsson  <jas@extundo.com>
84948
84949         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84950         Vandoorselaere <yoann@prelude-ids.org>.
84951
84952 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84953
84954         Changes imported from coreutils.
84955         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84956         exist.
84957         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84958
84959 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84960
84961         Changes imported from coreutils.
84962         * lib/hard-locale.c: Assume <locale.h> exists.
84963         Include "strdup.h".
84964         (GLIBC_VERSION): New macro.
84965         (hard_locale): Assume setlocale exists.
84966         Rewrite to avoid #ifdef.
84967         Use strdup rather than malloc + strcpy.
84968         * lib/human.c: Assume <locale.h> exists.
84969         (human_readable): Assume localeconv exists.
84970
84971 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84972
84973         * modules/hard-locale (Depends-on): Add strdup.
84974
84975 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84976
84977         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84978         convert T2, not T.  (Imported from libc.)
84979
84980 2004-11-30  Simon Josefsson  <jas@extundo.com>
84981
84982         * modules/restrict (License): Change to LGPL.
84983
84984 2004-11-30  Simon Josefsson  <jas@extundo.com>
84985
84986         * m4/restrict.m4: Add copyright and copying conditions.
84987
84988 2004-11-30  Simon Josefsson  <jas@extundo.com>
84989
84990         * m4/base64.m4: New file.
84991
84992 2004-11-30  Simon Josefsson  <jas@extundo.com>
84993
84994         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84995         base64.
84996
84997         * tests/test-base64.c: New file.
84998
84999         * modules/base64: New file.
85000
85001 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85002
85003         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
85004         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
85005
85006         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
85007
85008 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85009
85010         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
85011         (__getcwd.c): Don't restore errno; glibc doesn't.
85012         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
85013         first, falling back to our code only if its results look suspicious.
85014         Ensure that the resulting buffer is only as large as necessary.
85015
85016         * lib/readutmp.c: Include readutmp.h first.
85017         Include <errno.h>, since readutmp.h no longer does that.
85018         * lib/readutmp.h: Don't include <errno.h>,
85019         <sys/param.h>, <time.h>; not needed to establish interface.
85020         (errno): Remove decl.
85021         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
85022         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
85023         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
85024
85025 2004-11-28  Simon Josefsson  <jas@extundo.com>
85026
85027         * lib/base64.h, base64.c: New file.
85028
85029 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
85030
85031         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
85032
85033 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
85034
85035         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
85036         (Depends-on): Remove pathmax, same.  Add mempcpy.
85037         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
85038         (Makefile.am): Append getcwd.h to lib_SOURCES.
85039         (Include): Add getcwd.h.
85040         (Maintainer): Change from Jim Meyering to "all, glibc",
85041         since getdate now uses intended-for-glibc code.
85042         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
85043         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
85044
85045 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85046
85047         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
85048         HP's ANSI C compiler.
85049         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
85050         Declaring int functions causes warnings on some modern systems and
85051         shouldn't be needed to compile on ancient ones.
85052         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
85053         defined.
85054
85055         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
85056         with the following changes.
85057         (__set_errno): Parenthesize properly.
85058         Include <stdbool.h>.
85059         (MIN, MAX, MATCHING_INO): New macros.
85060         (__getcwd): Define with prototype, not K&R form.
85061         Use heuristics to allocate default buffer on stack if possible.
85062         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
85063         behavior, and to avoid the PATH_MAX limit when computing
85064         ../../../../...
85065         Use MATCHING_INO to compare inode number to file.
85066         Check for arithmetic overflow in size calculations.
85067         Fix bug in reallocation of dot array that caused getcwd to fail
85068         on directories nested deeper than 75.
85069         Be more careful about saving errno on error.
85070         Do not use realloc; use only free+malloc, as this is a bit
85071         more flexible and avoids a needless copy operation.
85072         Do not inspect st_dev and st_ino for symbolic links; POSIX
85073         doesn't specify the latter.
85074         Check for closedir errors.
85075         Avoid needless casts.
85076         Use "#ifdef weak_alias" around weak_alias, to be like other
85077         glibc code.
85078         The following changes to getcwd.c have effect only when used in
85079         gnulib; they have no effect inside glibc proper.
85080         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
85081         as alloca isn't used.
85082         (alloca, __alloca): Likewise.
85083         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
85084         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85085         unconditionally, as gnulib assumes C89 or better.
85086         Do not include <sys/param.h>.
85087         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
85088         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
85089         better.
85090         (NULL) [!defined NULL]: Remove; we assume C89 or better.
85091         Include <dirent.h> in a way that is compatible with modern Autoconf.
85092         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
85093         New macros, if not already defined.
85094         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
85095         Use "_LIBC", not "defined _LIBC", for consistency.
85096         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
85097         a mempcpy module.
85098         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
85099         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
85100         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
85101         credit only to Jim Meyering and adjust the copyright dates.
85102         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
85103         <stdlib.h>, <unistd.h>, "pathmax.h".
85104         Instead, include "xgetcwd.h" (first) and "getcwd.h".
85105         (INITIAL_BUFFER_SIZE): Remove.
85106         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
85107
85108 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85109
85110         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
85111         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
85112         Use the _ONCE methods, for efficiency.
85113         Check for fcntl.h.  In test program, include <errno.h>
85114         and <fcntl.h> if available.  Remove old K&R cruft from
85115         test program.  Check for common errors in GNU/Linux,
85116         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
85117         don't do AC_LIBOBJ, as that's getcwd.m4's job.
85118         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
85119         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
85120         name accordingly.
85121         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
85122         accommodate new getcwd.c.
85123         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
85124         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
85125         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
85126         that's all we need now.
85127
85128 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85129
85130         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
85131         argp-parse.c depends on getopt internals, that means we should
85132         always use our getopt, to be on the safe side.
85133         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
85134         order not to spoil the result of an eventual previous invocation
85135         of gl_GETOPT_SUBSTITUTE.
85136
85137 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85138
85139         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
85140         redefinition warnings. To avoid them, include the defines
85141         in `#if !defined __need_getopt ... #endif'. The only place
85142         where __getopt_argv_const is used is in definitions
85143         of getopt_long and getopt_long_only below, which are as well
85144         protected by `#ifndef __need_getopt'.
85145         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
85146         __need_getopt after including <stdio.h> and <unistd.h> These
85147         headers might have defined it.
85148
85149 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85150
85151         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
85152
85153 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85154
85155         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
85156         (futimens): New function, which uses futimes if available.
85157         (futimens, utimens): Support timespec==NULL, with same semantics
85158         as utime and utimens.
85159         * lib/utimens.h (futimens): New decl.
85160
85161 2004-11-23  Jim Meyering  <jim@meyering.net>
85162
85163         * lib/getopt_.h: Remove trailing blanks.
85164
85165 2004-11-23  Jim Meyering  <jim@meyering.net>
85166
85167         * lib/__fpending.c: Add comment.
85168
85169 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
85170
85171         * modules/canonicalize (Depends-on): Add xreadlink.
85172         Problem reported by James Youngman.
85173
85174 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
85175
85176         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
85177         New macros.
85178         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
85179         optopt): Use them instead of invoking ## directly; otherwise, the
85180         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
85181
85182 2004-11-19  Bruno Haible  <bruno@clisp.org>
85183
85184         * lib/strtok_r.c: Move comments from here...
85185         * lib/strtok_r.h: ... to here.
85186
85187 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85188
85189         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
85190         implementations that mishandle size_t overflow.
85191
85192 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85193
85194         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
85195         might fail.  Problem reported by Yoann Vandoorselaere.
85196         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
85197         implementations that mishandle size_t overflow.
85198
85199 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85200
85201         * modules/canon-host (Depends-on): Add strdup.
85202
85203 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85204
85205         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
85206
85207 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85208
85209         * lib/canon-host.c: Include "strdup.h".
85210         (canon_host): Use getaddrinfo if available, so that IPv6 works.
85211         Use strdup instead of malloc/strcpy to duplicate strings.
85212
85213         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
85214         (human_space_before_unit): New constant.
85215         * lib/human.c (human_readable): Support it.
85216
85217         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
85218         (xgetcwd): Set errno correctly when failing.
85219         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
85220         the failure is actually due to a PATH_MAX problem.
85221
85222         Further getopt changes to make it more likely that glibc will
85223         buy the changes back.
85224         * lib/getopt.c (POSIXLY_CORRECT): New constant.
85225         (getopt): Use it, so to preserve glibc semantic
85226         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
85227         when compiling for libc.
85228         * lib/getopt_.h (__getopt_argv_const): Bring it back.
85229         (getopt_long, getopt_long_only): Use it.
85230
85231         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85232         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
85233         (getopt): Argv is now char * const *, as per standard.
85234         (_getopt_internal_r, _getopt_internal): Argv is now char **,
85235         not char *__getopt_argv_const *.
85236         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85237         _getopt_long_only_r): Likewise.
85238         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
85239         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85240         _getopt_long_r, _getopt_long_only_r): Likewise.
85241         * lib/getopt_.h (__getopt_argv_const): Remove.
85242         (getopt): Argv is now char * const *, as per standard.
85243
85244         * lib/getdate.y (tORDINAL): New token.
85245         (day, relunit): Allow it for relative times.
85246         (relative_time_table): Use tORDINAL for ordinals.
85247
85248 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85249
85250         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
85251         Document that "second" isn't allowed as an ordinal number.
85252
85253 2004-11-16  Jim Meyering  <jim@meyering.net>
85254
85255         * modules/closeout (Depends-on): Add fpending.
85256
85257 2004-11-15  Jim Meyering  <jim@meyering.net>
85258
85259         * lib/closeout.c: Include "__fpending.h" once again.
85260         Include <stdbool.h>.
85261         (close_stdout): Don't fail just because stdout was closed initially,
85262         since some programs don't write to stdout in the normal course of
85263         operation (other than --version and --help), and we don't want this
85264         function to make e.g. `touch file >&-' fail.
85265         But do fail if it was closed and someone has tried to write to it.
85266         E.g., `printf foo >&-' must fail.
85267
85268 2004-11-13  Jim Meyering  <jim@meyering.net>
85269
85270         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
85271
85272 2004-11-12  Simon Josefsson  <jas@extundo.com>
85273
85274         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
85275         small doc fix is still pending.
85276
85277 2004-11-11  Simon Josefsson  <jas@extundo.com>
85278
85279         * modules/strtok_r: New file.
85280
85281         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85282         strtok_r.
85283
85284 2004-11-11  Simon Josefsson  <jas@extundo.com>
85285
85286         * m4/strtok_r.m4: New file.
85287
85288         * m4/getopt.m4: Replace opterr.
85289
85290 2004-11-11  Simon Josefsson  <jas@extundo.com>
85291
85292         * lib/strtok_r.h, strtok_r.c: New file.
85293
85294 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85295
85296         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
85297         of replacing opterr, getopt, etc.  This should handle the
85298         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
85299
85300 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85301
85302         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
85303         we can stop lying to compilers about the constness of argv when we
85304         are compiled outside glibc.
85305         (getopt, getopt_long, getopt_long_only): Use it.
85306         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85307         _getopt_internal, getopt): Likewise.
85308         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85309         _getopt_long_only_r): Likewise.
85310         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85311         _getopt_long_r, _getopt_long_only_r): Likewise.
85312
85313         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
85314         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
85315         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
85316         the other external symbols.
85317         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
85318         declaration, since the above renaming now works around collisions.
85319
85320 2004-11-11  Jim Meyering  <jim@meyering.net>
85321
85322         * lib/linebreak.c: Remove trailing blanks.
85323         * lib/alloca_.h: Likewise.
85324         * lib/acosl.c: Likewise.
85325         * lib/euidaccess.c: Likewise.
85326         * lib/allocsa.h: Likewise.
85327
85328 2004-11-10  Simon Josefsson  <jas@extundo.com>
85329
85330         * m4/getaddrinfo.m4: New file.
85331
85332 2004-11-10  Simon Josefsson  <jas@extundo.com>
85333
85334         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
85335
85336 2004-11-10  Simon Josefsson  <jas@extundo.com>
85337
85338         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85339         getaddrinfo.
85340
85341         * modules/getaddrinfo: New file.
85342
85343 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85344
85345         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
85346
85347 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85348
85349         * lib/mktime.c (SHR): New macro, which is a portable
85350         substitute for >> that should work even on Crays.
85351         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
85352         Problem reported by Mark D. Baushke in
85353         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
85354         * lib/getdate.y (SHR): Likewise.
85355         (tm_diff): Use it.
85356         * lib/strftime.c (SHR): Likewise.
85357         (tm_diff): Use it.
85358         * lib/quotearg.c (struct quoting_options): Use unsigned int for
85359         quote_these_too, so that right shifts are well defined.  All uses
85360         changed.
85361
85362 2004-11-10  Jim Meyering  <jim@meyering.net>
85363
85364         Ensure that no close failure goes unreported.
85365         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
85366         return early when it seems there's nothing to flush.
85367         Don't include __fpending.h.
85368
85369 2004-11-10  Jim Meyering  <jim@meyering.net>
85370
85371         * modules/closeout (Depends-on): Remove fpending.
85372
85373 2004-11-10  Jim Meyering  <jim@meyering.net>
85374
85375         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
85376
85377 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85378
85379         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
85380         gl_FUNC_STRFTIME.
85381         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
85382         and AC_REQUIRE when possible, to avoid duplicate checks.
85383         Check for <wchar.h>.
85384
85385 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85386
85387         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
85388
85389 2004-11-09  Bruno Haible  <bruno@clisp.org>
85390
85391         * m4/sockpfaf.m4: New file.
85392
85393 2004-11-05  Bruno Haible  <bruno@clisp.org>
85394
85395         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
85396         Reported by Mark D. Baushke <mdb@cvshome.org>.
85397
85398 2004-11-04  Bruno Haible  <bruno@clisp.org>
85399
85400         2004-09-11  Bruno Haible  <bruno@clisp.org>
85401                 * allocsa.valgrind: New file.
85402         2004-02-06  Bruno Haible  <bruno@clisp.org>
85403                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
85404                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
85405                 Reported by Christopher Seip <chris.seip@hp.com>.
85406
85407 2004-11-04  Bruno Haible  <bruno@clisp.org>
85408
85409         * modules/allocsa (Files): Add lib/allocsa.valgrind.
85410         (Makefile.am): Distribute it.
85411
85412 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
85413
85414         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
85415         with errno == ERANGE if the buffer is too small.
85416         Problem reported by Mark D. Baushke.
85417
85418 2004-11-03  Albert Chin  <china@thewrittenword.com>
85419             Paul Eggert  <eggert@cs.ucla.edu>
85420
85421         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
85422         equivalent, substitute $ac_type for equivalent type rather than
85423         blindly using uint32_t *always* which won't work if uint32_t is not
85424         available.  Define _UINT32_T to work around typedef of uint32_t if
85425         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
85426         2.5.1.
85427
85428 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85429
85430         * m4/jm-macros.m4: Sync from coreutils.
85431         (gl_MACROS): Check for mbrlen, for pathchk.
85432         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
85433
85434 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85435
85436         * lib/xreadlink.c (MAXSIZE): New macro.
85437         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
85438         size does not exceed MAXSIZE.  Avoid cast.
85439         As suggested by Mark D. Baushke in
85440         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
85441         if readlink fails with buffer size just under MAXSIZE, try again
85442         with MAXSIZE.
85443
85444 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85445
85446         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
85447
85448 2004-11-02  Derek R. Price  <derek@ximbiot.com>
85449         and  Paul Eggert  <eggert@cs.ucla.edu>
85450
85451         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
85452         (get_date): Overparenthesize to avoid GCC warning.
85453
85454 2004-11-02  Bruno Haible  <bruno@clisp.org>
85455
85456         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
85457         returns void.
85458
85459 2004-11-02  Bruno Haible  <bruno@clisp.org>
85460
85461         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
85462         function returns void.
85463
85464 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85465
85466         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
85467         fflush_unlocked, flockfile, funlockfile, funlockfile,
85468         fputs_unlocked, putc_unlocked.
85469
85470 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85471
85472         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85473         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
85474         already declared.
85475
85476 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85477
85478         * modules/getdate (Files): Add doc/getdate.texi.
85479         (Depends-on): Add setenv, xalloc.
85480
85481 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85482
85483         * lib/getdate.y: Add support for TZ="foo" within a date string.
85484         Fix some bugs near time_t boundaries.  Reject dates with
85485         out-of-range components, e.g., "Sept 31".
85486         Include <stdlib.h>, "setenv.h", "xalloc.h".
85487         (ISDIGIT_LOCALE): Remove; unused.
85488         Note that the TZ and time functions used here are not reentrant.
85489         (mktime_ok, get_tz): New functions.
85490         (TZBUFSIZE): New constant.
85491         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
85492         This requires that we sometimes generate our own TZ="XXX..." setting.
85493
85494 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85495
85496         * doc/getdate.texi: New file, from coreutils with modifications for
85497         the new TZ parsing.
85498
85499 2004-10-27  Derek R. Price  <derek@ximbiot.com>
85500
85501         * lib/mktime.c (not_equal_tm): Remove redundant check.
85502
85503 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85504
85505         * modules/regex (lib_SOURCES): Add regex.c.
85506         Reported by James Youngman in
85507         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
85508
85509 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85510
85511         * lib/getdate.y: Use Bison 1.875 features, and some minor
85512         code cleanups.  This change does not affect semantics.
85513         Don't include <stdlib.h>; no longer needed.
85514         Don't include unlocked-io.h; only the "#if TEST" code uses
85515         stdio, and performance isn't crucial there.
85516         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
85517         Bison 1.875 features as described below.
85518         All uses of "PC." replaced by "pc->".
85519         (YYSTYPE): Add a forward declaration.
85520         (yylex, yyerror): Use full prototypes in forward decls.
85521         Use "%pure-parser" rather than obsolescent "%pure_parser".
85522         Use %parse-param and %lex-param instead of obsolescent
85523         YYPARSE_PARAM and YYLEX_PARAM.
85524         (meridian_table, month_and_day_table, time_units_table,
85525         relative_time_table, time_zone_table, military_table,
85526         lookup_zone, lookup_word, get_date):
85527         Use NULL instead of 0 where appropriate.
85528         (to_hour): Avoid abort (), to avoid a dependency on
85529         stdlib.h.
85530         (yyerror, yylex): Now accepts parser_control * arg.
85531         (main) [TEST]: Use '\0' rather than 0 for char.
85532
85533 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85534
85535         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
85536
85537 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85538
85539         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
85540         It's now the caller's responsibility to handle the case where
85541         !HAVE_GETPAGESIZE && !defined getpagesize.
85542
85543         * lib/mktime.c (leapyear): Arg is long int, not int.
85544
85545 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
85546
85547         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
85548
85549 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
85550
85551         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
85552         missing.  Problem reported by James Youngman.
85553
85554 2004-10-16  Simon Josefsson  <jas@extundo.com>
85555
85556         * gnulib-tool: Fix comments.  Fix parse problem.
85557         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85558
85559 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85560
85561         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85562         implementation of getopt_long.  Problem reported by Alexander Taler in:
85563         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85564
85565 2004-10-15  Bruno Haible  <bruno@clisp.org>
85566
85567         * gnulib-tool: Untabify. Initialize supplied_libname.
85568         (func_usage): More homogenous output.
85569         (func_modules_transitive_closure, func_modules_to_filelist,
85570         func_emit_lib_Makefile_am): New functions.
85571         (func_import): New function, extracted from big case statement. Use
85572         func_get_license, func_modules_transitive_closure,
85573         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85574         opt_lgpl. Don't use test -a, as it's not portable.
85575         (func_create_testdir): Use func_modules_transitive_closure,
85576         func_modules_to_filelist, func_emit_lib_Makefile_am.
85577
85578 2004-10-15  Bruno Haible  <bruno@clisp.org>
85579
85580         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85581
85582 2004-10-15  Bruno Haible  <bruno@clisp.org>
85583
85584         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85585         the portions belonging to each module.
85586         Suggested by Derek Robert Price <derek@ximbiot.com>.
85587
85588 2004-10-12  Simon Josefsson  <jas@extundo.com>
85589
85590         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85591         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85592         to real functions.
85593
85594 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85595
85596         * modules/vsnprintf: New file.
85597
85598 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85599
85600         * m4/vsnprintf.m4: New file.
85601
85602 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85603
85604         * lib/vsnprintf.h: New file.
85605         * lib/vsnprintf.c: New file.
85606
85607 2004-10-11  Bruno Haible  <bruno@clisp.org>
85608
85609         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85610         vsnprintf.
85611
85612 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85613
85614         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85615
85616 2004-10-07  Bruno Haible  <bruno@clisp.org>
85617
85618         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85619         fits into the provided buffer.
85620
85621 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85622
85623         * lib/diacrit.c, diacrit.h: Add GPL notice.
85624
85625         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85626         notice.
85627         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85628         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85629         This avoids a potential constant-folding bug.
85630
85631 2004-10-05  Bruno Haible  <bruno@clisp.org>
85632
85633         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85634         for the declaration of strsep.
85635
85636 2004-10-05  Bruno Haible  <bruno@clisp.org>
85637
85638         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85639
85640 2004-10-04  Simon Josefsson  <jas@extundo.com>
85641
85642         * modules/memmem: New file.
85643         * tests/test-memmem.c: New file.
85644         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85645
85646 2004-10-04  Simon Josefsson  <jas@extundo.com>
85647
85648         * m4/memmem.m4: New file.
85649
85650 2004-10-04  Simon Josefsson  <jas@extundo.com>
85651
85652         * lib/memmem.h: New file.
85653         * lib/memmem.c: New file, taken from glibc.
85654
85655 2004-10-04  Simon Josefsson  <jas@extundo.com>
85656
85657         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85658         '#ifdef USE_UNLOCKED_IO'.
85659
85660 2004-10-04  Simon Josefsson  <jas@extundo.com>
85661
85662         * config/srclist.txt: Add memmem from glibc.
85663
85664 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85665
85666         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85667
85668         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85669         modules/exclude, modules/getdate, modules/getline,
85670         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85671         modules/getusershell, modules/linebuffer, modules/md5,
85672         modules/mountlist, modules/posixtm, modules/readtokens,
85673         modules/readutmp, modules/regex, modules/sha1,
85674         modules/version-etc, modules/yesno:
85675         Remove dependency on unlocked-io.
85676
85677 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85678
85679         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85680
85681         * m4/unlocked-io.m4: Add copyright notice.
85682         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85683
85684 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85685
85686         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85687         * lib/xmalloc.c (xmemdup): Likewise.
85688         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85689         XFREE): Remove these long-obsolescent macros.
85690         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85691         * lib/xstrdup.c: Remove.
85692
85693         * lib/regex.c (re_comp): Cast gettext return value to char *,
85694         Problem reported by Martin Neitzel via Mark D. Baushke.
85695
85696 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85697
85698         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85699         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85700         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85701         regex.c, sha1.c, version-etc.c, yesno.c:
85702         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85703         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85704         the includer's responsibility.
85705
85706         Sync from coreutils.
85707
85708         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85709         points to the start of a string, as the C Standard says the
85710         resulting behavior is undefined.
85711
85712         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85713         simple -> simple_backups, numbered_existing ->
85714         numbered_existing_backups, numbered -> numbered_backups
85715         to avoid shadowing problems.  All uses changed.
85716         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85717         * lib/backupfile.c (check_extension, numbered_backup):
85718         Rename locals to avoid shadowing 'basename'.
85719         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85720         once.
85721
85722         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85723         * lib/.cvsignore: Add getopt.h.
85724
85725 2004-10-04  Bruno Haible  <bruno@clisp.org>
85726
85727         * modules/README: New file.
85728         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85729         not a module.
85730
85731 2004-10-02  Jim Meyering  <jim@meyering.net>
85732
85733         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85734
85735 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85736
85737         * modules/strsep: New file.
85738
85739 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85740
85741         * m4/strsep.m4: New file.
85742
85743 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85744
85745         * lib/strsep.h: New file.
85746         * lib/strsep.c: New file.
85747
85748 2004-10-01  Simon Josefsson  <jas@extundo.com>
85749
85750         * lib/snprintf.c (snprintf): Handle size==0.
85751
85752 2004-10-01  Simon Josefsson  <jas@extundo.com>
85753             Bruno Haible  <bruno@clisp.org>
85754
85755         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85756         (snprintf): Declare 'args'.
85757
85758 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85759
85760         * lib/snprintf.c: Remove comments as to why each header is needed.
85761
85762 2004-10-01  Bruno Haible  <bruno@clisp.org>
85763
85764         * MODULES.html.sh: Add strsep.
85765
85766 2004-09-30  Simon Josefsson  <jas@extundo.com>
85767
85768         * modules/snprintf: New file.
85769
85770 2004-09-30  Simon Josefsson  <jas@extundo.com>
85771
85772         * m4/snprintf.m4: New file.
85773
85774 2004-09-30  Simon Josefsson  <jas@extundo.com>
85775
85776         * lib/snprintf.h, lib/snprintf.c: New files.
85777
85778 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85779
85780         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85781         (hol_entry_help): Never translate an empty string.
85782         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85783         * lib/argp.h (OPTION_NO_TRANS): New option.
85784
85785 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85786
85787         * modules/argp (Maintainer): Replace Simon Josefsson
85788         by Sergey Poznyakoff.
85789
85790 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85791
85792         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85793         changes merged back into glibc.
85794
85795 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85796
85797         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85798
85799 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85800
85801         * lib/xvasprintf.c: Include xalloc.h.
85802         (xvasprintf): Use xalloc_die, not xmalloc_die.
85803
85804 2004-09-29  Bruno Haible  <bruno@clisp.org>
85805
85806         * modules/alloca-opt: New file, derived from modules/alloca.
85807         * modules/allocsa: Depend on alloca-opt instead of alloca.
85808         * modules/setenv: Likewise.
85809         * modules/vasnprintf: Likewise.
85810         * MODULES.html.sh: Add alloca-opt.
85811
85812 2004-09-28  Simon Josefsson  <jas@extundo.com>
85813
85814         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85815         LGPL, and to replace license template from GPL to LGPL.
85816
85817 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85818
85819         * modules/dummy: Change license to LGPL.
85820
85821 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85822
85823         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85824
85825 2004-09-24  Simon Josefsson  <jas@extundo.com>
85826
85827         * modules/minmax (License): Change from GPL to LGPL.
85828
85829 2004-09-23  Simon Josefsson  <jas@extundo.com>
85830
85831         * gnulib-tool (--import): Typo.
85832
85833 2004-09-23  Simon Josefsson  <jas@extundo.com>
85834
85835         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85836
85837 2004-09-22  Bruno Haible  <bruno@clisp.org>
85838
85839         * modules/*: Add 'License' field.
85840         * gnulib-tool: Accept --extract-license option.
85841         (func_get_license): New function.
85842
85843 2004-09-21  Bruno Haible  <bruno@clisp.org>
85844
85845         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85846         Reported by Simon Josefsson.
85847
85848 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85849
85850         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85851         gl_AC_TYPE_LONG_LONG.
85852
85853 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85854
85855         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85856
85857 2004-09-18  Simon Josefsson  <jas@extundo.com>
85858         and  Paul Eggert  <eggert@cs.ucla.edu>
85859
85860         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85861         calls with autoreconf.  Define GL_LIB.
85862
85863 2004-09-14  Karl Berry  <karl@gnu.org>
85864
85865         * config/srclist.txt: unsync setenv.c, sigh.
85866
85867 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85868
85869         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85870         Problem reported by Bruno Haible in:
85871         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85872
85873 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85874
85875         * config/srclist.txt: Comment out argp-pvh.c.
85876
85877 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85878
85879         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85880         in case some system header has #define'd it.  Problem reported by
85881         Soeren D. Schulze in
85882         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85883
85884 2004-09-09  Karl Berry  <karl@gnu.org>
85885
85886         * regex.[ch]: delete from the root.  These were supposed to be
85887                 synced with emacs cvs, but this has not happened for about
85888                 a year, and anyway nothing else uses emacs regex.[ch].
85889                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85890                 lib/regex[.ch] is untouched.
85891
85892 2004-09-09  Bruno Haible  <bruno@clisp.org>
85893
85894         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85895
85896 2004-09-09  Bruno Haible  <bruno@clisp.org>
85897
85898         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85899         modifications.
85900         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85901
85902 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85903
85904         * modules/xvasprintf: New file.
85905         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85906
85907 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85908
85909         * lib/xvasprintf.h: New file.
85910         * lib/xvasprintf.c: New file.
85911         * lib/xasprintf.c: New file.
85912
85913 2004-09-08  Bruno Haible  <bruno@clisp.org>
85914
85915         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85916
85917 2004-09-08  Bruno Haible  <bruno@clisp.org>
85918
85919         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85920         length is > INT_MAX.
85921         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85922         more.
85923
85924 2004-09-08  Bruno Haible  <bruno@clisp.org>
85925
85926         * lib/stdint_.h: New file, taken from GNU clisp.
85927
85928 2004-09-08  Bruno Haible  <bruno@clisp.org>
85929             Oskar Liljeblad  <oskar@osk.mine.nu>
85930
85931         * modules/stdint: New file.
85932         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85933
85934 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85935
85936         Import from coreutils.
85937         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85938         strings on unbounded length.  alloca's performance benefits aren't
85939         that important here.
85940         (V_STRDUP): Remove.
85941         (parse_with_separator): New function, with most of the internals
85942         of the old parse_user_spec.  Allow user to omit both user and group,
85943         for compatibility with FreeBSD.
85944         Clone only the user name, not the entire spec.
85945         Do not set *uid, *gid unless entirely successful.
85946         Avoid memory leak in some failing cases.
85947         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85948         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85949         (parse_user_spec): Rewrite to use parse_with_separator.
85950
85951 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85952
85953         * modules/userspec: Don't depend on alloca.
85954
85955 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85956
85957         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85958
85959 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85960
85961         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85962         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85963         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85964
85965 2004-08-16  Simon Josefsson  <jas@extundo.com>
85966
85967         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85968         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85969         Add --dry-run for --import.
85970         Let user provided command line parameters override configure.ac
85971         settings.
85972
85973 2004-08-12  Simon Josefsson  <jas@extundo.com>
85974
85975         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85976         as discussed with Paul Eggert in threads rooted at
85977         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85978         and
85979         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85980         Before, the test was empty, and relied on ELIDE_CODE in source
85981         code.)
85982         (gl_PREREQ_GETOPT): New macro.
85983         (gl_GETOPT): Use them.
85984
85985 2004-08-12  Simon Josefsson  <jas@extundo.com>
85986
85987         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85988         * lib/getopt_.h: Renamed from getopt.h.
85989
85990 2004-08-12  Simon Josefsson  <jas@extundo.com>
85991
85992         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85993         Change default library name from libfoo to libgnu.
85994         Now, if you have a configure.ac that says:
85995                 gl_SOURCE_BASE(gl)
85996                 gl_M4_BASE(gl/m4)
85997                 gl_MODULES(error getopt etcetera)
85998                 gl_INIT
85999         you can import all you need by running:
86000                 ../gnulib/gnulib-tool --import
86001
86002         * modules/getopt (Files): Rename getopt.h to getopt_.h.
86003         (Makefile.am): Rewrite, use logic from argz.
86004         (Include): Use <getopt.h> instead of "getopt.h".
86005
86006 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86007
86008         * modules/argp (Files): Add m4/unlocked-io.m4.
86009         (Depends-on): Add extensions.
86010
86011 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86012
86013         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
86014         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
86015         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
86016         Check for program_invocation_name, program_invocation_short_name,
86017         flockfile, funlockfile, features.h, _getopt_long_only_r.
86018
86019 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86020
86021         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
86022         its complicated substitute.
86023         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
86024         and program_invocation_name.
86025         (__argp_basename) [!_LIBC]: Remove; the only use was
86026         replaced by its body.
86027         (__argp_short_program_name): Change condition from
86028         !defined __argp_short_program_name to
86029         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
86030         to match argp-namefrob.h.
86031         (__argp_failure): Don't assume strerror_r returns char *.
86032         * lib/argp-parse.c (N_): Define unconditionally.
86033         (argp_default_options): Fill out initializers with 0 to avoid
86034         gcc warnings.
86035
86036 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86037
86038         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
86039         getopt1.c.
86040
86041 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86042
86043         Merge from coreutils.
86044
86045         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
86046
86047         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
86048         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
86049
86050 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86051
86052         Merge from coreutils.
86053
86054         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
86055         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
86056         for Reliant Unix 5.43.
86057
86058         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
86059         (union fooround): Use uintmax_t, not long int.
86060         The rest is a merge from libc:
86061         [defined _LIBC]: Include <shlib-compat.h>.
86062         (_obstack) [defined _LIBC]: Remove after 2.3.4.
86063
86064         * lib/settime.c (settime): Recode to avoid warning with
86065         Sun Forte C 6U2.
86066
86067         * lib/strverscmp.c: Convert to UTF-8.
86068
86069 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86070
86071         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86072         m4/uintmax_t.m4.
86073
86074 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86075
86076         * modules/xalloc-die: New file.
86077         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
86078
86079         * modules/md5 (Files): Add m4/uint32_t.m4.
86080         * modules/sha1: Renamed from modules/sha.
86081         (Files):
86082         Rename lib/sha.h to lib/sha1.h.
86083         Rename lib/sha.c to lib/sha1.c.
86084         Rename m4/sha.m4 to m4/sha1.m4.
86085         (lib_SOURCES): Likewise.
86086         (configure.ac): Rename gl_SHA to gl_SHA1.
86087         (Include): sha.h -> sha1.h.
86088
86089 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86090
86091         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
86092         * m4/sha1.m4: Renamed from sha.m4.
86093         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
86094
86095 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86096
86097         * lib/obstack.h (obstack_empty_p):
86098         Don't assume that chunk->contents is suitably aligned.
86099         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
86100         Likewise. Problem reported by Benno in
86101         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
86102
86103         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
86104         readable.  This could be improved further but it'd take some work.
86105
86106 2004-08-08  Simon Josefsson  <jas@extundo.com>
86107
86108         * modules/xgethostname (Depends-on): Remove exit and error (not
86109         used).
86110
86111         * modules/getpass-gnu: Add getpass.h.
86112         (Depends-on): Add stdbool.
86113         * modules/getpass: Add getpass.h.
86114
86115 2004-08-08  Simon Josefsson  <jas@extundo.com>
86116
86117         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
86118         Check getpass declaration.
86119
86120 2004-08-08  Simon Josefsson  <jas@extundo.com>
86121
86122         * lib/xgethostname.c: Don't include error.h (not used).
86123
86124         * lib/getpass.h: Add.
86125         * lib/getpass.c: Include getpass.h first.
86126
86127 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
86128
86129         * lib/xalloc-die.c: New file.
86130         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
86131         All uses removed.
86132         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
86133         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
86134         xalloc-die.c.
86135         (_, N_, xalloc_die): Move to xalloc-die.c.
86136         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
86137         so that we needn't mess with xalloc_msg_memory_exhausted.
86138
86139         * lib/sha1.h: Renamed from sha.h.
86140         (SHA1_H): Renamed from _SHA_H.
86141         (sha1_ctx): Renamed from sha_ctx.
86142         (sha1_init_ctx): Renamed from sha_init_ctx.
86143         (sha1_process_block): Renamed from sha_process_block.
86144         (sha1_process_bytes): Renamed from sha_process_bytes.
86145         (sha1_finish_ctx): Renamed from sha_finish_ctx.
86146         (sha1_read_ctx): Renamed from sha_read_ctx.
86147         (sha1_stream): Renamed from sha_stream.
86148         (sha1_buffer): Renamed from sha_buffer.
86149         * lib/sha1.c: Likewise; renamed from sha.c.
86150         Do not include <sys/types.h>.
86151         Include <stddef.h> rather than <stdlib.h>.
86152
86153 2004-08-08  Bruno Haible  <bruno@clisp.org>
86154
86155         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
86156         FILESYSTEM_PREFIX_LEN.
86157         * lib/progreloc.c: Likewise.
86158         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
86159
86160 2004-08-06  Simon Josefsson  <jas@extundo.com>
86161
86162         * modules/progname (Depends-on): Don't depend on stdbool.
86163
86164 2004-08-06  Simon Josefsson  <jas@extundo.com>
86165
86166         * modules/getsubopt: New file.
86167         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86168         getsubopt.
86169
86170 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86171
86172         More merge from coreutils.
86173
86174         * m4/utimens.m4, m4/utimecmp.m4: New files.
86175         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
86176         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
86177         prereq.m4, sha.m4: Import changes from coreutils.
86178
86179 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86180
86181         More merge from coreutils.
86182         * modules/raise, modules/readtokens0, modules/utimens:
86183         * modules/utimecmp, module/xnanosleep: New files.
86184         * modules/strftime: Add lib/strftime.h.
86185         Change include from <time.h> to "strftime.h".
86186         * modules/yesno: Add lib/yesno.h.
86187         * modules/backupfile: Remove lib/addext.c.
86188         * modules/euidaccess: Add stat-macros.h.
86189         * modules/canonicalize, modules/euidaccess,
86190         modules/filemode, modules/lchown, modules/makepath,
86191         modules/rmdir, modules/stat: Likewise.
86192
86193 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86194
86195         Merge from tar.
86196         * lib/argp-help.c (make_hol, hol_append): Don't assume that
86197         SIZE_MAX is a valid preprocessor constant.
86198         (__argp_basename): Change from "#ifndef _LIBC"
86199         to "#ifndef __argp_short_program_name", so that
86200         we don't compile these functions for tar.
86201
86202         More merges from coreutils.
86203         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
86204         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
86205         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
86206         * lib/addext.c: Remove; no longer needed.
86207         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
86208         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
86209         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
86210         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
86211         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
86212         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
86213         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
86214         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
86215         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
86216         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86217         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
86218         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
86219         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
86220         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
86221         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
86222         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
86223         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
86224         Import changes from coreutils.
86225
86226 2004-08-05  Simon Josefsson  <jas@extundo.com>
86227
86228         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
86229
86230 2004-08-05  Simon Josefsson  <jas@extundo.com>
86231
86232         * m4/getsubopt.m4: New file.
86233
86234 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86235
86236         Merge from coreutils.
86237
86238         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
86239         * m4/getcwd-path-max.m4: New files.
86240
86241         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
86242         FILESYSTEM_PREFIX_LEN ->
86243         FILE_SYSTEM_PREFIX_LEN.
86244         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
86245         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
86246         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
86247         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
86248
86249         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
86250         prerequisite modules now handle the DOS stuff.
86251         Don't check for unistd.h.
86252
86253 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86254
86255         Merge from coreutils.
86256
86257         * lib/.gdb-history: Remove; this doesn't belong here.
86258
86259         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
86260         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
86261         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
86262         * lib/getcwd.c: New files.
86263
86264         * lib/dirname.h: Include <stdbool.h>.
86265         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
86266         for consistency with POSIX terminology.  All uses changed.
86267         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
86268         (strip_trailing_slashes): Use bool for booleans.
86269         * lib/stripslash.c (strip_trailing_slashes): Likewise.
86270
86271         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
86272         sometimes returns a positive errno value even when it succeeds.
86273         (print_errno_message) [!LIBC]: Fall back on strerror if
86274         __strerror_r fails.
86275
86276         * lib/path-concat.c (mempcpy): Don't define if a system header defines
86277         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
86278         (longest_relative_suffix): New function.
86279         (path_concat): Use it.  Assume first argument is not NULL.
86280         Port to DOS.  Omit redundant separators.
86281         Report an error instead of returning NULL.
86282         Use mempcpy instead of memcpy.
86283         (xpath_concat): Remove: not declared or used.
86284
86285         * lib/same.h: Include <stdbool.h>
86286         (same_name): Return bool, not int.
86287         * lib/same.c (same_name): Likewise.
86288         (errno): Don't declare; we assume C89 or better now.
86289
86290         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
86291         if not already defined.
86292
86293         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
86294         * lib/dup-safer.c (errno): Likewise.
86295
86296 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86297
86298         Merge from coreutils.
86299         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
86300         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
86301         * modules/path-concat: Don't depend on strdup.
86302
86303 2004-08-03  Simon Josefsson  <jas@extundo.com>
86304
86305         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
86306         * lib/progname.h: Don't include stdbool.h.
86307
86308 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86309
86310         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
86311         * MODULES.html.sh (func_all_modules): Remove fatal.
86312
86313 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86314
86315         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
86316
86317 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86318
86319         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
86320         working.
86321
86322 2004-08-02  Simon Josefsson  <jas@extundo.com>
86323
86324         * lib/getsubopt.h: New file, with comments from Bruno Haible.
86325         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
86326         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
86327
86328 2004-08-01  Simon Josefsson  <jas@extundo.com>
86329
86330         * lib/xgetdomainname.c: Include stdlib.h, for free().
86331
86332 2004-07-19  Bruno Haible  <bruno@clisp.org>
86333
86334         * MODULES.html.sh (func_all_modules): Add dummy.
86335
86336 2004-07-16  Simon Josefsson  <jas@extundo.com>
86337
86338         * modules/dummy: New file.
86339
86340 2004-07-16  Simon Josefsson  <jas@extundo.com>
86341
86342         * lib/dummy.c: New file.
86343
86344 2004-07-16  Bruno Haible  <bruno@clisp.org>
86345
86346         * lib/backupfile.h: Add extern "C" for C++.
86347         * lib/closeout.h: Likewise.
86348         * lib/copy-file.h: Likewise.
86349         * lib/findprog.h: Likewise.
86350         * lib/full-write.h: Likewise.
86351         * lib/pathname.h: Likewise.
86352         * lib/progname.h: Likewise.
86353         * lib/stpcpy.h: Likewise.
86354         * lib/stpncpy.h: Likewise.
86355         * lib/strcase.h: Likewise.
86356         * lib/strstr.h: Likewise.
86357         * lib/xalloc.h: Likewise.
86358
86359         * lib/mbswidth.h: Add extern "C" for C++.
86360         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
86361
86362 2004-07-13  Robert Millan  <robertmh@gnu.org>
86363
86364         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
86365
86366 2004-07-09  Simon Josefsson  <jas@extundo.com>
86367
86368         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
86369         failed without this.)
86370
86371 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86372
86373         * modules/chown (Files): Add lib/fchown-stub.c, since
86374         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
86375
86376 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86377
86378         * lib/fchown-stub.c: New file.
86379
86380 2004-06-24  Jim Meyering  <jim@meyering.net>
86381
86382         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
86383
86384 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86385
86386         * modules/argz: Omit "#include".
86387
86388         * MODULES.html.sh (func_all_modules): Add calloc, to match
86389         2004-06-01 addition of calloc module.
86390
86391 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86392
86393         * m4/argz.m4: New file, which is autoupdated from libtool.
86394
86395 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86396
86397         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
86398         libtool.
86399
86400 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86401
86402         * config/srclist-update: Don't insist on "USA." before the
86403         close-comment, as libtool omits the period and puts the */ on a
86404         separate line.
86405         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
86406         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
86407
86408 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
86409
86410         * modules/argz: New file.
86411         * MODULES.html.sh (func_all_modules): Add argz.
86412
86413 2004-06-12  Jim Meyering  <jim@meyering.net>
86414         and  Paul Eggert  <eggert@cs.ucla.edu>
86415
86416         * modules/hash (Files): Add lib/xalloc.h.
86417         * modules/pipe (Depends-on): Add wait-process.
86418         * modules/stat (Depends-on): Add xalloc.
86419         * modules/userspec (Files): Add lib/userspec.h.
86420         * modules/xstrto
86421
86422         Upgrade from gettext-0.13.
86423         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
86424         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
86425         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
86426
86427 2004-06-10  Jim Meyering  <jim@meyering.net>
86428
86429         * lib/calloc.c: New file.
86430
86431 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
86432
86433         * lib/getdate.y (yylex): Allow space between sign and number.
86434         Problem reported by Dan Jacobson.
86435
86436 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86437
86438         Merge from coreutils CVS.
86439
86440         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
86441         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
86442         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
86443         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
86444         xstrtol.m4: Fix copyright date and/or serial number.
86445
86446         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
86447         See if we need an fchown replacement.
86448         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
86449         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
86450         and use the replacement function if we detect either defect.
86451
86452         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
86453         gl_UTIMECMP.
86454
86455 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86456         and  Jim Meyering  <jim@meyering.net>
86457
86458         Merge from coreutils CVS.
86459
86460         * lib/stat-macros.h: New file, with contents from file-type.h
86461         and coreutils' system.h.
86462         * lib/file-type.c: Include "stat-macros.h".
86463         * lib/file-type.h (file_type): Move all macro definitions to new file,
86464         stat-macros.h.
86465
86466         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
86467         Wrap old code with this conditional.
86468         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
86469         function that does not dereference symlinks.
86470         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
86471
86472         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
86473         dependency problems.
86474         (xreadlink): Accept new arg SIZE, for efficiency.
86475         All decls and uses changed.
86476         * lib/xreadlink.h: Include <stddef.h>, for size_t.
86477
86478         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
86479         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
86480
86481         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
86482         sysexits.h.
86483
86484 2004-06-01  Jim Meyering  <jim@meyering.net>
86485
86486         * m4/calloc.m4: New file.
86487
86488 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
86489
86490         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
86491         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
86492         Also, fix a typo in a diagnostic.
86493
86494 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86495
86496         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
86497         or AC_FUNC_REALLOC.
86498
86499 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86500
86501         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
86502         macros to be defined.
86503         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
86504         the allocator returns NULL because the requested size is zero.
86505
86506 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86507
86508         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
86509         var.  Add comment explaining why libc still defines it.  This
86510         merges the following patch from glibc:
86511         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
86512
86513 2004-05-20  Andreas Schwab  <schwab@suse.de>
86514
86515         * m4/free.m4: Replace free if it not known to work, not the other
86516         way round.
86517
86518 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
86519
86520         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
86521         present in glibc since revision 1.1 of this file.
86522         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
86523         obstack_alignment_mask, obstack_alloc, obstack_base,
86524         obstack_blank, obstack_blank_fast, obstack_chunk_size,
86525         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
86526         obstack_grow0, obstack_init, obstack_int_grow,
86527         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
86528         obstack_next_free, obstack_object_size, obstack_ptr_grow,
86529         obstack_ptr_grow_fast, obstack_room): Remove declarations of
86530         nonexistent functions.
86531
86532 2004-05-18  Karl Berry  <karl@gnu.org>
86533
86534         * config/srclist.txt: break link for vasnprintf.c.
86535
86536 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86537
86538         Port obstack to the AS/400, where pointers are 16 bytes wide and
86539         you cannot cast an integer to a valid pointer.  This patch is
86540         currently waiting to be integrated into glibc; see
86541         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
86542
86543         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
86544         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
86545         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
86546         (struct obstack): temp member is now a union of a pointer and
86547         an integer, instead of an integer.  All integer uses changed.
86548         This does not affect the physical layout of struct obstack,
86549         except on hosts (like the AS/400) where the size or alignment of
86550         void * is greater than that of ptrdiff_t.
86551         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
86552         __STDC__)]: Store temporary in pointer member of union, not
86553         integer member.
86554         * lib/obstack.c: Include <stddef.h>, for offsetof.
86555         (struct fooalign): Remove; it doesn't need a name.
86556         (union fooround): Change double to long double, and add void *.
86557         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86558         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86559         not a macro.  Hence the values are always int; so remove all
86560         casts-to-int in uses.
86561
86562 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86563
86564         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86565         we can get this patch merged into glibc.
86566
86567 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86568             Paul Eggert  <eggert@cs.ucla.edu>
86569
86570         * m4/argp: Depend on alloca.
86571
86572 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86573             Paul Eggert  <eggert@cs.ucla.edu>
86574
86575         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86576         freecoding.
86577
86578 2004-05-17  Bruno Haible  <bruno@clisp.org>
86579
86580         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86581         precision that consists of a '.' followed by an empty digit string.
86582         Patch by Tor Lillqvist <tml@iki.fi>.
86583
86584 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86585
86586         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86587         for backward compatibility with older code.  We need our own
86588         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86589         it under some other name, and our alloca.h will define it.
86590
86591 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86592             Derek Price  <derek@ximbiot.com>
86593
86594         * lib/alloca.c: Include <alloca.h>, to get our interface.
86595         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86596         include <alloca.h> first.  Use C89 prototype for alloca; this
86597         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86598         Use #elif for simplicity, since we can assume C89 now.
86599         Don't try to source the system alloca.h since it will not be found
86600         and to prevent recursively including its replacement.
86601         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86602         * lib/regex.c: Likewise.
86603
86604 2004-05-16  Derek Price  <derek@ximbiot.com>
86605             Paul Eggert  <eggert@cs.ucla.edu>
86606
86607         getline cleanup.  This changes the getndelim2 API: both order of
86608         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86609         no delimiter).
86610
86611         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86612         interface does that.
86613         (getline): Always use getdelim, so that we don't have two
86614         copies of this code.
86615         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86616         if available.
86617         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86618         (GETNDELIM2_MAXIMUM): New macro.
86619         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86620         instead of the old practice of delim2==0.  All callers changed.
86621         Return -1 on overflow, instead of returning junk.
86622         Do not set *linesize unless allocation succeeds.
86623         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86624         that we include sys/types.h.
86625         * lib/getnline.h: Likewise.
86626         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86627         (getndelim2): Reorder arguments.
86628         * lib/getnline.c (getnline, getndelim):
86629         Don't discard the NMAX argument.
86630         (getnline): Invoke getndelim, to avoid code duplication.
86631         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86632         of (size_t) -1 by callers of the getnline family.
86633
86634 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86635
86636         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86637         Check for gettimeofday.
86638         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86639         Check for settimeofday, stime.
86640
86641 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86642
86643         * lib/nanosleep.c (suspended): Change its type from int to
86644         sig_atomic_t volatile.
86645         (first_call): Make it private to rpl_nanosleep, and have it
86646         be zero initially as that's a bit faster.
86647         (my_usleep): Round up fractional times instead of truncating them,
86648         as this is the usual meaning for 'sleep'.
86649
86650         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86651         doesn't work.
86652         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86653         (ENOSYS): Define if not defined.
86654         (settime): Fall back on stime if it exists and settimeofday fails.
86655         But don't bother with fallbacks if a method fails with errno == EPERM.
86656
86657 2004-05-11  Jim Meyering  <jim@meyering.net>
86658
86659         Prior to this change, the save_cwd caller required read access to the
86660         current directory on most systems (ones with the fchdir function).
86661
86662         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86663         fails, try write-only, and finally, resort to using xgetcwd.
86664
86665 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86666
86667         * lib/obstack.c, obstack.h: Import changes from libc.
86668
86669 2004-04-28  Bruno Haible  <bruno@clisp.org>
86670
86671         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86672         also implicitly appends .exe to executables.
86673         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86674         accepts Windows pathnames.
86675         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86676         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86677         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86678         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86679         Reported by Derek Robert Price <derek@ximbiot.com>.
86680
86681 2004-04-21  Karl Berry  <karl@gnu.org>
86682
86683         * config/srclist.txt (localcharset.c): break sync.
86684
86685 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86686
86687         * m4/host-os.m4: Add a copyright notice.
86688
86689 2004-04-20  Jim Meyering  <jim@meyering.net>
86690
86691         Change UTILS_ to gl_ in AC_DEFINE'd names.
86692         Change utils_- and jm_-prefixed variables, too.
86693         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86694         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86695         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86696
86697         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86698         Don't emit trailing blanks.
86699         Also rename jm_-prefixed variables to have gl_ prefix.
86700
86701         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86702         Also rename jm_-prefixed variables to have gl_ prefix.
86703
86704         * m4/jm-macros.m4: Reflect the renamings.
86705         * m4/prereq.m4: Likewise.
86706
86707 2004-04-20  Jim Meyering  <jim@meyering.net>
86708
86709         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86710         memory.
86711
86712 2004-04-20  Jim Meyering  <jim@meyering.net>
86713             Bruno Haible  <bruno@clisp.org>
86714
86715         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86716         memory when realloc fails.
86717
86718 2004-04-19  Jim Meyering  <jim@meyering.net>
86719
86720         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86721         now that readutmp.c may call `free (0)'.
86722
86723 2004-04-19  Bruno Haible  <bruno@clisp.org>
86724
86725         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86726         * m4/inttypes_h.m4: Likewise.
86727         * m4/stdint_h.m4: Likewise.
86728         * m4/intmax_t.m4: Likewise.
86729         * m4/uintmax_t.m4: Likewise.
86730
86731 2004-04-18  Jim Meyering  <jim@meyering.net>
86732
86733         * m4/prereq.m4: Don't forbid jm_ prefix.
86734
86735         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86736         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86737         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86738         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86739         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86740         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86741         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86742         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86743         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86744         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86745         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86746         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86747         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86748         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86749         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86750         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86751         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86752         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86753         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86754
86755 2004-04-18  Jim Meyering  <jim@meyering.net>
86756
86757         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86758         failure, don't leak memory and do call END_UTMP_ENT.
86759
86760 2004-04-16  Jim Meyering  <jim@meyering.net>
86761
86762         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86763         coreutils' stat program.
86764         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86765
86766 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86767
86768         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86769         C89.
86770         (CHAR_BIT): Remove, since we assume C89.
86771         Include <stdint.h> if available, as per current Autoconf CVS advice.
86772
86773 2004-03-31  Jim Meyering  <jim@meyering.net>
86774
86775         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86776         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86777         * m4/xalloc.m4: Likewise.
86778
86779 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86780
86781         Merge from coreutils.
86782
86783         * m4/inttostr.m4: New file.
86784         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86785         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86786         Require gl_CLOCK_TIME.
86787         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86788
86789 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86790
86791         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86792         not bool, to be more consistent with Unix conventions.
86793         Suggested by Bruno Haible.
86794
86795         Merge from coreutils.
86796
86797         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86798         * lib/umaxtostr.c: New files.
86799
86800         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86801         the usual <time.h> dance.
86802         (get_date): Change signature to support fractional time stamps.
86803         All callers changed.
86804         * lib/getdate.y: Include "getdate.h" first, as we can now
86805         assume C89 and don't need to worry about 'const'.
86806         Similarly, include "unlocked-io.h" near start, not in middle.
86807         Include <limits.h>.
86808         (textint.value): Use long int rather than int.
86809         (textint.digits): Use size_t rather than int.
86810         (BILLION, LOG10_BILLION): New constants.
86811         (parser_control): New member rel_ns.  Members day_ordinal,
86812         time_zone, month, day, hour, minutes, rel_year, rel_month,
86813         rel_day, rel_hour, rel_minutes, rel_seconds
86814         are now long int, not int.  Member seconds is now struct timespec,
86815         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86816         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86817         not int.
86818         (%union.intval): Now long int, not int.
86819         New member timespec.
86820         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86821         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86822         (spec): Now is a timespec or an item list.
86823         (timespec, items): New nonterminals.
86824         (time, rel, relunit, number, get_date):
86825         Add support for fractional seconds.
86826         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86827         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86828         (to_hour): First arg is now long int, not int.
86829         (to_year): Returns long int, not int.
86830         Don't treat year -70 like 70.
86831         (tm_diff): Returns long int, not int.
86832         (lookup_word): Use bool instead of int when appropriate.
86833         (yylex): Use size_t for count, not int.
86834         Detect overflow when parsing large integer constants.
86835         Add support for fractions.
86836         (get_date): Make pointers 'const' if possible.
86837         Use more-portable code to detect integer overflow.
86838         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86839         Don't use ctime; it's not reliable if the year has >4 digits.
86840
86841         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86842         This is for compatibility with BSD.
86843
86844         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86845         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86846         From coreutils' system.h.
86847
86848         * lib/userspec.c: Don't include "posixver.h".
86849         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86850         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86851         compatible extension.  Simplify code by removing a boolean int
86852         that was always nonzero if a string was nonnull.
86853
86854 2004-03-30  Jim Meyering  <jim@meyering.net>
86855
86856         Merge from coreutils.
86857
86858         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86859         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86860         on some systems one must include <grp.h> before it.
86861         Reported by Christian Krackowizer.
86862
86863 2004-03-30  Jim Meyering  <jim@meyering.net>
86864
86865         Merge from coreutils.
86866
86867         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86868
86869         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86870         an empty input stream.
86871
86872         * lib/readtokens.c: Include <stdbool.h>.
86873         (readtoken): Use `size_t' rather than int/long.
86874         All callers adjusted.
86875         Use `bool' rather than `int' where appropriate.
86876         Use memset rather than an explicit loop.
86877         Use x2nrealloc rather than xrealloc.
86878         Allow the use of `\0' as a delimiter.
86879         (readtokens): Likewise.
86880         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86881
86882 2004-03-30  Jim Meyering  <jim@meyering.net>
86883
86884         * m4/realloc.m4: Remove file, since now it does no more than
86885         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86886         the `configure.ac' section of module/realloc.
86887         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86888
86889 2004-03-30  Bruno Haible  <bruno@clisp.org>
86890
86891         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86892         nonnull.
86893
86894 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86895
86896         Merge changes to getloadavg.c from coreutils and Emacs.
86897
86898         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86899         Define to an expression, not to the empty string.
86900         Include cloexec.h and xalloc.h.
86901         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86902         Use set_cloexec_flag rather than rolling our own.
86903         * lib/cloexec.c, lib/cloexec.h: New files.
86904
86905 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86906
86907         * m4/cloexec.m4: New file.
86908
86909 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86910
86911         * lib/getopt.h: Sync with libc CVS.
86912
86913 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86914             Bruno Haible  <bruno@clisp.org>
86915
86916         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86917         mbswidth.
86918
86919 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86920             Bruno Haible  <bruno@clisp.org>
86921
86922         * lib/mbswidth.h: Include <wchar.h> only if
86923         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86924         <wchar.h>.
86925         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86926
86927 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86928
86929         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86930         Sync with libc CVS.
86931         * lib/getopt_int.h: New file, also synced from libc.
86932
86933 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86934
86935         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86936         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86937         Bring back getopt.c, getopt.h, getopt1.c.
86938
86939 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86940
86941         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86942         All uses changed.  Check for sa_sigaction member; this fixes
86943         a bug first reported by Jason Andrade in
86944         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86945
86946 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86947
86948         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86949         '#if' expressions.  Unlike the code it replaces, it does not
86950         depend on (defined _SC_PAGESIZE).  However, it does depend on
86951         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86952         first reported by Jason Andrade in
86953         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86954
86955 2004-02-25  Simon Josefsson  <jas@extundo.com>
86956
86957         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86958
86959 2004-02-25  Simon Josefsson  <jas@extundo.com>
86960
86961         * lib/strdup.h: New file.
86962         * lib/strdup.c: Include it.
86963         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86964         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86965
86966 2004-02-23  Karl Berry  <karl@gnu.org>
86967
86968         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86969         (from fencepost.gnu.org:/gd/gnuorg).
86970
86971 2004-02-23  Karl Berry  <karl@gnu.org>
86972
86973         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86974         * config/srclist.txt: add maintain/standards documents.
86975
86976 2004-02-18  Bruno Haible  <bruno@clisp.org>
86977
86978         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86979         Reported by Derek Robert Price <derek@ximbiot.com>.
86980
86981 2004-02-16  Karl Berry  <karl@gnu.org>
86982
86983         * config/mkinstalldirs, install-sh: update from automake.
86984
86985 2004-02-06  Karl Berry  <karl@gnu.org>
86986
86987         * m4/po.m4: update from gettext 0.14.1.
86988
86989 2004-02-06  Karl Berry  <karl@gnu.org>
86990
86991         * lib/config.charset: update from gettext 0.14.1.
86992
86993 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86994
86995         Add comments and code, prompted by suggestions from Bruno Haible
86996         for sh-quote.
86997         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86998         describing the enum quoting_style values.
86999         * lib/quotearg.c (quotearg_alloc): New function.
87000         (quotearg_buffer_restyled): Treat lone { and } as special.
87001         Treat = as special.  Work around bug with older shells
87002         that "see" a '\' that is really the 2nd byte of a multibyte char.
87003         Quote empty string with shell_quoting_style.
87004
87005 2004-02-03  Bruno Haible  <bruno@clisp.org>
87006
87007         * m4/pipe.m4: New file, from GNU gettext.
87008
87009 2004-02-03  Bruno Haible  <bruno@clisp.org>
87010
87011         * lib/pipe.h: New file, from GNU gettext.
87012         * lib/pipe.c: New file, from GNU gettext.
87013
87014 2004-01-27  Bruno Haible  <bruno@clisp.org>
87015
87016         * m4/execute.m4: New file, from GNU gettext.
87017
87018 2004-01-27  Bruno Haible  <bruno@clisp.org>
87019
87020         * lib/execute.h: New file, from GNU gettext.
87021         * lib/execute.c: New file, from GNU gettext.
87022         * lib/w32spawn.h: New file, from GNU gettext.
87023
87024 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87025
87026         Merge from diffutils.
87027
87028         * lib/file-type.c (file_type): Add typed memory objects.
87029         * lib/file-type.h (S_TYPEISTMO): New macro.
87030
87031         * lib/c-stack.h (c_stack_action): Remove argv argument.
87032         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
87033         (die): Don't calculate message unless segv_action returns.
87034         (get_stack_location, min_address_from_argv, max_address_from_argv,
87035         volatile stack_base, volatile_stack_size): Remove.
87036         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
87037         that every segmentation violation is a stack overflow.  (Ouch!)
87038         See Debian bug 136249 (still outstanding) for more info about why
87039         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
87040
87041 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87042
87043         Exit-status fix from coreutils.
87044
87045         Use exit_failure consistently in place of EXIT_FAILURE,
87046         so that program exit statuses are consistent on failure.
87047
87048         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
87049         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
87050         * lib/argmatch.h: Comment fix to match the above.
87051         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
87052         Now a macro referring to exit_failure, instead of a separate
87053         variable.  Include "exitfail.h" to get it.
87054         * lib/xstrtol.h: Include "exitfail.h".
87055         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
87056
87057         * lib/long-options.c (parse_long_options): Use prototype
87058         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
87059         for clarity.
87060
87061 2004-01-21  Jim Meyering  <jim@meyering.net>
87062
87063         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
87064         so as not to conflict with a different-sized __mktime_internal
87065         function in GNU libc.
87066         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
87067         Problem building statically-linked `ls' reported by Michael Brunnbauer.
87068
87069 2004-01-20  Karl Berry  <karl@gnu.org>
87070
87071         * config/config.guess: update from config.
87072
87073         * config/srclistvars.sh: GNUWWWLICENSES for karl.
87074
87075 2004-01-20  Bruno Haible  <bruno@clisp.org>
87076
87077         Safer stack allocation.
87078         * lib/setenv.c: Include allocsa.h.
87079         (alloca): Remove fallback definition.
87080         (freea): Remove macro.
87081         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
87082         instead of freea.
87083
87084 2004-01-20  Bruno Haible  <bruno@clisp.org>
87085
87086         * m4/eealloc.m4: New file, from GNU gettext.
87087
87088 2004-01-20  Bruno Haible  <bruno@clisp.org>
87089
87090         * m4/allocsa.m4: New file, from GNU gettext.
87091
87092 2004-01-20  Bruno Haible  <bruno@clisp.org>
87093
87094         * lib/xallocsa.h: New file, from GNU gettext.
87095         * lib/xallocsa.c: New file, from GNU gettext.
87096
87097 2004-01-20  Bruno Haible  <bruno@clisp.org>
87098
87099         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
87100
87101 2004-01-20  Bruno Haible  <bruno@clisp.org>
87102
87103         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
87104         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
87105         specially.
87106
87107 2004-01-20  Bruno Haible  <bruno@clisp.org>
87108
87109         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
87110         patch.
87111
87112 2004-01-20  Bruno Haible  <bruno@clisp.org>
87113
87114         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
87115
87116 2004-01-20  Bruno Haible  <bruno@clisp.org>
87117
87118         * lib/eealloc.h: New file.
87119
87120 2004-01-20  Bruno Haible  <bruno@clisp.org>
87121
87122         * lib/binary-io.h: Avoid warnings on Cygwin.
87123
87124 2004-01-20  Bruno Haible  <bruno@clisp.org>
87125
87126         * lib/allocsa.h: New file, from GNU gettext.
87127         * lib/allocsa.c: New file, from GNU gettext.
87128
87129 2004-01-18  Karl Berry  <karl@gnu.org>
87130
87131         * doc/gpl.texi, doc/lgpl.texi: new files.
87132
87133 2004-01-18  Karl Berry  <karl@gnu.org>
87134
87135         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
87136         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
87137
87138 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87139
87140         Merge from coreutils.
87141
87142         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
87143         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
87144         (gl_DEFAULT_POSIX2_VERSION): Move
87145         the documentation from 'configure' into 'config.hin',
87146         so that 'configure --help' isn't burdened by it and
87147         we don't have to worry about its formatting there.
87148         Reword the documentation so that it's more succinct
87149         and can be run together into a single paragraph.
87150         * m4/same.m4 (gl_SAME): Check for pathconf.
87151
87152 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87153
87154         Merge from coreutils.
87155
87156         * lib/posixver.c: Include posixver.h.
87157
87158         * lib/same.c: Include <stdbool.h>, <limits.h>.
87159         (_POSIX_NAME_MAX): Define if not defined.
87160         (MIN): New macro.
87161         (same_name): If file names are silently truncated, report
87162         that the file names are the same if they are the same after
87163         the silent truncation.
87164
87165         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
87166         conversion function.
87167         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
87168         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
87169         longer needed.
87170
87171 2004-01-15  Jim Meyering  <jim@meyering.net>
87172
87173         Merge from coreutils.
87174
87175         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
87176         if no library is required.
87177         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
87178         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
87179         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
87180         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
87181         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
87182         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
87183         value, $ac_cv_search_crypt, if it's "none required".
87184         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
87185         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
87186         not gl_FUNC_GETLOADAVG.
87187         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
87188         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
87189
87190 2004-01-15  Jim Meyering  <jim@meyering.net>
87191
87192         Merge from coreutils.
87193
87194         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
87195         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
87196         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
87197
87198         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
87199         optional configure-time default.
87200
87201         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87202
87203         * lib/xreadlink.c (xreadlink): Correct outdated comment.
87204
87205 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
87206
87207         Merge from coreutils.
87208
87209         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
87210         value, $ac_cv_search_nanosleep, if it's "none required".
87211
87212 2004-01-14  Paul Eggert  <eggert@twinsun.com>
87213
87214         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
87215         with like-named macro in fnmatch.c.
87216         (EXT): Use an internal constant instead.
87217
87218         Merge fnmatch patches from glibc.
87219         * lib/fnmatch.c (mbsinit): Remove define.
87220         Add libc_hidden_ver (__fnmatch, fnmatch).
87221         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
87222         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
87223
87224 2004-01-14  Karl Berry  <karl@gnu.org>
87225
87226         * config/install-sh: update from automake.
87227
87228 2004-01-13  Karl Berry  <karl@gnu.org>
87229
87230         * config/install-sh: update from automake.
87231
87232 2004-01-09  Karl Berry  <karl@gnu.org>
87233
87234         * config/install-sh: update from automake.
87235
87236 2004-01-05  Karl Berry  <karl@gnu.org>
87237
87238         * config/config.{sub,guess}: update from config.
87239
87240 2003-12-31  Karl Berry  <karl@gnu.org>
87241
87242         * config/depcomp: update from automake.
87243
87244 2003-12-14  Karl Berry  <karl@gnu.org>
87245
87246         * lib/config.charset: update from gettext-runtime.
87247
87248 2003-12-03  Paul Eggert  <eggert@twinsun.com>
87249
87250         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
87251         Bug reported by Alfred M. Szmidt.
87252
87253 2003-12-03  Bruno Haible  <bruno@clisp.org>
87254
87255         * m4/gettext.m4: Upgrade from gettext-0.13.
87256         * m4/po.m4: Upgrade from gettext-0.13.
87257         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
87258         * m4/intmax.m4: New file, from gettext-0.13.
87259         * m4/printf-posix.m4: New file, from gettext-0.13.
87260
87261 2003-11-29  Karl Berry  <karl@gnu.org>
87262
87263         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
87264
87265 2003-11-25  Paul Eggert  <eggert@twinsun.com>
87266             Bruno Haible  <bruno@clisp.org>
87267
87268         * lib/printf-parse.h: Don't include sys/types.h.
87269         (ARG_NONE): New macro.
87270         (char_directive): Change type of *arg_index fields to size_t.
87271         * lib/printf-parse.c: Don't include sys/types.h.
87272         (SSIZE_MAX): Remove macro.
87273         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
87274         Remove unnecessary overflow check.
87275         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
87276         fields.
87277
87278 2003-11-25  Bruno Haible  <bruno@clisp.org>
87279
87280         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
87281
87282 2003-11-25  Bruno Haible  <bruno@clisp.org>
87283
87284         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
87285         gt_TYPE_SSIZE_T.
87286
87287 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87288
87289         * modules/alloca: Remove dependency on xalloc.
87290
87291 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87292
87293         * lib/alloca.c: Remove dependency on xalloc module.
87294         (xalloc_die): Remove.
87295         (memory_full) [!defined emacs]: New macro.
87296         [!defined emacs]: Don't include xalloc.h.
87297         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
87298         address arithmetic overflows.  Change datatypes a bit to avoid
87299         unnecessary casts.
87300
87301 2003-11-22  Jim Meyering  <jim@meyering.net>
87302
87303         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
87304         s/size/size_t/.
87305
87306 2003-11-21  Karl Berry  <karl@gnu.org>
87307
87308         * config/config.{sub,guess}: update from config.
87309
87310 2003-11-18  Karl Berry  <karl@gnu.org>
87311
87312         * config/config.{sub,guess}: update from config.
87313
87314         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
87315
87316 2003-11-17  Paul Eggert  <eggert@twinsun.com>
87317
87318         * README: Mention that S+T cannot overflow if S is the size of
87319         an existing object and T is sufficiently small.
87320
87321 2003-11-17  Jim Meyering  <jim@meyering.net>
87322
87323         On systems without utime and without a utimes function capable of
87324         dealing with a NULL struct utimbuf* argument, this utime replacement
87325         could -- in unusual circumstances -- leak a file descriptor.
87326         * lib/utime.c: Include <unistd.h> and <errno.h>.
87327         (utime_null): Be sure to close `fd' and to preserve errno.
87328         Reported by Geoff Collyer via Arnold Robbins.
87329
87330 2003-11-17  Bruno Haible  <bruno@clisp.org>
87331
87332         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
87333         (Depends-on): Add xsize.
87334
87335 2003-11-17  Bruno Haible  <bruno@clisp.org>
87336
87337         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
87338
87339 2003-11-17  Bruno Haible  <bruno@clisp.org>
87340
87341         * lib/vasnprintf.c (alloca): Remove fallback definition.
87342         (freea): Remove definition.
87343         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
87344         Reported by Paul Eggert.
87345
87346 2003-11-16  Paul Eggert  <eggert@twinsun.com>
87347             Bruno Haible  <bruno@clisp.org>
87348
87349         Protect against address arithmetic overflow.
87350         * lib/printf-args.h: Include stddef.h.
87351         (arguments): Change type of field 'count' to size_t.
87352         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
87353         'unsigned int' where appropriate.
87354         * lib/printf-parse.h: Include sys/types.h.
87355         (char_directive): Change type of *arg_index fields to ssize_t.
87356         (char_directives): Change type of fields 'count', max_*_length to
87357         size_t.
87358         * lib/printf-parse.c: Include sys/types.h and xsize.h.
87359         (SSIZE_MAX): Define fallback value.
87360         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
87361         instead of 'int' where appropriate. Check a_allocated, d_allocated
87362         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
87363         * lib/vasnprintf.c: Include xsize.h.
87364         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
87365         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
87366         overflow. Avoid wraparound when converting a width or precision from
87367         decimal to binary.
87368
87369 2003-11-16  Bruno Haible  <bruno@clisp.org>
87370
87371         Update from GNU gettext.
87372         * lib/printf-parse.c: Generalize to it can be compiled for wide
87373         strings.
87374         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
87375         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
87376         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
87377         SNPRINTF): New macros.
87378         Don't include <alloca.h> if the file is used inside libintl.
87379         (local_wcslen): New function, for Solaris 2.5.1.
87380         (VASNPRINTF): Use it instead of wcslen.
87381
87382 2003-11-16  Bruno Haible  <bruno@clisp.org>
87383
87384         * lib/xsize.h (xmax): New function.
87385         (xsum, xsum3, xsum4): Declare as "pure" functions.
87386
87387 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87388
87389         * modules/xalloc (Files): Undo latest change, since xalloc.h
87390         no longer needs SIZE_MAX or PTRDIFF_MAX.
87391
87392 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87393
87394         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
87395         gl_PTRDIFF_MAX.
87396
87397 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87398
87399         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
87400         "return", to pacify some unknown compiler.  Problem reported
87401         by Joerg Schilling.
87402
87403 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87404
87405         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
87406         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
87407         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
87408         heuristic is just as accurate as far as we know, and it removes a
87409         dependency on size_max.m4 and ptrdiff_max.m4.
87410
87411 2003-11-11  Bruno Haible  <bruno@clisp.org>
87412
87413         * modules/xsize (Files): Add m4/size_max.m4.
87414         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
87415
87416 2003-11-11  Bruno Haible  <bruno@clisp.org>
87417
87418         * m4/size_max.m4: New file.
87419         * m4/ptrdiff_max.m4: New file.
87420         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
87421         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
87422         (gl_XALLOC): Invoke it.
87423
87424 2003-11-11  Bruno Haible  <bruno@clisp.org>
87425
87426         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
87427         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
87428         defined.
87429
87430 2003-11-10  Paul Eggert  <eggert@twinsun.com>
87431
87432         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
87433         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
87434         rejected some allocations of exactly SIZE_MAX - 2 bytes.
87435         From Bruno Haible.
87436         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
87437         not (size_t) -1, since it's defined here.
87438
87439 2003-11-09  Karl Berry  <karl@gnu.org>
87440
87441         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
87442
87443 2003-11-06  Paul Eggert  <eggert@twinsun.com>
87444
87445         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
87446         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
87447         Reject sizes of exactly SIZE_MAX bytes.
87448         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
87449         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
87450
87451 2003-11-05  Bruno Haible  <bruno@clisp.org>
87452
87453         * lib/xsize.h: Include limits.h, to avoid a possible collision with
87454         SIZE_MAX defined in <limits.h> on Solaris.
87455
87456 2003-11-04  Jim Meyering  <jim@meyering.net>
87457
87458         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
87459         variable names, rather than @VAR@.
87460         * modules/poll: Likewise.
87461
87462 2003-11-04  Bruno Haible  <bruno@clisp.org>
87463
87464         * modules/xsize: New file.
87465         * modules/linebreak: Depend on xsize.
87466         * MODULES.html.sh (func_all_modules): Add xsize.
87467
87468 2003-11-04  Bruno Haible  <bruno@clisp.org>
87469
87470         * m4/xsize.m4: New file.
87471
87472 2003-11-04  Bruno Haible  <bruno@clisp.org>
87473
87474         * lib/xsize.h: New file.
87475         * lib/linebreak.c: Include xsize.h.
87476         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
87477         argument for overflow.
87478         Suggested by Paul Eggert.
87479
87480 2003-11-03  Karl Berry  <karl@gnu.org>
87481
87482         * config/config.{guess,sub}: update from config.
87483
87484 2003-11-03  Jim Meyering  <jim@meyering.net>
87485
87486         * modules/userspec (lib_SOURCES): Add userspec.h.
87487         (Include): Add "userspec.h".
87488         Improve description.
87489
87490 2003-11-03  Jim Meyering  <jim@meyering.net>
87491
87492         * lib/userspec.c: Include "userspec.h".
87493         * lib/userspec.h: New file.
87494
87495 2003-11-03  Bruno Haible  <bruno@clisp.org>
87496
87497         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
87498
87499 2003-11-03  Bruno Haible  <bruno@clisp.org>
87500
87501         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
87502         available, to avoid (extremely rare) race condition.
87503         Suggested by Paul Eggert.
87504
87505 2003-11-02  Karl Berry  <karl@gnu.org>
87506
87507         * config/srclist.txt (vasprintf.c): sync broken, sigh.
87508
87509 2003-10-31  Paul Eggert  <eggert@twinsun.com>
87510
87511         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
87512         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
87513         (read_filesystem_list): Set and use me_type_malloced.
87514         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
87515         whatever the type happens to be), for brevity and consistency.
87516         Check for size calculation overflow on Alphas running OSF/1.
87517
87518 2003-10-31  Jim Meyering  <jim@meyering.net>
87519
87520         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
87521
87522         * lib/linebuffer.c: Include <string.h> for declaration of memset.
87523
87524 2003-10-30  Paul Eggert  <eggert@twinsun.com>
87525             Bruno Haible  <bruno@clisp.org>
87526
87527         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
87528         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
87529
87530 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
87531
87532         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
87533         netbsd*-gnu*.  Suggested by Robert Millan.
87534
87535 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87536
87537         * modules/group-member: Depend on stdbool.
87538
87539 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87540
87541         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
87542
87543 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87544
87545         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
87546         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
87547         after the 'gnu' in these cases.  This fixes some bugs in the
87548         previous change, and is based on suggestions by Robert Millan.
87549
87550 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87551
87552         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
87553         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
87554         no longer needed.
87555         * lib/quotearg.c (quotearg_n_options): Use it.
87556         * lib/group-member.c: Include <stdbool.h>.
87557         (free_group_info): Arg is now const *; don't free arg.
87558         (get_group_info): Now returns bool and accepts struct group_info *,
87559         rather than returning a malloc'ed struct group_info *.
87560         All uses changed.  Check for overflow in internal size calculation.
87561
87562         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87563         rather than xmalloc/xrealloc.
87564         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87565         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87566         conformance bug: the old code used a pointer after freeing the
87567         storage that it addressed.
87568         * lib/hash.c (hash_initialize): Simplify the code by using
87569         xalloc_oversized rather than doing it by hand.
87570         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87571         the buffer preserved.  Use free and xmalloc instead.
87572         * lib/quotearg.c (quotearg_n_options): Likewise.
87573         Use a simpler test for size overflow.  Don't use xalloc_oversized
87574         because unsigned int might be wider than size_t (!); this suggests
87575         that we should switch from unsigned int to size_t for slot numbers.
87576
87577 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87578
87579         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87580         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87581         NetBSD kernels.  Requested by Richard Stallman.
87582
87583 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87584
87585         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87586         to allocate the returned structure.  Do not allocate a subarray,
87587         as x2nrealloc will do that.
87588         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87589         instead of xnrealloc.
87590         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87591
87592 2003-10-27  Bruno Haible  <bruno@clisp.org>
87593
87594         * lib/stdbool_.h: Better support for BeOS.
87595
87596 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87597
87598         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87599         now uses inline.
87600
87601 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87602
87603         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87604         callers that want to do their own size-overflow checking.  Include
87605         <stdbool.h>, since xalloc_oversized returns bool.
87606         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87607         to use xalloc_oversized.
87608
87609         Add two functions x2realloc, x2nrealloc, for programs that grow
87610         arrays dynamically by doubling their sizes.
87611         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87612         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87613         New functions.
87614
87615         Port to C99 semantics for 'inline' of external functions.
87616         Bug reported by Bruno Haible.
87617         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87618         with the old contents of xnmalloc.
87619         (xnmalloc, xmalloc): Use it.
87620         (xnrealloc_inline): New static inline function,
87621         with the old contents of xnrealloc.
87622         (xnrealloc, xrealloc): Use it.
87623
87624         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87625         that.
87626
87627 2003-10-26  Karl Berry  <karl@gnu.org>
87628
87629         * config/srclist.txt (COPYING.DOC): no longer available from
87630         /gd/gnuorg; don't know where the ultimate source is.
87631
87632 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87633
87634         Fix several address-calculation bugs in the hash modules,
87635         plus some minor code cleanup.
87636
87637         * lib/hash.h: Include <stdbool.h>, for bool.
87638         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87639         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87640         hash_get_n_entries, hash_get_max_bucket_length,
87641         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87642         hash_rehash): Use size_t rather than unsigned.
87643         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87644         hash_get_n_buckets_used, hash_get_n_entries,
87645         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87646         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87647         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87648         Likewise.
87649         (SIZE_MAX): Define if not defined.
87650         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87651         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87652         hash_print):
87653         Use const * when possible.
87654         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87655         (check_tuning): Fix bug: if tuning parameters were very close to
87656         0 or 1, rounding errors could have caused subscript violations.
87657         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87658         (hash_initialize): Add 'fail:' label
87659         to free table and return NULL, and use it to simplify code.
87660         Use calloc rather than clearing the storage ourself.
87661         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87662         buffer size calculations.
87663         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87664         Include <stddef.h>, for size_t.
87665         * lib/hash-pjw.c (hash_pjw): Likewise.
87666         Switch to method described by Bruno Haible.
87667         Include <limits.h>, for CHAR_BIT.
87668         (SIZE_BITS): New macro.
87669
87670 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87671
87672         * m4/getline.m4 (AM_FUNC_GETLINE):
87673         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87674         hosts.  Problem reported by Derek Robert Price in
87675         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87676         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87677         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87678
87679 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87680
87681         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87682         ceiling the allocation at NMAX bytes rather than silently
87683         discarding input bytes before NMAX is reached.  This makes
87684         a difference only if NMAX exceeds SIZE_MAX / 2.
87685
87686         * lib/obstack.c: Merge from glibc.
87687         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87688         Add libc_hidden_def (_obstack_newchunk).
87689         (_obstack_free) [! defined _LIBC]: Remove.
87690         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87691         a clone of the function body.
87692         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87693         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87694
87695         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87696         glibc.
87697         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87698         arg to memcpy.
87699
87700         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87701         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87702         Don't use lvalue casts, as GCC plans to remove support for them
87703         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87704         was also present in the non-GCC version, indicating that this
87705         code had always been buggy and had never been widely used.
87706         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87707         Use the fast variant of each macro, rather than copying the
87708         definiens of the fast variant; that way, we'll be more likely to
87709         catch future bugs in the fast variants.
87710
87711 2003-10-20  Bruno Haible  <bruno@clisp.org>
87712
87713         * modules/wait-process: New file.
87714         * MODULES.html.sh (func_all_modules): Add wait-process.
87715
87716 2003-10-20  Bruno Haible  <bruno@clisp.org>
87717
87718         * m4/wait-process.m4: New file.
87719
87720 2003-10-20  Bruno Haible  <bruno@clisp.org>
87721
87722         * lib/wait-process.h: New file, from GNU gettext.
87723         * lib/wait-process.c: New file, from GNU gettext.
87724
87725 2003-10-19  Jim Meyering  <jim@meyering.net>
87726
87727         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87728         HPUX 10.20.
87729
87730 2003-10-18  Karl Berry  <karl@gnu.org>
87731
87732         * config/config.guess: update from config.
87733
87734 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87735
87736         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87737         (getgroups): First arg is int, not size_t.
87738         Don't let 'free' mangle errno.
87739
87740 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87741
87742         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87743
87744 2003-10-16  Karl Berry  <karl@gnu.org>
87745
87746         * config/config.{guess,sub}: update from config.
87747
87748 2003-10-16  Jim Meyering  <jim@meyering.net>
87749
87750         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87751         memcpy.
87752
87753 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87754
87755         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87756         (SIZE_MAX): Remove.
87757         (new_exclude, add_exclude_file): Initial size no longer needs to
87758         be a power of 2.
87759         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87760         our own address arithmetic overflow checking.
87761
87762         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87763         (fnmatch): Do not alloca more than 2000 wide characters;
87764         instead, use malloc for large buffers.
87765         Check for address arithmetic overflow, and return -1
87766         with errno set to ENOMEM in that case.
87767         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87768         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87769         instead, return -1.  Check for address arithmetic overflow.
87770
87771 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87772
87773         Handle invalid suffixes and overflow independently, so that
87774         callers can treat them independently as needed.  Fix some bugs in
87775         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87776         suffix for a human-readable blocksize.  The major caller-visible
87777         change is the addition of a new
87778         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87779         that both overflow and suffix chars were found.
87780
87781         * lib/human.c (humblock): Don't check separately for invalid suffix
87782         char; that is xstrtoumax's job (now that its bug is fixed).
87783         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87784         INTMAX_MAX]: New macros.
87785         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87786         TYPE_MAXIMUM): New macros.
87787         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87788         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87789         if overflow occurs, as it's what __strtol does and it's more useful
87790         in practice.
87791         (__xstrtol): If __strtol reports some error other than ERANGE,
87792         reflect it to the caller as LONGINT_INVALID.  If it reports
87793         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87794         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87795         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87796         value.
87797         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87798         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87799         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87800         [defined UINTMAX_MAX]: New macros.
87801
87802 2003-10-14  Bruno Haible  <bruno@clisp.org>
87803
87804         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87805
87806 2003-10-14  Bruno Haible  <bruno@clisp.org>
87807
87808         * m4/sig_atomic_t: New file, from GNU gettext.
87809         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87810
87811 2003-10-14  Bruno Haible  <bruno@clisp.org>
87812
87813         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87814         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87815         Also use volatile where needed.
87816
87817 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87818
87819         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87820         Change maintainer from Bruno Haible to 'all'.
87821
87822 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87823
87824         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87825
87826 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87827
87828         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87829         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87830         and define in terms of the other primitives.
87831         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87832         (SIZE_MAX): Define if not already defined.
87833         (array_size_overflow): New function.
87834         (xalloc_die): Abort instead of exiting if 'error' returns.
87835         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87836         (xmalloc, xrealloc): Use them.
87837         (xcalloc): Check for address arithmetic overflow.
87838         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87839         a bit faster than strcpy.
87840
87841 2003-10-10  Simon Josefsson  <jas@extundo.com>
87842
87843         * modules/argp (Depends-on): Add restrict and strcase.
87844
87845 2003-10-10  Simon Josefsson  <jas@extundo.com>
87846
87847         * m4/argp.m4: Add AC_C_INLINE.
87848
87849 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87850
87851         Merge getpass from libc, plus a few fixes.
87852
87853         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87854         Include <stdbool.h>.
87855         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87856         __fsetlocking to empty.
87857         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87858         do include <bits/libc-lock.h>.
87859         Do not include <fcntl.h>; not needed.
87860         [_LIBC]: Include <wchar.h>.
87861         (NOTCANCEL_MODE): New macro.
87862         (flockfile, funlockfile) [_LIBC]: New macros.
87863         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87864         [!_LIBC]: New macros.
87865         (call_fclose): New function.
87866         (getpass): Use it.  Save tty stream separately; this simplifies the
87867         code and makes it more reliable if stdin happens to equal stdout.
87868         Invoke __fsetlocking on tty.
87869         Handle thread cancellation if needed.
87870         Namespace cleanup (use __tcgetattr, __getline).
87871         Use bool for Booleans.
87872         [USE_IN_LIBIO]: Handle wide streams.
87873         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87874         stream might go where.
87875
87876         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87877         doesn't have to include <stdio.h> before us.
87878         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87879         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87880         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87881         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87882         if not declared, so that we can use getpass.c code from libc without
87883         rewriting it.
87884         (flockfile, ftrylockfile, funlockfile): New macros.
87885
87886 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87887
87888         * modules/getpass: Depend on stdbool.
87889
87890 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87891
87892         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87893
87894 2003-10-07  Karl Berry  <karl@gnu.org>
87895
87896         * config/config.{guess,sub}: update from config.
87897
87898 2003-10-06  Jim Meyering  <jim@meyering.net>
87899             Bruno Haible  <bruno@clisp.org>
87900
87901         This lets translators provide better translations for the
87902         "Written by ..." part of --version output.
87903         * lib/version-etc.h: Include stdarg.h.
87904         (version_etc_copyright): Declare as readonly.
87905         (version_etc): Make this function variadic with a NULL-terminated list
87906         of author name strings.
87907         (version_etc_va): New declaration.
87908         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87909         (version_etc_copyright): Declare as readonly.
87910         (version_etc_va): New function. Provide a different translatable string
87911         for each possible number of authors < 10. Abbreviate when there are 10
87912         authors or more.
87913         (version_etc): Make this function variadic. Call version_etc_va.
87914         Suggestion from Gary V. Vaughan.
87915
87916         * lib/long-options.h (parse_long_options): Change prototype: the
87917         authors string is moved to the end and becomes variadic.
87918         * lib/long-options.c: Include stdarg.h.
87919         (parse_long_options): Make this function variadic, too.
87920         Call version_etc_va, not version_etc.
87921
87922 2003-10-06  Bruno Haible  <bruno@clisp.org>
87923
87924         * modules/version-etc-2: Remove file.
87925         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87926
87927 2003-10-06  Bruno Haible  <bruno@clisp.org>
87928
87929         * modules/fatal-signal: New file.
87930         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87931
87932 2003-10-06  Bruno Haible  <bruno@clisp.org>
87933
87934         * m4/fatal-signal.m4: New file.
87935         * m4/signalblocking.m4: New file, from GNU gettext.
87936
87937 2003-10-06  Bruno Haible  <bruno@clisp.org>
87938
87939         * lib/version-etc-2.h: Remove file.
87940         * lib/version-etc-2.c: Remove file.
87941
87942 2003-10-06  Bruno Haible  <bruno@clisp.org>
87943
87944         * lib/fatal-signal.h: New file, from GNU gettext.
87945         * lib/fatal-signal.c: New file, from GNU gettext.
87946
87947 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87948
87949         * README: Rework advice for preventing empty .o files.
87950         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87951         not <sys/types.h>.
87952
87953 2003-10-04  Karl Berry  <karl@gnu.org>
87954
87955         * lib/argp*: update from libc.
87956
87957 2003-10-04  Karl Berry  <karl@gnu.org>
87958
87959         * config/config.{guess,sub}: update from config.
87960
87961 2003-10-02  Bruno Haible  <bruno@clisp.org>
87962
87963         * modules/lchown (Include): Add lchown.h.
87964         * modules/time_r (Include): Use "..." syntax.
87965         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87966
87967 2003-10-01  Simon Josefsson  <jas@extundo.com>
87968
87969         * MODULES.html.sh (func_all_modules): Move gethostname from section
87970         'based on' to section 'lacking' POSIX:2001.
87971
87972 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87973
87974         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87975         to output mode on the same stream.
87976
87977 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87978
87979         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87980         Fix arg typo in previous patch.
87981
87982 2003-09-28  Jim Meyering  <jim@meyering.net>
87983
87984         * lib/error.c: Correct cpp indentation.
87985
87986 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87987
87988         * modules/free: New file.
87989
87990 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87991
87992         * m4/free.m4: New file.
87993
87994 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87995
87996         * lib/minmax.h (MIN, MAX)
87997         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87998         Omit the special code that used __typeof__, since we worry that
87999         it could be more trouble than it's worth.  See:
88000         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
88001         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
88002
88003         * lib/free.c: New file.
88004
88005 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
88006
88007         Trivial fixes to Makefile.am parts of module listings.
88008         * modules/strstr: Append strstr.h to lib_SOURCES.
88009         * modules/strcase: Likewise, for strcase.h.
88010
88011 2003-09-27  Karl Berry  <karl@gnu.org>
88012
88013         * config/mkinstalldirs: update from automake.
88014
88015 2003-09-26  Paul Eggert  <eggert@twinsun.com>
88016
88017         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
88018         (error_tail): Do not loop, reallocating temporary buffer, since
88019         the output cannot contain more wide characters than the input
88020         contains bytes, the size must be big enough already.  This avoids
88021         one potential size overflow calculation.  Check for size overflow
88022         when calculating temporary buffer size.  Free temporary buffer
88023         when done, if it was allocated with malloc; this plugs a memory
88024         leak.  Remove casts from void * to pointers, that are no longer
88025         needed now that we're assuming C89 or better.
88026
88027         Merge error changes from glibc.
88028
88029         * lib/error.c, error.h: Update copyright notice header to match glibc.
88030         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
88031         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
88032         Disable cancellation while printing error.
88033         * lib/error.h: Prepend __ to parameter names.
88034
88035 2003-09-26  Jim Meyering  <jim@meyering.net>
88036
88037         * lib/error.c (error_tail): Move some declarations
88038         into inner scope where the local variables are used.
88039
88040 2003-09-26  Bruno Haible  <bruno@clisp.org>
88041
88042         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
88043         stpncpy().
88044         Don't define stpncpy through config.h; it's now done through stpncpy.h.
88045
88046 2003-09-26  Bruno Haible  <bruno@clisp.org>
88047
88048         * lib/stpncpy.h (gnu_stpncpy): New declaration.
88049         (stpncpy): Define as alias for gnu_stpncpy.
88050         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
88051
88052 2003-09-25  Simon Josefsson  <jas@extundo.com>
88053
88054         * lib/xgetdomainname.h: New file.
88055         * lib/xgetdomainname.c: New file.
88056
88057 2003-09-25  Simon Josefsson  <jas@extundo.com>
88058             Bruno Haible  <bruno@clisp.org>
88059
88060         * modules/getdomainname: New file.
88061         * modules/xgetdomainname: New file.
88062         * MODULES.html.sh (func_all_modules): Add getdomainname,
88063         xgetdomainname.
88064
88065 2003-09-25  Simon Josefsson  <jas@extundo.com>
88066             Bruno Haible  <bruno@clisp.org>
88067
88068         * m4/getdomainname.m4: New file.
88069
88070 2003-09-25  Simon Josefsson  <jas@extundo.com>
88071             Bruno Haible  <bruno@clisp.org>
88072
88073         * lib/getdomainname.h: New file.
88074         * lib/getdomainname.c: New file.
88075
88076 2003-09-25  Karl Berry  <karl@gnu.org>
88077
88078         * lib/argp-fmtstream.c, argp-help.c: update from libc.
88079
88080 2003-09-25  Karl Berry  <karl@gnu.org>
88081
88082         * config/install-sh: update from automake.
88083
88084 2003-09-25  Bruno Haible  <bruno@clisp.org>
88085
88086         * modules/version-etc-2: New file, from modules/version-etc with
88087         modifications.
88088         * MODULES.html.sh (func_all_modules): Add version-etc-2.
88089
88090 2003-09-25  Bruno Haible  <bruno@clisp.org>
88091
88092         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
88093         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
88094
88095 2003-09-24  Simon Josefsson  <jas@extundo.com>
88096
88097         * modules/xgethostname: Add xgethostname.h.
88098
88099 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88100
88101         * lib/linebuffer.c (freebuffer): Don't free the argument, just
88102         the buffer associated with the argument.  Bug reported by
88103         Simon Josefsson.
88104
88105 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88106
88107         * README: Document assumptions that 'int' is at least 32 bits
88108         wide, that integer arithmetic is 2's complement without overflow,
88109         that there are no holes in integer values, that adding sizes of
88110         two nonoverlapping objects can't overflow, and that all-bits-zero
88111         yields scalar zero.  Fix spelling and capitalization typos.
88112
88113 2003-09-19  Karl Berry  <karl@gnu.org>
88114
88115         * lib/argp.h: update from libc.
88116
88117 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88118
88119         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
88120         to avoid spurious warnings like "AC_RUN_IFELSE was called before
88121         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
88122
88123 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88124
88125         * gnulib-tool: Use "test -h", not "test -L", for portability
88126         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
88127         (tags_regexp): Remove, since \| doesn't conform to POSIX.
88128         (sed_extract_prog): Issue s commands one-by-one, rather than
88129         using \| in one s command.
88130
88131 2003-09-16  Paul Eggert  <eggert@twinsun.com>
88132
88133         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
88134         input error, instead of returning NULL the next time we are called
88135         (and therefore losing track of errno).
88136
88137 2003-09-16  Bruno Haible  <bruno@clisp.org>
88138
88139         * gnulib-tool (func_create_testdir): Warn about duplicated
88140         dependencies.
88141
88142 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88143
88144         * modules/argmatch, modules/fatal, modules/obstack,
88145         modules/xalloc, modules/xgethostname: Sort dependencies by
88146         importance, not alphabetically.
88147
88148 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88149
88150         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
88151         fails, so that the caller gets the proper errno.
88152
88153         * lib/readutmp.c (read_utmp): Likewise.
88154         Check for fstat error.  Close stream and free storage
88155         when failing.
88156
88157 2003-09-14  Karl Berry  <karl@gnu.org>
88158
88159         * config/srclist.txt (strdup.c): disable for c89 changes.
88160
88161 2003-09-14  Jim Meyering  <jim@meyering.net>
88162
88163         * lib/getloadavg.c: Correct cpp indentation.
88164         * lib/strdup.c: Likewise.
88165         * lib/vasnprintf.c: Likewise.
88166
88167 2003-09-14  Bruno Haible  <bruno@clisp.org>
88168
88169         * modules/fwriteerror: New file.
88170         * MODULES.html.sh (func_all_modules): Add fwriteerror.
88171
88172 2003-09-14  Bruno Haible  <bruno@clisp.org>
88173
88174         * lib/fwriteerror.h: New file.
88175         * lib/fwriteerror.c: New file.
88176
88177 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88178
88179         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
88180         modules/xgethostname, modules/xalloc: Depend on exit.
88181
88182 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88183
88184         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
88185
88186         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
88187         and AC_MINIX, too, so that their extensions are available.
88188
88189         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
88190         This macro has been superseded by gl_BACKUPFILE.
88191
88192         More patches to assume C89 or better.
88193
88194         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
88195
88196         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
88197         unconditionally.
88198         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
88199         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
88200         Include <string.h>, <stdlib.h> unconditionally.
88201         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
88202         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
88203         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
88204         headers or for string.h.
88205         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
88206         or strtoul.
88207
88208         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
88209         headers.
88210         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
88211         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88212         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
88213         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
88214         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88215         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
88216         memcpy, memset.
88217         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
88218         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
88219         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
88220         strtol.
88221         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
88222         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
88223         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
88224         strtoul.
88225
88226 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88227
88228         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
88229         * lib/obstack.c [!defined _LIBC]: Likewise.
88230         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
88231         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
88232         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
88233
88234         More changes to assume C89 or better.
88235
88236         * lib/error.c (error_tail): Assume vprintf.
88237
88238         * lib/argmatch.c (getenv): Remove decl.
88239         * lib/progreloc.c (get_full_program_name): Define via prototype.
88240         * lib/setenv.c (clearenv): Likewise.
88241         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
88242         needed.
88243         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
88244         (malloc, memcpy): Remove decls.
88245         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
88246         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
88247         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88248         (memcpy): Remove macro.
88249         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
88250         (__P): Remove.  All uses removed.
88251         (PTR): Remove.  All uses changed to void *.
88252         (CHAR_BIT, NULL): Remove.
88253         (spaces, zeros, memset_space, memset_zero)
88254         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
88255         Remove.
88256         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
88257         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
88258         Define with prototype.
88259         Remove now-unnecessary prototype decl.
88260         (extra_args_spec): Assume ANSI C.  All uses changed.
88261         (extra_args_spec_iso): Remove.
88262         (my_strftime, emacs_strftimeu): Define via prototype.
88263         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
88264         unconditionally.
88265         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
88266         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
88267         (strtoul, strtol): Remove decls.
88268         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
88269         LONG_MAX): Remove.
88270         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88271         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
88272         (LOCALE_PARAM_PROTO): New macro.
88273         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
88274         (INTERNAL (strtol), strtol): Define with a prototype.
88275         (PARAMS): Remove.  All uses removed.
88276         * lib/tempname.c: Include <string.h> unconditionally.
88277         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
88278         * lib/xgethostname.c (main): Define with a prototype.
88279         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
88280         Include <stdlib.h> unconditionally.
88281         (calloc, malloc, realloc, free): Remove decls.
88282         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
88283         Include <stdlib.h> unconditionally.  Sort include file names.
88284         (strtod): Remove.
88285         (xstrtod): Define with a prototype.
88286         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
88287         (strtol, strtoul): Remove decls.
88288
88289 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88290
88291         More patches to assume C89 or better.
88292         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
88293         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
88294         string.h, memchr, STDC_HEADERS.
88295
88296 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88297
88298         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
88299         Include <stdlib.h>, <string.h> unconditionally.
88300         Remove now-unnecessary cast to char *.
88301         * lib/strnlen.c: Include <string.h> unconditionally.
88302         * lib/yesno.c (yesno): Define with a prototype.
88303
88304 2003-09-11  Bruno Haible  <bruno@clisp.org>
88305
88306         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
88307
88308 2003-09-10  Jim Meyering  <jim@meyering.net>
88309
88310         * lib/error.c: Correct indentation of cpp directives.
88311
88312 2003-09-10  Bruno Haible  <bruno@clisp.org>
88313
88314         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
88315         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
88316         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
88317         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
88318         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
88319         <stdlib.h> and <string.h> checks.
88320         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
88321         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
88322
88323 2003-09-10  Bruno Haible  <bruno@clisp.org>
88324
88325         * lib/strcspn.c: Include <string.h> unconditionally.
88326         * lib/strpbrk.c: Include <string.h> unconditionally.
88327         * lib/strstr.c: Include <string.h> unconditionally.
88328         * lib/unicodeio.c: Include <string.h> unconditionally.
88329         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
88330         * lib/unsetenv.c: Likewise.
88331         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
88332         * lib/yesno.c: Include <stdlib.h> unconditionally.
88333         (rpmatch): Add prototype.
88334
88335 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88336
88337         More patches to assume C89 or better.
88338         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
88339         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
88340         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
88341         or for string.h.
88342         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
88343         stdlib.h.
88344         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
88345         C headers.
88346         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
88347         string.h.
88348         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
88349         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
88350         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
88351         or for string.h.
88352         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
88353         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
88354         C headers.
88355         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
88356         memcpy.
88357         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
88358         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
88359         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
88360         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
88361         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
88362         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
88363         string.h, free.
88364         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
88365         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
88366         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
88367         C headers, or for string.h.
88368         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
88369         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
88370         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
88371         headers, memory.h, stdlib.h, string.h, strings.h.
88372         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
88373         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
88374         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
88375         strchr.
88376         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
88377         headers, memory.h, string.h.
88378         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
88379         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
88380         free.
88381         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
88382         headers.
88383         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
88384         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
88385         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
88386         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
88387         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
88388
88389 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88390
88391         More K&R removal.
88392
88393         * lib/acosl.c (main): Use a prototype.
88394         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
88395         tanl.c: Likewise.
88396
88397         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
88398
88399         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
88400         (getopt, etopt_long, getopt_long_only, _getopt_internal)
88401         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
88402         with a prototype.
88403         * lib/getopt.c (const): Remove macro.
88404         Include <string.h> unconditionally.
88405         (my_index): Remove; all uses changed to strchr.
88406         (strlen): Remove decl.
88407         (exchange): Remove forward decl; no longer needed.
88408         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
88409         Define with prototype.
88410         * lib/getopt1.c (const): Remove macro.
88411         (getopt_long, getopt_long_only, main): Define with prototype.
88412
88413         * lib/getugroups.c: Include <string.h> unconditionally.
88414
88415         * lib/getusershell.c: Include <stdlib.h> unconditionally.
88416         (getusershell, setusershell, endusershell, readname, main):
88417         Define with prototypes.
88418
88419         * lib/group-member.c: Include group-member.h first.
88420         Include <stdlib.h> unconditionally.
88421
88422         * lib/hard-locale.c: Include hard-locale.h first.
88423         Include <stdlib.h>, <string.h> unconditionally.
88424
88425         * lib/hash.c (free, malloc): Remove decls.
88426         Include <stdlib.h> unconditionally.
88427
88428         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
88429         (getenv): Do not declare.
88430
88431         * lib/idcache.c: Include <string.h> unconditionally.
88432
88433         * lib/long-options.c: Include long-options.h first, to test interface.
88434         Include <stdlib.h> unconditionally.
88435
88436         * lib/makepath.c: Include makepath.h first, to test interface.
88437         Include <stdlib.h> and <string.h> unconditionally.
88438
88439         * lib/linebuffer.c: Include <stdlib.h>.
88440         (free): Remove decl.
88441
88442         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
88443         stddef.h. rpl_malloc returns void *, not char *.
88444         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
88445         prototype.
88446
88447         * lib/md5.h: Include <limits.h> unconditionally.
88448         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
88449         (__P): Remove; all uses removed.
88450         * lib/md5.c: Include "md5.h" first.
88451         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
88452         md5_buffer, md5_process_bytes, md5_process_block):
88453         Define with prototypes.
88454         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
88455         * lib/sha.c: Include "sha.h" first.
88456         Include <stdlib.h>, <string.h> unconditionally.
88457
88458         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
88459         * lib/memcmp.c (__ptr_t): Likewise.
88460         * lib/memrchr.c (__ptr_t): Likewise.
88461         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
88462         Include <string.h> unconditionally.
88463         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
88464         * lib/memchr.c: Include <stdlib.h> unconditionally.
88465         * lib/memchr.c (LONG_MAX): Remove.
88466         * lib/memrchr.c (LONG_MAX): Likewise.
88467         * lib/memchr.c (__memchr): Define via a prototype.
88468         * lib/memrchr.c (__memrchr): Likewise.
88469         * lib/memcmp.c (__P): Remove, and remove all uses.
88470         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
88471         Remove forward decls; no longer needed.
88472         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
88473         Use types required by C89 in prototype.
88474
88475         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
88476         * lib/savedir.c: Likewise.
88477         * lib/mkdir.c (free): Remove decl.
88478         * lib/rmdir.c (rmdir): Define with a prototype.
88479         * lib/savedir.c: Include savedir.h first, to test interface.
88480
88481         * lib/mktime.c (STDC_HEADERS): Remove.
88482         Include <stdlib.h>, <string.h> unconditionally.
88483
88484         * lib/modechange.c: Include <stdlib.h> unconditionally.
88485         (malloc): Remove decl.
88486
88487         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
88488         (free): Remove decl.
88489
88490         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
88491         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
88492         (This type really should be intptr_t, but that's a C99ism.)
88493         (_obstack_memcpy): Remove: all uses changed to memcpy.
88494         Include <string.h> unconditionally.
88495         (struct obstack): Assume __STDC__ for types of members
88496         chunkfun, freefun, extra_arg.
88497         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
88498         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
88499         obstack_begin, obstack_specify_allocation,
88500         obstack_specify_allocation_with_arg, obstack_chunkfun,
88501         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
88502         Remove unprototyped decls and the macros that use them.
88503         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
88504         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
88505         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
88506         (defined __STDC__ && __STDC__)]:
88507         Remove nonprototyped code.
88508         Include <stdlib.h> unconditionally.
88509         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
88510         _obstack_allocated_p, _obstack_free, obstack_free,
88511         _obstack_memory_used, print_and_abort):
88512         Define using prototypes.
88513         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
88514         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
88515         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
88516         obstack_next_free, obstack_object_size, obstack_room) [0]:
88517         Remove unused, unprototyped code.
88518
88519         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
88520
88521         * lib/physmem.c (physmem_total, physmem_available, main): Define
88522         with prototypes.
88523
88524         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
88525         (main): Define with a prototype.
88526
88527         * lib/posixver.c (getenv): Remove decl.
88528
88529         * lib/putenv.c (malloc): Returns void *, not char *.
88530         Include <string.h> unconditionally.
88531         (strchr, memcpy, NULL): Do not define.
88532
88533         * lib/readtokens.c: Include readtokens.h first, to test interface.
88534         Include <stdlib.h>, <string.h> unconditionally.
88535         (init_tokenbuffer): Define with a prototype.
88536
88537         * lib/regex.c (PARAMS): Remove.  All uses removed.
88538         All uses of _RE_ARGS removed, too.
88539         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88540         unconditionally.
88541         (bzero): Assume memset exists.
88542         (memcmp, memcpy, NULL): Remove.
88543         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
88544         char, or assignments to local vars of type signed char.
88545         (init_syntax_once, PREFIX(extract_number_and_incr),
88546         PREFIX(print_partial_compiled_pattern),
88547         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
88548         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
88549         PREFIX(regex_grow_registers), PREFIX(regex_compile),
88550         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
88551         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
88552         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
88553         wcs_compile_range, byte_compile_range, truncate_wchar,
88554         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
88555         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
88556         count_mbs_length, wcs_re_match_2_internal,
88557         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88558         PREFIX(alt_match_null_string_p),
88559         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88560         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88561         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88562         now-unnecessary declaration, if any.
88563         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88564         regcomp, regexec):
88565         Remove now-unnecessary casts among pointer types.
88566         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88567
88568         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88569         (free): Remove decl.
88570
88571         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88572
88573         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88574         (free): Remove decl.
88575
88576         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88577         * lib/xgetcwd.c: Likewise.
88578
88579         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88580         (free): Remove decl.
88581
88582         * lib/strchrnul.c (strchrnul): Define with a prototype.
88583         Fix bug: c_in was not converted to char before searching.
88584
88585         The following changes are not K&R related:
88586
88587         * lib/group-member.h: Include <sys/types.h>, so that this file is
88588         self-contained.
88589         * lib/makepath.h: Likewise.
88590
88591         * lib/getusershell.c (readname, default_index, line_size, readname):
88592         Use size_t, not int, for sizes.
88593         (readname): If the size overflows, report an error instead of
88594         looping forever.
88595
88596 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88597
88598         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88599         libc.
88600
88601 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88602
88603         * README: New section: portability guidelines.
88604
88605 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88606
88607         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88608         C89 spec.
88609
88610 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88611
88612         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88613
88614 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88615
88616         Assume C89 or better; remove K&R cruft.
88617         A few of these changes were first proposed by Derek Robert Price
88618         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88619
88620         * lib/addext.c: Include <string.h> unconditionally.
88621         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88622         Don't declare getenv or malloc.
88623
88624         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88625         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88626         (NULL): Remove.
88627         (find_stack_direction, alloca): Use prototypes.
88628
88629         * lib/atexit.c (atexit): Define using a prototype.
88630
88631         * lib/basename.c, dirname.c, stripslash.c:
88632         Include <string.h> unconditionally.
88633
88634         * lib/bcopy.c: Include <stddef.h>.
88635         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88636
88637         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88638
88639         * lib/error.h (error, error_at_line, error_print_progname)
88640         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88641         * lib/error.c: Include error.h first, to check interface.
88642         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88643         (VA_START): Remove; all uses changeed to va_start.
88644         (exit, strerror): Remove decls.
88645         (error_print_progname): Prototype uncondionally.
88646         Don't include <errno.h>; no longer needed.
88647         (private_strerror): Remove.
88648         (error_tail): Always define.
88649         (error, error_at_line): Assume C89 or better; always use prototypes.
88650         * lib/fatal.c: Include "fatal.h" first, to test interface.
88651         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88652         (VA_START): Remove; all uses changed to va_start.
88653         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88654         this case.
88655         (exit): Remove decl.
88656         (fatal): Prototype unconditionally.  Assume va_start works.
88657         Abort at end, to pacify gcc.
88658
88659         * lib/euidaccess.c (main): Define with a prototype.
88660
88661         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88662
88663         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88664
88665         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88666         prototypes.
88667         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88668         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88669         (getenv): Remove decl.
88670         (fnmatch): Define using a prototype.
88671         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88672         (FCT): Define using a prototype.
88673
88674         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88675
88676         * lib/gethostname.c: Include <stddef.h>.
88677         (gethostname): Define with prototype.  Length is size_t, not int.
88678
88679 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88680
88681         Assume C89 or better; remove K&R cruft.
88682         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88683         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88684         string.h, getenv, malloc.
88685         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88686         headers.
88687         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88688         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88689         do not check for strerror.
88690         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88691         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88692         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88693         do not check for doprnt or vprintf.
88694         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88695         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88696
88697 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88698
88699         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88700         getversion.c should have been removed then, but was accidentally
88701         preserved.
88702
88703         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88704         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88705
88706 2003-09-08  Karl Berry  <karl@gnu.org>
88707
88708         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88709                 config, forget about prep.
88710
88711         * config/depcomp, missing: update from automake.
88712
88713 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88714
88715         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88716         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88717
88718 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88719
88720         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88721         copy_tm_result.  Bug reported by Simon Josefsson in
88722         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88723
88724 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88725
88726         * m4/time_r.m4: New file.
88727         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88728         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88729         is. Check for timegm declaration.
88730         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88731         Do not check for gmtime_r.
88732         Replace mktime if __mktime_internal does not exist and if mktime
88733         hasn't been replaced already.
88734
88735 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88736
88737         * lib/time_r.c, lib/time_r.h: New files.
88738
88739         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88740         __localtime_r.
88741         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88742         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88743
88744         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88745         __gmtime_r.
88746         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88747         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88748         Include <time_r.h>.
88749
88750         * lib/timegm.c: Switch to glibc implementation, with the following
88751         changes:
88752         [defined HAVE_CONFIG_H]: Include <config.h>.
88753         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88754         (__mktime_internal) [!defined _LIBC]: New decl.
88755         (__gmtime_r) [!defined _LIBC]: New macro and function.
88756         (timegm): Use a prototype, since gnulib assumes C89.
88757         Do not bother declaring tmp to be const, as it's not really usefu.
88758         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88759         (timegm): Declare only if HAVE_DECL_TIMEGM.
88760
88761 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88762
88763         * MODULES.html.sh (func_all_modules): Add time_r.
88764         * modules/time_r: New file.
88765         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88766         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88767
88768 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88769
88770         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88771         Bug reported by Lute Kamstra in
88772         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88773
88774         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88775         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88776         course with correspondingly smaller numbers for tomorrow and
88777         yesterday.  From Tadayoshi Funaba.  Originally installed into
88778         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88779         coreutils merge?).
88780
88781 2003-08-31  Simon Josefsson  <jas@extundo.com>
88782
88783         * modules/timegm: New file.
88784         * MODULES.html.sh (func_all_modules): Add timegm.
88785
88786 2003-08-31  Simon Josefsson  <jas@extundo.com>
88787
88788         * m4/timegm.m4: New file.
88789
88790 2003-08-31  Simon Josefsson  <jas@extundo.com>
88791
88792         * lib/timegm.h: New file.
88793         * lib/timegm.c: New file.  Based on
88794         wget-1.8.2/src/http.c:mktime_from_utc.
88795
88796 2003-08-31  Karl Berry  <karl@gnu.org>
88797
88798         * lib/argp.h: update from libc.
88799
88800 2003-08-28  Bruno Haible  <bruno@clisp.org>
88801
88802         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88803         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88804         followed by '#define fnmatch fnmatch_posix' gives an error.
88805
88806 2003-08-28  Bruno Haible  <bruno@clisp.org>
88807
88808         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88809         warning on QNX, which defines O_BINARY to 000000.
88810
88811 2003-08-27  Jim Meyering  <jim@meyering.net>
88812
88813         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88814         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88815         would fail after 32.  Reported by Danny Levinson.  Details here:
88816         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88817
88818 2003-08-24  Bruno Haible  <bruno@clisp.org>
88819
88820         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88821         MSVC7 <stdio.h> is included later.
88822
88823 2003-08-22  Simon Josefsson  <jas@extundo.com>
88824
88825         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88826
88827 2003-08-20  Karl Berry  <karl@gnu.org>
88828
88829         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88830
88831 2003-08-20  Bruno Haible  <bruno@clisp.org>
88832
88833         * modules/progname: New file.
88834         * MODULES.html.sh (func_all_modules): Add progname.
88835
88836 2003-08-20  Bruno Haible  <bruno@clisp.org>
88837
88838         * lib/progname.h: New file, from GNU gettext.
88839         * lib/progname.c: New file, from GNU gettext.
88840         * lib/progreloc.c: New file, from GNU gettext.
88841
88842 2003-08-19  Jim Meyering  <jim@meyering.net>
88843
88844         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88845         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88846
88847 2003-08-19  Bruno Haible  <bruno@clisp.org>
88848
88849         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88850         more.
88851
88852 2003-08-19  Bruno Haible  <bruno@clisp.org>
88853
88854         * lib/xstrdup.c: Assume <string.h> exists.
88855
88856 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88857
88858         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88859         in makefile rules.
88860
88861 2003-08-18  Jim Meyering  <jim@meyering.net>
88862
88863         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88864         * m4/lib-ld.m4: Likewise.
88865
88866 2003-08-18  Jim Meyering  <jim@meyering.net>
88867
88868         * lib/setenv.h: Indent nested cpp directive.
88869         * lib/vasnprintf.c: Remove trailing blanks.
88870
88871 2003-08-17  Simon Josefsson  <jas@extundo.com>
88872
88873         * modules/xstrndup: New file.
88874         * MODULES.html.sh (func_all_modules): Add xstrndup.
88875
88876 2003-08-17  Simon Josefsson  <jas@extundo.com>
88877
88878         * modules/argp: Fix autoconf macro name. Add more dependencies.
88879
88880 2003-08-17  Simon Josefsson  <jas@extundo.com>
88881
88882         * m4/xstrndup.m4: New file.
88883
88884 2003-08-17  Simon Josefsson  <jas@extundo.com>
88885
88886         * m4/argp.m4: New file.
88887
88888 2003-08-17  Simon Josefsson  <jas@extundo.com>
88889             Bruno Haible  <bruno@clisp.org>
88890
88891         * lib/xstrndup.h: New file.
88892         * lib/xstrndup.c: New file.
88893
88894 2003-08-17  Bruno Haible  <bruno@clisp.org>
88895
88896         * modules/strndup (Files, Include): Add lib/strndup.h.
88897
88898 2003-08-17  Bruno Haible  <bruno@clisp.org>
88899
88900         * modules/euidaccess (Files): Add lib/euidaccess.h.
88901
88902 2003-08-17  Bruno Haible  <bruno@clisp.org>
88903
88904         * lib/strndup.h: New file.
88905
88906 2003-08-17  Bruno Haible  <bruno@clisp.org>
88907
88908         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88909         like AC_GNU_SOURCE.
88910         * modules/extensions (configure.ac): Comment out the invocation of
88911         gl_USE_SYSTEM_EXTENSIONS.
88912
88913 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88914
88915         Merges from coreutils, etc.
88916         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88917         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88918         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88919         fixing a typo.
88920         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88921         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88922
88923 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88924
88925         Document merge from coreutils.
88926         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88927         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88928         * modules/utime: Add m4/utimes-null.m4.
88929
88930 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88931
88932         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88933         space, undoing this 2003-08-12 change:
88934         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88935
88936 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88937
88938         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88939         strtoul.c from libc, undoing this 2003-08-12 change:
88940         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88941
88942 2003-08-16  Jim Meyering  <jim@meyering.net>
88943
88944         Merges from coreutils.
88945         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88946         prefix.  Adjust cache variables similarly.  Create 500 rather than
88947         just 300 files, to exercise bug on Darwin6.5, too.
88948         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88949         $missing_dir.
88950         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88951         AM_SYS_POSIX_TERMIOS.
88952         Reported by mkc@mathdogs.com.
88953         Also change use of $am_cv_sys_posix_termios
88954         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88955         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88956         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88957         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88958         in /proc/mounts until it finds one with matching device number.  This
88959         is unnecessary when the FILE argument *is* a mount point.  No stat call
88960         is necessary in that case.  So, disable the statvfs-testing code on
88961         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88962         as RedHat bug# 84846.
88963         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88964         to 1MB, so as not to render systems with no stack size limit (e.g.,
88965         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88966         Include <unistd.h>.  On some systems,
88967         it is required for the definition of _SC_PAGESIZE.
88968
88969 2003-08-16  Jim Meyering  <jim@meyering.net>
88970
88971         Merge from coreutils.
88972         * lib/xstrtoimax.c: #else #if -> #elif.
88973         * lib/xstrtoumax.c: Likewise.
88974
88975 2003-08-16  Jim Meyering  <jim@meyering.net>
88976
88977         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88978         * m4/utimes.m4: Removed.
88979         * m4/utimes-null.m4: Renamed from utimes.m4.
88980
88981         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88982         to 1MB, so as not to render systems with no stack size limit (e.g.,
88983         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88984         Include <unistd.h>.  On some systems,
88985         it is required for the definition of _SC_PAGESIZE.
88986
88987 2003-08-16  Jim Meyering  <jim@meyering.net>
88988         and Paul Eggert  <eggert@cs.ucla.edu>
88989
88990         Merges from coreutils, etc.
88991
88992         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88993         using the latest version from cvs.  This avoids problems with #line
88994         directives using a vendor (Sun) compiler.
88995         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88996         Don't set GETGROUPS_LIB here; now it's
88997         done via getgroups.m4's wrapper function.
88998         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88999         rather than just in sh-util/configure.in, so that the
89000         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
89001         same.
89002         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
89003         AC_FUNC_GETLOADAVG where to find getloadavg.c.
89004         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
89005         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
89006         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
89007         Remove code that is now done by the newly-required macros.
89008         Append $(EXEEXT) to DF_PROG.
89009         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
89010         Do not invoke or require the following here,
89011         since prereq.m4 or some gnulib .m4 now does this for us:
89012         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
89013         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
89014         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
89015         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
89016         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
89017         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
89018         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
89019         AC_FUNC_OBSTACK.
89020         Do not replace the following functions, as this is now the job
89021         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
89022         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
89023         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
89024         atexit getpass, strdup, getpagesize.
89025         Replace 'raise'.
89026         Do not check for the following functions, as this is now the job
89027         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
89028         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
89029         setregid.
89030         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
89031         Check for sys/sysctl.h.
89032         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
89033         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
89034         of checking for ssize_t ourselves.
89035
89036         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
89037         Require every macro that gnulib/modules/* suggests for us.
89038         (jm_PREREQ_ADDEXT): New macro.
89039         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
89040         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
89041
89042         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
89043         (gl_PHYSMEM): Use it.
89044         Also check for `table' function.
89045         Check for new headers and functions.
89046         Add check for sys/sysmp.h.
89047         With suggestions from Kaveh Ghazi.
89048         Ignore headers that are present but cannot be compiled.  This
89049         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
89050         C 5.4.
89051
89052 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89053
89054         Document merge from coreutils.
89055         * modules/userspec: Depend on posixver.
89056         * modules/strftime: Depend on tzset.
89057
89058 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89059
89060         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
89061         rather than tab, after '#' in shell-script copyright notices.
89062         Suggested by Bruno Haible.
89063
89064 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89065
89066         * config/srclist-update: Use three spaces, rather than tab, after '#'
89067         in shell-script copyright notices.  Suggested by Bruno Haible.
89068         Remove unnecessary parenthesization in regular expression.
89069
89070 2003-08-15  Jim Meyering  <jim@meyering.net>
89071
89072         Merge from coreutils.
89073         * lib/xgethostname.c: Include <stdlib.h>.
89074         (xghostname): Don't exit for anything other than memory-related
89075         failure; just return NULL.
89076         * lib/userspec.c: Include "posixver.h".
89077         (parse_user_spec): Accept `.' as a separator only
89078         in pre-POSIX-200112 mode.
89079         * lib/strtoimax.c: Use #elif rather than #else #if.
89080         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
89081         Remove function, now that we can rely on a working tzset function.
89082         [!_LIBC]: Ensure that the required autoconf test has been run.
89083         [!defined _NL_CURRENT && HAVE_STRFTIME]:
89084         Use underlying_strftime for %r.
89085         * lib/sha.c: Merge in some clean-up and optimization changes from
89086         glibc.
89087         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
89088         Ensure that it is a multiple of 64.
89089         Rearrange loop exit tests so as to avoid performing an
89090         additional fread after encountering an error or EOF.
89091         * lib/realloc.c: Update copyright date.
89092
89093 2003-08-15  Jim Meyering  <jim@meyering.net>
89094         and Paul Eggert  <eggert@twinsun.com>
89095
89096         Merge from coreutils.
89097         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
89098         member but strut utmpx does not.  Needed for AIX 4.3.3.
89099         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
89100
89101 2003-08-15  Jim Meyering  <jim@meyering.net>
89102         and Paul Eggert  <eggert@cs.ucla.edu>
89103
89104         Merges from coreutils, etc.
89105         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
89106         Require gl_FUNC_TZSET_CLOBBER.
89107         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
89108         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
89109         members.
89110
89111 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89112
89113         Help the merge from coreutils.
89114         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
89115         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
89116         * m4/tzset.m4: Use it too.
89117
89118 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89119
89120         * modules/tzset: New file.
89121
89122 2003-08-14  Jim Meyering  <jim@meyering.net>
89123
89124         Merges from coreutils.
89125         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
89126         variable names, rather than @FNMATCH_H@.
89127         * modules/alloca: Likewise for $(ALLOCA_H).
89128
89129         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
89130         the three copies of the literal target, `fnmatch.h'.
89131         * modules/alloca (alloca.h): Likewise.
89132
89133 2003-08-14  Jim Meyering  <jim@meyering.net>
89134
89135         Merge from coreutils.
89136         * m4/tzset.m4: New file.
89137         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
89138         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
89139         otherwise, AIX 5.1 systems would end up using the latter.
89140         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
89141         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
89142         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
89143         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
89144
89145 2003-08-14  Jim Meyering  <jim@meyering.net>
89146
89147         Merge from coreutils.
89148         * lib/obstack.h: Whitespace changes.
89149         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
89150         and xcalloc return values.
89151         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
89152         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
89153         hang on OSF/1 5.1 for DIR on both local and remote file systems.
89154         Reported by (and fix confirmed by) Nelson H. F. Beebe.
89155         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89156         error from mntctl.
89157         Use mntctl's return value to drive the entry-processing loop, since
89158         we can't rely on the value of the vmt_length member in the last
89159         entry.  On some systems doing so could result in exhausting
89160         virtual memory.  Based in part on a patch from Mike Jetzer.
89161
89162 2003-08-14  Jim Meyering  <jim@meyering.net>
89163         and Paul Eggert  <eggert@twinsun.com>
89164
89165         Merges from coreutils, plus other fixes.
89166         * lib/physmem.c: Merge in portability changes from gcc/libiberty
89167         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
89168         for credits and details.  Thanks to Kaveh Ghazi for helping
89169         to keep these files in sync.
89170         (ARRAY_SIZE): Define it.
89171         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
89172         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
89173         (memcasecmp): Don't assume size_t fits in unsigned int.
89174         Remove casts and duplicate code.
89175         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
89176         (memcpy): Remove definition.
89177         Merge in some clean-up and optimization changes from glibc.
89178         [BLOCKSIZE]: Move definition to top of file.
89179         Ensure that it is a multiple of 64.
89180         Rearrange loop exit tests so as to avoid performing an
89181         additional fread after encountering an error or EOF.
89182         * lib/md5.h (md5_uintptr): Define.
89183         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
89184         return to the initial working directory.  Preserve errno
89185         for caller.
89186         * lib/idcache.c: Include "xalloc.h".
89187         (xmalloc, xrealloc): Remove decls.
89188         (getuser): Remove casts no longer required in C89.
89189         * lib/human.c: Include stdio.h, for sprintf.
89190         * lib/group-member.c: Include "xalloc.h".
89191         (xmalloc, xrealloc): Remove decls.
89192         (get_group_info): Remove casts no longer required in C89.
89193         * lib/getusershell.c (readname): Remove casts no longer required in
89194         C89.
89195         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
89196         * lib/getline.c: Whitespace fix, from coreutils.
89197
89198 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89199
89200         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
89201         Check for isascii.
89202
89203         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89204         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89205         Undo previous (whitespace-only) change.
89206
89207 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89208
89209         * lib/exclude.c: Include <ctype.h>
89210         (IN_CTYPE_DOMAIN): New macro.
89211         (is_space): New fn.
89212         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
89213         and empty lines.
89214
89215         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89216         Undo previous (whitespace-only) change.
89217
89218 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89219
89220         * config/srclist-update: Change update back to the old behavior,
89221         leaving whitespace alone.  Use one 'sed' command rather than a
89222         pipeline.
89223         (fixlicense): Now a variable, not a function.
89224         (remove_trailing_blanks): Remove.
89225         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
89226         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89227         Undo previous (whitespace-only) change.
89228
89229 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89230
89231         Merge from coreutils.
89232         * modules/euidaccess: Add lib_SOURCES, include for new
89233         file euidaccess.h
89234
89235 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89236
89237         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89238         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89239         Normalize leading white space and remove trailing white space.
89240
89241         Merge from coreutils
89242         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
89243
89244         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
89245         0.12.1.  These files are now being upgraded automatically by
89246         ../config/srclist-update.
89247
89248 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89249
89250         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89251         Normalize leading white space and remove trailing white space.
89252         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
89253         notice, as per ../config/srclist-update.
89254
89255         Merge from coreutils.
89256         * lib/euidaccess.h: New file.
89257         * lib/euidaccess.c: Include it.
89258         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
89259         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
89260         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
89261
89262 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89263
89264         * config/srclist-update: Add copyright notice.
89265         (remove_id_lines, remove_trailing_blanks): New constants.
89266         (fixfile): Use them to normalize spacing a bit in copied files.
89267         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89268         Normalize leading white space and remove trailing white space.
89269
89270         * config/texinfo.tex: Sync with texinfo.
89271
89272         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
89273         strtoul.c from libc, to merge coreutils whitespace changes.
89274
89275         * config/srclist.txt: Get the following m4 files from gettext:
89276         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
89277         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
89278         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
89279         wint_t.m4.
89280
89281 2003-08-12  Karl Berry  <karl@gnu.org>
89282
89283         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
89284         been made.
89285
89286 2003-08-11  Paul Eggert  <eggert@twinsun.com>
89287
89288         * modules/gnu-source, m4/gnu-source.m4:
89289         Remove; we're assuming Autoconf 2.54 or later now.
89290         Suggested by Bruno Haible.
89291         * MODULES.html.sh (func_all_modules): Remove gnu-source.
89292
89293 2003-08-11  Bruno Haible  <bruno@clisp.org>
89294
89295         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
89296
89297 2003-08-11  Bruno Haible  <bruno@clisp.org>
89298
89299         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
89300         (vasnprintf): Use it instead of wcslen.
89301
89302 2003-08-11  Bruno Haible  <bruno@clisp.org>
89303
89304         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
89305         value to ensure that _Bool promotes to int. Use #define for _Bool when
89306         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
89307
89308 2003-08-10  Karl Berry  <karl@gnu.org>
89309
89310         * lib/regex.h: update from libc (whitespace fix).
89311
89312 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89313
89314         Merge some files from coreutils.  These changes were
89315         originally made by Jim Meyering.
89316         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
89317         many older Unixes require this.
89318         * lib/alloca.c (alloca): Remove cast to argument of free;
89319         no longer needed in C89.
89320         * lib/alloca_.h, regex.h: Fix white space to match
89321         what GNU indent does.
89322
89323 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89324
89325         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
89326         apparently Emacs's Unicode mode got confused before my 2003-08-05
89327         checkin.
89328
89329 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89330
89331         * m4/extensions.m4: New file.
89332         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
89333         Require gl_USE_SYSTEM_EXTENSIONS.
89334         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
89335         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
89336
89337 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89338
89339         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
89340         * modules/extensions, modules/gnu-source: New files.
89341         * modules/timespec, modules/unlocked-io: Depend on extensions.
89342
89343 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89344
89345         * modules/restrict: New file.
89346         * MODULES.html.sh (func_all_modules): Add restrict.
89347         * modules/regex: Depend on restrict.
89348
89349 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89350
89351         * m4/restrict.m4: New file.
89352         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
89353
89354 2003-08-07  Bruno Haible  <bruno@clisp.org>
89355
89356         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
89357         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
89358
89359 2003-08-07  Bruno Haible  <bruno@clisp.org>
89360
89361         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
89362         makes the module 'getndelim2' compatible with the module 'getline'.
89363
89364 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89365
89366         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
89367         byte with "\201" to avoid glitches when editing that source file
89368         with multi-gnome-terminal.
89369
89370 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89371
89372         * lib/bumpalloc.h: Remove.
89373
89374 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89375
89376         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
89377         * modules/bumpalloc: Remove.
89378
89379 2003-08-04  Paul Eggert  <eggert@twinsun.com>
89380
89381         * lib/getloadavg.c: Change copyright notice and spacing to conform to
89382         GNU coding style.
89383
89384         Merge from coreutils.
89385         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
89386         1. From glibc.
89387         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
89388         from Karl Berry, implemented by Jim Meyering.
89389         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
89390         from Dmitry V. Levin.
89391         Remove anachronistic cast of xrealloc.
89392         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
89393         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
89394         type. Otherwise, it wouldn't compile with at least /bin/cc on
89395         ymp-cray-unicos9.0.2.X.
89396         Combine two mostly-identical uses of alloca into one.
89397         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
89398
89399 2003-08-04  Dave Love  <d.love@dl.ac.uk>
89400
89401         [From Emacs.]
89402
89403         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
89404         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
89405         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
89406         obsolete NLIST_NAME_UNION.
89407         [__GNU__]: Undef BSD and FSCALE.
89408         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
89409
89410 2003-08-03  Paul Eggert  <eggert@twinsun.com>
89411
89412         * lib/stdbool_.h (_Bool): Make it signed char, instead of
89413         an enum type, so that it's guaranteed to promote to int.  See:
89414         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
89415
89416 2003-08-03  Karl Berry  <karl@gnu.org>
89417
89418         * config/depcomp: update from automake.
89419
89420 2003-07-31  Paul Eggert  <eggert@twinsun.com>
89421
89422         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
89423         (strerror): Don't assume that a printable int fits in 14 bytes.
89424
89425 2003-07-31  Bruno Haible  <bruno@clisp.org>
89426
89427         * modules/getpass-gnu: New file.
89428         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
89429
89430 2003-07-31  Bruno Haible  <bruno@clisp.org>
89431
89432         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
89433
89434 2003-07-24  Karl Berry  <karl@gnu.org>
89435
89436         * config/missing: update from automake.
89437
89438 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
89439             Bruno Haible  <bruno@clisp.org>
89440
89441         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
89442         * lib/getline.c (getline, getdelim): Likewise.
89443         Remove _GNU_SOURCE define; now it's defined in config.h through
89444         m4/getline.m4.
89445
89446 2003-07-23  Karl Berry  <karl@gnu.org>
89447
89448         * config/config.sub: update from prep.
89449
89450 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89451
89452         * modules/xalloc (Depends-on): Add exitfail.
89453         * modules/xmemcoll: Likewise.
89454
89455 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89456
89457         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
89458         over-parenthesization in macros.
89459
89460         Sync with coreutils.
89461
89462         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
89463         required by C99.
89464
89465         Use `exit_failure' for xalloc and xmemcoll instead of their own
89466         private exit-failure variables.
89467         * lib/xalloc.h (xalloc_exit_failure): Remove.
89468         * lib/xmalloc.c: Likewise.  Include exitfail.h.
89469         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
89470         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
89471         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
89472         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
89473
89474 2003-07-20  Jim Meyering  <jim@meyering.net>
89475
89476         * modules/closeout (Depends-on): Add exitfail.
89477         Suggestion from Bruno Haible.
89478
89479 2003-07-19  Karl Berry  <karl@gnu.org>
89480
89481         * config/config.sub: update from prep.
89482
89483 2003-07-18  Paul Eggert  <eggert@twinsun.com>
89484
89485         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
89486         Remove.
89487         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
89488         to test that it can stand by itself.  Include "exitfail.h".
89489         Clients should set exit_failure instead.
89490         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
89491
89492 2003-07-18  Bruno Haible  <bruno@clisp.org>
89493
89494         * modules/getndelim2: New file.
89495         * modules/getline: Share files with module getndelim2.
89496         * modules/getnline: Depend on getndelim2 instead of sharing files with
89497         it. Add getnline.c to lib_SOURCES.
89498         * MODULES.html.sh (func_all_modules): Add getndelim2.
89499
89500 2003-07-18  Bruno Haible  <bruno@clisp.org>
89501
89502         * m4/getndelim2.m4: New file.
89503         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
89504         invoke gl_PREREQ_GETNDELIM2.
89505         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
89506         gl_PREREQ_GETNDELIM2.
89507         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
89508         gl_GETNDELIM2.
89509
89510 2003-07-18  Bruno Haible  <bruno@clisp.org>
89511
89512         * lib/getndelim2.h: New file.
89513         * lib/getndelim2.c: Make into a module of its own. Include config.h,
89514         getndelim2.h.
89515         (getndelim2): Make non-static. Change return type to ssize_t.
89516         * lib/getline.h: Change argument names.
89517         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
89518         * lib/getnline.c: Include getndelim2.h.
89519
89520 2003-07-18  Andreas Schwab  <schwab@suse.de>
89521
89522         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
89523
89524 2003-07-17  Karl Berry  <karl@gnu.org>
89525
89526         * config/config.sub: update from prep.
89527
89528 2003-07-17  Bruno Haible  <bruno@clisp.org>
89529
89530         * modules/getnline: New file.
89531         * modules/getline: Add lib/getndelim2.c to source file list.
89532         * MODULES.html.sh (func_all_modules): Add getnline.
89533
89534 2003-07-17  Bruno Haible  <bruno@clisp.org>
89535
89536         * m4/getnline.m4: New file.
89537
89538 2003-07-17  Bruno Haible  <bruno@clisp.org>
89539
89540         * m4/Makefile.am.in: Remove file.
89541         * m4/Makefile.am: Remove file.
89542         * m4/Makefile.in: Remove file.
89543
89544 2003-07-17  Bruno Haible  <bruno@clisp.org>
89545
89546         * lib/getnline.h: New file.
89547         * lib/getnline.c: New file.
89548         * lib/getndelim2.c: New file, extracted from getline.c.
89549         (getndelim2): Renamed from getdelim2, with added nmax argument.
89550         * lib/getline.c: Include getndelim2.c.
89551         (getdelim2): Moved out to getndelim2.c.
89552         (getline, getdelim): Update.
89553
89554 2003-07-17  Bruno Haible  <bruno@clisp.org>
89555
89556         * lib/Makefile.am: Remove file.
89557         * lib/Makefile.in: Remove file.
89558
89559 2003-07-17  Bruno Haible  <bruno@clisp.org>
89560
89561         * configure.in: Remove file.
89562         * Makefile.in: Remove file.
89563
89564 2003-07-17  Bruno Haible  <bruno@clisp.org>
89565
89566         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89567
89568 2003-07-16  Karl Berry  <karl@gnu.org>
89569
89570         * config/srclist-update: was running fixlicense twice, which caused
89571                 texinfo.tex to be nullified for some reason.  Simplify,
89572                 $gplsrc is no longer needed as far as I can see?
89573
89574 2003-07-16  Jim Meyering  <jim@meyering.net>
89575
89576         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89577
89578 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89579
89580         * config/srclist.txt: Get the following files from gettext-runtime/intl
89581         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89582         ref-del.sin.  From Bruno Haible.
89583         * config/srclist-update (fixfile): Change grep pattern again, since the
89584         previous fix didn't work (there was another trailing $).  Use
89585         '[$]' to escape the $s.
89586
89587 2003-07-15  Karl Berry  <karl@gnu.org>
89588
89589         * lib/vasnprintf.c: update from gettext.
89590
89591 2003-07-15  Karl Berry  <karl@gnu.org>
89592
89593         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89594         gets expanded when surrounded by '$'.
89595
89596 2003-07-15  Jim Meyering  <jim@meyering.net>
89597
89598         * modules/save-cwd: Don't depend on error.  From Derek Price.
89599
89600 2003-07-15  Jim Meyering  <jim@meyering.net>
89601
89602         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89603
89604 2003-07-14  Simon Josefsson  <jas@extundo.com>
89605
89606         * modules/mempcpy: New file.
89607         * MODULES.html.sh (func_all_modules): Add mempcpy.
89608
89609 2003-07-14  Simon Josefsson  <jas@extundo.com>
89610
89611         * m4/mempcpy.m4: New file.
89612
89613 2003-07-14  Simon Josefsson  <jas@extundo.com>
89614
89615         * lib/mempcpy.h: New file.
89616         * lib/mempcpy.c: New file.
89617
89618 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89619
89620         * modules/getdate, modules/posixtm: Depend on mktime.
89621
89622 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89623
89624         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89625         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89626         unicodeio.c, unicodeio.h, unlocked-io.h:
89627         Switch from LGPL to GPL.
89628
89629 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89630
89631         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89632         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89633         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89634         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89635         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89636         updated automatically by ../config/srclist-update.  This changes
89637         their license from LPGL to GPL.
89638
89639 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89640
89641         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89642         assumed to refer to the root of the most recent stable gettext version.
89643         * config/srclistvars.sh: Add defaults for eggert.
89644         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89645         Match "This program" as well as "The program".  This is needed
89646         for gettext.
89647
89648 2003-07-14  Jim Meyering  <jim@meyering.net>
89649
89650         Don't emit diagnostics.  Let callers do that.
89651         * lib/save-cwd.c: Don't include "error.h".
89652         (save_cwd): Don't call error.  Ensure that errno is valid
89653         when returning nonzero.
89654
89655         * lib/save-cwd.h (restore_cwd): Update prototype.
89656         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89657         Simplify.  Don't call error upon failure.  Let callers do that.
89658         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89659         when auditing is enabled.  But don't bother updating the #if.
89660
89661 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89662
89663         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89664         it breaks C++ compilation.
89665         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89666
89667 2003-07-10  Simon Josefsson  <jas@extundo.com>
89668
89669         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89670
89671 2003-07-10  Jim Meyering  <jim@meyering.net>
89672
89673         * m4/clock_time.m4: Remove trailing blank.
89674         * m4/intmax_t.m4: Likewise.
89675
89676 2003-07-10  Jim Meyering  <jim@meyering.net>
89677
89678         * lib/vasnprintf.c: Remove trailing blanks.
89679         Make cpp indentation consistent.
89680
89681 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89682
89683         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89684         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89685         Switch from LGPL to GPL.
89686
89687 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89688
89689         * config/srclist.txt: Sort sublists.  Add
89690         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89691         that differ from gnulib for one reason or another; we'd like this list
89692         to be smaller but for now let's document what we have.
89693
89694 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89695
89696         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89697         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89698         and sweeter "eval x=$x".
89699         * config/srclist.txt: Get lib/argp* from glibc.
89700
89701 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89702
89703         * lib/mktime.c: Fix some boundary cases and remove need for floating
89704         point.
89705
89706         Issue a compile-time diagnostic if time_t is floating point, or if
89707         two's complement arithmetic is not in effect, or if arithmetic
89708         right shift does not propagate the sign.  These assumptions were
89709         all in the original code but they weren't checked.
89710
89711         (TIME_T_MIDPOINT, verify): New macros.
89712         (__isleap): Remove; it has integer overflow problems.
89713         (leapyear): New function, without those problems.
89714         (ydhms_tm_diff): Remove; splitting into two parts.
89715         (ydhms_diff): New function, containing the arithmetic part of
89716         the old ydhms_tm_diff function.  Issue a compile-time
89717         diagnostic if we are not using C99 integer division.
89718         Avoid casts when possible.
89719         (guess_time_tm): New function, containing the checking part of
89720         the old ydhms_tm_diff function.  Return the new value, rather than
89721         the difference between it and the old.  Accept a new argument T
89722         so that *T specifies the old value.  Check for overflow in the result.
89723
89724         (__mktime_internal): Use a time_t offset, not a long int offset.
89725         This undoes the 2003-06-04 change, which is no longer needed now
89726         that we have better overflow checking.
89727         (localtime_offset): Likewise.
89728
89729         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89730         and long are 64-bit but int is only 32-bit.
89731         (ydhms_diff): Use long int to store year1 and yday1.
89732         Issue a compile-time diagnostic if long int is not wide enough.
89733
89734         (__mktime_internal): Use long int to store adjusted year and yday.
89735         Use plain C rather than preprocessor commands, if that doesn't
89736         affect efficiency.
89737         Check for overflow (and try to repair) after each probe
89738         rather than checking only at the very end.  This avoids some bugs
89739         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89740         does not equal GMT offset at maximum time).
89741         Use integer to check for overflow rather than floating point; this
89742         is more portable to non-IEEE hosts, and is a tad faster.
89743         When we detect that we are oscillating between two values,
89744         don't check whether tm_isdst has the requested value, since
89745         we already know the answer.  When tm_isdst has the wrong value,
89746         use a different heuristic to find the right one, based on the
89747         extreme values actually observed in practice in tz2003a,
89748         rather than the (overly optimistic) "previous 3 calendar quarters".
89749
89750         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89751         "T const" to accommodate glibc style.
89752         (check_result): Use less-confusing report format.  "long" -> "long int.
89753         (main): Likewise.
89754         Don't loop if the iteration overflows time_t.
89755         Allow a negative step in the iteration.
89756
89757 2003-07-06  Karl Berry  <karl@gnu.org>
89758
89759         * config/depcomp: update from automake.
89760         * config/config.sub: update from prep.
89761
89762 2003-07-03  Karl Berry  <karl@gnu.org>
89763
89764         * config/config.guess: update from prep.
89765
89766 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89767
89768         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89769         xreadlink.c now includes it unconditionally.
89770
89771 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89772
89773         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89774         having it depend on HAVE_SYS_TYPES_H.
89775
89776 2003-07-01  Bruno Haible  <bruno@clisp.org>
89777
89778         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89779         <sys/types.h> should be sufficient.
89780         Reported by Paul Eggert.
89781
89782 2003-06-26  Karl Berry  <karl@gnu.org>
89783
89784         * config/depcomp: update from automake.
89785
89786 2003-06-26  Bruno Haible  <bruno@clisp.org>
89787
89788         * modules/human: Depend on module stdbool.
89789
89790 2003-06-25  Bruno Haible  <bruno@clisp.org>
89791
89792         * modules/readlink: New file.
89793         * modules/xreadlink: Depend on it.
89794         * MODULES.html.sh (func_all_modules): Add readlink.
89795
89796 2003-06-25  Bruno Haible  <bruno@clisp.org>
89797
89798         * m4/readlink.m4: New file.
89799
89800 2003-06-25  Bruno Haible  <bruno@clisp.org>
89801
89802         * lib/readlink.c: New file.
89803
89804 2003-06-22  Karl Berry  <karl@gnu.org>
89805
89806         * config/srclist.txt: update mkinstalldirs from automake.
89807         * config/mkinstalldirs: update.
89808
89809 2003-06-22  Bruno Haible  <bruno@clisp.org>
89810
89811         Portability to mingw32.
89812         * m4/ssize_t.m4: New file, from GNU gettext.
89813         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89814         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89815
89816 2003-06-22  Bruno Haible  <bruno@clisp.org>
89817
89818         * modules/safe-read: Add m4/ssize_t.m4.
89819         * modules/xreadlink: Add m4/ssize_t.m4.
89820
89821 2003-06-20  Bruno Haible  <bruno@clisp.org>
89822
89823         Assume C89, so PARAMS isn't needed.
89824         * lib/unicodeio.h (PARAMS): Remove.
89825         * lib/unicodeio.c: Don't use PARAMS.
89826
89827 2003-06-18  Karl Berry  <karl@gnu.org>
89828
89829         * config/config.{guess,sub}: update from prep.
89830
89831 2003-06-18  Jim Meyering  <jim@meyering.net>
89832
89833         Merge changes from coreutils.
89834         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89835         Remove explicit declarations of xmalloc and realloc.
89836         Include xalloc.h.
89837         (read_utmp): Remove anachronistic cast of xmalloc.
89838
89839 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89840
89841         Assume C89, so PARAMS isn't needed.
89842         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89843         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89844         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89845         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89846         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89847         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89848         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89849         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89850         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89851         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89852         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89853         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89854         no longer needed. Anyway, config.h should always be included before any
89855         other file.
89856
89857 2003-06-11  Simon Josefsson  <jas@extundo.com>
89858
89859         * modules/sysexits: New file.
89860         * MODULES.html.sh (func_all_modules): Add sysexits.
89861
89862 2003-06-11  Simon Josefsson  <jas@extundo.com>
89863
89864         * lib/sysexit_.h: New file.
89865
89866 2003-06-11  Derek Price  <derek@ximbiot.com>
89867
89868         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89869         necessary.
89870
89871 2003-06-11  Bruno Haible  <bruno@clisp.org>
89872
89873         * m4/sysexits.m4: New file.
89874
89875 2003-06-10  Simon Josefsson  <jas@extundo.com>
89876
89877         * lib/argp.h: New file, from glibc.
89878         * lib/argp-ba.c: New file, from glibc.
89879         * lib/argp-eexst.c: New file, from glibc.
89880         * lib/argp-fmtstream.c: New file, from glibc.
89881         * lib/argp-fmtstream.h: New file, from glibc.
89882         * lib/argp-fs-xinl.c: New file, from glibc.
89883         * lib/argp-help.c: New file, from glibc.
89884         * lib/argp-namefrob.h: New file, from glibc.
89885         * lib/argp-parse.c: New file, from glibc.
89886         * lib/argp-pv.c: New file, from glibc.
89887         * lib/argp-pvh.c: New file, from glibc.
89888         * lib/argp-xinl.c: New file, from glibc.
89889
89890 2003-06-10  Simon Josefsson  <jas@extundo.com>
89891
89892         * modules/strchrnul: New file.
89893
89894 2003-06-10  Simon Josefsson  <jas@extundo.com>
89895
89896         * modules/argp: New file.
89897
89898 2003-06-10  Simon Josefsson  <jas@extundo.com>
89899
89900         * m4/strchrnul.m4: New file.
89901
89902 2003-06-10  Simon Josefsson  <jas@extundo.com>
89903
89904         * lib/strchrnul.h: New file.
89905         * lib/strchrnul.c: New file.
89906
89907 2003-06-10  Bruno Haible  <bruno@clisp.org>
89908
89909         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89910
89911 2003-06-07  Karl Berry  <karl@gnu.org>
89912
89913         * config/config.{guess,sub}: update from prep.
89914
89915 2003-06-07  Jim Meyering  <jim@meyering.net>
89916
89917         * modules/strtod: Use $(...) notation, not @...@ for
89918         AC_REPLACE'd variables.
89919         * modules/localcharset: Likewise.
89920
89921 2003-06-07  Jim Meyering  <jim@meyering.net>
89922
89923         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89924         in place of my name in the copyright comment.
89925         Remove definition and uses of __P.
89926
89927         From coreutils.
89928         * lib/stat.c: Don't declare xmalloc explicitly.
89929         Instead, include "xalloc.h".
89930         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89931         xrealloc, and xcalloc return values.
89932         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89933         Improve comment.
89934         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89935
89936 2003-06-07  Bruno Haible  <bruno@clisp.org>
89937
89938         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89939         avoid AC_CONFIG_LINKS.
89940         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89941         fnmatch.h, to avoid AC_CONFIG_LINKS.
89942         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89943
89944 2003-06-07  Bruno Haible  <bruno@clisp.org>
89945
89946         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89947         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89948         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89949         directory.
89950         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89951         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89952         directory.
89953
89954 2003-06-06  Jim Meyering  <jim@meyering.net>
89955
89956         Merge from coreutils.
89957         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89958         Consolidate declarations and initializations of *_base* locals.
89959
89960         Merge from coreutils.
89961         This avoids a core dump on systems without GNU putenv,
89962         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89963         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89964         (unsetenv): New static function, from GNU libc.
89965         (rpl_putenv): Use it.
89966
89967         * lib/modechange.c: Remove trailing blanks.
89968
89969         Merge from coreutils.
89970         * lib/fsusage.c: Remove declaration of statfs.
89971         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89972
89973         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89974
89975 2003-06-06  Jim Meyering  <jim@meyering.net>
89976
89977         * lib/stdbool_.h: Renamed from stdbool.h.in.
89978
89979 2003-06-06  Jim Meyering  <jim@meyering.net>
89980             Bruno Haible  <bruno@clisp.org>
89981
89982         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89983         Adjust Makefile.am snippet not to redirect directly to target.
89984         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89985
89986 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89987
89988         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89989         mismatch, look in future quarters as well as past.  This fixes a
89990         bug when processing fall-backwards gaps immediately after a long
89991         period of daylight-saving time.
89992
89993         * lib/mktime.c: Assume freestanding C89 or better.
89994         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89995         (__P): Remove; not used.
89996         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89997         (mktime, not_equal_tm, print_tm, check_result,
89998         main): Use prototypes.  Use const * where appropriate.
89999         (main): Fix typo in testing code that uncovered by above changes.
90000         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
90001
90002 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90003
90004         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
90005         locale.h, localeconv.  This merges changes from coreutils.
90006
90007         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
90008         It can be removed after the next Autoconf is released.
90009         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
90010         needed.
90011
90012 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90013
90014         * lib/mktime.c: Fix Debian bug 177940
90015         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
90016         (localtime_offset): Now long int, not time_t, because we want it
90017         to be guaranteed to be signed.  All uses changed.
90018         (__mktime_internal): If overflow would occur when adding offset,
90019         don't add it.
90020
90021         Merge 'human' changes from coreutils.  Rewrite to support
90022         locale-specific notations like thousands separators.
90023         * lib/human.c: Simplify authorship notice.
90024         Include human.h immediately after config.h.
90025         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
90026         <limits.h>: Do not include, since human.h does.
90027         (SIZE_MAX, UINTMAX_MAX): New macros.
90028         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
90029         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
90030         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
90031         (power_letter): Renamed from suffixes.
90032         (generate_suffix_backwards): Remove.
90033         (adjust_value): Now takes int style (because of human.h changes)
90034         and long double value (for greater precision on some platforms).
90035         (group_number): New function.
90036         (human_readable): Use it.  Use integer options, not enum.
90037         Put the options before the sizes in the arg list.
90038         Support all the new options.
90039         The old human_readable function has been removed;
90040         use inttostr.h instead.
90041         (human_readable, default_block_size, humblock):
90042         Use uintmax_t, not int, for block sizes.
90043         (human_readable_inexact, block_size_types): Remove.
90044         (block_size_opts): New constant.
90045         (human_options): Renamed from human_block_size, with new signature
90046         that allows block sizes up to UINTMAX_MAX.  All callers changed.
90047         * lib/human.h: Add copyright and authorship notice.
90048         Include <limits.h> and <stdbool.h> unconditionally.
90049         (PARAMS): Remove.  All uses removed.
90050         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
90051         (enum human_inexact_style): Remove tag; now a nameless enum.
90052         (human_floor, human_ceiling, human_round_to_even): Now have
90053         values 2, 0, 1 rather than -1, 1, 0.
90054         (human_group_digits, human_suppress_point_zero, human_autoscale,
90055         human_base_1024, human_SI, human_B): New constants.
90056         (human_readable_inexact, human_block_size): Remove.
90057         (human_readable): Size args are now uintmax_t, not int.
90058         (human_options): New decl.
90059
90060         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
90061         unnecessary now that we assume C89 or better.  This change
90062         imported from coreutils.
90063
90064         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90065         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
90066         in the 2003-05-30 sync from glibc.
90067
90068         .h files should stand alone, but we shouldn't include <sys/types.h>
90069         if we can get away with just <stddef.h>.
90070
90071         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
90072         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
90073         rather than <sys/types.h>, as we merely need size_t.
90074         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
90075         to get size_t.
90076         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
90077         Include <stdio.h>, to get FILE.
90078         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
90079         memcasecmp.h has included <stddef.h> and all we need is size_t.
90080         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
90081         our interface, instead of including <sys/types.h>
90082
90083 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90084
90085         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
90086         now, as glibc mktime is buggy on non-glibc systems.
90087
90088 2003-06-03  Karl Berry  <karl@gnu.org>
90089
90090         * config/config.sub: update from prep.
90091
90092 2003-06-02  Paul Eggert  <eggert@twinsun.com>
90093
90094         [from coreutils]
90095         Fix some minor time-related bugs with POSIX time arguments.
90096         Some valid time stamps were being rejected (notably -1, and
90097         time stamps before 1900 on 64-bit hosts).  And some invalid
90098         time stamps were being accepted, e.g. September 31.
90099
90100         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
90101         that we can return (time_t) -1 successfully.
90102         * lib/posixtm.c: Likewise.
90103         [HAVE_STDBOOL_H]: Include <stdbool.h>.
90104         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
90105         (t): Remove static var.
90106         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
90107         of static var.  All uses changed.
90108         (year): Do not reject years before 1900; they can occur with
90109         64-bit time_t.
90110         (posix_time_parse): Do not check for out-of-range components;
90111         that is now the caller's responsibility, since our checks were
90112         only approximations.
90113         (posixtime): Use mktime to check for out-of-range components,
90114         since it knows them exactly.
90115         If mktime returns (time_t) -1, check whether an error actually occurred
90116         by invoking localtime on -1.
90117         (main) [TEST_POSIXTIME]: Check for input data errors, and report
90118         posixtime failures better.
90119         Improve the test data (in comments only).
90120
90121 2003-06-02  Karl Berry  <karl@gnu.org>
90122
90123         * config/mkinstalldirs (version): new variable.
90124         (--version): new option.
90125         (usage): improve message.
90126
90127 2003-05-30  Karl Berry  <karl@gnu.org>
90128
90129         * lib/mktime.c: update from libc.
90130
90131 2003-05-30  Bruno Haible  <bruno@clisp.org>
90132
90133         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
90134         * config/config.rpath: Upgrade to gettext-0.12.1.
90135
90136 2003-05-30  Bruno Haible  <bruno@clisp.org>
90137
90138         * m4/gettext.m4: Upgrade to gettext-0.12.1.
90139         * m4/nls.m4: New file, from gettext-0.12.1.
90140         * m4/po.m4: New file, from gettext-0.12.1.
90141         * m4/progtest.m4: Upgrade to gettext-0.12.1.
90142
90143 2003-05-30  Bruno Haible  <bruno@clisp.org>
90144
90145         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
90146         * lib/localcharset.h: Likewise.
90147         * lib/localcharset.c: Likewise.
90148
90149 2003-05-29  Karl Berry  <karl@gnu.org>
90150
90151         * config/config.rpath: update from gettext.
90152
90153 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90154
90155         Assume the headers required for C89 freestanding compilers.
90156         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
90157         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
90158         * m4/human.m4 (gl_HUMAN): Likewise.
90159         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
90160         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
90161         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90162         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
90163         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90164         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
90165
90166 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90167
90168         Assume the headers required for C89 freestanding compilers.
90169         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
90170         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
90171         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
90172         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
90173         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
90174         define, since <limits.h> is guaranteed to do that.
90175         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
90176         * lib/exclude.c: Include <stdbool.h> unconditionally.
90177         * lib/tempname.c: Include <stddef.h> unconditionally.
90178         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
90179         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
90180         <stddef.h> does that.
90181         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
90182         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
90183         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
90184         needed.
90185         * lib/xstrtol.c: Likewise.
90186         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
90187         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
90188
90189         * lib/addext.c (addext): Use assignment rather than cast, to avoid
90190         warnings on some platforms.
90191
90192         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90193         arbitrarily.
90194
90195 2003-05-26  Jim Meyering  <jim@meyering.net>
90196
90197         Merge in a change from coreutils:
90198         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
90199         that is guaranteed to be `no'.  Use `no_such_member' to indicate
90200         that condition, rather than `-1' which is slightly misleading.
90201         Change the name of the cache variable to have the gl_ prefix.
90202         Prompted by a patch from Richard Dawe for DJGPP.
90203
90204 2003-05-24  Karl Berry  <karl@gnu.org>
90205
90206         * config/config.guess: update from prep.
90207
90208 2003-05-22  Karl Berry  <karl@gnu.org>
90209
90210         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
90211
90212 2003-05-20  Karl Berry  <karl@gnu.org>
90213
90214         * config/config.guess: update from prep.
90215
90216 2003-05-18  Karl Berry  <karl@gnu.org>
90217
90218         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
90219         might actually be set by the user.
90220
90221         * config/depcomp, install-sh, mdate-sh: update from automake.
90222
90223 2003-05-17  Bruno Haible  <bruno@clisp.org>
90224
90225         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
90226         invalid expansion for AC_EGREP_CPP.
90227         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
90228         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
90229         Suggested by Akim Demaille <akim@epita.fr> in
90230         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
90231
90232 2003-05-12  Jim Meyering  <jim@meyering.net>
90233
90234         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
90235         the space-padded-by-default conversion specifiers, %e, %k, %l.
90236
90237 2003-05-12  Bruno Haible  <bruno@clisp.org>
90238
90239         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
90240         the string is longer than 4 KB.
90241
90242 2003-05-11  Karl Berry  <karl@gnu.org>
90243
90244         * config/config.{guess,sub}: update from prep.
90245
90246 2003-05-09  Bruno Haible  <bruno@clisp.org>
90247
90248         * modules/error: Add m4/strerror_r.m4 to file list.
90249
90250 2003-05-03  Bruno Haible  <bruno@clisp.org>
90251
90252         Upgrade to Unicode-4.0.
90253         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
90254         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
90255         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
90256         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
90257         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
90258         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
90259         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
90260         Change width of U+E0100..U+E01EF from 1 to 0.
90261
90262 2003-04-25  Jim Meyering  <jim@meyering.net>
90263
90264         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
90265         of type size_t, not int.
90266
90267 2003-04-25  Bruno Haible  <bruno@clisp.org>
90268
90269         * lib/copy-file.c: Include <stddef.h>, for size_t.
90270
90271 2003-04-21  Paul Eggert  <eggert@twinsun.com>
90272
90273         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
90274         code which expansion is under static control.  Patch imported from
90275         Akim Demaille's patch to Bison; see
90276         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
90277
90278 2003-04-14  Bruno Haible  <bruno@clisp.org>
90279
90280         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
90281
90282 2003-04-11  Jim Meyering  <jim@meyering.net>
90283
90284         Merge changes from Coreutils.
90285
90286         2003-03-22  Jim Meyering  <jim@meyering.net>
90287
90288         * lib/strftime.c (widen): Cast alloca return value to proper type.
90289
90290         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
90291
90292         From GNU libc.
90293         * lib/strftime.c (my_strftime): Handle very large width
90294         specifications for numeric values correctly.  Improve checks for
90295         overflow.
90296
90297         2003-01-19  Jim Meyering  <jim@meyering.net>
90298
90299         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
90300         definitions.
90301         (nl_get_alt_digit) [! defined my_strftime]: Define.
90302         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
90303         _nl_get_alt_digit and _nl_get_walt_digit.
90304
90305         * lib/strftime.c (my_strftime): Merge in locale-related changes from
90306         libc. These changes have no effect outside of _LIBC.
90307
90308 2003-04-10  Bruno Haible  <bruno@clisp.org>
90309
90310         * modules/findprog: New file.
90311         * MODULES.html.sh (func_all_modules): Add it.
90312
90313 2003-04-10  Bruno Haible  <bruno@clisp.org>
90314
90315         * m4/findprog.m4: New file.
90316         * m4/eaccess.m4: New file.
90317
90318 2003-04-10  Bruno Haible  <bruno@clisp.org>
90319
90320         * lib/findprog.h: New file, from GNU gettext.
90321         * lib/findprog.c: New file, from GNU gettext.
90322
90323 2003-04-05  Jim Meyering  <jim@meyering.net>
90324
90325         Merge changes from Coreutils.
90326
90327         * lib/exclude.h (PARAMS): Remove definition and uses.
90328         * lib/exclude.c: Remove uses of `PARAMS'.
90329
90330         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
90331         Add test-cases for DOS filenames. Declare program_name.
90332         (main): Set up program_name.  Patch by Rich Dawe.
90333
90334         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90335         error from mntctl.
90336         Use mntctl's return value to drive the entry-processing loop, since
90337         we can't rely on the value of the vmt_length member in the last
90338         entry.  On some systems doing so could result in exhausting
90339         virtual memory.  Based in part on a patch from Mike Jetzer.
90340
90341 2003-04-04  Bruno Haible  <bruno@clisp.org>
90342
90343         * modules/linebreak: New file.
90344         * MODULES.html.sh (func_all_modules): Add it.
90345
90346 2003-04-04  Bruno Haible  <bruno@clisp.org>
90347
90348         * m4/linebreak.m4: New file.
90349
90350 2003-04-04  Bruno Haible  <bruno@clisp.org>
90351
90352         * lib/linebreak.h: New file, from GNU gettext.
90353         * lib/linebreak.c: New file, from GNU gettext with slight
90354         modifications.
90355         * lib/lbrkprop.h: New file, from GNU gettext.
90356
90357 2003-04-03  Bruno Haible  <bruno@clisp.org>
90358
90359         * modules/utf8-ucs4: New file.
90360         * modules/utf16-ucs4: New file.
90361         * modules/ucs4-utf8: New file.
90362         * modules/ucs4-utf16: New file.
90363         * MODULES.html.sh (func_all_modules): Add them.
90364
90365 2003-04-03  Bruno Haible  <bruno@clisp.org>
90366
90367         * m4/utf-ucs4.m4: New file.
90368         * m4/ucs4-utf.m4: New file.
90369
90370 2003-04-03  Bruno Haible  <bruno@clisp.org>
90371
90372         * lib/utf8-ucs4.h: New file, from GNU gettext.
90373         * lib/utf16-ucs4.h: New file, from GNU gettext.
90374         * lib/ucs4-utf8.h: New file, from GNU gettext.
90375         * lib/ucs4-utf16.h: New file, from GNU gettext.
90376
90377 2003-04-02  Bruno Haible  <bruno@clisp.org>
90378
90379         * modules/binary-io: New file.
90380         * MODULES.html.sh (func_all_modules): Add it.
90381
90382 2003-04-02  Bruno Haible  <bruno@clisp.org>
90383
90384         * lib/binary-io.h: New file, from GNU gettext.
90385
90386 2003-04-01  Bruno Haible  <bruno@clisp.org>
90387
90388         * modules/pathname: New file.
90389         * MODULES.html.sh (func_all_modules): Add it.
90390
90391 2003-04-01  Bruno Haible  <bruno@clisp.org>
90392
90393         * lib/pathname.h: New file, from GNU gettext.
90394         * lib/concatpath.c: New file, from GNU gettext.
90395
90396 2003-03-30  Bruno Haible  <bruno@clisp.org>
90397
90398         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
90399
90400 2003-03-30  Bruno Haible  <bruno@clisp.org>
90401
90402         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
90403         function chown() doesn't exist.
90404
90405 2003-03-28  Bruno Haible  <bruno@clisp.org>
90406
90407         * modules/copy-file: New file.
90408         * MODULES.html.sh (func_all_modules): Add it.
90409
90410 2003-03-28  Bruno Haible  <bruno@clisp.org>
90411
90412         * m4/copy-file.m4: New file.
90413
90414 2003-03-28  Bruno Haible  <bruno@clisp.org>
90415
90416         * lib/copy-file.h: New file, from GNU gettext.
90417         * lib/copy-file.c: New file, from GNU gettext.
90418
90419 2003-03-18  Jim Meyering  <jim@meyering.net>
90420
90421         * lib/quote.c (quote_n): Fix typo in comment.
90422
90423 2003-03-18  Bruno Haible  <bruno@clisp.org>
90424
90425         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
90426         checking.
90427         * m4/onceonly_2_57.m4: Likewise.
90428
90429 2003-03-17  Bruno Haible  <bruno@clisp.org>
90430
90431         * m4/onceonly.m4: Require autoconf 2.54 or newer.
90432         (m4_quote): Remove macro.
90433         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
90434
90435 2003-03-14  Jim Meyering  <jim@meyering.net>
90436
90437         Merge changes from Coreutils.
90438         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
90439         to be const, in order to avoid warnings.
90440         (obstack_room): Likewise.
90441         (obstack_empty_p): Likewise.
90442
90443 2003-03-14  Bruno Haible  <bruno@clisp.org>
90444
90445         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
90446         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
90447
90448 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90449
90450         Merge changes from Bison.
90451         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
90452         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
90453         when compiling Bison 1.875's `bitset bset = obstack_alloc
90454         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
90455         * lib/hash.c: Include <stdbool.h> unconditionally.
90456
90457 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90458
90459         * m4/onceonly.m4 (m4_quote): New macro.
90460         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
90461         Quote AC_FOREACH variable-expansions properly.
90462
90463 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90464
90465         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
90466
90467 2003-03-09  Paul Eggert  <eggert@twinsun.com>
90468
90469         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
90470         Reported by Bruce Becker; see:
90471         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
90472
90473 2003-03-03  Paul Eggert  <eggert@twinsun.com>
90474             Bruno Haible  <bruno@clisp.org>
90475
90476         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
90477         Reported by John Hughes, see
90478         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
90479
90480 2003-02-20  Bruno Haible  <bruno@clisp.org>
90481
90482         * MODULES.html.sh (func_all_modules): Add poll.
90483
90484 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90485
90486         * modules/poll: New file.
90487
90488 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90489
90490         * lib/poll_.h: New file.
90491         * lib/poll.c: New file.
90492
90493 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90494
90495         * m4/poll.m4: New file.
90496
90497 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90498
90499         * modules/mathl: New file.
90500
90501 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90502
90503         * lib/mathl.h: New file.
90504         * lib/acosl.c: New file.
90505         * lib/asinl.c: New file.
90506         * lib/atanl.c: New file.
90507         * lib/ceill.c: New file.
90508         * lib/cosl.c: New file.
90509         * lib/expl.c: New file.
90510         * lib/floorl.c: New file.
90511         * lib/frexpl.c: New file.
90512         * lib/ldexpl.c: New file.
90513         * lib/logl.c: New file.
90514         * lib/sincosl.c: New file.
90515         * lib/sinl.c: New file.
90516         * lib/sqrtl.c: New file.
90517         * lib/tanl.c: New file.
90518         * lib/trigl.c: New file.
90519         * lib/trigl.h: New file.
90520
90521 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90522
90523         * m4/mathl.m4: New file.
90524
90525 2003-02-18  Bruno Haible  <bruno@clisp.org>
90526
90527         * MODULES.html.sh (func_all_modules): Add mathl.
90528
90529 2003-02-17  Bruno Haible  <bruno@clisp.org>
90530
90531         * modules/mkdtemp: New module.
90532         * MODULES.html.sh (func_all_modules): Add it.
90533
90534 2003-02-17  Bruno Haible  <bruno@clisp.org>
90535
90536         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
90537
90538 2003-02-17  Bruno Haible  <bruno@clisp.org>
90539
90540         * lib/mkdtemp.h: New file, from GNU gettext.
90541         * lib/mkdtemp.c: New file, from GNU gettext.
90542
90543 2003-02-02  Jim Meyering  <jim@meyering.net>
90544
90545         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
90546         e.g. glibc-2.2.93.
90547
90548 2003-01-31  Bruno Haible  <bruno@clisp.org>
90549
90550         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
90551         'rpl_rename'.
90552         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
90553         'rpl_strnlen'.
90554         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
90555         'rpl_strtod'.
90556         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90557         'rpl_utime'.
90558
90559 2003-01-31  Bruno Haible  <bruno@clisp.org>
90560
90561         * lib/rename.c: #undef rename before defining rpl_rename.
90562         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90563
90564 2003-01-30  Bruno Haible  <bruno@clisp.org>
90565
90566         * modules/vasnprintf, modules/vasprintf: New modules.
90567         * MODULES.html.sh (func_all_modules): Add them.
90568
90569 2003-01-30  Bruno Haible  <bruno@clisp.org>
90570
90571         * m4/signed.m4: New file, from GNU gettext.
90572         * m4/longdouble.m4: New file, from GNU gettext.
90573         * m4/wchar_t.m4: New file, from GNU gettext.
90574         * m4/wint_t.m4: New file, from GNU gettext.
90575         * m4/vasnprintf.m4: New file.
90576         * m4/vasprintf.m4: New file.
90577
90578 2003-01-30  Bruno Haible  <bruno@clisp.org>
90579
90580         * lib/printf-args.h: New file, from GNU gettext.
90581         * lib/printf-args.c: New file, from GNU gettext.
90582         * lib/printf-parse.h: New file, from GNU gettext.
90583         * lib/printf-parse.c: New file, from GNU gettext.
90584         * lib/vasnprintf.h: New file, from GNU gettext.
90585         * lib/vasnprintf.c: New file, from GNU gettext.
90586         * lib/asnprintf.c: New file, from GNU gettext.
90587         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90588         * lib/vasprintf.c: New file, from GNU gettext.
90589         * lib/asprintf.c: New file, from GNU gettext.
90590
90591 2003-01-29  Bruno Haible  <bruno@clisp.org>
90592
90593         * modules/stpncpy: New module.
90594         * MODULES.html.sh (func_all_modules): Add it.
90595
90596 2003-01-29  Bruno Haible  <bruno@clisp.org>
90597
90598         * m4/stpncpy.m4: New file.
90599
90600 2003-01-29  Bruno Haible  <bruno@clisp.org>
90601
90602         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90603         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90604
90605 2003-01-28  Bruno Haible  <bruno@clisp.org>
90606
90607         * modules/c-ctype: New module.
90608         * MODULES.html.sh (func_all_modules): Add it.
90609
90610 2003-01-28  Bruno Haible  <bruno@clisp.org>
90611
90612         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90613         Paul Eggert.
90614         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90615         Paul Eggert.
90616
90617 2003-01-27  Bruno Haible  <bruno@clisp.org>
90618
90619         * modules/xsetenv: New module.
90620         * MODULES.html.sh (func_all_modules): Add it.
90621
90622 2003-01-27  Bruno Haible  <bruno@clisp.org>
90623
90624         * lib/xsetenv.h: New file, from GNU gettext.
90625         * lib/xsetenv.c: New file, from GNU gettext.
90626
90627 2003-01-23  Jim Meyering  <jim@meyering.net>
90628
90629         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90630         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90631
90632 2003-01-23  Bruno Haible  <bruno@clisp.org>
90633
90634         * modules/minmax: New module.
90635         * MODULES.html.sh (func_all_modules): Add it.
90636
90637 2003-01-23  Bruno Haible  <bruno@clisp.org>
90638
90639         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90640         Eggert.
90641
90642 2003-01-22  Bruno Haible  <bruno@clisp.org>
90643
90644         * modules/exit: New module.
90645         * MODULES.html.sh (func_all_modules): Add it.
90646
90647 2003-01-22  Bruno Haible  <bruno@clisp.org>
90648
90649         * lib/exit.h: New file, from GNU gettext.
90650
90651 2003-01-19  Bruno Haible  <bruno@clisp.org>
90652
90653         * gnulib-tool: Recognize option --extract-maintainer.
90654         (func_get_maintainer): New function.
90655         * modules/*: Add Maintainer entry.
90656
90657 2003-01-16  Jim Meyering  <jim@meyering.net>
90658
90659         * m4/regex.m4: The `regex' struct is both input and output.
90660         Initialize it before each use.  Patch by Tim Waugh.
90661
90662 2003-01-16  Bruno Haible  <bruno@clisp.org>
90663
90664         * MODULES.html.sh: Add a table of contents. Add the module name as
90665         leftmost column. Add hyperlinks.
90666
90667 2003-01-15  Bruno Haible  <bruno@clisp.org>
90668
90669         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90670
90671 2003-01-15  Bruno Haible  <bruno@clisp.org>
90672
90673         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90674         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90675         suffix.
90676
90677 2003-01-15  Bruno Haible  <bruno@clisp.org>
90678
90679         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90680
90681 2003-01-15  Bruno Haible  <bruno@clisp.org>
90682
90683         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90684         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90685
90686 2003-01-14  Jim Meyering  <jim@meyering.net>
90687
90688         * lib/same.c (same_name): Tweak a comment.
90689
90690 2003-01-14  Bruno Haible  <bruno@clisp.org>
90691
90692         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90693         when a string comparison is sufficient.
90694
90695 2003-01-14  Bruno Haible  <bruno@clisp.org>
90696
90697         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90698         'unsigned int'.
90699
90700 2003-01-14  Bruno Haible  <bruno@clisp.org>
90701
90702         * lib/hash-pjw.c: Add comment about low quality of this function.
90703
90704 2003-01-13  Bruno Haible  <bruno@clisp.org>
90705
90706         * modules/stpcpy: Distribute lib/stpcpy.h.
90707         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90708
90709 2003-01-13  Bruno Haible  <bruno@clisp.org>
90710
90711         * modules/*: Add a description.
90712         * modules/strpbrk: Fix Makefile.am snippet.
90713         * modules/strtoimax: Fix dependencies.
90714         * modules/strtoumax: Likewise.
90715
90716 2003-01-13  Bruno Haible  <bruno@clisp.org>
90717
90718         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90719         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90720         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90721
90722 2003-01-13  Bruno Haible  <bruno@clisp.org>
90723
90724         * gnulib-tool (func_create_testdir): Store config/* files in the main
90725         directory.
90726         * config.rpath: Move to ...
90727         * config/config.rpath: ... here.
90728         * modules/gettext: Contains config/config.rpath, not config.rpath.
90729         * modules/iconv: Likewise.
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         * m4/getstr.m4: Remove.
90737         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90738
90739 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90740
90741         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90742         to avoid collisions with libcurses and libreadline.
90743
90744         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90745         * lib/getstr.h, getstr.c: Remove.
90746         * lib/getline.c: Include "getline.h", to check interface.
90747         Move body of old getstr.c here: this defines MIN_CHUNK and
90748         declares getdelim2, which is renamed from getstr.
90749         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90750
90751         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90752         All uses changed.
90753         * lib/linebuffer.h: Likewise.
90754         (readline): Remove backward-compatibility macro.
90755
90756 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90757
90758         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90759         to avoid collisions with libcurses and libreadline.
90760         * getstr: Remove.
90761         * MODULES.html.sh: Remove getstr.
90762         * modules/getline: Depend on unlocked-io, not getstr.
90763
90764 2003-01-12  Jim Meyering  <jim@meyering.net>
90765
90766         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90767
90768 2003-01-10  Bruno Haible  <bruno@clisp.org>
90769
90770         * modules/alloca: Change Makefile.am requirements. Simplify Include
90771         requirements. Add lib/alloca_.h to file list.
90772
90773 2003-01-10  Bruno Haible  <bruno@clisp.org>
90774
90775         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90776
90777 2003-01-10  Bruno Haible  <bruno@clisp.org>
90778
90779         * lib/alloca_.h: New file.
90780         * lib/getdate.y: Unconditionally include alloca.h.
90781         * lib/makepath.c: Likewise.
90782         * lib/setenv.c: Likewise.
90783         * lib/userspec.c: Likewise.
90784
90785 2003-01-09  Karl Berry  <karl@gnu.org>
90786
90787         * MODULES.html.sh: include `dirname $0` in PATH, to find
90788         gnulib-tool.
90789
90790 2003-01-09  Bruno Haible  <bruno@clisp.org>
90791
90792         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90793         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90794
90795 2003-01-09  Bruno Haible  <bruno@clisp.org>
90796
90797         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90798
90799 2003-01-09  Bruno Haible  <bruno@clisp.org>
90800
90801         * lib/stdbool.h.in: New file.
90802
90803 2003-01-09  Bruno Haible  <bruno@clisp.org>
90804
90805         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90806         * MODULES.html.sh: Likewise.
90807
90808 2003-01-08  Jim Meyering  <jim@meyering.net>
90809
90810         * lib/full-write.c: Undefine and define-away `const' after inclusion
90811         of errno.h, not before.  Suggestion from Bruno Haible.
90812
90813 2003-01-08  Bruno Haible  <bruno@clisp.org>
90814
90815         * modules/full-read: Depend on full-write.
90816
90817 2003-01-08  Bruno Haible  <bruno@clisp.org>
90818
90819         * lib/safe-read.c: Include specification header first, to ensure its
90820         selfcontainedness.
90821         * lib/full-write.c: Likewise.
90822
90823 2003-01-07  Jim Meyering  <jim@meyering.net>
90824
90825         * lib/full-write.c: Rework so that it may serve to define full_read,
90826         too.
90827         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90828
90829 2003-01-07  Bruno Haible  <bruno@clisp.org>
90830
90831         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90832         <inttypes.h>.
90833         * lib/xstrtol.h: Likewise.
90834         * lib/xstrtoimax.c: Likewise.
90835         * lib/xstrtoumax.c: Likewise.
90836         * lib/human.h: Likewise.
90837
90838         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90839         on systems that have <inttypes.h> but not <stdint.h>.
90840
90841 2003-01-07  Bruno Haible  <bruno@clisp.org>
90842
90843         * MODULES.html.sh: Add copyright notice.
90844         (missed_files): Omit CVS directory entries.
90845         (func_module): Make it work with sed-3.02.
90846         * MODULES.txt: Remove file.
90847
90848 2003-01-06  Jim Meyering  <jim@meyering.net>
90849
90850         * lib/version-etc.c: Update year in translatable copyright string.
90851
90852 2003-01-03  Karl Berry  <karl@gnu.org>
90853
90854         * config/config.{guess,sub}: update from prep.
90855
90856 2003-01-02  Karl Berry  <karl@gnu.org>
90857
90858         * doc/COPYING.DOC: belatedly updated to 1.2.
90859
90860 2003-01-01  Karl Berry  <karl@gnu.org>
90861
90862         * gnulib-tool (func_verify_module): report module name $module in
90863         error message, not $1.
90864         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90865         be created, only if it doesn't exist.
90866         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90867
90868 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90869
90870         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90871
90872 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90873
90874         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90875         memcmp if strcoll doesn't work.
90876
90877 2002-12-31  Bruno Haible  <bruno@clisp.org>
90878
90879         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90880         nonempty.
90881
90882 2002-12-31  Bruno Haible  <bruno@clisp.org>
90883
90884         * lib/memcoll.c (STRCOLL): New macro.
90885         (memcoll): Use it.
90886
90887 2002-12-31  Bruno Haible  <bruno@clisp.org>
90888
90889         * lib/localcharset.h: New file.
90890         * lib/localcharset.c: Include it.
90891         * lib/unicodeio.c: Likewise.
90892
90893 2002-12-31  Bruno Haible  <bruno@clisp.org>
90894
90895         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90896         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90897
90898 2002-12-31  Bruno Haible  <bruno@clisp.org>
90899
90900         * lib/getline.h: Include <stddef.h>, for size_t.
90901
90902         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90903         * lib/unicodeio.c: Don't include <stddef.h>.
90904
90905 2002-12-31  Bruno Haible  <bruno@clisp.org>
90906
90907         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90908         HAVE_TM_ZONE.
90909
90910 2002-12-24  Karl Berry  <karl@gnu.org>
90911
90912         * config/config.guess: update from prep.
90913
90914 2002-12-24  Bruno Haible  <bruno@clisp.org>
90915
90916         General infrasructure.
90917         * m4/README: Rewritten.
90918         * m4/onceonly.m4: New file.
90919         * m4/onceonly_2_57.m4: New file.
90920
90921         Module atexit.
90922         * m4/atexit.m4: New file.
90923
90924         Module strtod.
90925         * m4/strtod.m4: New file.
90926
90927         Module strtol.
90928         * m4/strtol.m4: New file.
90929
90930         Module strtoul.
90931         * m4/strtoul.m4: New file.
90932
90933         Module memchr.
90934         * m4/memchr.m4: New file.
90935
90936         Module memcmp.
90937         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90938         (jm_FUNC_MEMCMP): Invoke it.
90939
90940         Module memcpy.
90941         * m4/memcpy.m4: New file.
90942
90943         Module memmove.
90944         * m4/memmove.m4: New file.
90945
90946         Module memset.
90947         * m4/memset.m4: New file.
90948
90949         Module strcspn.
90950         * m4/strcspn.m4: New file.
90951
90952         Module strpbrk.
90953         * m4/strpbrk.m4: New file.
90954
90955         Module strstr.
90956         * m4/strstr.m4: New file.
90957
90958         Module strerror.
90959         * m4/strerror.m4: New file.
90960
90961         Module mktime.
90962         * m4/mktime.m4: Renamed from jm-mktime.m4.
90963         (gl_PREREQ_MKTIME): New macro.
90964         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90965
90966         Module malloc.
90967         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90968         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90969         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90970
90971         Module realloc.
90972         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90973         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90974         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90975
90976         Module strftime.
90977         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90978         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90979         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90980         gl_TM_GMTOFF.
90981         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90982
90983         Module xalloc.
90984         * m4/xalloc.m4: New file.
90985
90986         Module alloca.
90987         * m4/alloca.m4: New file.
90988
90989         Module putenv.
90990         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90991         (jm_FUNC_PUTENV): Invoke it.
90992
90993         Module setenv.
90994         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90995         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90996         when invoked twice.
90997         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90998         gt_FUNC_SETENV.
90999
91000         Module memrchr.
91001         * m4/memrchr.m4: New file.
91002
91003         Module stpcpy.
91004         * m4/stpcpy.m4: New file.
91005
91006         Module strcase.
91007         * m4/strcase.m4: New file.
91008
91009         Module strdup.
91010         * m4/strdup.m4: New file.
91011
91012         Module strnlen.
91013         * m4/strnlen.m4: New file.
91014
91015         Module strndup.
91016         * m4/strndup.m4: New file.
91017
91018         Module xstrtod.
91019         * m4/xstrtod.m4: New file.
91020
91021         Module xstrtol.
91022         * m4/xstrtol.m4: New file.
91023
91024         Module getdate.
91025         * m4/getdate.m4: New file.
91026
91027         Module unlocked-io.
91028         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
91029         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
91030         * m4/jm-glibc-io.m4n: Remove file.
91031
91032         Module long-options.
91033         * m4/long-options.m4: New file.
91034
91035         Module md5.
91036         * m4/md5.m4: New file.
91037
91038         Module sha.
91039         * m4/sha.m4: New file.
91040
91041         Module getstr.
91042         * m4/getstr.m4: New file.
91043
91044         Module getline.
91045         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
91046         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
91047         <sys/types.h>, for size_t. Use the function name gnu_getline, not
91048         simply getline. Infoke gl_PREREQ_GETLINE.
91049
91050         Module obstack.
91051         * m4/obstack.m4: New file.
91052
91053         Module hash.
91054         * m4/hash.m4: New file.
91055
91056         Module readtokens.
91057         * m4/readtokens.m4: New file.
91058
91059         Module strverscmp.
91060         * m4/strverscmp.m4: New file.
91061
91062         Module stdbool.
91063         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
91064         OSF/1.
91065
91066         Module strtoll.
91067         * m4/strtoll.m4: New file.
91068
91069         Module strtoull.
91070         * m4/strtoull.m4: New file.
91071
91072         Module strtoimax.
91073         * m4/strtoimax.m4: New file.
91074
91075         Module strtoumax.
91076         * m4/strtoumax.m4: New file.
91077
91078         Module xstrtoimax.
91079         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
91080         jm_AC_PREREQ_XSTRTOIMAX.
91081         Moved the strtol prerequisites to strtol.m4.
91082         Moved the strtoll prerequisites to strtoll.m4.
91083         Moved the strtoimax prerequisites to strtoimax.m4.
91084
91085         Module xstrtoumax.
91086         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
91087         jm_AC_PREREQ_XSTRTOUMAX.
91088         Moved the strtoul prerequisites to strtoul.m4.
91089         Moved the strtoull prerequisites to strtoull.m4.
91090         Moved the strtoumax prerequisites to strtoumax.m4.
91091
91092         Module chown.
91093         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
91094         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
91095
91096         Module dup2.
91097         * m4/dup2.m4: New file.
91098
91099         Module ftruncate.
91100         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
91101         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
91102
91103         Module getgroups.
91104         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
91105         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
91106
91107         Module gettimeofday.
91108         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
91109         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
91110         gl_PREREQ_GETTIMEOFDAY.
91111
91112         Module mkdir.
91113         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
91114         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
91115
91116         Module mkstemp.
91117         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
91118         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
91119         jm_AC_TYPE_UINTMAX_T.
91120         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
91121
91122         Module stat.
91123         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
91124         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
91125
91126         Module lstat.
91127         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
91128         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
91129
91130         Module timespec.
91131         * m4/timespec.m4 (gl_TIMESPEC): New macro.
91132         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
91133         * m4/st_mtim.m4: Indentation.
91134
91135         Module nanosleep.
91136         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
91137         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
91138         gl_PREREQ_NANOSLEEP.
91139
91140         Module regex.
91141         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
91142         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
91143         (gl_REGEX): New macro.
91144
91145         Module rename.
91146         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
91147         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
91148
91149         Module rmdir.
91150         * m4/rmdir.m4: New file.
91151
91152         Module utime.
91153         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
91154         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
91155         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
91156
91157         Module dirname.
91158         * m4/dirname.m4: New file.
91159
91160         Module getopt.
91161         * m4/getopt.m4: New file.
91162
91163         Module unistd-safer.
91164         * m4/unistd-safer.m4: New file.
91165
91166         Module fnmatch.
91167         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
91168         declaration.
91169         (gl_PREREQ_FNMATCH_EXTRA): New macro.
91170         (gl_FUNC_FNMATCH_POSIX): New macro.
91171         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
91172         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
91173         simply fnmatch.
91174
91175         Module exclude.
91176         * m4/exclude.m4: New file.
91177
91178         Module human.
91179         * m4/human.m4: New file.
91180
91181         Module acl.
91182         * m4/acl.m4: Nop.
91183
91184         Module backupfile.
91185         * m4/backupfile.m4: New file.
91186         * m4/d-ino.m4: Indentation.
91187
91188         Module fsusage.
91189         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
91190         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
91191         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
91192
91193         Module dirfd.
91194         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
91195         requirements.
91196
91197         Module euidaccess.
91198         * m4/euidaccess.m4: New file.
91199
91200         Module file-type.
91201         * m4/file-type.m4: New file.
91202
91203         Module fileblocks.
91204         * m4/fileblocks.m4: New file.
91205
91206         Module filemode.
91207         * m4/filemode.m4: New file.
91208
91209         Module isdir.
91210         * m4/isdir.m4: New file.
91211
91212         Module lchown.
91213         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
91214         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
91215
91216         Module makepath.
91217         * m4/makepath.m4: New file.
91218
91219         Module modechange.
91220         * m4/modechange.m4: New file.
91221
91222         Module mountlist.
91223         * m4/mountlist.m4: New file.
91224         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
91225         Indentation.
91226
91227         Module path-concat.
91228         * m4/path-concat.m4: New file.
91229
91230         Module pathmax.
91231         * m4/pathmax.m4: New file.
91232
91233         Module same.
91234         * m4/same.m4: New file.
91235
91236         Module save-cwd.
91237         * m4/save-cwd.m4: New file.
91238
91239         Module savedir.
91240         * m4/savedir.m4: New file.
91241
91242         Module xgetcwd.
91243         * m4/xgetcwd.m4: New file.
91244         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
91245
91246         Module xreadlink.
91247         * m4/xreadlink.m4: New file.
91248
91249         Module safe-read.
91250         * m4/safe-read.m4: New file.
91251
91252         Module safe-write.
91253         * m4/safe-write.m4: New file.
91254
91255         Module closeout.
91256         * m4/closeout.m4: New file.
91257
91258         Module stdio-safer.
91259         * m4/stdio-safer.m4: New file.
91260
91261         Module getpass.
91262         * m4/getpass.m4: New file.
91263
91264         Module getugroups.
91265         * m4/getugroups.m4: New file.
91266
91267         Module group-member.
91268         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
91269         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
91270
91271         Module idcache.
91272         * m4/idcache.m4: New file.
91273
91274         Module userspec.
91275         * m4/userspec.m4: New file.
91276
91277         Module gettime.
91278         * m4/clock_time.m4: New file.
91279         * m4/gettime.m4: New file.
91280
91281         Module settime.
91282         * m4/settime.m4: New file.
91283
91284         Module posixtm.
91285         * m4/posixtm.m4: New file.
91286
91287         Module gethostname.
91288         * m4/gethostname.m4: New file.
91289
91290         Module canon-host.
91291         * m4/canon-host.m4: New file.
91292
91293         Module gettext.
91294         * m4/codeset.m4: New file, from gettext-0.11.5.
91295         * m4/gettext.m4: New file, from gettext-0.11.5.
91296         * m4/glibc21.m4: New file, from gettext-0.11.5.
91297         * m4/iconv.m4: New file, from gettext-0.11.5.
91298         * m4/intdiv0.m4: New file, from gettext-0.11.5.
91299         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
91300         * m4/inttypes.m4: New file, from gettext-0.11.5.
91301         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
91302         * m4/isc-posix.m4: New file, from gettext-0.11.5.
91303         * m4/lcmessage.m4: New file, from gettext-0.11.5.
91304         * m4/lib-ld.m4: New file, from gettext-0.11.5.
91305         * m4/lib-link.m4: New file, from gettext-0.11.5.
91306         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
91307         * m4/progtest.m4: New file, from gettext-0.11.5.
91308         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
91309         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
91310         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
91311
91312         Module localcharset.
91313         * m4/localcharset.m4: New file.
91314
91315         Module hard-locale.
91316         * m4/hard-locale.m4: New file.
91317
91318         Module mbswidth.
91319         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
91320         onceonly macros.
91321         * m4/mbrtowc.m4: Add comment.
91322
91323         Module memcasecmp.
91324         * m4/memcasecmp.m4: New file.
91325
91326         Module memcoll.
91327         * m4/memcoll.m4: New file.
91328
91329         Module unicodeio.
91330         * m4/unicodeio.m4: New file.
91331
91332         Module rpmatch.
91333         * m4/rpmatch.m4: New file.
91334
91335         Module yesno.
91336         * m4/yesno.m4: New file.
91337
91338         Module exitfail.
91339         * m4/exitfail.m4: New file.
91340
91341         Module c-stack.
91342         * m4/c-stack.m4 (gl_C_STACK): New macro.
91343         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
91344
91345         Module error.
91346         * m4/error.m4 (gl_ERROR): New macro.
91347         (jm_PREREQ_ERROR): Use onceonly macros.
91348
91349         Module fatal.
91350         * m4/fatal.m4: New file.
91351
91352         Module getloadavg.
91353         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
91354         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
91355
91356         Module getpagesize.
91357         * m4/getpagesize.m4: New file.
91358
91359         Module getusershell.
91360         * m4/getusershell.m4: New file.
91361
91362         Module physmem.
91363         * m4/physmem.m4: New file.
91364
91365         Module posixver.
91366         * m4/posixver.m4: New file.
91367
91368         Module quotearg.
91369         * m4/quotearg.m4: New file.
91370
91371         Module quote.
91372         * m4/quote.m4: New file.
91373
91374         Module readutmp.
91375         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
91376
91377         Module sig2str.
91378         * m4/sig2str.m4: New file.
91379
91380         Other.
91381         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
91382         ulonglong.m4.
91383         * m4/intmax_t.m4: New file.
91384         * m4/d-type.m4: Indentation.
91385         * m4/jm-macros.m4: Update.
91386         * m4/prereq.m4 (jm_PREREQ): Update.
91387         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
91388         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
91389         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
91390         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
91391         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
91392         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
91393         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
91394         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
91395         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
91396         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
91397         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
91398         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
91399         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
91400         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
91401         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
91402         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
91403         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
91404         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
91405         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
91406
91407 2002-12-24  Bruno Haible  <bruno@clisp.org>
91408
91409         * MODULES.txt: Update according to m4/ changes.
91410
91411         Module gettext.
91412         * config.rpath: New file, from gettext-0.11.5.
91413
91414         * modules/*: New module descriptions.
91415         * gnulib-tool: New file.
91416         * MODULES.html.sh: New file.
91417
91418 2002-12-21  Karl Berry  <karl@gnu.org>
91419
91420         * doc/fdl.texi: update to version 1.2.
91421
91422 2002-12-19  Karl Berry  <karl@gnu.org>
91423
91424         * config/config.guess: update from prep.
91425
91426 2002-12-18  Bruno Haible  <bruno@clisp.org>
91427
91428         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
91429         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
91430
91431 2002-12-17  Bruno Haible  <bruno@clisp.org>
91432
91433         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
91434         stdlib.h, string.h.
91435
91436 2002-12-17  Bruno Haible  <bruno@clisp.org>
91437
91438         * lib/canon-host.c (strdup): Remove unused declaration.
91439
91440         * lib/fsusage.c: Include full_read.h.
91441         (get_fs_usage): Use full_read instead of safe_read.
91442
91443         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
91444
91445 2002-12-12  Karl Berry  <karl@gnu.org>
91446
91447         * config/config.guess: update from prep.
91448
91449 2002-12-11  Bruno Haible  <bruno@clisp.org>
91450
91451         * m4/setenv.m4: New file, from gettext-0.11.5.
91452
91453 2002-12-11  Bruno Haible  <bruno@clisp.org>
91454
91455         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
91456         not unsetenv().
91457         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
91458         modifications:
91459
91460         2002-12-11  Bruno Haible  <bruno@clisp.org>
91461
91462                 * setenv.c (alloca): Fall back to malloc.
91463                 (freea): New macro.
91464                 (setenv): Use freea() to free memory allocated with alloca().
91465
91466         2002-11-13  Bruno Haible  <bruno@clisp.org>
91467
91468                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
91469                 function declarations.
91470                 * unsetenv.c (unsetenv): Likewise.
91471
91472         2002-03-04  Bruno Haible  <bruno@clisp.org>
91473
91474                 Portability to AIX 4.3.3.
91475                 * unsetenv.c: New file, extracted from setenv.c.
91476                 * setenv.c: Move the unsetenv() function to unsetenv.c.
91477
91478         2001-12-20  Bruno Haible  <bruno@clisp.org>
91479
91480                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
91481                 use malloc instead. For SunOS 4.
91482
91483         2001-12-11  Bruno Haible  <bruno@clisp.org>
91484
91485                 * setenv.c: Declare alloca.
91486                 (compar_fn_t): New typedef.
91487                 (KNOWN_VALUE, STORE_VALUE): Use it.
91488
91489         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
91490         setenv.h.
91491
91492 2002-12-10  Paul Eggert  <eggert@twinsun.com>
91493
91494         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
91495         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
91496         Choose values that are less likely to collide with system fnmatch
91497         options.
91498         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
91499         defined (e.g., a pure POSIX system).
91500         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
91501         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
91502
91503 2002-12-06  Paul Eggert  <eggert@twinsun.com>
91504
91505         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
91506         a pain in practice to deal with generated m4 files.  This change
91507         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
91508
91509         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
91510         and jm-glibc-io.m4, as they are no longer a special case.
91511         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
91512         kludge and the auto-generation stuff.  Check only whether the
91513         functions are declared, not whether they exist, since older hosts
91514         that don't declare the functions can't use the optimization anyway.
91515
91516 2002-12-06  Jim Meyering  <jim@meyering.net>
91517
91518         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
91519
91520         Merge in changes from libc's misc/error.c, in preparation
91521         for the merge of gnulib's changes back into libc.
91522
91523         * lib/error.c (_): Define only if not already defined.
91524         Move definition to follow all #include directives.
91525         Include unlocked-io.h only if !_LIBC.
91526         [_LIBC]: Include <libio/libioP.h>.
91527         [USE_IN_LIBIO]: Include <libio/iolibio.h>
91528         (fflush): Tweak definition to use INTUSE.
91529         (putc): Define.
91530
91531 2002-12-05  Paul Eggert  <eggert@twinsun.com>
91532
91533         * lib/alloca.c [defined emacs]: Include "lisp.h".
91534         (xalloc_die) [defined emacs]: New macro.
91535         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
91536         [! defined emacs]: Include <xalloc.h>.
91537         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
91538         (pointer): Typedef to POINTER_TYPE *.
91539         (malloc): Remove decl; we now always use xmalloc.
91540         (alloca): Use old-style definition, since Emacs needs this.
91541         Check for arithmetic overflow when computing combined size.
91542
91543 2002-12-04  Paul Eggert  <eggert@twinsun.com>
91544
91545         Do not generate unlocked-io.h automatically, since it's easier to
91546         maintain it by hand.
91547
91548         * lib/unlocked-io.h: New file, from GNU diffutils,
91549         but with proper copyright notice and attribution.
91550         * lib/gen-uio: Remove.
91551         * lib/Makefile.am: Add copyright notice.
91552         (libfetish_a_SOURCES): Add unlocked-io.h.
91553         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
91554         (DISTCLEANFILES, io_functions): Remove macros.
91555         (EXTRA_DIST): Remove gen_uio.
91556         (unlocked-io.h): Remove rule.
91557
91558 2002-12-04  Jim Meyering  <jim@meyering.net>
91559
91560         Reflect the fact that stat.c and lstat.c are no longer generated.
91561         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91562         (DISTCLEANFILES): Likewise.
91563         (EXTRA_DIST): Likewise.
91564         (all_local): Don't depend on stat.c or lstat.c.
91565         (stat.c, lstat.c): Remove rules.
91566         (EXTRA_DIST): Remove xstat.in.
91567
91568         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91569         * lib/stat.c: New file.  Contents mostly from xstat.in.
91570         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91571         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91572
91573         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91574         too.
91575         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91576
91577 2002-12-03  Jim Meyering  <jim@meyering.net>
91578
91579         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91580         but not semantics, to minimize the differences between these two files.
91581         (safe_read): Change comment to mention SAFE_READ_ERROR.
91582
91583         * lib/safe-read.c (IS_EINTR): Define.
91584         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91585
91586 2002-12-02  Jim Meyering  <jim@meyering.net>
91587
91588         * lib/safe-read.c (EINTR): Define.
91589         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91590         (INT_MAX): Provide fallback.
91591         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91592
91593         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91594
91595 2002-12-02  Bruno Haible  <bruno@clisp.org>
91596
91597         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91598         Define, taken from safe-read.c.
91599         (INT_MAX): Provide fallback.
91600         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91601         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91602
91603         * lib/safe-read.c (EINTR): Remove definition.
91604         (safe_read): Don't use EINTR if it is absent.
91605
91606 2002-12-01  Jim Meyering  <jim@meyering.net>
91607
91608         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91609         zero.
91610         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91611
91612 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91613
91614         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91615         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91616         with `if (! (value < limit)) abort ();', for readability.
91617
91618 2002-11-26  Karl Berry  <karl@gnu.org>
91619
91620         * lib/strdup.c: copy from libc again, with jim's ok.
91621         * lib/.cppi-disable: re-add strdup.c
91622
91623 2002-11-25  Karl Berry  <karl@gnu.org>
91624
91625         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91626         instead of "strtol.c".
91627
91628 2002-11-25  Karl Berry  <karl@gnu.org>
91629
91630         * config/install-sh: update from automake for variable quoting, $0 in
91631         error msgs, etc.
91632
91633         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91634         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91635         entry.
91636
91637 2002-11-25  Jim Meyering  <jim@meyering.net>
91638
91639         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91640
91641 2002-11-24  Karl Berry  <karl@gnu.org>
91642
91643         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91644         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91645
91646 2002-11-24  Jim Meyering  <jim@meyering.net>
91647
91648         Update from coreutils:
91649
91650         * lib/mktime.c: Merge in changes from libc.
91651
91652         Avoid a link-time failure on some Linux systems.
91653         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91654         (otherwise).
91655         (__mon_yday): Declare with the STATIC attribute.
91656         (__mktime_internal): Likewise.
91657         Based on a report from Greg Schafer.
91658
91659 2002-11-23  Jim Meyering  <jim@meyering.net>
91660
91661         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91662         Use `unsigned', not `int', as type of index.
91663
91664         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91665
91666         * lib/fsusage.c: Remove unneeded parentheses around operands of
91667         `defined'.
91668
91669 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91670
91671         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91672         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91673         so that we can be included first.
91674         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91675         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91676         No need to include stddef.h or sys/types.h any more.
91677         Surround local include files with "", not "<>".
91678         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91679         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91680         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91681         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91682         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91683         (ISPRINT): Remove; no longer needed now that we assume C89.
91684
91685         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91686         Preserve errno.
91687
91688         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91689         quotearg_char): Use SIZE_MAX rather than
91690         (size_t) -1 when we are talking about "infinity".
91691
91692         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91693
91694 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91695
91696         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91697         hint that one should use `if (! x) abort ();' rather than `assert
91698         (x);', and anyway it's one less thing to worry about configuring.
91699         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91700         hash_rehash, hash_insert): Use abort rather than assert.
91701
91702 2002-11-22  Bruno Haible  <bruno@clisp.org>
91703
91704         * lib/safe-read.h: Assume C89. Add comments.
91705         (safe_read): Change return type to size_t.
91706         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91707         byte counts > SSIZE_MAX correctly.
91708         * lib/safe-write.h: New file.
91709         * lib/safe-write.c: New file.
91710         * lib/full-read.h: New file.
91711         * lib/full-read.c: New file.
91712         * lib/full-write.h: Assume C89. Add comments.
91713         * lib/full-write.c: Include safe-write.h.
91714         (full_write): Rewritten to use safe_write.
91715         Suggested by Jim Meyering and Paul Eggert.
91716
91717 2002-11-21  Jim Meyering  <jim@meyering.net>
91718
91719         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91720
91721         Merge in changes from the coreutils.
91722
91723         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91724         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91725         <stdint.h>.
91726         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91727         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91728         int.  Work more efficiently if X is the same width as uintmax_t.
91729         Do not compare X to -1, to avoid bogus compiler warning.
91730         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91731         Don't assume that f_frsize and f_bsize are the same type.
91732
91733         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91734         warning on FreeBSD.
91735
91736         * lib/makepath.c (make_path): Restore umask *before* creating the final
91737         component.
91738         (make_path): Minor reformatting.
91739
91740         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91741         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91742         HAVE_MALLOC/HAVE_REALLOC.
91743
91744         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91745         dummy ones.  At least on GNU/Linux systems, `auto' means something
91746         else.
91747         From Michael Stone.
91748
91749 2002-11-21  Bruno Haible  <bruno@clisp.org>
91750
91751         Remove case insensitive option matching.
91752         * lib/argmatch.h (argcasematch): Remove declaration.
91753         (ARGCASEMATCH): Remove macro.
91754         (__xargmatch_internal): Remove case_sensitive argument.
91755         (XARGMATCH): Update.
91756         (XARGCASEMATCH): Remove macro.
91757         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91758         case_sensitive argument.
91759         (argcasematch): Remove function.
91760         (__xargmatch_internal): Remove case_sensitive argument.
91761         (main): Use XARGMATCH instead of XARGCASEMATCH.
91762
91763         * lib/xmalloc.c: Change compile-time error message. Add comment about
91764         required autoconf version.
91765
91766 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91767
91768         Merge argmatch cleanups from Bison.  Assume C89.
91769
91770         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91771         Include stdlib.h, for EXIT_FAILURE.
91772         Always include <string.h>, since we assume C89.
91773         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91774         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91775         Include <stddef.h> instead, since it's all we need for size_t.
91776         (PARAMS): Remove.  All uses removed.
91777         (ARRAY_CARDINALITY): Do not bother to #undef.
91778         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91779         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91780         Remove unnecessary parentheses.
91781         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91782         Insert necessary parentheses.
91783         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91784         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91785
91786 2002-11-19  Bruno Haible  <bruno@clisp.org>
91787
91788         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91789         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91790
91791         * lib/mbswidth.h (PARAMS): Remove macro.
91792         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91793         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91794
91795         * lib/gcd.h (PARAMS): Remove macro.
91796         (gcd): Use ANSI C function declarations.
91797         * lib/gcd.c (gcd): Likewise.
91798
91799 2002-11-15  Bruno Haible  <bruno@clisp.org>
91800
91801         * lib/strcspn.c: Include <stddef.h>.
91802         (strcspn): Use ANSI C function declaration. Change return type to
91803         size_t. Use NULL.
91804         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91805         (strpbrk): Use NULL.
91806         * lib/strpbrk.h (PARAMS): Remove macro.
91807         (strpbrk): Use ANSI C function declaration.
91808         * lib/strstr.c: Don't include <sys/types.h>.
91809         * lib/strstr.h (PARAMS): Remove macro.
91810         (strstr): Use ANSI C function declarations.
91811
91812 2002-11-14  Karl Berry  <karl@gnu.org>
91813
91814         * config/mkinstalldirs: `do' on separate line, instead of
91815         `for var; do'.
91816
91817 2002-11-06  Bruno Haible  <bruno@clisp.org>
91818
91819         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91820         * lib/gcd.c (gcd): Likewise.
91821
91822 2002-11-05  Bruno Haible  <bruno@clisp.org>
91823
91824         * lib/gcd.h: New file, from gettext-0.11.5.
91825         * lib/gcd.c: New file, from gettext-0.11.5.
91826
91827 2002-11-05  Bruno Haible  <bruno@clisp.org>
91828
91829         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91830         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91831         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91832         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91833
91834         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91835         <libintl.h>.
91836         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91837         <libintl.h>.
91838
91839         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91840         * lib/human.c: Include gettext.h instead of <libintl.h>.
91841         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91842         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91843         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91844         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91845         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91846         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91847         (textdomain): Remove definition.
91848         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91849
91850         * lib/long-options.c: Remove include of <libintl.h> and definition of
91851         _.
91852         * lib/same.c: Remove include of <libintl.h> and definition of _.
91853
91854 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91855
91856         * lib/config.charset: A few additions for Solaris.
91857
91858 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91859
91860         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91861         * lib/localcharset.c (locale_charset): Declare as extern "C".
91862
91863 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91864
91865         * lib/config.charset: msdos in uk_UA uses CP1125.
91866
91867 2002-11-04  Bruno Haible  <bruno@clisp.org>
91868
91869         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91870         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91871         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91872         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91873         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91874
91875 2002-11-04  Bruno Haible  <bruno@clisp.org>
91876
91877         * lib/localcharset.c (locale_charset): Don't return an empty string.
91878
91879 2002-11-04  Bruno Haible  <bruno@clisp.org>
91880
91881         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91882         aliases.
91883
91884 2002-11-04  Bruno Haible  <bruno@clisp.org>
91885
91886         * lib/config.charset: Update for newest glibc. Add canonical names
91887         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91888
91889 2002-11-04  Bruno Haible  <bruno@clisp.org>
91890
91891         * lib/config.charset: Add support for NetBSD.
91892
91893 2002-11-04  Bruno Haible  <bruno@clisp.org>
91894
91895         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91896
91897 2002-11-01  Bruno Haible  <bruno@clisp.org>
91898
91899         * configure.in: Add AC_CONFIG_AUX_DIR call.
91900         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91901         test/Makefile.
91902         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91903
91904 2002-09-28  Karl Berry  <karl@gnu.org>
91905
91906         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91907         installed automake until the next release, since changes have been
91908         made.
91909
91910 2002-09-25  Karl Berry  <karl@gnu.org>
91911
91912         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91913         * lib/getopt*: copy from libc/posix.
91914         * lib/gettext.h: copy from gettext.
91915         * lib/.cppi-disable: add strdup.c, gettext.h.
91916
91917 2002-09-25  Karl Berry  <karl@gnu.org>
91918
91919         * config/srclist.txt: enable gettext.h check.
91920         * config/config.{guess,sub}: update from prep.
91921         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91922                 from automake 1.6.3.
91923         See srclist*.
91924
91925 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91926
91927         * regex.c (PATFETCH): Remove the translating fetch.
91928         (PATFETCH_RAW): Rename to PATFETCH.
91929         (set_image_of_range): New fun.
91930         (SET_RANGE_TABLE_WORK_AREA): Use it.
91931         (regex_compile): Don't translate the pattern chars so eagerly.
91932         Only do it when inserting an `exactn' bytecode or when handling
91933         a char-range.
91934         (mutually_exclusive_p): Avoid empty statement.
91935
91936 2002-07-06  Jim Meyering  <meyering@lucent.com>
91937
91938         * m4/README: Don't mention Makefile.am.in.
91939         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91940
91941 2002-07-01  Jim Meyering  <meyering@lucent.com>
91942
91943         * lib/c-stack.c: Include sys/time.h.
91944         From Volker Borchert.
91945
91946 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91947
91948         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91949
91950 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91951
91952         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91953         New macro.  Use it uniformly instead of
91954         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91955         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91956         reported by Vin Shelton.
91957
91958 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91959
91960         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91961         Do not assume SA_SIGINFO behavior.
91962         Bug reported by Jim Meyering on NetBSD 1.5.2.
91963
91964 2002-06-22  Jim Meyering  <meyering@lucent.com>
91965
91966         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91967         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91968
91969         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91970         now that configure.ac uses AC_GNU_SOURCE.
91971         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91972         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91973
91974         Update to latest tools.  Suggestions from Paul Eggert.
91975         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91976         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91977         * m4/fnmatch.m4: Likewise.
91978         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91979         to AC_HEADER_STDBOOL
91980
91981 2002-06-22  Jim Meyering  <meyering@lucent.com>
91982
91983         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91984         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91985
91986 2002-06-22  Jim Meyering  <meyering@lucent.com>
91987
91988         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91989
91990         * lib/exitfail.c, exitfail.h: Likewise.
91991         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91992
91993         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91994         of fnmatch.h.
91995         (EXTRA_DIST): Add fnmatch_loop.c.
91996         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91997
91998         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91999         * lib/fnmatch.c: Update from diffutils-2.8.2.
92000         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
92001         * lib/fnmatch.h: Remove file.
92002
92003 2002-06-21  Jim Meyering  <meyering@lucent.com>
92004
92005         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
92006         * m4/mbrtowc.m4: Likewise.
92007
92008         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
92009         * m4/mbswidth.m4: Reflect name change:
92010         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
92011         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92012
92013         * m4/lib-link.m4: Update from gettext-0.11.2.
92014         * m4/gettext.m4: Likewise.
92015
92016         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
92017         From Alfred M. Szmidt.
92018
92019 2002-06-18  Paul Eggert  <eggert@twinsun.com>
92020
92021         * lib/file-type.h: Report an error if neither S_ISREG nor
92022         S_IFREG is defined, instead of using a test specific to glibc
92023         2.2.  This should be safe, since POSIX requires S_ISREG and
92024         Unix Version 7 had S_IFREG.  We don't need to check for
92025         <sys/types.h> since we don't use any symbols that it defines.
92026
92027 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
92028
92029         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
92030         $@-t, so that each temporary file name is unique and valid in the first
92031         8 characters, for operation under DOS.
92032
92033 2002-06-15  Paul Eggert  <eggert@twinsun.com>
92034
92035         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
92036
92037 2002-06-15  Jim Meyering  <meyering@lucent.com>
92038
92039         Work even with DJGPP 2.03, which lacks support for symlinks.
92040         From Richard Dawe.
92041         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
92042         is defined.
92043         * lib/lchown.c (S_ISLNK): Likewise.
92044
92045 2002-06-15  Jim Meyering  <meyering@lucent.com>
92046
92047         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
92048         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
92049         have been included before this file.
92050
92051 2002-06-14  Jim Meyering  <meyering@lucent.com>
92052
92053         * lib/file-type.h: Use the version from diffutils-2.8.2.
92054         * lib/file-type.c: Likewise.
92055
92056 2002-06-07  Jim Meyering  <meyering@lucent.com>
92057
92058         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
92059         They're needed at least for NetBSD 1.5.2.
92060         ($statxfs_includes): Include those same headers.
92061         ($statxfs_includes): Include sys/vfs.h if available.
92062         ($statxfs_includes): Likewise for sys/statvfs.h.
92063         Check for the following members in both structs statfs and statvfs:
92064         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
92065
92066 2002-06-01  Jim Meyering  <meyering@lucent.com>
92067
92068         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
92069         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
92070
92071 2002-05-28  Jim Meyering  <meyering@lucent.com>
92072
92073         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
92074         Reported by Volker Borchert.
92075
92076 2002-05-27  Jim Meyering  <meyering@lucent.com>
92077
92078         Fix a problem seen only on nonconforming systems whereby ls.c's
92079         use of localtime, and then of gettimeofday would cause trouble:
92080         the localtime call used to initialize rpl_gettimeofday's save
92081         mechanism would clobber ls's current local time information so
92082         that in any long listing the first file would always be listed
92083         with date 1970-01-01.  Analysis by Volker Borchert.
92084
92085         * lib/gettimeofday.c (localtime): Undefine.
92086         (rpl_localtime): New function.
92087
92088 2002-05-27  Jim Meyering  <meyering@lucent.com>
92089
92090         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
92091         localtime.
92092
92093         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
92094         use the replacement function; it wouldn't resolve at link time.
92095         Reported by Volker Borchert.
92096
92097 2002-05-22  Jim Meyering  <meyering@lucent.com>
92098
92099         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
92100         file-type.h.
92101         * lib/file-type.h: New file.
92102         * lib/file-type.c (file_type): New file/function.  Extracted from
92103         diffutils.
92104
92105 2002-04-30  Jim Meyering  <meyering@lucent.com>
92106
92107         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
92108
92109 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92110
92111         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
92112
92113 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92114
92115         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
92116         Do not check for alloca.h (no longer used) or stdbool.h (was never
92117         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
92118
92119 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92120
92121         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
92122
92123 2002-04-29  Jim Meyering  <meyering@lucent.com>
92124
92125         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
92126         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
92127         Use AC_FUNC_STRNLEN here instead.
92128
92129         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
92130         With autoconf-2.53a, it's part of AC_PROG_CC.
92131
92132 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92133
92134         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
92135         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
92136
92137 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92138
92139         * lib/sig2str.h, lib/sig2str.c: New files.
92140         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
92141
92142 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92143
92144         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
92145         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
92146         of 127, since 64 is the largest conceivable number for ancient
92147         nonstandard hosts.
92148         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
92149
92150 2002-04-28  Jim Meyering  <meyering@lucent.com>
92151
92152         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
92153
92154 2002-04-24  Jim Meyering  <meyering@lucent.com>
92155
92156         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
92157         (jm_PREREQ): Use it.
92158
92159         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
92160         mach/mach.h fcntl.h.
92161         Check for this function: setlocale.
92162
92163 2002-04-24  Jim Meyering  <meyering@lucent.com>
92164
92165         * lib/gettext.h: New file, from Gettext.
92166         * lib/Makefile.am (INCLUDES): Remove -I../intl.
92167         (libfetish_a_SOURCES): Add gettext.h.
92168
92169 2002-04-16  Jim Meyering  <meyering@lucent.com>
92170
92171         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
92172         ut_pid, ut_id, ut_exit.
92173
92174 2002-04-16  Jim Meyering  <meyering@lucent.com>
92175
92176         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
92177         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
92178         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
92179
92180 2002-04-12  Jim Meyering  <meyering@lucent.com>
92181
92182         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
92183         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
92184         existence of the getmntinfo function.  Needed for Darwin 5.3.
92185
92186         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
92187         This is necessary at least on Darwin 5.3.
92188
92189         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
92190         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
92191         strnlen.o in the library, and that makes some versions of ranlib
92192         object.
92193
92194 2002-04-12  Jim Meyering  <meyering@lucent.com>
92195
92196         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
92197
92198 2002-04-09  Jim Meyering  <meyering@lucent.com>
92199
92200         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
92201         to be more precise.  Rather than saying we're checking whether the
92202         function `works', say what we're testing.
92203         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
92204         Reported by Bruno Haible.
92205
92206 2002-03-10  Jim Meyering  <meyering@lucent.com>
92207
92208         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
92209         Suggestion from Santiago Vila.
92210
92211 2002-03-08  Jim Meyering  <meyering@lucent.com>
92212
92213         * lib/rename.c: Mention that this wrapper is needed also on
92214         mips-dec-ultrix4.4 systems.
92215
92216 2002-03-02  Jim Meyering  <meyering@lucent.com>
92217
92218         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
92219         not HAVE_CLOCK_SETTIME.
92220
92221 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92222
92223         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
92224         Check for clock_settime.
92225
92226 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92227
92228         * lib/nanosleep.h: Rename to....
92229         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
92230
92231         * lib/gettime.c: New file.
92232         * lib/settime.c: New file.
92233         * lib/stime.c: Remove.
92234
92235         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
92236         timespec.h.  Remove nanosleep.h.
92237
92238 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92239
92240         * m4/acl.m4: New file.
92241         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
92242         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
92243
92244 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92245
92246         * lib/acl.c, lib/acl.h: New files.
92247         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
92248
92249 2002-02-24  Jim Meyering  <meyering@lucent.com>
92250
92251         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
92252         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
92253         cause trouble.  Reported by Nelson Beebe.
92254
92255 2002-02-23  Paul Eggert  <eggert@twinsun.com>
92256
92257         * lib/path-concat.c (xpath_concat): Reorder code to pacify
92258         compilers that don't know that xalloc_die never returns.
92259
92260 2002-02-20  Jim Meyering  <meyering@lucent.com>
92261
92262         * lib/getdate.c: Regenerate using bison-1.33.
92263
92264 2002-02-17  Jim Meyering  <meyering@lucent.com>
92265
92266         * config/config.guess (main): Don't use `head -1'; it's no longer
92267         portable. Use `sed 1q' instead.
92268
92269 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
92270
92271         * m4/codeset.m4: Upgrade to gettext-0.11.
92272         * m4/gettext.m4: Upgrade to gettext-0.11.
92273         * m4/glibc21.m4: Upgrade to gettext-0.11.
92274         * m4/iconv.m4: Upgrade to gettext-0.11.
92275         * m4/isc-posix.m4: Upgrade to gettext-0.11.
92276         * m4/lcmessage.m4: Upgrade to gettext-0.11.
92277         * m4/lib-ld.m4: New file, from gettext-0.11.
92278         * m4/lib-link.m4: New file, from gettext-0.11.
92279         * m4/lib-prefix.m4: New file, from gettext-0.11.
92280         * m4/progtest.m4: Upgrade to gettext-0.11.
92281
92282 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92283
92284         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
92285         (jm_PREREQ): Use it.
92286
92287 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92288
92289         * lib/posixver.c, lib/posixver.h: New files.
92290         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92291
92292 2002-02-02  Paul Eggert  <eggert@twinsun.com>
92293             Bruno Haible  <bruno@clisp.org>
92294
92295         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
92296         (fwrite_success_callback): New declaration.
92297         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
92298         print_unicode_char. Call failure callback instead of error.
92299         (fwrite_success_callback): New function.
92300         (exit_failure_callback): New function.
92301         (fallback_failure_callback): New function.
92302         (print_unicode_char): Call unicode_to_mb.
92303
92304 2002-01-26  Jim Meyering  <meyering@lucent.com>
92305
92306         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
92307         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
92308
92309 2002-01-26  Jim Meyering  <meyering@lucent.com>
92310
92311         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
92312
92313 2002-01-22  Paul Eggert  <eggert@twinsun.com>
92314
92315         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
92316
92317 2002-01-22  Jim Meyering  <meyering@lucent.com>
92318
92319         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
92320         Otherwise, some versions of automake would omit the rule that makes
92321         Makefile from Makefile.in.
92322
92323 2002-01-21  Paul Eggert  <eggert@twinsun.com>
92324
92325         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
92326         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92327         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
92328         (memcoll): Set errno to zero if there is no error.
92329
92330         * lib/quotearg.c (quotearg_buffer_restyled):
92331         Fix bug with quoting buffers containing NUL when backslashing escapes.
92332         This bug was exposed by the other changes in this patch.
92333         (quotearg_n_options): New arg ARGSIZE.
92334         All callers changed.
92335         (quoting_options_from_style): New function.
92336         (quotearg_n_style): Use it.
92337         (quotearg_n_style_mem): New function.
92338
92339         * lib/quotearg.h (quotearg_n_style_mem): New function.
92340
92341 2002-01-19  Jim Meyering  <meyering@lucent.com>
92342
92343         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
92344         Remove useless quotes: DF_PROG="df".
92345         * m4/strnlen.m4: New file.
92346
92347 2002-01-16  Paul Eggert  <eggert@twinsun.com>
92348
92349         * lib/backupfile.c (ISDIGIT): Comment fix.
92350         * lib/getdate.y (ISDIGIT): Likewise.
92351         * lib/posixtm.c (ISDIGIT, year): Likewise.
92352         * lib/strverscmp.c (ISDIGIT): Likewise.
92353         * lib/userspec.c (ISDIGIT): Likewise.
92354
92355 2002-01-16  Jim Meyering  <meyering@lucent.com>
92356
92357         * lib/getdate.y: Add three semicolons, each just before a closing
92358         brace. Bison (as of version 1.31) no longer papers over that mistake.
92359
92360 2002-01-05  Jim Meyering  <meyering@lucent.com>
92361
92362         * lib/version-etc.c (version_etc_copyright): Update copyright year.
92363
92364 2001-12-19  Paul Eggert  <eggert@twinsun.com>
92365
92366         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
92367         not silently exit merely because the output buffer happens to
92368         have nothing pending.
92369
92370 2001-12-18  Paul Eggert  <eggert@twinsun.com>
92371
92372         See the big note in ../ChangeLog.
92373         * lib/human.c (suffixes): Prefer K to k for 1024.
92374         (generate_suffix_backwards): New function.
92375         (human_readable_inexact): Use it.
92376         * lib/xstrtol.c (__xstrtol): If there is no number but there
92377         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
92378         Accept 'K' as well as 'k'.
92379
92380 2001-12-15  Jim Meyering  <meyering@lucent.com>
92381
92382         * lib/regex.h (__restrict_arr): Update from libc.
92383
92384         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
92385         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
92386         (STREQ): Define.
92387
92388 2001-12-14  Jim Meyering  <meyering@lucent.com>
92389
92390         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
92391         Suggestion from Bruno Haible.
92392
92393 2001-12-10  Jim Meyering  <meyering@lucent.com>
92394
92395         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
92396         xrealloc, Instead, include "xalloc.h".
92397         (initbuffer): Don't cast xmalloc return value to char*.
92398         (readline): Reword comment.
92399         Don't cast xrealloc return value to char*
92400         Return NULL, not 0.
92401
92402 2001-12-09  Jim Meyering  <meyering@lucent.com>
92403
92404         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
92405         about `signed and unsigned type in conditional expression'.
92406         * lib/posixtm.c (posix_time_parse): Likewise.
92407
92408         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
92409
92410         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
92411         to avoid a pedantic warning.
92412
92413         * lib/getstr.c: Don't include assert.h.
92414         (getstr): Remove warning-evoking assertions.
92415         Return -1 if offset parameter is out of bounds.
92416         Change the type of a local from int to size_t.
92417
92418         * lib/strftime.c (my_strftime_localtime_r): Include this function
92419         definition in the `#if ! HAVE_TM_GMTOFF' block.
92420
92421         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
92422         Include xalloc.h instead.
92423
92424 2001-12-02  Jim Meyering  <meyering@lucent.com>
92425
92426         * lib/tempname.c: Don't declare getenv, thus reverting the change of
92427         2001-11-18.  It's no longer necessary, now that stdlib.h is always
92428         included.
92429
92430         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
92431         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
92432
92433 2001-11-30  Akim Demaille  <akim@epita.fr>
92434
92435         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
92436         before being defined.
92437
92438 2001-11-27  Paul Eggert  <eggert@twinsun.com>
92439
92440         * lib/quotearg.h (quotearg_n, quotearg_n_style):
92441         First arg is int, not unsigned.
92442         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
92443         (SIZE_MAX, UINT_MAX): New macros.
92444         (quotearg_n_options): Abort if N is negative.
92445         Avoid overflow check on hosts where size_t is 64 bits and int
92446         is 32 bits, as overflow is impossible there.
92447         Fix off-by-one typo that caused unnecessary reallocation.
92448
92449 2001-11-27  Jim Meyering  <meyering@lucent.com>
92450
92451         * lib/tempname.c: Merge with version from libc.
92452         * lib/regex.c: Likewise.
92453
92454         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
92455         systems for which STDC_HEADERS is 0, it was not included, resulting in
92456         a warning about an integer-to-pointer conversion problem with getenv.
92457         Reported by Volker Borchert.
92458
92459 2001-11-26  Jim Meyering  <meyering@lucent.com>
92460
92461         * lib/gtod.h: Remove file.
92462         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
92463         * lib/gettimeofday.c: Don't include gtod.h.
92464         (GTOD_init): Remove function.
92465         (rpl_gettimeofday): Do its job here instead, rather than aborting.
92466         Suggestion from Volker Borchert.
92467
92468 2001-11-23  Jim Meyering  <meyering@lucent.com>
92469
92470         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
92471         it.
92472         * lib/hash.c (struct hash_table): Define it here instead.
92473
92474 2001-11-22  Jim Meyering  <meyering@lucent.com>
92475
92476         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
92477
92478 2001-11-20  Jim Meyering  <meyering@lucent.com>
92479
92480         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
92481         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
92482
92483 2001-11-19  Jim Meyering  <meyering@lucent.com>
92484
92485         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
92486         directory.  Use "conftestXXXXXX" as the template.
92487         Suggestion from Paul Eggert.
92488
92489         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
92490         immediately, so the test doesn't mistakenly hit the max-open-files
92491         limit.
92492
92493 2001-11-18  Paul Eggert  <eggert@twinsun.com>
92494
92495         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
92496         (TEMPORARIES): New macro.
92497         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
92498         removes an artificial limitation (e.g. HP-UX 10.20, where
92499         TMP_MAX is 17576).
92500
92501 2001-11-18  Jim Meyering  <meyering@lucent.com>
92502
92503         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
92504
92505 2001-11-18  Jim Meyering  <meyering@lucent.com>
92506
92507         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
92508         on SunOS 4.
92509
92510         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
92511         files will be created before anything else.
92512
92513 2001-11-17  Paul Eggert  <eggert@twinsun.com>
92514
92515         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
92516         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
92517
92518 2001-11-17  Jim Meyering  <meyering@lucent.com>
92519
92520         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
92521         Prompted by a report from Bob Proulx.
92522
92523         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
92524         Instead, require UTILS_FUNC_MKSTEMP.
92525
92526 2001-11-17  Jim Meyering  <meyering@lucent.com>
92527
92528         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
92529         Now, that's done as part of AC_FUNC_STRTOD.
92530
92531 2001-11-17  Jim Meyering  <meyering@lucent.com>
92532
92533         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
92534         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
92535         rather than group writable.  Patch by Juan F. Codagnone.
92536
92537         * lib/readtokens.c: Remove explicit declarations of xmalloc and
92538         xrealloc, Instead, include "xalloc.h".
92539
92540         * lib/mountlist.c: Include unlocked-io.h after all system headers.
92541         Remove explicit declarations of xmalloc, xrealloc,
92542         and xstrdup.  Instead, include "xalloc.h".
92543
92544         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
92545         unlocked-io.h.
92546         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
92547         Likewise.
92548         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
92549
92550         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
92551         Reported by Padraig Brady.
92552
92553         * lib/mkstemp.c: #undef mkstemp.
92554         Include config.h.
92555         (rpl_mkstemp): Rename from mkstemp.
92556         Protoize.
92557
92558 2001-11-16  Jim Meyering  <meyering@lucent.com>
92559
92560         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92561         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92562         determine the amount of total physical memory, use pstat_getstatic.
92563         HPUX-11 doesn't define _SC_PHYS_PAGES.
92564         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92565         If sysconf couldn't be used to determine the amount of available
92566         physical memory, use both pstat_getstatic and pstat_getdynamic.
92567         Based on a patch from Bob Proulx.
92568
92569 2001-11-10  Jim Meyering  <meyering@lucent.com>
92570
92571         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92572         (jm_PREREQ): Use it.
92573
92574 2001-11-09  Jim Meyering  <meyering@lucent.com>
92575
92576         * m4/jm-macros.m4: Require autoconf-2.52f.
92577         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92578         Use these AC_-prefixed names, not the AM_-prefixed ones.
92579
92580         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92581
92582 2001-11-05  Jim Meyering  <meyering@lucent.com>
92583
92584         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92585
92586 2001-11-04  Jim Meyering  <meyering@lucent.com>
92587
92588         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92589         $DEFS.
92590
92591 2001-11-03  Jim Meyering  <meyering@lucent.com>
92592
92593         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92594         of AC_DEFUN.
92595
92596         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92597         know the name of the variable in the macro definition.
92598
92599 2001-11-03  Jim Meyering  <meyering@lucent.com>
92600
92601         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92602         in argmatch_to_argument call.
92603
92604         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92605         argument.
92606
92607         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92608         e.g., a fault due to an attempt to free a NULL pointer.
92609
92610 2001-11-01  Jim Meyering  <meyering@lucent.com>
92611
92612         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92613         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92614
92615 2001-11-01  Jim Meyering  <meyering@lucent.com>
92616
92617         * lib/dirfd.c, lib/dirfd.h: New files.
92618         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92619
92620         * lib/hash.c (hash_print) [TESTING]: Clean up.
92621
92622 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92623
92624         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92625         to avoid a warning if -Wall.
92626
92627 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92628
92629         * README: New file
92630         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92631         (per RMS's instructions, this is now the canonical source)
92632         * lgpl/, gpl/: New directories.
92633
92634 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92635
92636         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92637
92638 2001-10-21  Jim Meyering  <meyering@lucent.com>
92639
92640         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92641         this code would end up calling gettext even in packages built
92642         with --disable-nls.
92643         * lib/getopt.c (_): Likewise.
92644         * lib/regex.c (_): Likewise.
92645
92646 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92647
92648         * m4/error.m4 (jm_PREREQ_ERROR):
92649         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92650         AC_FUNC_STRERROR_R does that.
92651         Check for strerror declaration.
92652
92653         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92654         are supposed to have them these days.
92655         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92656         Merge changes from latest Autoconf CVS.
92657         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92658         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92659         POSIX decided to standardize on the int flavor of strerror_r.
92660
92661 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92662
92663         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92664         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92665         Use strerror_r that is only a macro, even if it is not a function.
92666         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92667         (private_strerror): Use prototypes, not old-style function definition.
92668         (print_errno_message): New function.
92669         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92670         char*-flavored one.
92671         (error_tail, error, error_at_line): Use it.
92672
92673 2001-10-11  Jim Meyering  <meyering@lucent.com>
92674
92675         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92676         and quote_n (1, ... to avoid clobbering a buffer.
92677
92678 2001-10-05  Jim Meyering  <meyering@lucent.com>
92679
92680         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92681         hash-pjw.h.
92682         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92683         * lib/hash-pjw.h: New file.
92684
92685 2001-09-30  Jim Meyering  <meyering@lucent.com>
92686
92687         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92688         `struct fsstat' has the `f_fstypename' member.
92689         Use that to define FS_TYPE, which is now used to make
92690         the getfsstat link test tighter.
92691
92692 2001-09-30  Jim Meyering  <meyering@lucent.com>
92693
92694         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92695         Include <sys/ucred.h>, for Apple Darwin.
92696         Include sys/mount.h and sys/fs_types.h only if available.
92697         (FS_TYPE): Define.
92698         (read_filesystem_list): Use FS_TYPE.
92699
92700 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92701
92702         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92703         a boolean context.
92704
92705 2001-09-29  Jim Meyering  <meyering@lucent.com>
92706
92707         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92708         [one-argument getmntent function]): Include stdio.h before mntent.h.
92709         SunOS 4.1.x needs it for the declaration of `FILE'.
92710         Patch by Volker Borchert.
92711
92712         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92713         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92714         sys/fs_types.h, and make the link-test for getfsstat guard #include
92715         directives with appropriate #if HAVE_*_H tests so that we can
92716         detect getfsstat on Apple Darwin1.3.7 systems.
92717         Reported by Nelson Beebe.
92718         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92719
92720 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92721
92722         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92723         #defines strtoimax.  Also treat the other strto* functions
92724         like strtoimax.
92725
92726         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92727         Check for strtoul and strtoumax,
92728         as those declarations are made even in the signed case.
92729         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92730         Likewise, for strtol and strtoimax.
92731
92732 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92733
92734         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92735         #defines strtoimax.  Also treat the other strto* functions
92736         like strtoimax.
92737
92738         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92739         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92740         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92741
92742 2001-09-26  Jim Meyering  <meyering@lucent.com>
92743
92744         Most macros in unlocked-io.h had the wrong number of arguments.
92745         * lib/gen-uio: New script.
92746         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92747         * lib/unlocked-io.hin: Remove file.
92748         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92749         rather than trying to embed it here.
92750         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92751         Reported by Padraig Brady.
92752
92753 2001-09-25  Volker Borchert  <bt@teknon.de>
92754
92755         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92756         `result'.
92757
92758 2001-09-24  Jim Meyering  <meyering@lucent.com>
92759
92760         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92761
92762 2001-09-23  Jim Meyering  <meyering@lucent.com>
92763
92764         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92765         instead of the mere test for existence of mntent.h.  The latter
92766         would get a false-positive on AIX 3.4 systems.
92767         In the outer getmntent if-block, don't die if neither of the getmntent
92768         tests succeeds.  Instead, just fall through and continue with the
92769         remaining tests.
92770
92771 2001-09-23  Jim Meyering  <meyering@lucent.com>
92772
92773         * lib/mountlist.c: Remove useless parentheses in #if directives.
92774         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92775         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92776
92777 2001-09-22  Jim Meyering  <meyering@lucent.com>
92778
92779         * m4/gettext.m4: New file.  From gettext.
92780         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92781         * m4/progtest.m4: Likewise
92782         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92783         * m4/glibc21.m4: Likewise.
92784
92785         * m4/libintl.m4: Remove.  No longer used.
92786
92787 2001-09-22  Jim Meyering  <meyering@lucent.com>
92788
92789         * lib/localcharset.c: Update from latest gettext.
92790         * lib/config.charset: Likewise.
92791
92792 2001-09-20  Jim Meyering  <meyering@lucent.com>
92793
92794         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92795         strtoimax.
92796         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92797         strtoumax.
92798
92799 2001-09-20  Jim Meyering  <meyering@lucent.com>
92800
92801         * lib/xstrtol.c (strtoimax): Guard declaration with
92802         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92803         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92804         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92805         (strtoumax): Likewise, for completeness (it wasn't necessary).
92806
92807 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92808
92809         * lib/strtoimax.c (HAVE_LONG_LONG):
92810         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92811         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92812         to work around bug in IBM C compiler.
92813
92814 2001-09-17  Jim Meyering  <meyering@lucent.com>
92815
92816         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92817         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92818         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92819         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92820         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92821         whenever the right hand side need not be expanded by the shell.
92822
92823 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92824
92825         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92826         library.  It's not correct, as some older glibcs are buggy.
92827         fnmatch wasn't fixed until glibc 2.2.
92828
92829         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92830         special shell magic here.
92831
92832 2001-09-16  Jim Meyering  <meyering@lucent.com>
92833
92834         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92835         * m4/jm-macros.m4: Require it.
92836
92837 2001-09-16  Jim Meyering  <meyering@lucent.com>
92838
92839         * lib/mkdir.c: New file.
92840
92841 2001-09-15  Jim Meyering  <meyering@lucent.com>
92842
92843         * m4/jm-macros.m4: Check for help2man.
92844
92845 2001-09-11  Jim Meyering  <meyering@lucent.com>
92846
92847         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92848         The body, by Paul Eggert, was moved here from configure.in.
92849         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92850
92851 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92852
92853         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92854         (jm_PREREQ): Use it.
92855
92856 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92857
92858         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92859         Use ssize_t, not int, to store result of readlink.
92860         Check for ssize_t overflow as well as size_t overflow,
92861         as POSIX says the result of readlink is implementation-defined
92862         when ssize_t overflows.
92863         Remove unnecessary cast to char*.
92864         Use free+malloc instead of realloc, as the storage doesn't need
92865         to be preserved and it's clearer and can be more efficient that way.
92866         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92867         * lib/xreadlink.h (xreadlink): Update prototype.
92868
92869 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92870
92871         * lib/xgetcwd.c: Revert some of the previous change; intead,
92872         fix the HAVE_GETCWD_NULL code to behave more like the
92873         !HAVE_GETCWD_NULL code used to.
92874
92875         Include "xalloc.h".
92876         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92877         invoke xalloc_die.
92878
92879 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92880
92881         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92882         sys/param.h, as pathmax.h includes them.
92883
92884 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92885
92886         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92887         (jm_PREREQ_XGETCWD): New macro.
92888
92889         * m4/getcwd.m4: New file.
92890
92891 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92892
92893         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92894         like the HAVE_GETCWD_NULL code.
92895         Include pathmax.h if not HAVE_GETCWD.
92896         Do not include xalloc.h.
92897         (INITIAL_BUFFER_SIZE): New symbol.
92898         Do not use xmalloc / xrealloc, since the caller is responsible for
92899         handling errors.  Preserve errno around `free' during failure.
92900         Do not overrun buffer when using getwd.
92901
92902 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92903
92904         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92905         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92906         getcwd (NULL, 0).
92907
92908 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92909
92910         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92911         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92912         spotted by Jim Meyering.
92913
92914 2001-09-03  Jim Meyering  <meyering@lucent.com>
92915
92916         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92917         failure.
92918
92919 2001-09-02  Jim Meyering  <meyering@lucent.com>
92920
92921         * lib/error.c: Update from GNU libc.
92922
92923 2001-09-01  Jim Meyering  <meyering@lucent.com>
92924
92925         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92926         Used by df.
92927
92928 2001-09-01  Jim Meyering  <meyering@lucent.com>
92929
92930         * lib/xreadlink.c: New file.
92931         * lib/xreadlink.h: New file.
92932         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92933         xreadlink.h.
92934
92935         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92936         doesn't conflict with sparc Solaris 7's definition in
92937         /usr/include/sys/int_types.h.
92938
92939         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92940         files.
92941         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92942         and strncasecmp as r-values.  Unixware didn't have declarations.
92943
92944 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92945
92946         * lib/xstrtol.h: Add copyright notice.
92947         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92948         LONGINT_INVALID_SUFFIX_CHAR.
92949
92950 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92951
92952         * lib/xstrtol.c (strtoimax): New decl.
92953
92954 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92955
92956         * lib/xgetcwd.c: Don't include pathmax.h.
92957         Include stdlib.h and unistd.h if available.
92958         Include xalloc.h.
92959         (xmalloc, xstrdup, free): Remove decls.
92960         (xgetcwd): Don't assume sizes fit in unsigned.
92961         Check for overflow when computing sizes.
92962         Simplify reallocation code.
92963
92964 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92965
92966         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92967         a directory's st_size can have an arbitrary value, so the old
92968         usage could waste an arbitrary amount of memory.  All uses
92969         changed.
92970         * lib/savedir.h: Update prototype.
92971
92972 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92973
92974         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92975
92976         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92977         old strtoimax.c.
92978
92979         Also, make the following further changes to make this file's
92980         configuration more similar to that of strtol.c:
92981         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92982         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92983         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92984         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92985         changed to signed values.
92986
92987         And make the following changes as well:
92988         Fix copyright notice, as 1999 was missing.
92989         (verify): New macro.
92990         (strtoimax): Check sizes at compile-time, not run-time.
92991         Prefer strtol to strtoll if both work.
92992         (main): Remove; it was not that useful and was a pain to maintain.
92993
92994         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92995
92996 2001-08-31  Jim Meyering  <meyering@lucent.com>
92997
92998         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92999         Use an initial, malloc'd, buffer of length 128 rather than
93000         a statically allocated one of length 1024.
93001
93002 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93003
93004         Simplify code, partly by assuming autoconf 2.52 semantics.
93005
93006         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
93007
93008         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
93009         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
93010         All uses removed.
93011         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
93012         Move AC_REQUIRE to next-to-top level, to avoid confusion.
93013         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
93014         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
93015         jm_AC_HEADER_INTTYPES_H.
93016         * m4/jm-macros.m4 (jm_MACROS): Likewise.
93017
93018         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
93019
93020         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93021         Quote first arg of AC_DEFUN.
93022         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
93023         since they are needed to parse the include file even if we need
93024         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
93025         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
93026         but with opposite signedness.
93027
93028 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93029
93030         Merge 'exclude' changes from tar 1.13.22.
93031         This fixes one or two unlikely storage allocation overflow bugs,
93032         but doesn't change user-visible behavior otherwise.
93033
93034 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93035
93036         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
93037         (jm_PREREQ_EXCLUDE): New macro.
93038
93039 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93040
93041         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
93042         tm to be declared.
93043
93044 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93045
93046         * lib/hash.c: Remove '2001' from copyright notice.
93047
93048 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93049
93050         * lib/full-write.h: New file.
93051         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
93052         * lib/full-write.c: Correct credits, as cccp.c no longer
93053         exists and anyway it was so heavily changed from the old cccp
93054         code as to be unrecognizable.  Include full-write.h.
93055         (full_write): Return size_t, with short writes meaning failure.
93056         All callers changed.  This fixes a bug with large buffers
93057         on 64-bit hosts.
93058         * lib/utime.c: Include full-write.h.
93059
93060 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93061
93062         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
93063         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
93064         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
93065         Include if available.
93066         (<xalloc.h>): Include
93067         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
93068         (verify): New macro.  Use it to verify that EXCLUDE macros do not
93069         collide with FNM macros.
93070         (struct patopts): New struct.
93071         (struct exclude): Use it, as exclude patterns now come with options.
93072         (new_exclude): Support above changes.
93073         (new_exclude, add_exclude_file):
93074         Initial size must now be a power of two to simplify overflow checking.
93075         (free_exclude, fnmatch_no_wildcards): New function.
93076         (excluded_filename): No longer requires options arg, as the options
93077         are determined by add_exclude.  Now returns bool, not int.
93078         (excluded_filename, add_exclude):
93079         Add support for the fancy new exclusion options.
93080         (add_exclude, add_exclude_file): Now takes int options arg.
93081         Check for arithmetic overflow when computing sizes.
93082         (add_exclude_file): xrealloc might modify errno, so don't
93083         realloc until after errno might be used.
93084
93085         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
93086         New macros.
93087         (free_exclude): New decl.
93088         (add_exclude, add_exclude_file): Now takes int options arg.
93089         (excluded_filename): No longer requires options arg, as the options
93090         are determined by add_exclude.  Now returns bool, not int.
93091
93092 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93093
93094         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
93095
93096 2001-08-27  Jim Meyering  <meyering@lucent.com>
93097
93098         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
93099
93100         * lib/version-etc.c (N_): Remove definition.
93101         Revert most of last change.
93102         Instead, simply don't mark the `Copyright...' string for translation.
93103         Based on advice from Paul Eggert.
93104
93105         * lib/strtoxmax.c: Tweak comment.
93106
93107 2001-08-26  Jim Meyering  <meyering@lucent.com>
93108
93109         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
93110
93111         * m4/xstrtoimax.m4: New file.
93112         * m4/xstrtoumax.m4: Add comments explaining why we
93113         AC_REPLACE_FUNCS(strtol).
93114
93115 2001-08-26  Jim Meyering  <meyering@lucent.com>
93116
93117         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
93118         of copyright with `%s' so translators don't get an untranslated
93119         message in 2002.
93120         (COPYRIGHT_YEAR): Define.
93121         (version_etc): Use fprintf rather than fputs.
93122         Suggestion from Ulrich Drepper.
93123
93124         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
93125
93126         * lib/strtoll.c: New file, from GNU libc.
93127         * lib/xstrtoimax.c: New file.
93128
93129         * lib/xstrtol.h: Add xstrtoimax.
93130         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
93131         * lib/strtoimax.c: New file.  Likewise, but first define
93132         STRTOUXMAX_SIGNED.
93133
93134         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
93135         ...
93136         * lib/strtoxmax.c: ... then renamed to this.
93137
93138 2001-08-18  Paul Eggert  <eggert@twinsun.com>
93139
93140         * m4/inttypes.m4: Add AC_PREREQ(2.13).
93141         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
93142         (jm_AC_TYPE_INTMAX_T): New macro.
93143         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
93144
93145         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
93146
93147         * m4/longlong.m4: Renamed from ulonglong.m4.
93148         * m4/inttypes.m4: Renamed from inttypes_h.m4.
93149         * m4/uintmax_t.m4: Removed.
93150
93151 2001-08-13  Paul Eggert  <eggert@twinsun.com>
93152
93153         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
93154         Port to Solaris 8, where 'sed' requires a space after the 'r'
93155         command, and where sh dislikes "$/".  Clean up the spacing a bit.
93156         Redirect output to $tmp just once.
93157
93158 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
93159
93160         * lib/addext.c (<errno.h>): Include.
93161         (errno): Declare if not defined.
93162         (addext): Work correctly when pathconf returns -1 and leaves
93163         errno alone because there is no limit.  Also, work even if
93164         pathconf returns a value greater than SIZE_MAX.
93165
93166 2001-08-12  Jim Meyering  <meyering@lucent.com>
93167
93168         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
93169         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
93170         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
93171         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
93172         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
93173         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
93174         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
93175         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
93176         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
93177         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
93178         utime.m4, utimes.m4, xstrtoumax.m4:
93179         Quote the first argument in each use of AC_DEFUN.
93180
93181 2001-08-12  Jim Meyering  <meyering@lucent.com>
93182
93183         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
93184         Simply `return getcwd (NULL, 0);'.
93185         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
93186         Use 1300 as initial value for length, not PATH_MAX.
93187
93188         * lib/pathmax.h: Clean up cpp syntax.
93189
93190 2001-08-12  Jim Meyering  <meyering@lucent.com>
93191
93192         * lib/gettimeofday.c: New file.
93193         * lib/gtod.h: New file.
93194         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
93195
93196 2001-08-05  Jim Meyering  <meyering@lucent.com>
93197
93198         * m4/jm-macros.m4: Require autoconf-2.52.
93199
93200 2001-08-04  Jim Meyering  <meyering@lucent.com>
93201
93202         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
93203         stmt, to get in sync with glibc.
93204
93205 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93206
93207         The following changes are from gettext 0.10.39 as maintained by
93208         Bruno Haible.
93209
93210         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
93211         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
93212         with inverted sense.  All uses changed.
93213
93214         * lib/mbswidth.c: Don't include <limits.h>.
93215         Include <stdlib.h> and <string.h> unconditionally.
93216         (iswcntrl, mbsinit, ISCNTRL): New macros.
93217         (mbsnwidth): Use K&R style function declarations.
93218         Don't bother checking for MB_LEN_MAX == 1, since the compiler
93219         can optimize it when MB_CUR_MAX == 1.
93220         The width of control characters is zero, not 1.
93221
93222 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93223
93224         The following changes are from gettext 0.10.39 as maintained by
93225         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
93226
93227         * m4/codeset.m4: Upgrade to serial AM1.
93228         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
93229         all uses changed.  Quote first arg of AC_DEFUN.
93230         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
93231
93232         * m4/iconv.m4: Upgrade to serial AM2.
93233         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
93234         Add --with-libconv-prefix.
93235         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
93236         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
93237         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
93238         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
93239         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
93240
93241         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
93242         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
93243         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
93244         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
93245         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
93246         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
93247         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
93248         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
93249         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
93250
93251         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
93252         string.h any more.
93253
93254         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
93255         not the default value.
93256
93257         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
93258         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
93259         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
93260         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
93261         Also check for iswcntrl, used for wcwidth fallback.
93262         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
93263         to Autoconf 2.13.
93264
93265 2001-08-03  Jim Meyering  <meyering@lucent.com>
93266
93267         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
93268         as it was in the original.  Reported by Paul Eggert.
93269
93270 2001-07-16  Jim Meyering  <meyering@lucent.com>
93271
93272         * m4/gettimeofday.m4: New file.
93273         Prompted by a report from Bernhard Baehr.
93274
93275 2001-07-15  Jim Meyering  <meyering@lucent.com>
93276
93277         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
93278         stuff. Now it's in ../Makefile.cfg.
93279
93280 2001-07-15  Jim Meyering  <meyering@lucent.com>
93281
93282         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
93283         (BUILT_SOURCES): Add unlocked-io.h.
93284         (io_functions): Define.
93285         (unlocked-io.h): New rule.
93286         (DISTCLEANFILES): Add unlocked-io.h.
93287         (all-local): Depend on unlocked-io.h, to ensure it is created.
93288
93289         * lib/unlocked-io.hin: New file
93290
93291         * lib/regex.c: Update from glibc.
93292
93293 2001-07-05  Jim Meyering  <meyering@lucent.com>
93294
93295         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
93296         recommendation.
93297         (libfetish_a_SOURCES): Put all .h files here instead.
93298         Remove a thus-exposed (better checks in automake) duplicate and
93299         two unnecessary .h files.
93300
93301 2001-07-04  Jim Meyering  <meyering@lucent.com>
93302
93303         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
93304         that generates jm-glibc-io.m4 so that it doesn't trigger any make
93305         distcheck failure.
93306
93307 2001-07-02  Jim Meyering  <meyering@lucent.com>
93308
93309         The following changes were prompted by suggestions from Bruno Haible.
93310
93311         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
93312         is now generated.
93313         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
93314         definition of EXTRA_DIST.
93315         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
93316         ensure that the generated file is created/updated whenever the list
93317         of $(unlocked_functions) is changed.
93318         (jm-glibc-io.m4): New rule.
93319         (unlocked-io.h): New rule -- currently unused.
93320
93321 2001-06-24  Jim Meyering  <meyering@lucent.com>
93322
93323         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
93324         unmatched right bracket, rather than kludging it with an extra,
93325         falsely-matching quote in a comment.  Patch by Akim Demaille.
93326
93327 2001-06-11  Jim Meyering  <meyering@lucent.com>
93328
93329         * lib/regex.c: Update from GNU libc.
93330
93331 2001-05-27  Jim Meyering  <meyering@lucent.com>
93332
93333         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
93334         Check for ut_type in struct utmp.
93335
93336 2001-05-27  Jim Meyering  <meyering@lucent.com>
93337
93338         * lib/readutmp.h (UT_TYPE): Define.
93339
93340 2001-05-24  Jim Meyering  <meyering@lucent.com>
93341
93342         * lib/argmatch.c: Include "quote.h".
93343         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
93344         quote function.  Reported by Göran Uddeborg.
93345
93346 2001-05-22  Jim Meyering  <meyering@lucent.com>
93347
93348         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
93349         now that we use the package-supplied version unconditionally.
93350         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
93351
93352 2001-05-21  Jim Meyering  <meyering@lucent.com>
93353
93354         * m4/regex.m4: Change a couple backticks to single quotes to avoid
93355         shell syntax errors.
93356
93357 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93358
93359         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
93360
93361 2001-05-20  Paul Eggert  <eggert@twinsun.com>
93362
93363         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
93364         Don't bother to check library strftime, since
93365         we'll be using our own my_strftime function anyway.
93366         Define my_strftime instead of strftime.
93367
93368 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
93369
93370         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
93371         which is not yet declared.
93372
93373 2001-05-15  Jim Meyering  <meyering@lucent.com>
93374
93375         * m4/regex.m4: Use proper quoting so brackets appear in the test
93376         program.
93377         Reported by, and with help from, Bruno Haible.
93378
93379 2001-05-13  Jim Meyering  <meyering@lucent.com>
93380
93381         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
93382         undefined.
93383
93384 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93385
93386         dirname code cleanup.  base_name now behaves more compatibly
93387         with POSIX basename when given file names that have trailing
93388         slashes, and similarly for dir_name.  Add new primitives
93389         base_len and dir_len.  Put the directory-name-related decls
93390         into dirname.h.
93391
93392         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
93393         * lib/backupfile.c (base_name): Likewise.
93394         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
93395         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
93396         * lib/makepath.c (strip_trailing_slashes): Likewise.
93397         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
93398         ISSLASH): Likewise.
93399         * lib/rename.c (strip_trailing_slashes): Likewise.
93400         * lib/same.c (base_name): Likewise.
93401         * lib/stripslash.c (ISSLASH): Likewise.
93402
93403         * lib/addext.c: Include <dirname.h> after size_t is defined.
93404         * lib/backupfile.c: Likewise.
93405
93406         * lib/addext.c (addext): Use base_len to trim redundant
93407         trailing slashes instead of doing it ourselves.
93408         But do not trim the last slash if it is not redundant.
93409
93410         * lib/backupfile.c (find_backup_file_name,
93411         max_backup_version): Use base_len instead of rolling it ourselves.
93412         Handle the case of "" and (on DOS) "C:" correctly.
93413
93414         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
93415         needed. Include <string.h>, <dirname.h>.
93416         (base_name): Allow file names ending in slashes, other than names
93417         that are all slashes.  In this case, return the basename followed
93418         by the slashes.  This is more general, and can be used in places
93419         where the original base_name purposely had an assertion failure.
93420         (base_len): New function.
93421
93422         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
93423         Do not include <assert.h>; no longer needed.
93424         Include xalloc.h.
93425         (memrchr): Remove decl.
93426         (dir_name_r): Remove.
93427         (dir_len): Renamed from dirlen.  All callers changed.
93428         Rewrite in terms of base_name, for simplicity and consistency.
93429         (dir_name): Never return NULL.  All callers changed.
93430         Do not include <stdlib.h> in test program; no longer needed.
93431         return 0; is fine for test program.
93432
93433         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
93434         New macros.
93435         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
93436
93437         * lib/path-concat.c (path_concat): Use base_len to compute
93438         base length, not strlen; this means we cannot rely on memcpy
93439         to null-terminate.
93440
93441         * lib/same.c (STREQ): Remove.
93442         (same_name): Handle the case where the basename ends in trailing '/'.
93443
93444         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
93445         a slash was stripped.  Do not strip the last slash after a
93446         file system prefix.
93447
93448 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93449
93450         * lib/Makefile.am (libfetish_a_SOURCES):
93451         Add strftime.c, since we now compile it on all hosts.
93452
93453         * lib/strftime.c (my_strftime):
93454         Define to nstrftime if emacs, but only if my_strftime is not defined.
93455         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
93456         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
93457         Add one more extra argument: a nanoseconds value.
93458         All uses changed.
93459         (ns): New macro.
93460         (my_strftime function): Add %N format.
93461         (emacs_strftimeu): Renamed from emacs_strftime,
93462         with extra ut argument.
93463
93464 2001-05-09  Paul Eggert  <eggert@twinsun.com>
93465
93466         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
93467
93468 2001-04-21  Jim Meyering  <meyering@lucent.com>
93469
93470         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
93471         doesn't interfere.
93472
93473 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93474
93475         * m4/ftruncate.m4: Check for chsize.
93476         Link with ftruncate.o unconditionally if ftruncate is missing.
93477         This was required when cross-compiling to i586-mingw32msvc.
93478
93479 2001-04-08  Jim Meyering  <meyering@lucent.com>
93480
93481         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
93482         recomputed; that's necessary when the offset spans a DST transition.
93483         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
93484
93485 2001-04-02  Jim Meyering  <meyering@lucent.com>
93486
93487         * lib/regex.h, regex.c: Update from GNU libc.
93488
93489 2001-03-24  Jim Meyering  <meyering@lucent.com>
93490
93491         * m4/jm-macros.m4: Require autoconf-2.49d.
93492
93493 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
93494
93495         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
93496
93497 2001-03-19  Paul Eggert  <eggert@twinsun.com>
93498
93499         * lib/version-etc.c (version_etc_copyright): Update to 2001.
93500
93501 2001-03-17  Jim Meyering  <meyering@lucent.com>
93502
93503         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
93504         now that the version in autoconf is equivalent.
93505         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
93506
93507         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
93508         Suggestion from Akim Demaille.
93509
93510         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
93511         (jm_PREREQ_TEMPNAME): New function.
93512
93513 2001-03-16  Paul Eggert  <eggert@twinsun.com>
93514
93515         * lib/tempname.c (uint64_t): Define to uintmax_t if
93516         not defined, and if UINT64_MAX is not defined.
93517         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
93518         Reported by John David Anglin.
93519
93520 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
93521
93522         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
93523         resolve alias if codeset is empty.
93524         * lib/config.charset (BeOS): Use wildcard syntax.
93525
93526 2001-03-13  Jim Meyering  <meyering@lucent.com>
93527
93528         * lib/path-concat.c (path_concat)
93529         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
93530         concatenating e.g., `C:' and `foo'.
93531         From Bruno Haible.
93532
93533 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93534
93535         * lib/localcharset.c (locale_charset): Don't use
93536         setlocale(LC_CTYPE,NULL). Don't return NULL.
93537         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
93538
93539 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93540
93541         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
93542         support for DOS/DJGPP.
93543
93544 2001-03-01  Paul Eggert  <eggert@twinsun.com>
93545
93546         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
93547         lacks mkstemp.  Compile our own tempname.c if we compile our own
93548         mkstemp.c, as mkstemp relies on tempname.
93549
93550 2001-03-01  Jim Meyering  <meyering@lucent.com>
93551
93552         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
93553         AH_VERBATIM really does output its argument verbatim.
93554
93555 2001-02-28  Paul Eggert  <eggert@twinsun.com>
93556
93557         * lib/Makefile.am (libfetish_a_SOURCES):
93558         Add dup-safer.c, fopen-safer.c.
93559         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93560
93561         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93562         * lib/unistd-safer.h: New files.
93563
93564 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93565
93566         The mkstemp replacement is taken from glibc 2.2.2, with some
93567         portability fixes for use outside glibc, as follows:
93568
93569         * lib/tempname.c (struct_stat64): New macro.
93570         (direxists, __gen_tempname): Use it.
93571         This avoids a portability problem with Solaris 8.
93572
93573         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93574         (<stddef.h>, <stdint.h>, <string.h>):
93575         Include only if STDC_HEADERS || _LIBC.
93576         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93577         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93578         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93579         (__set_errno): Define this macro if <errno.h> doesn't.
93580         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93581         Define these macros if <stdio.h> doesn't.
93582         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93583         Define these macros if <sys/stat.h>
93584         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93585         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93586         __xstat64): Define if not _LIBC.
93587         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93588         (__gen_tempname): Invoke gettimeofday only if
93589         HAVE_GETTIMEOFDAY || _LIBC;
93590         otherwise, fall back on plain "time".
93591         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93592
93593         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93594
93595         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93596
93597 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93598
93599         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93600
93601 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93602
93603         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93604         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93605         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93606         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93607
93608 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93609
93610         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93611         Remove workaround macros for hosts that have mbrtowc but not
93612         mbstate_t, as we now insist on proper declarations for both
93613         before using mbrtowc.
93614
93615 2001-02-17  Jim Meyering  <meyering@lucent.com>
93616
93617         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93618         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93619         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93620         UnixWare 7.1.1.
93621
93622         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93623         rather than AC_CACHE_VAL.
93624
93625 2001-02-17  Jim Meyering  <meyering@lucent.com>
93626
93627         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93628         around included file name.
93629
93630         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93631
93632         * lib/strftime.c: Update from GNU libc (the only changes were to
93633         comments).
93634
93635 2001-02-17  Jim Meyering  <meyering@lucent.com>
93636
93637         * lib/regex.c: Update from libc.
93638
93639 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93640
93641         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93642         clash.
93643
93644 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93645
93646         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93647         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93648         Reported by Mark Hounschell via Paul Eggert.
93649
93650 2001-02-07  Jim Meyering  <meyering@lucent.com>
93651
93652         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93653
93654 2001-02-05  Jim Meyering  <meyering@lucent.com>
93655
93656         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93657         it includes the patch required for `large file' support with at least
93658         HP-UX's 10.20 /bin/cc.
93659
93660 2001-02-03  Jim Meyering  <meyering@lucent.com>
93661
93662         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93663         AS_IF, now that it works once again (mysteriously).
93664         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93665
93666 2001-01-30  Jim Meyering  <meyering@lucent.com>
93667
93668         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93669         * m4/chown.m4: Rename conftestchown to conftest.chown.
93670         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93671         s/conftestdir2/conftest.d2/.
93672         * m4/utimes.m4: s/conftestdata/conftest.data/
93673         Inspired by Pavel Roskin's change in autoconf.
93674
93675 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93676
93677         * lib/config.charset: Update for FreeBSD 4.2.
93678
93679 2001-01-27  Jim Meyering  <meyering@lucent.com>
93680
93681         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93682         a use of AS_IF.
93683         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93684
93685 2001-01-26  Jim Meyering  <meyering@lucent.com>
93686
93687         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93688         quotearg.c includes it.
93689
93690 2001-01-26  Jim Meyering  <meyering@lucent.com>
93691
93692         * lib/quotearg.c: Include stddef.h.
93693         * lib/quote.c: Include stddef.h.
93694         Reported by Axel Kittenberger.
93695
93696         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93697         line in double quotes so that it evokes a better diagnostic.
93698         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93699         Reported by Axel Kittenberger.
93700
93701 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93702
93703         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93704         as if it was a `charset'.
93705
93706 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93707
93708         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93709         has const.
93710
93711 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93712
93713         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93714         to avoid a warning.  Add back 'const' to inptr.
93715
93716 2001-01-20  Jim Meyering  <meyering@lucent.com>
93717
93718         Be sure that headers are checked before used in code compiled
93719         for the type checks.
93720         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93721         In place of that, invoke jm_CHECK_ALL_TYPES.
93722         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93723         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93724         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93725         The check for ssize_t was mistakenly run before the test for unistd.h.
93726
93727         The configure-time check for stdbool.h was missing.
93728         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93729         (jm_PREREQ_HASH): New function.
93730
93731 2001-01-17  Jim Meyering  <meyering@lucent.com>
93732
93733         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93734         for autoconf-2.49c.
93735         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93736
93737 2001-01-16  Jim Meyering  <meyering@lucent.com>
93738
93739         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93740         From Bruno Haible.
93741
93742 2001-01-14  Jim Meyering  <meyering@lucent.com>
93743
93744         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93745         foo and bar.  Create conftestdir/ in the script, not in the C code.
93746         Remove directories in the script, not in the C code.
93747         Remove conftestdir{,2} before trying to create the directory.
93748         Make the entire configure script fail if the mkdir fails.
93749
93750 2001-01-14  Jim Meyering  <meyering@lucent.com>
93751
93752         * lib/rename.c: New file.  From Volker Borchert.
93753         Include stdlib.h, string.h or strings.h, and xalloc.h.
93754         Use strip_trailing_slashes rather than open-coding it.
93755
93756 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93757
93758         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93759
93760 2001-01-03  Jim Meyering  <meyering@lucent.com>
93761
93762         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93763         of local `inptr' to avoid warning with some system declarations of
93764         iconv.
93765
93766 2001-01-02  Volker Borchert  <bt@teknon.de>
93767
93768         * m4/rename.m4: New file.
93769         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93770
93771 2001-01-01  Jim Meyering  <meyering@lucent.com>
93772
93773         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93774         even on systems with utmpx.h.  It's necessary for the declaration of
93775         utmp's ut_user member.  Reported by Andreas Jaeger.
93776
93777         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93778         available. They are required for the declarations of getgrgid and
93779         getpwuid resp.
93780         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93781         Reported by Andreas Jaeger.
93782
93783 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93784
93785         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93786         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93787         so `make install' also works in VPATH builds.
93788
93789 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93790
93791         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93792         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93793         can be used in subdirectories.
93794
93795 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93796
93797         * lib/modechange.c: Do not assume that mode_t uses the
93798         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93799         the other-execute bit of FOO even if S_IXOTH != 1.
93800
93801         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93802         WOTH, XOTH, ALLM): New macros.
93803         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93804          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93805         Use them.
93806         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93807         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93808         (mode_compile):
93809         No need to use uintmax_t; unsigned long is long enough.
93810         Don't bother to get suffix since we don't use it.
93811
93812 2000-12-26  Jim Meyering  <meyering@lucent.com>
93813
93814         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93815         better with autoheader.
93816
93817 2000-12-24  Jim Meyering  <meyering@lucent.com>
93818
93819         * lib/hash.c (is_prime): Return explicit boolean values.
93820         (hash_get_first): Return NULL to appease Irix5.6's 89.
93821         Reported by Nelson Beebe.
93822
93823 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93824
93825         * lib/localcharset.c (locale_charset): Add support for Win32.
93826
93827 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93828
93829         * lib/physmem.h, lib/physmem.c: New files.
93830
93831         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93832         (noinst_HEADERS): Add physmem.h.
93833
93834         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93835         't' for compatibility with Solaris 8 sort.
93836
93837 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93838
93839         * lib/config.charset: Add support for BeOS.
93840
93841 2000-12-17  Jim Meyering  <meyering@lucent.com>
93842
93843         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93844         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93845
93846 2000-12-16  Jim Meyering  <meyering@lucent.com>
93847
93848         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93849         N and M) would have treated it like `chown N:N FILE'.
93850
93851         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93852
93853 2000-12-16  Jim Meyering  <meyering@lucent.com>
93854
93855         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93856         SHELLS_FILE to a file name that's useful on djgpp systems.
93857         Include stdlib.h.
93858         (ADDITIONAL_DEFAULT_SHELLS): Define.
93859         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93860         Based mostly on a patch from Prashant TR.
93861
93862 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93863
93864         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93865         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93866         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93867
93868 2000-12-08  Andreas Schwab  <schwab@suse.de>
93869
93870         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93871         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93872
93873 2000-12-07  Jim Meyering  <meyering@lucent.com>
93874
93875         * lib/stripslash.c (ISSLASH): Define.
93876         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93877         `/'.
93878         From Prashant TR.
93879
93880         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93881         (dir_name_r): Declare this function as static.
93882         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93883         manifest itself on a name containing a mix of slashes and
93884         backslashes.
93885         Make this function work with names starting with a DOS-style
93886         drive letter and colon prefix.
93887         (dir_name): Append `.' if necessary.
93888         Based mostly on patches from Prashant TR and Eli Zaretskii.
93889
93890         * lib/dirname.h (dir_name_r): Remove prototype.
93891
93892 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93893
93894         * m4/off_t-format.m4: Remove this file.
93895         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93896
93897 2000-12-06  Jim Meyering  <meyering@lucent.com>
93898
93899         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93900         replacement strtoull, we may well need the replacement strtoul, too.
93901         Check for declarations of strtoul and strtoull.
93902         Check for strtol.  Mainly as a cue to cause automake to include
93903         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93904         Check for limits.h -- strtol.c needs it.
93905
93906 2000-12-05  Jim Meyering  <meyering@lucent.com>
93907
93908         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93909
93910 2000-12-04  Jim Meyering  <meyering@lucent.com>
93911
93912         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93913         Also include memory.h, stdlib.h, unistd.h if appropriate.
93914         Reported by Andreas Jaeger (conflicting declaration of malloc).
93915
93916 2000-12-02  Jim Meyering  <meyering@lucent.com>
93917
93918         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93919         * m4/jm-macros.m4 (jm_MACROS): require it.
93920
93921 2000-12-02  Jim Meyering  <meyering@lucent.com>
93922
93923         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93924
93925 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93926
93927         * lib/memrchr.c: Include <config.h> before any system include file.
93928
93929 2000-11-30  Jim Meyering  <meyering@lucent.com>
93930
93931         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93932
93933 2000-11-30  Jim Meyering  <meyering@lucent.com>
93934
93935         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93936
93937 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93938
93939         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93940
93941 2000-11-26  Jim Meyering  <meyering@lucent.com>
93942
93943         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93944
93945 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93946
93947         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93948         size of (size_t) -1; it's not portable.
93949
93950 2000-11-17  Jim Meyering  <meyering@lucent.com>
93951
93952         * lib/strstr.c: Update from GNU libc.
93953
93954 2000-11-17  Akim Demaille  <akim@epita.fr>
93955
93956         * lib/obstack.h: Formatting changes.
93957         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93958         prevent type checking.
93959         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93960         cast the value to (void *): assigning a `foo *' to a `void *'
93961         variable is valid.
93962         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93963
93964 2000-11-16  Jim Meyering  <meyering@lucent.com>
93965
93966         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93967
93968 2000-11-11  Jim Meyering  <meyering@lucent.com>
93969
93970         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93971
93972 2000-11-10  Jim Meyering  <meyering@lucent.com>
93973
93974         * lib/obstack.h: Update from GNU libc.
93975         * lib/obstack.c: Likewise.
93976
93977 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93978
93979         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93980
93981 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93982
93983         * lib/getusershell.c (setusershell): Use rewind rather than
93984         fseek/fseeko, to avoid configuration hassles with fseeko.
93985         Don't bother opening SHELLS_FILE if shellstream is NULL;
93986         it's not necessary.
93987
93988 2000-11-05  Jim Meyering  <meyering@lucent.com>
93989
93990         * lib/makepath.h (make_dir): Declare.
93991         * lib/makepath.c (make_dir): Remove `static' attribute.
93992         Tweak a comment.
93993
93994 2000-11-04  Jim Meyering  <meyering@lucent.com>
93995
93996         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93997
93998 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93999
94000         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
94001         last one in a bucket, advance to the next bucket.
94002
94003 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
94004
94005         * lib/fnmatch.c: Do not comment out all the code if we are using
94006         the GNU C library, because in some cases we are replacing buggy
94007         code in the GNU C library itself.
94008
94009 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
94010
94011         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
94012         (regex_compile): Catch bogus \(\1\).
94013
94014 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94015
94016         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
94017         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
94018         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
94019
94020 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94021
94022         * lib/error.h, getline.h, modechange.h:
94023         Remove "2000" from Copyright line, as the file hasn't been
94024         changed this year other than in the copyright notice.
94025
94026         * lib/xalloc.h: Add "2000" to Copyright line, as this file
94027         was changed this year.
94028
94029 2000-10-29  Jim Meyering  <meyering@lucent.com>
94030
94031         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
94032         renaming.
94033         * m4/ls-mntd-fs.m4: Likewise
94034
94035 2000-10-29  Jim Meyering  <meyering@lucent.com>
94036
94037         * lib/xstat.in: Fix grammar in comment.
94038
94039 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
94040
94041         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
94042         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
94043         doesn't define __restrict_arr.
94044
94045 2000-10-28  Jim Meyering  <meyering@lucent.com>
94046
94047         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
94048         (jm_PREREQ_MEMCHR): New function.
94049
94050 2000-10-28  Jim Meyering  <meyering@lucent.com>
94051
94052         * lib/memchr.c: Update from libc.
94053         Adjust for portability:
94054         [HAVE_STDLIB_H]: Include stdlib.h.
94055         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
94056         Undef __memchr, too.
94057         [!weak_alias]: Define __memchr to memchr.
94058
94059         * lib/regex.c: Update from libc.
94060         * lib/regex.h: Likewise.
94061         * lib/getopt1.c: Likewise.
94062         * lib/memcmp.c: Likewise.
94063
94064         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
94065         Avoid using fseek, when possible -- it's broken by design.
94066         Patch by Ulrich Drepper.
94067
94068 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
94069
94070         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
94071         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
94072         Giving in to popular pressure to shut up the compiler with casts.
94073
94074 2000-10-26  Jim Meyering  <meyering@lucent.com>
94075
94076         * lib/strftime.c: Update from libc.
94077
94078 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
94079
94080         * regex.c: More `unsigned char' -> `re_char' changes.
94081         Also change several `int' into `re_wchar_t'.
94082         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
94083         (PUSH_FAILURE_POINTER): Don't cast any more.
94084         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
94085         We want GCC to complain, since this piece of code makes
94086         re_match non-reentrant, which *should* be fixed.
94087         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
94088         (EXTEND_BUFFER): Use RETALLOC.
94089         (SET_LIST_BIT): Don't cast.
94090         (re_wchar_t): New type.
94091         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
94092         that those two functions will always properly return.
94093         (IMMEDIATE_QUIT_CHECK): Cast to void.
94094         (analyse_first): Use recursion rather than an explicit stack.
94095         (re_compile_fastmap): Can't fail anymore.
94096         (re_search_2): Don't check re_compile_fastmap for failure.
94097         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
94098         Now also sets the new value (passed in a new argument).
94099         (re_match_2_internal): Use it.
94100         Also, use a new var `reg' of type size_t when looping through regs
94101         rather than reuse the inappropriate `mcnt'.
94102
94103 2000-10-25  Jim Meyering  <meyering@lucent.com>
94104
94105         * lib/obstack.c: Update from libc.
94106
94107 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
94108
94109         * regex.c (regex_compile): Change the way of handling a range from
94110         a char less than 256 to a char not less than 256.
94111
94112 2000-10-24  Andrew Innes  <andrewi@gnu.org>
94113
94114         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
94115         NT-Emacs only.
94116         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
94117         so that re_search functions only quit when callers expect them to.
94118
94119 2000-10-23  Jim Meyering  <meyering@lucent.com>
94120
94121         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
94122         wrong.  That set_locale call must not have any side effects.
94123         From Paul Eggert.
94124
94125 2000-10-22  Jim Meyering  <meyering@lucent.com>
94126
94127         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
94128         [CYCLIC]: Remove now-unused definition.
94129
94130         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
94131         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
94132         Suggestion from Ulrich Drepper.
94133
94134 2000-10-21  Jim Meyering  <meyering@lucent.com>
94135
94136         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
94137         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
94138         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
94139
94140 2000-10-21  Jim Meyering  <meyering@lucent.com>
94141
94142         * lib/dirname.c (memrchr): Declare if necessary.
94143         (dir_name): Remove the restriction that there be no
94144         trailing slashes.  Now, this code skips past them, effectively
94145         ignoring them.
94146         [TEST_DIRNAME] (main): New unit tests.
94147
94148         * lib/memrchr.c: New file from GNU libc.
94149         Undef __memrchr, too.
94150         [!weak_alias]: Define __memrchr to memrchr.
94151         Guard weak_alias use with `#ifdef weak_alias'.
94152
94153 2000-10-21  Jim Meyering  <meyering@lucent.com>
94154
94155         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
94156         (dir_name): Use dir_name_r.
94157         * lib/dirname.h (dir_name_r): Declare it.
94158
94159 2000-10-17  Jim Meyering  <meyering@lucent.com>
94160
94161         * lib/quote.h (PARAMS): Define and use.
94162         Reported by Akim Demaille.
94163
94164         * lib/getopt.c: Update from libc.
94165
94166 2000-10-16  Jim Meyering  <meyering@lucent.com>
94167
94168         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
94169         setlocale.
94170         From Jan Fedak.
94171
94172 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
94173
94174         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
94175
94176 2000-09-25  Jim Meyering  <meyering@lucent.com>
94177
94178         * lib/md5.h (rol): Define (from GnuPG).
94179
94180         * lib/sha.c: Give credit (GnuPG) where due.
94181         (M): Use rol rather than open-coding it.
94182         Add a FIXME comment.
94183
94184 2000-09-21  Jim Meyering  <meyering@lucent.com>
94185
94186         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
94187         Reported by Michael Stone.
94188
94189 2000-09-20  Jim Meyering  <meyering@lucent.com>
94190
94191         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
94192         (noinst_HEADERS): Add sha.h.
94193         Based on code from Scott G. Miller and from GnuPG.
94194
94195 2000-09-18  Jim Meyering  <meyering@lucent.com>
94196
94197         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
94198         LIBS. Otherwise, everyone ends up linking with -lelf for some
94199         configurations.
94200         Reported by Mike Stone.
94201
94202 2000-09-15  Jim Meyering  <meyering@lucent.com>
94203
94204         * lib/regex.c: Update from libc.
94205
94206 2000-09-10  Jim Meyering  <meyering@lucent.com>
94207
94208         * lib/getopt.c (_getopt_internal): Update from glibc.
94209
94210 2000-09-09  Jim Meyering  <meyering@lucent.com>
94211
94212         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
94213         think it should be used as a general replacement for isascii.
94214         * lib/fnmatch.c: Likewise.
94215         * lib/mbswidth.c: Likewise
94216         * lib/regex.c: Likewise.
94217
94218         Don't use atoi.
94219         * lib/userspec.c: Include sys/param.h and limits.h.
94220         Include xstrtol.h.
94221         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94222         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
94223         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
94224         UID, GID.  Check range.
94225
94226 2000-09-06  Jim Meyering  <meyering@lucent.com>
94227
94228         * lib/getopt.c (_getopt_internal): Update from glibc.
94229
94230 2000-08-30  Jim Meyering  <meyering@lucent.com>
94231
94232         * lib/strftime.c: Merge in changes from GNU libc.
94233
94234 2000-08-26  Jim Meyering  <meyering@lucent.com>
94235
94236         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
94237         * m4/fpending.m4: New file.
94238
94239 2000-08-26  Jim Meyering  <meyering@lucent.com>
94240
94241         * lib/closeout.c: Include "__fpending.h".
94242         (close_stdout_status): Return right away if there's nothing to flush.
94243
94244         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
94245         * lib/__fpending.c: New file.
94246         * lib/__fpending.h: New file.
94247
94248 2000-08-20  Jim Meyering  <meyering@lucent.com>
94249
94250         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
94251         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
94252         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
94253
94254 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
94255
94256         Improve fileutils installation on systems where running
94257         programs (like install) can't be unlinked.
94258         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
94259         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
94260
94261 2000-08-07  Paul Eggert  <eggert@twinsun.com>
94262
94263         Standardize on "memory exhausted" instead of "Memory exhausted"
94264         or "virtual memory exhausted".
94265         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
94266         "virtual memory exhausted".
94267         * lib/same.c (same_name): Invoke xalloc_die instead of printing
94268         our own message.
94269         * lib/userspec.c (parse_user_spec): Likewise.
94270         * lib/bumpalloc.h: comment fix
94271         * lib/same.c, userspec.c: Include xalloc.h.
94272
94273         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
94274         not char *const and pointing to a constant array.
94275         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
94276         (xrealloc): Comment fix.
94277
94278         * lib/userspec.c (parse_user_spec):
94279         Don't translate a message until just before returning,
94280         to avoid unnecessary translation.
94281
94282 2000-08-07  Jim Meyering  <meyering@lucent.com>
94283
94284         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
94285         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
94286         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
94287         getgroups.c, gethostname.c, getopt.h, group-member.c,
94288         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
94289         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
94290         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
94291         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
94292         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
94293         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
94294         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
94295         yesno.c: Back out Copyright date changes for each file with no change
94296         this year.  This eases coordination with other programs using the same
94297         source code modules.  From Paul Eggert.
94298
94299 2000-08-06  Paul Eggert  <eggert@twinsun.com>
94300
94301         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
94302         not char, for compatibility with glibc 2.1.3 strftime.c.
94303
94304 2000-08-03  Greg McGary  <greg@mcgary.org>
94305
94306         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
94307         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
94308         (EXTEND_BUFFER): Use them.
94309
94310 2000-08-01  Jim Meyering  <meyering@lucent.com>
94311
94312         * lib/dirname.c (ISSLASH): Define.
94313         (BACKSLASH_IS_PATH_SEPARATOR): Define.
94314         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
94315         both `\' and `/' may be use as path separators.
94316         Based on a patch from Prashant TR.
94317
94318 2000-07-31  Paul Eggert  <eggert@twinsun.com>
94319
94320         * lib/quotearg.c (quotearg_n_options): Don't make the initial
94321         slot vector a constant, since it might get modified.
94322
94323 2000-07-31  Jim Meyering  <meyering@lucent.com>
94324
94325         * lib/xmalloc.c: Use `virtual memory exhausted', not
94326         `Memory exhausted'.
94327         * lib/obstack.c (print_and_abort): Likewise.
94328
94329 2000-07-30  Paul Eggert  <eggert@twinsun.com>
94330
94331         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
94332         buffer, so that the caller can always quote one small
94333         component of a "memory exhausted" message in slot 0.
94334         From a suggestion by Jim Meyering.
94335
94336 2000-07-30  Jim Meyering  <meyering@lucent.com>
94337
94338         * lib/makepath.c (make_path): Quote the other instance, too.
94339
94340         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
94341         (STATIC_BUF_SIZE): Define.
94342         (quotearg_n_options): Use only statically allocated storage when
94343         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
94344         than STATIC_BUF_SIZE.
94345
94346 2000-07-29  Jim Meyering  <meyering@lucent.com>
94347
94348         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
94349         * lib/dirname.c (dir_name): Likewise.
94350
94351         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
94352         `/'.
94353
94354         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
94355         (dir_name): Assert that there are no trailing slashes.
94356
94357 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
94358
94359         * lib/mbswidth.h (mbswidth): Add a flags argument.
94360         (mbswidth): New declaration.
94361         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
94362         * lib/mbswidth.c (mbswidth): Add a flags argument.
94363         (mbsnwidth): New function.
94364
94365 2000-07-24  Jim Meyering  <meyering@lucent.com>
94366
94367         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
94368
94369 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94370
94371         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
94372
94373 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94374
94375         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
94376         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
94377         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
94378         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
94379         invoke multibyte primitives.
94380
94381 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94382
94383         * lib/quotearg.c:
94384         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
94385         so that mbstate_t is always defined.
94386
94387         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
94388         be 1 in at least one GCC installation, and this configuration
94389         error is likely to be common.  Ignoring MB_LEN_MAX hurts
94390         performance on hosts that have mbrtowc but have only unibyte
94391         locales, but I assume these hosts are rare.
94392
94393 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94394
94395         * lib/mbswidth.c (_XOPEN_SOURCE):
94396         Don't define; this causes problems on Solaris 7.
94397         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
94398
94399 2000-07-23  Jim Meyering  <meyering@lucent.com>
94400
94401         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
94402         too: getgrgid, getpwuid, getuid.
94403
94404 2000-07-23  Jim Meyering  <meyering@lucent.com>
94405
94406         * lib/basename.c (base_name): Add an assertion.
94407
94408 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
94409
94410         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
94411         shadow its mbsinit function.
94412
94413 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94414
94415         * lib/mbswidth.h: New file.
94416         * lib/mbswidth.c: New file.
94417         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
94418         (noinst_HEADERS): Add mbswidth.h.
94419
94420 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94421
94422         * lib/config.charset: Add support for FreeBSD. Improve support for
94423         HP-UX and IRIX 6.
94424
94425 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
94426
94427         * m4/mbswidth.m4: New file.
94428         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
94429
94430 2000-07-15  Jim Meyering  <meyering@lucent.com>
94431
94432         * lib/makepath.c: Include quote.h.
94433         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
94434         corresponding argument in a `quote (...)' call.
94435         Give better diagnostics.
94436
94437         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
94438         (noinst_HEADERS): Add quote.h.
94439
94440         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
94441         from tar's src/misc.c.
94442         * lib/quote.h: New file.  Prototypes for same.
94443
94444 2000-07-14  Paul Eggert  <eggert@twinsun.com>
94445
94446         From a suggestion by Bruno Haible.
94447         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
94448         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
94449         to decide whether to define the BeOS workaround macro;
94450         this adjusts to the change to AC_MBSTATE_T.
94451
94452 2000-07-14  Jim Meyering  <meyering@lucent.com>
94453
94454         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
94455         jm_AC_TYPE_UINTMAX_T.
94456
94457 2000-07-13  Paul Eggert  <eggert@twinsun.com>
94458
94459         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
94460
94461         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
94462         quotearg_buffer_restyled): Add support for
94463         clocale_quoting_style.  Undo previous change to
94464         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
94465         and "{RIGHT QUOTATION MARK}" msgids.
94466
94467 2000-07-10  Paul Eggert  <eggert@twinsun.com>
94468
94469         From a suggestion by Bruno Haible.
94470         * m4/mbstate_t.m4 (AC_MBSTATE_T):
94471         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
94472         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
94473         and mbstate_t, to a single-part test that simply defines mbstate_t.
94474         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
94475         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
94476
94477 2000-07-10  Jim Meyering  <meyering@lucent.com>
94478
94479         * m4/strerror_r.m4: Mirror the correction made in autoconf.
94480
94481         * m4/gnu-source.m4: Output to confdefs.h directly.
94482         Suggestion from Akim Demaille.
94483
94484 2000-07-09  Paul Eggert  <eggert@twinsun.com>
94485
94486         The old behavior of quoting `like this' doesn't look good with
94487         newer, ISO-style fonts.  See:
94488         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
94489
94490         Instead, quote "like this" by default.  Let the translator
94491         tailor the locale-specific quoting behavior by providing
94492         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
94493
94494         * lib/quotearg.c (N_): New macro.
94495         (gettext_default): New function.
94496         (quotearg_buffer_restyled): Use
94497         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
94498         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
94499
94500 2000-07-09  Jim Meyering  <meyering@lucent.com>
94501
94502         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
94503         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
94504
94505         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
94506         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
94507
94508 2000-07-09  Jim Meyering  <meyering@lucent.com>
94509
94510         * lib/Most files: Update copyright dates to include 2000.
94511
94512 2000-07-08  Jim Meyering  <meyering@lucent.com>
94513
94514         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
94515         if not defined.
94516         (xgethostname): Remove now-unnecessary #ifdef.
94517         Move declaration of `err' into loop where it's used.
94518
94519 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94520         and Bruno Haible  <haible@clisp.cons.org>
94521
94522         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
94523         only if the test for an object-type mbstate_t fails.  This
94524         prevents us from mistakenly reporting that mbstate_t is a
94525         system object type after we "#define mbstate_t int" to work
94526         around its lack.
94527
94528 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94529         and Bruno Haible  <haible@clisp.cons.org>
94530
94531         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
94532
94533 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94534
94535         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
94536         to strerror_r.
94537         Include <ctype.h> for use of isalpha.
94538
94539 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94540
94541         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
94542         by allocating a larger buffer. Test the gethostname return value for
94543         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
94544         returns an error and ENAMETOOLONG isn't defined.
94545
94546 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94547
94548         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
94549         dimension.
94550
94551 2000-07-04  Jim Meyering  <meyering@lucent.com>
94552
94553         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
94554         of the deprecated AC_CHECKING.
94555
94556 2000-07-04  Jim Meyering  <meyering@lucent.com>
94557
94558         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94559         Reported by Bruno Haible.
94560
94561 2000-07-04  Jim Meyering  <meyering@lucent.com>
94562
94563         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94564         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94565         lacks mbrtowc.
94566
94567 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94568
94569         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94570         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94571
94572 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94573         and Bruno Haible  <haible@clisp.cons.org>
94574
94575         * lib/quotearg.c (mbrtowc):
94576         Assign to *pwc, and return 1 only if result is nonzero.
94577         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94578
94579 2000-07-03  Jim Meyering  <meyering@lucent.com>
94580
94581         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94582
94583 2000-07-03  Jim Meyering  <meyering@lucent.com>
94584
94585         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94586         This is necessary to get a definition of e.g., UTMP_FILE on
94587         HP-UX 10.20.
94588         From Bob Proulx.
94589
94590 2000-07-02  Jim Meyering  <meyering@lucent.com>
94591
94592         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94593
94594         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94595         AC_LIBOBJ(function_name).
94596         * m4/chown.m4: Likewise.
94597         * m4/fnmatch.m4: Likewise.
94598         * m4/ftruncate.m4: Likewise.
94599         * m4/getgroups.m4: Likewise.
94600         * m4/getline.m4: Likewise.
94601         * m4/group-member.m4: Likewise.
94602         * m4/jm-macros.m4: Likewise.
94603         * m4/lstat.m4: Likewise.
94604         * m4/malloc.m4: Likewise.
94605         * m4/memcmp.m4: Likewise.
94606         * m4/nanosleep.m4: Likewise.
94607         * m4/putenv.m4: Likewise.
94608         * m4/realloc.m4: Likewise.
94609         * m4/regex.m4: Likewise.
94610         * m4/stat.m4: Likewise.
94611         * m4/strftime.m4: Likewise.
94612
94613 2000-07-02  Jim Meyering  <meyering@lucent.com>
94614
94615         * lib/quotearg.c (mbstate_t): Don't define here.
94616
94617 2000-07-02  Jim Meyering  <meyering@lucent.com>
94618
94619         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94620
94621 2000-07-01  Jim Meyering  <meyering@lucent.com>
94622
94623         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94624
94625 2000-07-01  Jim Meyering  <meyering@lucent.com>
94626
94627         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94628         problem.
94629
94630 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94631
94632         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94633         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94634
94635 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94636
94637         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94638         per change in ../m4/ls-mntd-fs.m4.
94639         (read_filesystem_list): Ignore symbolic links.
94640
94641 2000-06-29  Jim Meyering  <meyering@lucent.com>
94642
94643         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94644         for declaration of strcmp.
94645
94646         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94647
94648         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94649         Avoid warning by casting result to `char *' to remove `const'.
94650
94651 2000-06-28  Jim Meyering  <meyering@lucent.com>
94652
94653         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94654         included by quotearg.c, for which we perform this test.  From
94655         Bruno Haible.
94656
94657 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94658
94659         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94660         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94661         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94662
94663 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94664
94665         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94666
94667 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94668
94669         savedir now sets errno on failure and invokes xmalloc to get memory.
94670         Fix a couple of other minor bugs while we're at it.
94671
94672         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94673         (NAMLEN): Remove macro.
94674         (malloc, realloc): Remove decls.
94675         (stpcpy): Likewise.
94676         ("xalloc.h"): Include.
94677         (NAME_SIZE_DEFAULT): New macro.
94678         (savedir): Use xmalloc / xrealloc to allocate memory.
94679         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94680         Skip "" directory entries.
94681         Use strlen to calculate directory entry length, since the old method
94682         is rarely used these days and isn't worth supporting.
94683         Don't use a pointer after freeing it.
94684         Check for integer overflow when calculating allocation size.
94685         Use memcpy to copy entries, instead of stpcpy.
94686         Set errno properly when returning NULL.
94687         Check for readdir error.
94688
94689 2000-06-26  Jim Meyering  <meyering@lucent.com>
94690
94691         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94692
94693 2000-06-25  Jim Meyering  <meyering@lucent.com>
94694
94695         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94696         Linux header bug when _XOPEN_SOURCE is defined to 500.
94697
94698 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94699
94700         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94701         deficiency.
94702
94703 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94704
94705         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94706         Include xalloc.h.
94707         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94708
94709 2000-06-24  Jim Meyering  <meyering@lucent.com>
94710
94711         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94712         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94713         for which strerror does return char*, but which lacks a conveniently
94714         accessible declaration of the function.  If the compile-test says
94715         strerror_r doesn't work, then resort to a `run'-test that works on
94716         BeOS and segfaults on DEC Unix.
94717
94718 2000-06-24  Jim Meyering  <meyering@lucent.com>
94719
94720         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94721
94722 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94723
94724         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94725         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94726
94727 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94728
94729         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94730         (mbrtowc, mbstate_t): Define substitutes if
94731         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94732         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94733         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94734
94735 2000-06-23  Jim Meyering  <meyering@lucent.com>
94736
94737         * m4/afs.m4: Add missing AC_MSG_RESULT.
94738         Reported by Bruno Haible.
94739
94740         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94741         Suggestion from Bruno Haible.
94742
94743 2000-06-23  Jim Meyering  <meyering@lucent.com>
94744
94745         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94746
94747 2000-06-21  Jim Meyering  <meyering@lucent.com>
94748
94749         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94750
94751 2000-06-21  Jim Meyering  <meyering@lucent.com>
94752
94753         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94754         (noinst_HEADERS): Add getstr.h.
94755
94756         * lib/getline.c (getstr): Move into a separate file.
94757         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94758         the following changes: new parameter, delim2; both delim[12]
94759         parameters have type `int', not `char'.  The latter would lose
94760         with 8-bit delimiters.
94761         * lib/getstr.h: New file.
94762
94763 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94764
94765         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94766         than 1024, return a memory chunk of least possible size, instead
94767         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94768         Use free/xmalloc instead of xrealloc to avoid copying for very long
94769         paths.
94770
94771 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94772
94773         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94774         the empty string.
94775
94776 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94777
94778         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94779         address, not strdup.  Include <stdlib.h> and don't declare free().
94780
94781 2000-06-19  Jim Meyering  <meyering@lucent.com>
94782
94783         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94784
94785 2000-06-18  Jim Meyering  <meyering@lucent.com>
94786
94787         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94788
94789         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94790         `checking whether...' message to be consistent with that of the
94791         lstat test.
94792
94793 2000-06-18  Jim Meyering  <meyering@lucent.com>
94794
94795         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94796         Besides, these days every porting target provides a mkdir function.
94797
94798         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94799         needed. (this snippet comes from src/system.h).
94800
94801 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94802
94803         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94804
94805 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94806
94807         * lib/human.c (adjust_value): New function.
94808         (human_readable_inexact): Apply rounding style even when
94809         printing approximate values.
94810
94811 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94812
94813         * lib/human.c (human_readable_inexact): Allow an input block
94814         size that is not a multiple of the output block size, and vice versa.
94815         Reported by Piergiorgio Sartor.
94816
94817 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94818
94819         * lib/getdate.y (get_date): Apply relative times after time
94820         zone indicator, not before.  Reported by Todd A. Jacobs.
94821
94822 2000-06-13  Jim Meyering  <meyering@lucent.com>
94823
94824         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94825
94826         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94827
94828 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94829
94830         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94831
94832 2000-06-12  Jim Meyering  <meyering@lucent.com>
94833
94834         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94835         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94836         optional argument.
94837         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94838         the optional argument, `lib'.
94839
94840 2000-06-08  Jim Meyering  <meyering@lucent.com>
94841
94842         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94843
94844 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94845
94846         Rewrite largefile configuration so that we don't need to run
94847         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94848         AC_CANONICAL_HOST in configure.in -- jmm]
94849
94850         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94851         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94852         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94853         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94854         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94855         All uses changed.
94856         Instead of inspecting the output of getconf, try to compile the
94857         test program without and with the macro definition.
94858         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94859         for getconf.  Instead, check for the needed flags by compiling
94860         test programs.
94861
94862 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94863
94864         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94865
94866 2000-06-04  Jim Meyering  <meyering@lucent.com>
94867
94868         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94869         SunOS 4.1.4 for which gid_t is an unsigned type.
94870
94871 2000-06-03  Jim Meyering  <meyering@lucent.com>
94872
94873         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94874         now that autoconf requires that.
94875
94876         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94877         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94878         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94879
94880 2000-06-03  Jim Meyering  <meyering@lucent.com>
94881
94882         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94883
94884 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94885
94886         * m4/glibc21.m4: New file.
94887         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94888
94889 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94890
94891         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94892         newer, don't install charset.alias.
94893         * lib/config.charset: Change the Linux/glibc rules so they become empty
94894         on glibc-2.1 or newer.
94895
94896 2000-06-02  Jim Meyering  <meyering@lucent.com>
94897
94898         * lib/mountlist.c: Back out last change.  Instead, do this...
94899         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94900         me_dummy member using the same `ignore'-testing code.
94901         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94902         fs_type strings.
94903         From Mark D. Roth.
94904
94905 2000-05-29  Jim Meyering  <meyering@lucent.com>
94906
94907         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94908         mounts with the `ignore' attribute.  Based on a patch from
94909         Mark D. Roth.
94910
94911 2000-05-28  Jim Meyering  <meyering@lucent.com>
94912
94913         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94914         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94915         * m4/stat.m4: Likewise.
94916         * m4/lstat.m4: Likewise.
94917         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94918
94919         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94920         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94921
94922 2000-05-26  Jim Meyering  <meyering@lucent.com>
94923
94924         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94925
94926 2000-05-24  Jim Meyering  <meyering@lucent.com>
94927
94928         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94929         autoconf requires that.
94930         * m4/lib-check.m4: Likewise.
94931         * m4/jm-macros.m4: Likewise.
94932         * m4/strftime.m4: Likewise.
94933
94934         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94935         AC_CHECK_DECLS, now that autoconf requires that.
94936
94937 2000-05-22  Jim Meyering  <meyering@lucent.com>
94938
94939         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94940         * m4/lstat.m4: Likewise.
94941
94942 2000-05-22  Jim Meyering  <meyering@lucent.com>
94943
94944         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94945
94946 2000-05-20  Jim Meyering  <meyering@lucent.com>
94947
94948         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94949         (jm_PREREQ): Use it.
94950
94951 2000-05-18  Jim Meyering  <meyering@lucent.com>
94952
94953         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94954         back, too, since it may have been modified by allocate_entry.
94955         (hash_delete): Rewrite to use neither the assignment operator
94956         nor the comma operator in an if-expression.
94957
94958 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94959
94960         * lib/closeout.c:
94961         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94962         Remove; no longer needed.
94963         "quotearg.h": Add include.
94964         (file_name): Do not bother to explicitly initialize to NULL; it's less
94965         efficient on some hosts.
94966         (close_stdout_status): Remove test as to whether stdout was already
94967         closed; it breaks for the case "echo x | sort >&-".
94968         Quote file name colons.
94969         Do not assume that _("write error") lacks format strings.
94970
94971 2000-05-15  Jim Meyering  <meyering@lucent.com>
94972
94973         * lib/version-etc.c (version_etc_copyright): Update the copyright
94974         string used in all --version output.
94975
94976 2000-05-14  Jim Meyering  <meyering@lucent.com>
94977
94978         * lib/closeout.c (close_stdout_set_file_name): New function.
94979         (close_stdout_status): Use new file-scoped global.
94980         Return right away if fstat says the stdout file descriptor is invalid.
94981         * lib/closeout.h (close_stdout_set_file_name): Declare.
94982
94983 2000-05-10  Jim Meyering  <meyering@lucent.com>
94984
94985         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94986         (close_stdout_set_status): New function.
94987         * lib/closeout.h (close_stdout_set_status): Declare.
94988
94989 2000-05-09  Jim Meyering  <meyering@lucent.com>
94990
94991         * m4/gettext.m4: Rename this...
94992         * m4/libintl.m4: ...to this.
94993
94994 2000-05-08  Jim Meyering  <meyering@lucent.com>
94995
94996         * lib/long-options.c: Don't include closeout.h.
94997         (parse_long_options): Don't call close_stdout for --version.
94998
94999 2000-05-06  Paul Eggert  <eggert@twinsun.com>
95000
95001         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
95002         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
95003         2.1.3 bug.  This avoids a clash when files like regex.c define
95004         _GNU_SOURCE.
95005
95006 2000-05-06  Jim Meyering  <meyering@lucent.com>
95007
95008         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
95009         (AC_REPLACE_FUNCS): Add strnlen.
95010
95011         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
95012         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
95013
95014         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
95015         AC_SEARCH_LIBS call for nanosleep.
95016         (LIB_NANOSLEEP): Set and AC_SUBST.
95017
95018 2000-05-06  Jim Meyering  <meyering@lucent.com>
95019
95020         * lib/strnlen.c: Undefine __strnlen and strnlen.
95021         [!weak_alias]: Define __strnlen to strnlen.
95022
95023         * lib/atexit.c: New file, from libiberty.
95024
95025 2000-05-06  Jim Meyering  <meyering@lucent.com>
95026
95027         * lib/closeout.c (close_stdout_status): Also check for errors on the
95028         stderr stream.
95029
95030 2000-05-05  Jim Meyering  <meyering@lucent.com>
95031
95032         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
95033         AC_SEARCH_LIBS call for clock_gettime.
95034         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
95035
95036         * m4/search-libs.m4: Update from autoconf.
95037
95038         su doesn't work on Solaris 2.6.
95039         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
95040         <shadow.h>.  Reported by Dragos Harabor.
95041
95042 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
95043
95044         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
95045         memcpy instead of xmalloc, xrealloc, path_concat.
95046         (locale_charset): Treat empty environment variables as absent.
95047         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
95048
95049 2000-05-04  Jim Meyering  <meyering@lucent.com>
95050
95051         * lib/getopt.c: Update from glibc.
95052         * lib/obstack.c: Likewise.
95053         * lib/obstack.h: Likewise.
95054         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
95055         file
95056
95057         * lib/regex.h: Likewise.
95058         * lib/strndup.c: Likewise.
95059         * lib/strnlen.c: New file, from glibc.
95060
95061 2000-05-03  Jim Meyering  <meyering@lucent.com>
95062
95063         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
95064
95065 2000-05-02  Paul Eggert  <eggert@twinsun.com>
95066
95067         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
95068         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
95069         compile-time test, rather than inspecting host and OS, to
95070         decide whether to define _LARGEFILE_SOURCE.
95071
95072 2000-05-01  Jim Meyering  <meyering@lucent.com>
95073
95074         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
95075
95076         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
95077         Based on a patch from Bruno Haible.
95078
95079 2000-05-01  Jim Meyering  <meyering@lucent.com>
95080
95081         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
95082
95083 2000-04-29  Jim Meyering  <meyering@lucent.com>
95084
95085         * lib/path-concat.c: Declare strdup only if it's not defined.
95086         * lib/canon-host.c: Likewise.
95087
95088 2000-04-28  Jim Meyering  <meyering@lucent.com>
95089
95090         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
95091         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
95092         is included first, then limits.h is included by locale.h by libintl.h.
95093         From John David Anglin.
95094
95095 2000-04-25  Jim Meyering  <meyering@lucent.com>
95096
95097         * lib/makepath.c (S_IRWXUGO): Define.
95098         (make_path): Always perform explicit chmod if MODE specifies any
95099         of the `special' permission bits.  Prompted by a bug report against
95100         install from Mate Wierdl and Joost van Baal.
95101
95102 2000-04-18  Jim Meyering  <meyering@lucent.com>
95103
95104         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
95105         (jm_PREREQ): Use it.
95106
95107 2000-04-18  Jim Meyering  <meyering@lucent.com>
95108
95109         * lib/README: New file.
95110
95111         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
95112         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
95113
95114 2000-04-17  Jim Meyering  <meyering@lucent.com>
95115
95116         Get it right :-)
95117         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
95118         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
95119         Suggestion from Akim Demaille.
95120
95121 2000-04-17  Jim Meyering  <meyering@lucent.com>
95122
95123         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
95124         the definition of it to rpl_strftime also defined-away the system's
95125         declaration.
95126
95127 2000-04-15  Jim Meyering  <meyering@lucent.com>
95128
95129         Use `C' to denote so-called `contiguous' files, the same way
95130         that tar does.
95131         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
95132         (ftypelet): Use S_ISCTG.
95133         From Michael Deutschmann.
95134
95135 2000-04-14  Jim Meyering  <meyering@lucent.com>
95136
95137         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
95138         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
95139         clobbered.
95140
95141 2000-04-14  Jim Meyering  <meyering@lucent.com>
95142
95143         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
95144
95145 2000-04-13  Jim Meyering  <meyering@lucent.com>
95146
95147         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
95148         AH_VERBATIM to insert required #ifndef into config.h.in.
95149         Suggestion from Akim Demaille.
95150
95151 2000-04-12  Jim Meyering  <meyering@lucent.com>
95152
95153         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
95154         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
95155         Christian Krackowizer.
95156
95157         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
95158         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
95159         (AC_SYS_LARGEFILE): Require.
95160         (AM_C_PROTOTYPES): Require.
95161
95162 2000-04-08  Jim Meyering  <meyering@lucent.com>
95163
95164         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
95165         names don't conflict.  Reported by Eli Zaretskii.
95166
95167 2000-04-07  Jim Meyering  <meyering@lucent.com>
95168
95169         * lib/putenv.c: Move inclusion of errno.h so it follows that of
95170         sys/types.h, to work around system header problems on AIX 3.2.5.
95171         From Bruno Haible.
95172
95173 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
95174
95175         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
95176         bug.  Deal with the different error behavior of Irix iconv.
95177
95178 2000-04-05  Paul Eggert  <eggert@twinsun.com>
95179
95180         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
95181         IRIX if the installer said otherwise.
95182
95183 2000-04-05  Jim Meyering  <meyering@lucent.com>
95184
95185         Portability tweaks required for ultrix4.3.
95186         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
95187         (jm_CHECK_DECLS): Add getutent to the list of functions.
95188         (_jm_DECL_HEADERS): Add utmpx.h.
95189         From John David Anglin.
95190
95191         * m4/strftime.m4: Back out the 2000-04-02 change.
95192         Instead of that change, simply undefine putenv in the test program.
95193
95194 2000-04-05  Jim Meyering  <meyering@lucent.com>
95195
95196         Portability tweaks required for ultrix4.3.
95197         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
95198         getutent.
95199         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
95200         * lib/canon-host.c: Declare strdup.
95201         * lib/path-concat.c: Likewise.
95202         From John David Anglin.
95203
95204 2000-04-04  Jim Meyering  <meyering@lucent.com>
95205
95206         Be more DOS 8.3-friendly.
95207         * lib/ref-add.sin: Renamed from ref-add.sed.in.
95208         * lib/ref-del.sin: Renamed from ref-del.sed.in.
95209         * lib/Makefile.am: Reflect renaming.
95210         Reported by Eli Zaretskii.
95211
95212         Use a temporary file name that won't clash with `charset.alias'
95213         in the DOS 8.3 name space.
95214         * lib/Makefile.am (charset_tmp): Define.
95215         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
95216         (uninstall-local): Likewise.
95217         Reported by Eli Zaretskii.
95218
95219 2000-04-03  Jim Meyering  <meyering@lucent.com>
95220
95221         * m4/gettext.m4: Fix typo in comment.
95222
95223         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
95224         textutils/configure.in).  Suggestion from Paul Eggert.
95225         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
95226
95227 2000-04-02  Paul Eggert  <eggert@twinsun.com>
95228
95229         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
95230         variable in the shell rather than using putenv, which isn't
95231         portable.  This avoids the configure-time inter-test dependency
95232         on the potentially-renamed putenv function.
95233
95234 2000-03-30  Paul Eggert  <eggert@twinsun.com>
95235
95236         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
95237         before checking struct stat.st_blksize, so that
95238         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
95239
95240 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95241
95242         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
95243         since strftime.c uses HAVE_STRFTIME to decide whether to use
95244         the underlying strftime.
95245
95246 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95247
95248         * lib/time/strftime.c (my_strftime): Make sure we call the system
95249         strftime, not ourselves, when invoking the underlying strftime.
95250
95251 2000-03-24  Jim Meyering  <meyering@lucent.com>
95252
95253         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
95254         (charset_alias): Define.
95255         (install-exec-local): Factor out common code.
95256         (uninstall-local): Split lines longer than 80.
95257         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
95258         (SUFFIXES): Define.
95259         (.sed.in.sed): New rule.  Don't redirect directly to $@.
95260         (CLEANFILES): Add ref-add.sed and ref-del.sed.
95261
95262 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
95263
95264         * lib/config.charset: Output a line containing "Packages using this
95265         file".
95266         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
95267         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
95268         ref-del.sed): New rules.
95269
95270 2000-03-17  Jim Meyering  <meyering@lucent.com>
95271
95272         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
95273         Otherwise, include <strings.h>
95274
95275 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
95276
95277         * lib/unicodeio.c (utf8_wctomb): New function.
95278         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
95279         format instead of in UCS-4 with platform dependent endianness.
95280
95281 2000-03-10  Jim Meyering  <meyering@lucent.com>
95282
95283         * m4/lib-check.m4: Look for getspnam in -lgen, too.
95284         From Marco Franzen.
95285
95286 2000-03-07  Paul Eggert  <eggert@twinsun.com>
95287
95288         * lib/savedir.c (savedir): Work even if directory size is
95289         negative; this can happen with some screwy NFS configurations.
95290
95291 2000-03-06  Jim Meyering  <meyering@lucent.com>
95292
95293         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
95294         if it's NULL (because we ran out of memory).  From Bruno Haible.
95295
95296 2000-03-05  Jim Meyering  <meyering@lucent.com>
95297
95298         * lib/localcharset.c ("path-concat.h"): Include.
95299         (get_charset_aliases): Use path_concat instead of ANSI string
95300         concatenation.
95301
95302         * lib/unicodeio.h (PARAMS): Define.
95303         Use it to guard prototype.
95304
95305 2000-03-04  Jim Meyering  <meyering@lucent.com>
95306
95307         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
95308         for lib/localcharset.c.
95309
95310 2000-03-04  Jim Meyering  <meyering@lucent.com>
95311
95312         * lib/Makefile.am (install-exec-local): Create $(libdir) before
95313         installing into it.
95314         (uninstall-local): Uncomment this rule so `make distcheck' works
95315         once again.
95316
95317         * lib/unicodeio.c (<errno.h>): Include it.
95318         (errno): Declare if not defined.
95319
95320         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
95321
95322         * lib/config.charset: New version, incorporating remarks from a linux
95323         i18n mailing list.  From Bruno Haible.
95324
95325 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
95326
95327         * m4/codeset.m4: New file.
95328         * m4/iconv.m4: New file.
95329         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
95330
95331 2000-03-03  Jim Meyering  <meyering@lucent.com>
95332
95333         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
95334
95335 2000-03-02  Jim Meyering  <meyering@lucent.com>
95336
95337         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
95338         the messages come out on separate lines.
95339
95340         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
95341         rather than jm_CHECK_DECLARATIONS.
95342         * m4/decl.m4: Remove now-unused file.
95343
95344         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
95345         geteuid.
95346
95347 2000-03-02  Jim Meyering  <meyering@lucent.com>
95348
95349         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
95350
95351 2000-03-01  Jim Meyering  <meyering@lucent.com>
95352
95353         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
95354         * lib/unicodeio.c: Likewise.
95355
95356 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
95357
95358         * lib/config.charset: New file.
95359         * lib/localcharset.c: New file.
95360         * lib/unicodeio.h, lib/unicodeio.c: New files.
95361         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
95362         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
95363         (noinst_HEADERS): Add unicodeio.h.
95364         (all-local, install-exec-local, charset.alias): New targets.
95365
95366 2000-02-28  Paul Eggert  <eggert@twinsun.com>
95367
95368         * lib/quotearg.c (ALERT_CHAR): New macro.
95369         (quotearg_buffer_restyled): Use it.
95370
95371 2000-02-27  Jim Meyering  <meyering@lucent.com>
95372
95373         * m4/check-decl.m4: Add getenv to the list.
95374
95375 2000-02-27  Jim Meyering  <meyering@lucent.com>
95376
95377         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
95378         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
95379
95380         * lib/backupfile.c: Guard inclusion of stdlib.h with
95381         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
95382         Declare malloc if needed.
95383
95384         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
95385         `#ifndef HAVE_DECL..'
95386         now that autoconf always defines the HAVE_DECL_ symbols.
95387         * lib/human.c: Likewise.
95388         * lib/same.c: Likewise.
95389         * lib/strtoumax.c: Likewise.
95390
95391         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
95392         declaration check was not run.
95393         * lib/hash.c: Likewise.
95394         * lib/human.c: Likewise.
95395         * lib/same.c: Likewise.
95396         * lib/strtoumax.c: Likewise.
95397
95398         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
95399         `.', then first look up the entire `.'-containing string as a login
95400         name.
95401
95402 2000-02-23  Jim Meyering  <meyering@lucent.com>
95403
95404         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
95405         in place of my hack.
95406
95407 2000-02-18  Paul Eggert  <eggert@twinsun.com>
95408
95409         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
95410         (textint): New typedef.
95411         (parser_control): Member year changed from int to textint.
95412         All uses changed.
95413         (YYSTYPE): Removed; replaced by %union with int and textint members.
95414         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
95415         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
95416         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
95417         (tSNUMBER, tUNUMBER): Now of type <textintval>.
95418         (date, number, to_year): Use width of number in digits, not its value,
95419         to determine whether it's a 2-digit year, or a 2-digit time.
95420         (yylex): Store number of digits of numeric tokens.
95421         Reported by John Kendall.
95422
95423         (parser_control): Changed from struct parser_control to typedef (for
95424         consistency).  All uses changed.
95425
95426         (tID): Removed; not used.
95427         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
95428
95429 2000-02-14  Paul Eggert  <eggert@twinsun.com>
95430
95431         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
95432         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
95433
95434 2000-02-12  Jim Meyering  <meyering@lucent.com>
95435
95436         * lib/userspec.c (ISDIGIT): Define it.
95437         (isdigit): Remove definition.
95438         (is_number): Use ISDIGIT, not isdigit.
95439         <libintl.h>: Include.
95440         (_ and N_): Define.
95441         (parse_user_spec): Mark translatable strings.
95442
95443 2000-02-10  Jim Meyering  <meyering@lucent.com>
95444
95445         With these changes, nanosleep.[ch] are finally enough like the other
95446         lib/* replacement files to compile on a few more losing systems.
95447
95448         * lib/nanosleep.h: Don't include config.h.
95449         Remove prototype from declaration of nanosleep.
95450         (PARAMS): Remove now-unneeded definition.
95451         * lib/nanosleep.c: #undef nanosleep.
95452         (rpl_nanosleep): Rename from nanosleep.
95453
95454 2000-02-10  Jim Meyering  <meyering@lucent.com>
95455
95456         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
95457         gnu_nanosleep to rpl_nanosleep.
95458
95459 2000-02-09  Jim Meyering  <meyering@lucent.com>
95460
95461         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
95462         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
95463
95464 2000-02-08  Akim Demaille  <akim@epita.fr>
95465
95466         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
95467         `[' and `]' and remove uses of `changequote'.
95468         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
95469         (AC_SYS_LARGEFILE): Likewise.
95470         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
95471         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
95472         of changequote.
95473         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
95474         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
95475         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
95476         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
95477
95478 2000-02-05  Jim Meyering  <meyering@lucent.com>
95479
95480         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
95481         Remove explicit use of AC_HEADER_TIME.  It is required by
95482         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
95483         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
95484         in autoconf whereby the expansion of the latter ended up preceding
95485         the expansion of its prerequisite, AC_HEADER_TIME.
95486         Reported by Volker Borchert.
95487
95488 2000-02-03  Jim Meyering  <meyering@lucent.com>
95489
95490         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
95491
95492 2000-02-03  Jim Meyering  <meyering@lucent.com>
95493
95494         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
95495         rather than with `#if HAVE_UTMPNAME'.
95496
95497 2000-02-02  Jim Meyering  <meyering@lucent.com>
95498
95499         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
95500         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
95501         Reported by Eli Zaretskii.
95502
95503 2000-02-01  Jim Meyering  <meyering@lucent.com>
95504
95505         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
95506
95507 2000-01-31  Jim Meyering  <meyering@lucent.com>
95508
95509         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
95510         functions.  Add the time.h and sys/time.h headers along with the
95511         AC_REQUIRE'ment of AC_HEADER_TIME.
95512
95513 2000-01-31  Jim Meyering  <meyering@lucent.com>
95514
95515         * lib/nanosleep.h (nanosleep): Guard declaration with
95516         `#if ! HAVE_DECL_NANOSLEEP'.
95517         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
95518         the declaration in that vendor's sys/timers.h.
95519         Reported by Christian Krackowizer.
95520
95521         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
95522         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
95523         (ISPRINT): Likewise.
95524         Reported by Tom Tromey.
95525
95526 2000-01-30  Jim Meyering  <meyering@lucent.com>
95527
95528         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
95529
95530         * m4/prereq.m4 (utmp_includes): Define.
95531         Check for ut_user and ut_name members in both struct utmpx
95532         and struct utmp.
95533
95534 2000-01-30  Jim Meyering  <meyering@lucent.com>
95535
95536         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
95537         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
95538         header files where only utmpx.ut_user is declared.
95539
95540         * lib/readutmp.h (UT_USER): Define.
95541
95542 2000-01-29  Jim Meyering  <meyering@lucent.com>
95543
95544         * m4/lib-check.m4: New file containing library-related checks from
95545         fileutils and sh-utils (textutils had none).
95546
95547 2000-01-28  Jim Meyering  <meyering@lucent.com>
95548
95549         * m4/perl.m4: Change format of warning message to look more like that
95550         from the missing script.  Suggestion from François Pinard.
95551
95552 2000-01-25  Jim Meyering  <meyering@lucent.com>
95553
95554         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
95555         well as time.h in the compile check.
95556         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95557         Fix typo in cross-compiling case: s/yes/no/.
95558
95559 2000-01-23  Jim Meyering  <meyering@lucent.com>
95560
95561         * m4/jm-macros.m4: Move df-related tests here from
95562         fileutils/configure.in
95563
95564         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95565         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95566
95567         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95568         s/space/ac_fsusage_space/.
95569         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95570
95571         * m4/ftruncate.m4: New file (derived from part of
95572         fileutils/configure.in).
95573         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95574         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95575
95576         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95577         AC_SUBST these here, rather than just in sh-util/configure.in, so
95578         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95579         all the same.
95580         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95581         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95582         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95583         (AC_SUBST(POW_LIBM)): Likewise.
95584         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95585
95586 2000-01-23  Jim Meyering  <meyering@lucent.com>
95587
95588         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95589         obstack.c.
95590
95591 2000-01-22  Jim Meyering  <meyering@lucent.com>
95592
95593         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95594
95595         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95596
95597         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95598         configure.in
95599         (AC_CHECK_HEADERS): Likewise for sh-utils.
95600         (AC_CHECK_HEADERS): Likewise for textutils.
95601         Merge the three lists of headers.
95602
95603         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95604         from fileutils' configure.in.
95605
95606         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95607         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95608         check-decl.m4.
95609
95610         * m4/check-decl.m4: Use #if rather than #ifdef.
95611         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95612         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95613         (_jm_DECL_HEADERS): Define new function.
95614         (jm_CHECK_DECLARATIONS): Require it.
95615
95616 2000-01-22  Jim Meyering  <meyering@lucent.com>
95617
95618         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95619         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95620         Required for some AIX systems.  Reported by Christian Krackowizer.
95621         [TESTING] (main): New function.
95622
95623         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95624         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95625         letters.
95626
95627         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95628         iswprint.
95629
95630         * lib/strverscmp.c (ISDIGIT): Define.
95631         (strverscmp): Use ISDIGIT, not isdigit.
95632
95633 2000-01-19  Jim Meyering  <meyering@lucent.com>
95634
95635         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95636         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95637         defines `struct timespec' in <sys/time.h>
95638
95639         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95640         Thanks to Akim for explaining.
95641
95642 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95643
95644         * lib/nanosleep.c (nanosleep):
95645         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95646         POSIX.1 doesn't require SA_INTERRUPT and some systems
95647         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95648         it's been part of POSIX.1 since day 1 (in 1988).
95649
95650 2000-01-17  Jim Meyering  <meyering@lucent.com>
95651
95652         * lib/interlock: Remove unused file.  Reported by François Pinard.
95653
95654 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95655
95656         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95657         alert, backslash, formfeed, and vertical tab unnecessarily in
95658         shell quoting style.
95659
95660 2000-01-16  Jim Meyering  <meyering@lucent.com>
95661
95662         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95663         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95664         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95665         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95666
95667 2000-01-16  Jim Meyering  <meyering@lucent.com>
95668
95669         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95670         because the latter didn't work.
95671
95672 2000-01-15  Jim Meyering  <meyering@lucent.com>
95673
95674         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95675         (AC_REPLACE_FUNCS): Add memcpy and memset.
95676         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95677         Add strpbrk.
95678         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95679
95680 2000-01-12  Jim Meyering  <meyering@lucent.com>
95681
95682         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95683         (jm_PREREQ): Use it.
95684         (jm_PREREQ_READUTMP): New macro.
95685         (jm_PREREQ): Use it.
95686
95687 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95688
95689         Quote multibyte characters correctly.
95690         * m4/c-bs-a.m4: New file.
95691         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95692         (jm_PREREQ): Use it.
95693
95694 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95695
95696         * m4/uintmax_t.m4: Port to autoconf 2.13.
95697
95698 2000-01-08  Jim Meyering  <meyering@ascend.com>
95699
95700         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95701         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95702
95703 2000-01-04  Jim Meyering  <meyering@ascend.com>
95704
95705         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95706         jm_STRUCT_DIRENT_D_TYPE.
95707         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95708         jm_STRUCT_DIRENT_D_INO.
95709         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95710         jm_STRUCT_UTIMBUF.
95711         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95712         renamings.
95713         * m4/utime.m4: Likewise.
95714
95715         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95716         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95717
95718 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95719
95720         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95721         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95722
95723 2000-01-02  Jim Meyering  <meyering@ascend.com>
95724
95725         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95726         remember if this is necessary.
95727
95728 1999-12-26  Jim Meyering  <meyering@ascend.com>
95729
95730         * m4/jm-macros.m4: Use it here.
95731         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95732
95733 1999-12-23  Jim Meyering  <meyering@ascend.com>
95734
95735         * m4/jm-macros.m4: Check for clock_gettime (moved from
95736         fileutils/configure.in)
95737         Check for gettimeofday.
95738
95739 1999-12-20  Jim Meyering  <meyering@ascend.com>
95740
95741         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95742         autoconf-2.14a-1999-12-20.
95743
95744 1999-12-19  Jim Meyering  <meyering@ascend.com>
95745
95746         * m4/lstat-slash.m4: New file.
95747         * m4/jm-macros.m4: Use the new macro:
95748         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95749
95750 1999-12-07  Jim Meyering  <meyering@ascend.com>
95751
95752         * m4/perl.m4: Require that File::Compare be available, too.
95753         Too many systems seem to lack it.
95754
95755         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95756         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95757
95758 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95759
95760         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95761         problem with the QNX 4.25 shell, which doesn't propagate exit
95762         status of failed commands inside shell assignments.
95763
95764 1999-11-17  Jim Meyering  <meyering@ascend.com>
95765
95766         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95767
95768 1999-11-07  Jim Meyering  <meyering@ascend.com>
95769
95770         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95771
95772 1999-11-06  Jim Meyering  <meyering@ascend.com>
95773
95774         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95775         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95776
95777 1999-11-05  Jim Meyering  <meyering@ascend.com>
95778
95779         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95780         configure.in of textutils, fileutils, and sh-utils into this one
95781         (shared between those packages) file.
95782         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95783         AC_STRUCT_ST_BLKSIZE.
95784
95785 1999-11-03  Jim Meyering  <meyering@ascend.com>
95786
95787         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95788         of AC_CHECK_TYPE checks includes unistd.h.
95789         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95790         Suggestion from Akim Demaille.
95791
95792 1999-10-30  Jim Meyering  <meyering@ascend.com>
95793
95794         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95795         m4-quoted string.
95796         * m4/ls-mntd-fs.m4: Likewise.
95797         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95798         * m4/jm-winsz1.m4: Likewise.
95799
95800         * m4/const.m4: Remove file, since the fix made it into the experimental
95801         version of autoconf.
95802         * m4/mktime.m4: Likewise.
95803
95804         * m4/check-type.m4: Remove file, now that the latest version of
95805         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95806
95807         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95808         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95809         AC_CHECK_TYPE.
95810
95811 1999-10-04  Jim Meyering  <meyering@ascend.com>
95812
95813         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95814
95815 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95816
95817         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95818         2.95.1 bug with HP-UX 10.20.
95819
95820 1999-09-17  Jim Meyering  <meyering@ascend.com>
95821
95822         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95823         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95824         due to missing strdup (against sh-utils-2.0).
95825
95826 1999-08-29  Jim Meyering  <meyering@ascend.com>
95827
95828         * m4/jm-macros.m4: Require jm_BISON.
95829         * m4/bison.m4: New file.
95830
95831 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95832
95833         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95834         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95835
95836 1999-08-05  Jim Meyering  <meyering@ascend.com>
95837
95838         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95839         to avoid conflicts with `conftest' on 8+3 filesystems.
95840         Suggestion from Eli Zaretskii.
95841
95842 1999-08-04  Jim Meyering  <meyering@ascend.com>
95843
95844         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95845         fileutils and sh-utils (textutils's getline test was inadequate).
95846         (AM_FUNC_GETLINE): Run this test.
95847         (AC_CHECK_FUNCS): Check for getdelim.
95848         Reported by Bob Proulx.
95849
95850 1999-08-02  Jim Meyering  <meyering@ascend.com>
95851
95852         * m4/jm-macros.m4: Add a comment.
95853
95854 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95855
95856         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95857         <inttypes.h> defines strtoumax as a macro (and not as a
95858         function).
95859
95860 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95861
95862         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95863         that we can shift, multiply and divide unsigned long long
95864         values; Ultrix cc can't do it.
95865
95866 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95867
95868         * m4/mktime.m4: New file, which is a preview of what should appear
95869         in the next public autoconf release.
95870
95871 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95872
95873         * m4/lfs.m4: Remove this file.
95874         * m4/largefile.m4: New file.  It contains the old contents of
95875         lfs.m4, except that all names with prefix AC_LFS have been
95876         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95877         compatible with future autoconf versions.  Also, some minor m4
95878         quoting problems have been fixed.
95879
95880 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95881
95882         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95883         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95884         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95885         and simplify the shell code.
95886
95887 1999-08-01  Jim Meyering  <meyering@ascend.com>
95888
95889         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95890         m4.
95891
95892 1999-07-20  Jim Meyering  <meyering@ascend.com>
95893
95894         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95895
95896 1999-07-15  Jim Meyering  <meyering@ascend.com>
95897
95898         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95899
95900 1999-05-22  Jim Meyering  <meyering@ascend.com>
95901
95902         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95903
95904 1999-05-20  Jim Meyering  <meyering@ascend.com>
95905
95906         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95907         Add a colon after each `then' in case $4 is empty.
95908
95909 1999-05-16  Jim Meyering  <meyering@ascend.com>
95910
95911         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95912
95913 1999-05-10  Jim Meyering  <meyering@ascend.com>
95914
95915         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95916
95917         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95918         AC_FUNC_MKTIME.
95919
95920 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95921
95922         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95923
95924 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95925
95926         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95927         not CPPFLAGS, so that linking works correctly in IRIX.
95928
95929 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95930
95931         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95932
95933 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95934
95935         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95936         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95937         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95938         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95939         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95940
95941         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95942
95943 1999-04-20  Jim Meyering  <meyering@ascend.com>
95944
95945         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95946         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95947         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95948
95949 1999-04-18  Jim Meyering  <meyering@ascend.com>
95950
95951         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95952         * m4/jm-macros.m4: Use it.
95953
95954 1999-04-06  Jim Meyering  <meyering@ascend.com>
95955
95956         * m4/strftime.m4: Remove test for %f.
95957
95958 1999-03-29  Jim Meyering  <meyering@ascend.com>
95959
95960         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95961         superset of the AC_TYPE_* checks in the textutils, fileutils,
95962         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95963         AC_TYPE_PID_T.
95964
95965 1999-03-28  Jim Meyering  <meyering@ascend.com>
95966
95967         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95968         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95969         replaced e.g., in the *.sh files of the sh-utils.
95970
95971 1999-03-20  Jim Meyering  <meyering@ascend.com>
95972
95973         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95974         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95975         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95976
95977 1999-03-19  Jim Meyering  <meyering@ascend.com>
95978
95979         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95980
95981 1999-03-12  Jim Meyering  <meyering@ascend.com>
95982
95983         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95984
95985 1999-03-07  Jim Meyering  <meyering@ascend.com>
95986
95987         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95988         declared.
95989
95990 1999-02-17  Jim Meyering  <meyering@ascend.com>
95991
95992         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95993         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95994
95995 1999-02-07  Jim Meyering  <meyering@ascend.com>
95996
95997         * m4/group-member.m4: New file -- extracted from sh-utils'
95998         configure.in.
95999
96000         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
96001         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
96002
96003 1999-02-06  Jim Meyering  <meyering@ascend.com>
96004
96005         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
96006         * m4/fnmatch.m4: Likewise.
96007         * m4/getgroups.m4: Likewise.
96008         * m4/lstat.m4: Likewise.
96009         * m4/malloc.m4: Likewise.
96010         * m4/putenv.m4: Likewise.
96011         * m4/realloc.m4: Likewise.
96012         * m4/regex.m4: Likewise.
96013         * m4/stat.m4: Likewise.
96014         * m4/strftime.m4: Likewise.
96015         Suggestion from Alain Magloire.
96016
96017         * m4/chown.m4: Use `.$ac_objext', not `.o'.
96018         * m4/fnmatch.m4: Likewise.
96019         * m4/getgroups.m4: Likewise.
96020         * m4/getline.m4: Likewise.
96021         * m4/lstat.m4: Likewise.
96022         * m4/malloc.m4: Likewise.
96023         * m4/memcmp.m4: Likewise.
96024         * m4/putenv.m4: Likewise.
96025         * m4/realloc.m4: Likewise.
96026         * m4/regex.m4: Likewise.
96027         * m4/stat.m4: Likewise.
96028         * m4/strftime.m4: Likewise.
96029         Suggestion from Alain Magloire.
96030
96031         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
96032         an argument.
96033
96034         * m4/regex.m4: Add a run-time Test for proper operation of
96035         re_compile_pattern.
96036
96037 1999-01-31  Jim Meyering  <meyering@ascend.com>
96038
96039         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
96040
96041 1999-01-30  Jim Meyering  <meyering@ascend.com>
96042
96043         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
96044
96045         * m4/jm-mktime.m4: Make this a wrapper around the official
96046         AM_FUNC_MKTIME rather than my private copy, now that the official one
96047         is up to date.
96048         * m4/mktime.m4: Remove file.
96049
96050         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
96051         * m4/uptime.m4: Likewise.
96052         * m4/uintmax_t.m4: Likewise.
96053
96054 1999-01-28  Jim Meyering  <meyering@ascend.com>
96055
96056         * m4/jm-macros.m4: Use jm_AFS.
96057         * m4/afs.m4: New file (from fileutils' configure.in).
96058
96059         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
96060         * m4/chown.m4: Likewise.
96061         * m4/d-ino.m4: Likewise.
96062         * m4/d-type.m4: Likewise.
96063         * m4/fnmatch.m4: Likewise.
96064         * m4/getgroups.m4: Likewise.
96065         * m4/gettext.m4: Likewise.
96066         * m4/jm-mktime.m4: Likewise.
96067         * m4/jm-winsz2.m4: Likewise.
96068         * m4/lcmessage.m4: Likewise.
96069         * m4/ls-mntd-fs.m4: Likewise.
96070         * m4/malloc.m4: Likewise.
96071         * m4/memcmp.m4: Likewise.
96072         * m4/putenv.m4: Likewise.
96073         * m4/realloc.m4: Likewise.
96074         * m4/st_mtim.m4: Likewise.
96075         * m4/strftime.m4: Likewise.
96076
96077 1999-01-16  Jim Meyering  <meyering@ascend.com>
96078
96079         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
96080         (ARGMATCH_DIE_DECL): Define.
96081
96082 1999-01-12  Jim Meyering  <meyering@ascend.com>
96083
96084         * m4/Makefile.am.in: Rewrite to avoid using fmt.
96085         Reported by Lars Hecking.
96086
96087 1999-01-10  Jim Meyering  <meyering@ascend.com>
96088
96089         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
96090         gross kludge.
96091         * m4/inttypes_h.m4: Likewise.
96092         * m4/lstat.m4: Likewise.
96093         * m4/malloc.m4: Likewise.
96094         * m4/readdir.m4: Likewise.
96095         * m4/realloc.m4: Likewise.
96096         * m4/st_dm_mode.m4: Likewise.
96097         * m4/stat.m4: Likewise.
96098         * m4/utimbuf.m4: Likewise.
96099         * m4/utimes.m4: Likewise.
96100
96101         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
96102         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
96103         comments in config.h.in are meaningful.
96104
96105         * m4/jm-macros.m4: Require autoconf-2.13 here.
96106
96107         * m4/regex.m4: By default, don't use the included regex.c on systems
96108         with glibc 2.  Suggestion from Uli Drepper.
96109
96110 1999-01-02  Jim Meyering  <meyering@ascend.com>
96111
96112         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
96113
96114 1998-12-18  Jim Meyering  <meyering@ascend.com>
96115
96116         * m4/Makefile.am.in (Makefile.am): Simplify rule.
96117         Based on a suggestion from Lars Hecking.
96118
96119 1998-11-16  Paul Eggert  <eggert@twinsun.com>
96120
96121         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
96122
96123 1998-11-16  Jim Meyering  <meyering@ascend.com>
96124
96125         * m4/lfs.m4: Double-quote the `uname...` expression.
96126
96127 1998-11-14  Jim Meyering  <meyering@ascend.com>
96128
96129         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
96130         * m4/stat.m4: Likewise.
96131
96132 1998-11-03  Jim Meyering  <meyering@ascend.com>
96133
96134         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
96135         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
96136
96137 1998-10-18  Jim Meyering  <meyering@ascend.com>
96138
96139         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
96140
96141 1998-10-17  Jim Meyering  <meyering@ascend.com>
96142
96143         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
96144         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
96145         calls for those previously hard-coded headers.  Instead, take a new
96146         parameter.
96147         (jm_CHECK_DECLARATIONS): Reflect interface change.
96148         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
96149         (jm_CHECK_DECL_LOCALTIME_R): New macro.
96150
96151         * m4/mktime.m4: Test for spring-forward gap before long-running test.
96152
96153 1998-10-14  Jim Meyering  <meyering@ascend.com>
96154
96155         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
96156         instead of "TZ=America/Vancouver".  From Paul Eggert.
96157
96158 1998-10-11  Jim Meyering  <meyering@ascend.com>
96159
96160         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
96161         This adds a test for a recently added compatibility fix for mktime.c.
96162         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
96163
96164 1998-09-27  Jim Meyering  <meyering@ascend.com>
96165
96166         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
96167
96168         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
96169         ../configure.in, including a change from Gordon Matzigkeit to allow
96170         cross-compiling for the Hurd.
96171
96172         * m4/glibc.m4: New file/macro to test for the GNU C Library
96173         versions 1 and 2.  From Gordon Matzigkeit.
96174         Indent.
96175
96176 1998-09-21  Jim Meyering  <meyering@ascend.com>
96177
96178         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
96179
96180 1998-08-18  Paul Eggert  <eggert@twinsun.com>
96181
96182         Port nanosecond-resolution times to UnixWare 2.1.2 and
96183         pedantic Solaris 2.6.
96184
96185         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
96186         AC_STRUCT_ST_MTIM.
96187         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
96188         Generate name of ns member, instead of just 1 or undef.
96189         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
96190
96191 1998-08-15  Jim Meyering  <meyering@ascend.com>
96192
96193         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
96194         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
96195         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
96196         instead of jm_TYPE_SSIZE_T.
96197
96198 1998-08-12  Jim Meyering  <meyering@ascend.com>
96199
96200         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
96201
96202 1998-08-02  Jim Meyering  <meyering@ascend.com>
96203
96204         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
96205         in acconfig.h manually.
96206
96207 1998-07-31  Paul Eggert  <eggert@twinsun.com>
96208
96209         * m4/st_mtim.m4: New file.
96210
96211 1998-07-28  Jim Meyering  <meyering@ascend.com>
96212
96213         * m4/utimes.m4: Undef stat.
96214
96215 1998-07-25  Jim Meyering  <meyering@ascend.com>
96216
96217         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
96218         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
96219
96220 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
96221
96222         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
96223         uid and gid actually remain unchanged.
96224
96225 1998-07-07  Jim Meyering  <meyering@ascend.com>
96226
96227         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
96228
96229 1998-07-04  Jim Meyering  <meyering@ascend.com>
96230
96231         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
96232         to prove that this macro can be used in packages without regex.c.
96233
96234 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
96235
96236         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
96237         is to be used.
96238
96239 1998-07-03  Jim Meyering  <meyering@ascend.com>
96240
96241         * m4/gettext.m4: Add -lintl if it's found to be necessary.
96242
96243         * m4/gettext.m4: New file -- from gettext-0.10.35.
96244         * m4/lcmessage.m4: Likewise.
96245         * m4/progtest.m4: Likewise.
96246
96247         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
96248         * m4/jm-macros.m4: Require the new macro.
96249
96250 1998-06-29  Jim Meyering  <meyering@ascend.com>
96251
96252         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
96253         for the definition of NGROUPS (used in a system header included
96254         by sys/mount.h).
96255
96256 1998-06-28  Jim Meyering  <meyering@ascend.com>
96257
96258         * m4/ls-mntd-fs.m4: New file.
96259         * m4/fstypename.m4: New file.
96260
96261         * m4/jm-macros.m4: Require the new macro.
96262         * m4/jm-glibc-io.m4: New file.
96263
96264 1998-05-19  Jim Meyering  <meyering@ascend.com>
96265
96266         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
96267         * m4/lchown.m4: New file.
96268
96269         * m4/Makefile.am.in: New file.
96270         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
96271
96272 1998-05-14  Jim Meyering  <meyering@ascend.com>
96273
96274         * m4/Makefile.am (EXTRA_DIST): Add them.
96275         * m4/jm-macros.m4: New file.
96276         * m4/utimbuf.m4: New file.
96277
96278 1998-05-12  Jim Meyering  <meyering@ascend.com>
96279
96280         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
96281
96282 1998-05-11  Jim Meyering  <meyering@ascend.com>
96283
96284         * m4/isc-posix.m4: New file.
96285
96286 1998-05-10  Jim Meyering  <meyering@ascend.com>
96287
96288         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
96289
96290 1998-05-09  Jim Meyering  <meyering@ascend.com>
96291
96292         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
96293         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
96294         with automake.
96295
96296         * m4/ssize_t.m4: New file.
96297         * m4/mktime.m4: Remove file -- the new automake has this now.
96298
96299 1998-04-26  Jim Meyering  <meyering@ascend.com>
96300
96301         * m4/assert.m4: New file.
96302         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
96303
96304 1998-04-05  Jim Meyering  <meyering@ascend.com>
96305
96306         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
96307         (jm_PREREQ): Use it here.
96308
96309 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
96310
96311         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
96312         in acconfig.h.
96313
96314 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
96315
96316         * m4/prereq.m4: New file.
96317         * m4/error.m4: New file.
96318         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
96319
96320 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
96321
96322         * m4/getline.m4: Don't set am_cv_func_working_getline before the
96323         cache-check for the same variable -- that defeated the purpose of
96324         the test; the test program was never run.  This was a problem only
96325         on systems with losing getline functions -- HP-UX 10.20 is one.
96326         Reported by Bjorn Helgaas.
96327
96328 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
96329
96330         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
96331
96332 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
96333
96334         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
96335
96336         * m4/const.m4: New file.  Use an initializer in this declaration
96337         typedef int charset[2]; const charset x;
96338         Reported by Bob Glickstein.
96339
96340 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
96341
96342         * m4/chown.m4: Fix reversed types on -1 args to chown.
96343         From Kaveh Ghazi.
96344
96345 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
96346
96347         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
96348         Add lseek and memchr.
96349
96350         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
96351         T.E.Dickey <dickey@clark.net> said that some older preprocessors
96352         have a 20-character limit on names.
96353
96354 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
96355
96356         * m4/inttypes_h.m4: New file.
96357         * m4/uintmax_t.m4: New file.
96358         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
96359
96360
96361         -----
96362
96363         Local Variables:
96364         coding: utf-8
96365         End:
96366
96367         Copyright (C) 1997-2012 Free Software Foundation, Inc.
96368
96369         Copying and distribution of this file, with or without
96370         modification, are permitted provided the copyright notice
96371         and this notice are preserved.